Skip to content

Commit

Permalink
code style fix
Browse files Browse the repository at this point in the history
  • Loading branch information
danepowell committed Apr 15, 2021
1 parent 3cff231 commit 115bc94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Symfony/Component/Filesystem/Filesystem.php
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,7 @@ public function mirror($originDir, $targetDir, \Traversable $iterator = null, $o

// Iterate in destination folder to remove obsolete entries
if ($this->exists($targetDir) && isset($options['delete']) && $options['delete']) {
$deleteIterator = func_num_args() === 5 ? func_get_arg(4) : $iterator;
$deleteIterator = 5 === \func_num_args() ? func_get_arg(4) : $iterator;
if (null === $deleteIterator) {
$flags = \FilesystemIterator::SKIP_DOTS;
$deleteIterator = new \RecursiveIteratorIterator(new \RecursiveDirectoryIterator($targetDir, $flags), \RecursiveIteratorIterator::CHILD_FIRST);
Expand Down

0 comments on commit 115bc94

Please sign in to comment.