| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 4 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 19 | private static function chmodRecursive(string $path, int $mode): void |
||
| 20 | { |
||
| 21 | chmod($path, $mode); |
||
| 22 | $iterator = new RIterator( |
||
| 23 | new DirIterator($path, FSIterator::SKIP_DOTS | FSIterator::CURRENT_AS_PATHNAME), |
||
| 24 | RIterator::SELF_FIRST |
||
| 25 | ); |
||
| 26 | foreach ($iterator as $item) { |
||
| 27 | chmod($item, $mode); |
||
| 28 | } |
||
| 31 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.