Conditions | 4 |
Paths | 3 |
Total Lines | 7 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
16 | private static function chmodRecursive(string $path, int $mode): void |
||
17 | { |
||
18 | $dir = new \DirectoryIterator($path); |
||
19 | foreach ($dir as $item) { |
||
20 | chmod($item->getPathname(), $mode); |
||
21 | if ($item->isDir() && !$item->isDot()) { |
||
22 | self::chmodRecursive($item->getPathname(), $mode); |
||
23 | } |
||
27 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.