. */ $current = __DIR__; $paths = [ $current . '/../../app', $current . '/../../config', $current . '/../../database', $current . '/../../routes', $current . '/../../tests', $current . '/../../resources/lang', ]; $finder = PhpCsFixer\Finder::create() ->in($paths); $config = new PhpCsFixer\Config(); return $config->setRules([ '@PSR12' => true, 'strict_param' => true, 'array_syntax' => ['syntax' => 'short'], ]) ->setFinder($finder) ;