php-cs-fixer Questions
3
How to create custom ruleset to be run by fix command with option --rules=@custom?
Like @PSR1, @PSR2, @Symfony, @PHP56Migration, @PHP70Migration, @PHP71Migration are made.
Php-cs-fixer version: 2...
Region asked 23/6, 2017 at 7:20
3
Solved
How can I configure PHP-CS-Fixer to use tab for indentation?
I can see the indentation_type fixer
* indentation_type [@PSR2, @Symfony]
| Code MUST use configured indentation type.
But how do I...
Borchardt asked 17/3, 2017 at 4:54
4
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 time I get:
PHP needs to be a minimum version of...
Lentissimo asked 15/1, 2021 at 15:2
3
Solved
I'm currently using VS Code's latest version 1.41.1 (at the time of writing).
I've installed PHP CS Fixer to auto-format my code. However there's a behavious that I don't like. It always formats t...
Dow asked 16/1, 2020 at 12:47
2
Solved
Should associative array => should be align with PHP-CS-Fixer ?
$array = [
1 => 'a',
'1' => 'b',
1.5 => 'c',
true => 'd',
];
or
$array = [
1 => 'a',
'1' => 'b',
1.5 =&...
Milquetoast asked 12/11, 2015 at 11:39
6
Solved
Inherited a PHP7 project. The previous developer added a slash to all standard PHP functions even for \true. Is there any reason for doing this?
Some examples:
\array_push($tags, 'master');
if ...
Peag asked 29/3, 2019 at 14:32
2
Solved
Php cs fixer is doing :
function foobar()
{
....
}
and I want:
function foobar() {
....
}
I can't see what is the config to keep braces on the same line in my config .php_cs file, nor on ht...
Dissimilar asked 16/11, 2018 at 11:1
4
Solved
I have several hundreds of horribly indented PHP files with mixed tabs and spaces (and even mixed line endings, I suppose) I would like to fix them with php-cs-fixer v2+.
I have configured php-cs-...
Dosage asked 19/9, 2017 at 16:32
1
Solved
I am trying to run PHP CS Fixer, which I believe is based on Symfony (which I am not familiar with), and having a problem with excluding some paths.
My setup is below:
$finder = PhpCsFixer\Finder...
Danas asked 5/5, 2017 at 7:24
2
Solved
PHP-CS-FIXER
Hi I am using php-cs-fixer for first time. I know that we have to set a .php_cs.dist file
This is a example file that i got from the git repository of php-cs-fixer.
$finder = PhpCsF...
Leff asked 16/2, 2017 at 14:24
1
© 2022 - 2024 — McMap. All rights reserved.