in(__DIR__) ->exclude('vendor') // Ignore vendor folder ->name('*.php'); // Define the coding rules $config = new Config(); return $config ->setRules([ '@PSR12' => true, // PSR-12 coding standards 'array_syntax' => ['syntax' => 'short'], // Enforce short array syntax 'single_quote' => true, // Enforce single quotes ]) ->setFinder($finder);