PSR12 Allow newline after closing parenthesis

326 views Asked by At

How can I allow the writing of the bellow code? which rules should I add to my custom ruleset xml?

foreach ($mIn as $key => $value)
{
    $mOut -> $key = $mIn -> $key;
}
    

currently, PHPCS is issuing a warning stating that a space is expected after the closing parenthesis but instead finds a new line.

Thanks

0

There are 0 answers