- Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed
PHPCSStandards/PHP_CodeSniffer
#35Labels
Description
Running phpcbf for PSR12 I get:
<?php declare(strict_types=1); namespace App\Services; use App\Entity\User; use App\Entity\Car; use function Service\api;
Which is correct by PSR12 Standard, unfortunately PHP-CS-FIXER do not fully support this yet and when I run both phpcbf and php-cs-fixer, php-cs-fixer is removing the blank line between the imports, and phpcbf is readding causing an issue.
Is it possible to ignore this specific rule (no blank lines between grouped imports)?
I checked from php-cs-fixer side but it would mean removing the no_extra_blank_lines fixer which would affect more than just this. Any help would be appreciated.
Related issue on php-cs-fixer: PHP-CS-Fixer/PHP-CS-Fixer#3582