This is a suggestion of configuration directives to use when fixing code en masse with php-cs-fixer.
Include the code below in your .php_cs file, at the root of the source code.
<?php
/**
* Add this to your .php_cs file
* At the root of the source to be analyzed
* Generated on 2020-06-18 01:13:18, by Exakat (2.1.1- build 1070)
*/
// Adapt this to your directory structure
$finder = PhpCsFixer\Finder::create()
->name('*.php');
return PhpCsFixer\Config::create()
->setRules(
array(
'dir_constant' => true,
'function_to_constant' => true,
)
)
->setFinder($finder);