Code-guidelines for Friendica?
Dear !Friendica Developers ,
I currently rewrite some parts of the #friendica code base. For example
Shouldn't we use then
And
I currently rewrite some parts of the #friendica 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).