diff --git a/.gitignore b/.gitignore index 178e3138d..73d464da0 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ phpunit.xml vendor composer.lock composer.phar +.php_cs.cache diff --git a/.php_cs b/.php_cs new file mode 100644 index 000000000..f3c918e06 --- /dev/null +++ b/.php_cs @@ -0,0 +1,21 @@ + + +For the full copyright and license information, please view the LICENSE +file that was distributed with this source code. +EOF; + +HeaderCommentFixer::setHeader($header); + +return ConfigBridge::create() + ->setUsingCache(true) +; diff --git a/.styleci.yml b/.styleci.yml new file mode 100644 index 000000000..974f5fa5d --- /dev/null +++ b/.styleci.yml @@ -0,0 +1 @@ +preset: symfony diff --git a/composer.json b/composer.json index a1a205a68..82f369a53 100644 --- a/composer.json +++ b/composer.json @@ -41,7 +41,8 @@ "symfony/dependency-injection": "~2.3", "phpoption/phpoption": "~1.1.0", "jms/serializer": "~0.13|~1.0", - "jms/serializer-bundle": "~0.12|~1.0" + "jms/serializer-bundle": "~0.12|~1.0", + "sllh/php-cs-fixer-styleci-bridge": "^1.3" }, "suggest": {