[phpMyAdmin Developers] Question about PSR1

Michal Čihař michal at cihar.com
Tue Dec 8 07:41:35 CET 2015


Hi

Dne 7.12.2015 v 19:16 Marc Delisle napsal(a):
> Le 2015-12-07 10:46, Michal Čihař a écrit :
>> Hi
>>
>> Dne 5.12.2015 v 16:51 Marc Delisle napsal(a):
>>> I find it overkill to move one line of define() to an include file. A
>>> possible way to comply with PSR1 in this situation would be the following.
>>>
>>> In js/whitelist.php, replace the define() with
>>> $pmaMinimumCommon = true;
>>>
>>> In libraries/common.inc.php replace the if (! defined()) with
>>> if (! pmaMinimumCommon)
>>
>> Maybe it would be better (and cleaner) to split up common.inc.php to two
>> files - one doing the "minimal" set of things, the other one adding
>> other logic on top of it.
> 
> Good point!

Tracked as https://github.com/phpmyadmin/phpmyadmin/issues/11731


-- 
	Michal Čihař | http://cihar.com | http://blog.cihar.com

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <https://lists.phpmyadmin.net/pipermail/developers/attachments/20151208/e7a3bd02/attachment.sig>


More information about the Developers mailing list