@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types = 1); |
|
| 3 | +declare(strict_types=1); |
|
| 4 | 4 | /** |
| 5 | 5 | * @copyright 2022 Carl Schwan <[email protected]> |
| 6 | 6 | * |
@@ -99,7 +99,7 @@ discard block |
||
| 99 | 99 | $iterator = new \RecursiveIteratorIterator($iterator, \RecursiveIteratorIterator::CHILD_FIRST); |
| 100 | 100 | |
| 101 | 101 | foreach ($iterator as $file) { |
| 102 | - $file = (string)$file->getPathInfo(); |
|
| 102 | + $file = (string) $file->getPathInfo(); |
|
| 103 | 103 | if (is_file($file)) { |
| 104 | 104 | unlink($file); |
| 105 | 105 | } else { |
@@ -139,7 +139,7 @@ discard block |
||
| 139 | 139 | // when there are errors in sub-requests, the parent and/or children tokens |
| 140 | 140 | // may equal the profile token, resulting in infinite loops |
| 141 | 141 | $parentToken = $profile->getParentToken() !== $profileToken ? $profile->getParentToken() : null; |
| 142 | - $childrenToken = array_filter(array_map(function (IProfile $p) use ($profileToken) { |
|
| 142 | + $childrenToken = array_filter(array_map(function(IProfile $p) use ($profileToken) { |
|
| 143 | 143 | return $profileToken !== $p->getToken() ? $p->getToken() : null; |
| 144 | 144 | }, $profile->getChildren())); |
| 145 | 145 | |