Conditions | 4 |
Paths | 3 |
Total Lines | 8 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
17 | private static function chmodRecursive(string $path, int $mode): void |
||
18 | { |
||
19 | chmod($path, $mode); |
||
20 | $iterator = new RecursiveIteratorIterator(new \RecursiveDirectoryIterator($path), RecursiveIteratorIterator::SELF_FIRST); |
||
21 | foreach ($iterator as $item) { |
||
22 | $filename = $item->getFileName(); |
||
23 | if (!($filename === '.' || $filename === '..')) { |
||
24 | chmod((string) $item, $mode); |
||
25 | } |
||
29 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.