Skip to content

Commit d389c7e

Browse files
fgarobyFrancescu Garoby
and
Francescu Garoby
authored
run 'mkdir' only if the directory doesn't exist yet (#481)
* run 'mkdir' only if the directory doesn't exist yet * codestyle * Use 'id_dir' instead of 'file_exists' Co-authored-by: Francescu Garoby <[email protected]>
1 parent 109d5bf commit d389c7e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Diff for: .php-cs-fixer.dist.php

+4-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@
1313

1414
$config = new PhpCsFixer\Config('faker');
1515

16-
mkdir('.build/php-cs-fixer', 0755, true);
16+
if (!is_dir('.build/php-cs-fixer')) {
17+
mkdir('.build/php-cs-fixer', 0755, true);
18+
}
19+
1720
return $config
1821
->setCacheFile('.build/php-cs-fixer/cache')
1922
->setFinder($finder)

0 commit comments

Comments
 (0)