[Fabbot] Do not run php-cs-fixer if there are no change in src/

This commit is contained in:
Grégoire Pineau 2017-09-08 15:50:13 +02:00
parent b6a29a28db
commit 3eb79e5197
1 changed files with 4 additions and 0 deletions

View File

@ -1,5 +1,9 @@
<?php
if (!file_exists(__DIR__.'/src')) {
exit(0);
}
return PhpCsFixer\Config::create()
->setRules(array(
'@Symfony' => true,