Isaac Bennetch a écrit :
On Apr 2, 2013, at 6:10 AM, Michal Čihař <michal(a)cihar.com> wrote:
> Hi
>
> Dne Mon, 01 Apr 2013 08:06:06 -0400
> Marc Delisle <marc(a)infomarc.info> napsal(a):
>
>> I was looking at [0] to find the requirement about spacing around
>> operators, to no avail. No more luck in [1].
>>
>> I prefer this requirement but we should mention it somewhere.
> Indeed it seems not to be covered, so we should include in our wiki.
> Maybe this would be useful:
>
>
http://drupal.org/coding-standards#operators
What triggered my questionning is the exclamation mark, for example
if ($foo && ! $blah)
but the Drupal's coding standard mentions that unary operators (like ++)
should not have a space between the operator. So, where does our "space
after exclamation mark" practice come from? Just for readability?
Looks good by me. If no one gets to it before me, I'll make the change later today.
--
Marc Delisle
http://infomarc.info