Skip to content

Commit

Permalink
StyleCI / PHP-CS-Fixer backport
Browse files Browse the repository at this point in the history
  • Loading branch information
soullivaneuh committed Oct 12, 2015
1 parent 9d4c843 commit e3c71a4
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -2,3 +2,4 @@ phpunit.xml
vendor
composer.lock
composer.phar
.php_cs.cache
21 changes: 21 additions & 0 deletions .php_cs
@@ -0,0 +1,21 @@
<?php

require_once './vendor/autoload.php';

use SLLH\StyleCIBridge\ConfigBridge;
use Symfony\CS\Fixer\Contrib\HeaderCommentFixer;

$header = <<<EOF
This file is part of the FOSRestBundle package.
(c) FriendsOfSymfony <http://friendsofsymfony.github.com/>
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)
;
1 change: 1 addition & 0 deletions .styleci.yml
@@ -0,0 +1 @@
preset: symfony
3 changes: 2 additions & 1 deletion composer.json
Expand Up @@ -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": {
Expand Down

0 comments on commit e3c71a4

Please sign in to comment.