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