elyby / php-code-style

Set of PHP-CS-Fixer rules used in the development of Ely.by PHP projects
Apache License 2.0
4 stars 3 forks source link

Multiple statements per line is not allowed #6

Closed erickskrauch closed 2 years ago

erickskrauch commented 6 years ago

Code:

<?php
$rgb = [$r, $g, $b]; exit();

Exprected fix:

<?php
$rgb = [$r, $g, $b];
exit();
erickskrauch commented 2 years ago

Resolved in https://github.com/elyby/php-code-style/commit/18806e41e217a4c9d707d69ea134a182c38a6475 by adding no_multiple_statements_per_line fixer.