You can set the PHP-CS-Fixer config file path
and set the setIndent()
value as defined at PHP-CS-Fixer's documentation website.
See image for Atom package settings
Set the .php_cs
with something like this. Note the ->setIndent(" ")
with two spaces instead of a \t
character.
<?php
/*
* This file is part of PHP CS Fixer.
* (c) Fabien Potencier <[email protected]>
* Dariusz Rumiński <[email protected]>
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
$header = <<<'EOF'
This file is part of PHP CS Fixer.
(c) Fabien Potencier <[email protected]>
Dariusz Rumiński <[email protected]>
This source file is subject to the MIT license that is bundled
with this source code in the file LICENSE.
EOF;
return PhpCsFixer\Config::create()
/* ... other settings */
->setIndent(" ")
/* ... other settings */
I am using php-cs-fixer
plugin version 4.1.0 here.
-indentation
in the "Fixers" field in Beatify's Atom settings, which seems to have no impact in Atom's usage of the tool. – Ingeborg