Skip to content

Commit

Permalink
[cs-fixer] Fix files to lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
Maks3w committed Mar 16, 2014
1 parent cba1dc4 commit 5823a47
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 23 deletions.
22 changes: 10 additions & 12 deletions .php_cs
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
<?php
$finder = Symfony\CS\Finder\DefaultFinder::create()
->exclude('demos')
->exclude('resources')
->notPath('tests/ZendTest/Code/Reflection/FunctionReflectionTest.php')
->notPath('tests/ZendTest/Code/Reflection/MethodReflectionTest.php')
->notPath('tests/ZendTest/Code/Reflection/TestAsset/closures.php')
->notPath('tests/ZendTest/Code/Reflection/TestAsset/functions.php')
->notPath('tests/ZendTest/Code/Reflection/TestAsset/TestSampleClass10.php')
->notPath('tests/ZendTest/Code/Reflection/TestAsset/TestSampleClass11.php')
->notPath('tests/ZendTest/Code/TestAsset')
->notPath('tests/ZendTest/Validator/_files')
->notPath('tests/ZendTest/Loader/_files')
->notPath('tests/ZendTest/Loader/TestAsset')
->notPath('ZendTest/Code/Reflection/FunctionReflectionTest.php')
->notPath('ZendTest/Code/Reflection/MethodReflectionTest.php')
->notPath('ZendTest/Code/Reflection/TestAsset/closures.php')
->notPath('ZendTest/Code/Reflection/TestAsset/functions.php')
->notPath('ZendTest/Code/Reflection/TestAsset/TestSampleClass10.php')
->notPath('ZendTest/Code/Reflection/TestAsset/TestSampleClass11.php')
->notPath('ZendTest/Code/TestAsset')
->notPath('ZendTest/Validator/_files')
->notPath('ZendTest/Loader/_files')
->notPath('ZendTest/Loader/TestAsset')
->filter(function (SplFileInfo $file) {
if (strstr($file->getPath(), 'compatibility')) {
return false;
Expand Down
22 changes: 11 additions & 11 deletions tests/.php_cs
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
<?php
$finder = Symfony\CS\Finder\DefaultFinder::create()
->files()
->notPath('ZendTest/Code/Reflection/FunctionReflectionTest.php')
->notPath('ZendTest/Code/Reflection/MethodReflectionTest.php')
->notPath('ZendTest/Code/Reflection/TestAsset/closures.php')
->notPath('ZendTest/Code/Reflection/TestAsset/functions.php')
->notPath('ZendTest/Code/Reflection/TestAsset/TestSampleClass10.php')
->notPath('ZendTest/Code/Reflection/TestAsset/TestSampleClass11.php')
->notPath('ZendTest/Code/TestAsset')
->notPath('ZendTest/Validator/_files')
->notPath('ZendTest/Loader/_files')
->notPath('ZendTest/Loader/TestAsset')
->in(__DIR__);
->notPath('Code/Reflection/FunctionReflectionTest.php')
->notPath('Code/Reflection/MethodReflectionTest.php')
->notPath('Code/Reflection/TestAsset/closures.php')
->notPath('Code/Reflection/TestAsset/functions.php')
->notPath('Code/Reflection/TestAsset/TestSampleClass10.php')
->notPath('Code/Reflection/TestAsset/TestSampleClass11.php')
->notPath('Code/TestAsset')
->notPath('Validator/_files')
->notPath('Loader/_files')
->notPath('Loader/TestAsset')
->in(__DIR__ . '/ZendTest');

return Symfony\CS\Config\Config::create()
->finder($finder);

0 comments on commit 5823a47

Please sign in to comment.