From: Hypolite Petovan Date: Mon, 3 Oct 2016 12:50:31 +0000 (-0400) Subject: Add PHP CS Fixer tool X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=077f69d00d58bd629aeaf3bb4bc4e1bc8bf9af57;p=friendica.git Add PHP CS Fixer tool - Add executable in `util` - Add config file for a project-wide run of the fixer --- diff --git a/.php_cs b/.php_cs new file mode 100644 index 0000000000..d47c4e0207 --- /dev/null +++ b/.php_cs @@ -0,0 +1,16 @@ +exclude('doc') + ->exclude('images') + ->exclude('js') + ->exclude('library') + ->exclude('mods') + ->exclude('spec') + ->in(__DIR__) +; + +return Symfony\CS\Config\Config::create() + ->level(Symfony\CS\FixerInterface::PSR2_LEVEL) + ->finder($finder) +; diff --git a/php-cs-fixer.phar b/php-cs-fixer.phar new file mode 100644 index 0000000000..71c5cfbb70 Binary files /dev/null and b/php-cs-fixer.phar differ