Skip to content

Commit

Permalink
Use StyleCI Bridge
Browse files Browse the repository at this point in the history
  • Loading branch information
soullivaneuh committed Oct 5, 2015
1 parent d04c463 commit f25f066
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 13 deletions.
24 changes: 12 additions & 12 deletions .php_cs
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<?php

$finder = Symfony\CS\Finder\DefaultFinder::create()
->in(__DIR__);

$fixers = array(
'long_array_syntax',
);

return Symfony\CS\Config\Config::create()
->setUsingCache(true)
->level(Symfony\CS\FixerInterface::PSR2_LEVEL)
->fixers($fixers)
->finder($finder);
require __DIR__.'/vendor/autoload.php';

use SLLH\StyleCIBridge\ConfigBridge;

$config = ConfigBridge::create();
$config->setUsingCache(true);

if (method_exists($config, 'setRiskyAllowed')) {
$config->setRiskyAllowed(true);
}

return $config;
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
"guzzle/guzzle": "~3.7"
},
"require-dev": {
"phpunit/phpunit": "~4.0"
"phpunit/phpunit": "~4.0",
"sllh/php-cs-fixer-styleci-bridge": "~1.3"
},
"suggest": {
"knplabs/gaufrette": "Needed for optional Gaufrette cache"
Expand Down

0 comments on commit f25f066

Please sign in to comment.