From 75160b12821f7f4299cce7f0b69c83c1502ae071 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20Luka=20=C5=A0ijanec?= Date: Mon, 27 May 2024 13:08:29 +0200 Subject: 2024-02-19 upstream --- admin/survey/minify/.php_cs | 44 ++++++++++++++++++++------------------------ 1 file changed, 20 insertions(+), 24 deletions(-) (limited to 'admin/survey/minify/.php_cs') diff --git a/admin/survey/minify/.php_cs b/admin/survey/minify/.php_cs index d0e6de4..8edfbaa 100644 --- a/admin/survey/minify/.php_cs +++ b/admin/survey/minify/.php_cs @@ -1,27 +1,23 @@ in(__DIR__ . '/lib') -; +$rules = array( + '@PSR2' => true, +); -return Symfony\CS\Config\Config::create() - ->level(Symfony\CS\FixerInterface::PSR2_LEVEL) - ->setUsingCache(true) - ->fixers(array( - 'linefeed', - 'trailing_spaces', - 'unused_use', - 'short_tag', - 'return', - 'visibility', - 'php_closing_tag', - 'extra_empty_lines', - 'function_declaration', - 'include', - 'controls_spaces', - 'elseif', - '-eof_ending', - '-method_argument_space', - )) - ->finder($finder) -; +$config = PhpCsFixer\Config::create(); +$finder = $config->getFinder(); + +$finder + ->in(array('.', 'builder/', 'lib/', 'tests/', 'min_extras/', 'static/')) + ->name('*.php') + ->ignoreDotFiles(true) + ->ignoreVCS(true); + +return $config + ->setUsingCache(true) + ->setRiskyAllowed(true) + ->setRules($rules) + ->setIndent(' ') + ->setLineEnding("\n"); + +// vim:ft=php -- cgit v1.2.3