Exactly.

PSR-2 and PSR-12 do not explicitly allow such case.
IMO the current rules are subject to interpretation: one could think 
newlines are forbidden as well.
I even saw some coding style tools report those as invalid.

Do you think we should update the document to remove any ambiguity?

Le vendredi 10 mars 2017 15:03:40 UTC+1, Alexander Makarov a écrit :
>
> No, not really. I guess you mean the case with long conditions you want to 
> split into multiple lines, right?
>
> On Thursday, March 9, 2017 at 6:25:35 PM UTC+3, julien...@gmail.com wrote:
>>
>> Hi.
>>
>> In PSR-12, spaces are forbidden after the opening parenthesis of a 
>> control structure and before the closing one.
>> Does this rule apply to any spacing character, including newline?
>>
>

-- 
You received this message because you are subscribed to the Google Groups "PHP 
Framework Interoperability Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to php-fig+unsubscr...@googlegroups.com.
To post to this group, send email to php-fig@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/php-fig/069add41-3445-4fc9-b8d9-987290a2ec2a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • [PSR-12] Mult... julien . falque
    • Re: [PSR... 'Alexander Makarov' via PHP Framework Interoperability Group
      • Re: ... julien . falque
        • ... 'Alexander Makarov' via PHP Framework Interoperability Group
          • ... julien . falque

Reply via email to