php-cs-fixer configuration

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 2024-05-28 08:45:28, by Exakat (2.6.8- build 1506)
*/

// Adapt this to your directory structure
$finder = PhpCsFixer\Finder::create()
                            ->name('*.php');

return PhpCsFixer\Config::create()
    ->setRules(
        array(
            'combine_consecutive_issets'   => true,
            'combine_consecutive_unsets'   => true,
            'combine_nested_dirname'       => true,
            'dir_constant'                 => true,
            'elseif'                       => true,
            'function_to_constant'         => true,
            'implode_call'                 => true,
            'is_null'                      => true,
            'logical_operators'            => true,
            'no_unset_on_property'         => true,
            'pow_to_exponentiation'        => true,
        )
    )
    ->setFinder($finder);