Skip to main content


Code-guidelines for Friendica?


Dear !Friendica Developers ,

I currently rewrite some parts of the # code base. For example if (!$array['foo']) { doSomething(); } is generally not a god idea as it causes an E_NOTCE, better is to use Fridndica's own x() function. But surely not in all situations where you want to check a boolean flag.

Shouldn't we use then boolval() for such cases where a boolean flag is being checked?

And &$a is still being used. I go now and rewrite it to App $a (and import Friendica\App;, of course).

This website uses cookies to recognize revisiting and logged in users. You accept the usage of these cookies by continue browsing this website.