The issue is that if watching multiple directories via the Finder class. If one does not exist, the Finder will throw an exception and the fixer will ...
The issue is that if watching multiple directories via the Finder class. If one does not exist, the Finder will throw an exception and the fixer will ...
I'm trying to get GrumPHP to work with a small Laravel 9 project but php-cs-fixer is being pulled from the wrong location and I can't seem to find how ...
I was made a mistake yesterday and spent hours to fix it. I have method like this And yes, I assign $this->y two times instead of one y and one ...
I am trying to use "php-cs-fixer" plugin with visual studio code. I read this topic : topic I followed all the steps. When I try to format the code, ...
I usually code in PHP, but I have a very simple html code and it's in a broken structure. It can get worse when I try to fix it with php-cs-fixer. It ...
In php_codesniffer you can ignore coding standards for a block of code thusly: I think that's waaaay more readable then, say, this: Does php-cs- ...
What do you guys prefer? And Why? And what is more readable? VS Both ways result in the same. Feel free to share your opinion :) ...
I'm trying to use php-cs-fixer with a WordPress project, which means I (unfortunately) have files with a mix of PHP and HTML. I'm using the @PSR12 rul ...
I am looking for a PHP CS Fixer rule that requires a single space after a named argument, going from this: array_key_exists( key:'test', arra ...
I am currently hooking into Git's pre-push hook to run PHP CS Fixer, but I'm looking for a more less clunky way of doing it. I couldn't figure out how ...
Using Laravel, my kernel file has my $routeMiddleware property array as normal. protected $routeMiddleware = [ 'access' => \App\Middleware\Allow ...
I'm using VSCode with PHP CS Fixer v3.1.0, but rules don't seem to be applied. When I comment/uncomment setIndent("\t"), this setting is automaticall ...
When using PHP CS Fixer to resolve syntax errors on file save and using the Symfony rule set, any function names that are not camelCase will be correc ...
After upgrade to php8 I have a problem with php-cs-fixer which I installed globally via composer. Right now I can not use php-cs-fixer because every t ...
I keep getting "Multiple definitions exist for class..." warnings in PhpStorm, and upon inspection, I see these a bunch of these huge php-cs-fixer fil ...
I would like to know if it is possible to replicate the Align fields in columns behavior from PHPStorm to PHP-CS-Fixer For having this : instead o ...
I'm working on a project which developed many developers for many years, and as it often happens there is no coding standard. There are many code blo ...
I've been struggling with this all day. I got brought in to a new app and they require php-cs-fixer to be ran on all files. The project has a .php_cs ...
I have this kind of annotation in php files, to build my swagger : Each time I run php-cs-fixer, then the annotation is replaced by : See the t ...
I want to disable no_superfluous_phpdoc_tags rule. With the rule defaults it turns the above into this. I tried this: But it doesn't affect t ...