setRules([ '@PSR1' => true, '@PSR2' => true, 'psr4' => true, 'declare_strict_types' => true, 'strict_param' => true, 'strict_comparison' => true, 'align_multiline_comment' => true, 'array_syntax' => ['syntax' => 'short'], 'binary_operator_spaces' => true, 'concat_space' => ['spacing' => 'one'], 'is_null' => ['use_yoda_style' => true], 'list_syntax' => ['syntax' => 'short'], 'trim_array_spaces' => true, 'whitespace_after_comma_in_array' => true, 'yoda_style' => ['equal' => true, 'identical' => true, 'always_move_variable' => true], 'ordered_imports' => true, 'ordered_class_elements' => true, 'encoding' => true, 'phpdoc_to_comment' => false, ]) ->setRiskyAllowed(true) ->setUsingCache(true) ->setHideProgress(false) ->setFinder( PhpCsFixer\Finder::create() ->in([__DIR__.'/src', __DIR__.'/tests']) ->name('*.php') );