| Conditions | 5 |
| Paths | 5 |
| Total Lines | 9 |
| Code Lines | 6 |
| 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 | if (!$item->isDot()) { |
||
| 21 | chmod($path, $mode); |
||
| 22 | } |
||
| 23 | if ($item->isDir() && !$item->isDot()) { |
||
| 24 | self::chmodRecursive($item->getPathname(), $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.