| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 3 | ||
| Bugs | 0 | 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( |
||
| 24 | $path, |
||
| 25 | FSIterator::SKIP_DOTS | FSIterator::CURRENT_AS_PATHNAME |
||
| 26 | ), |
||
| 27 | RIterator::SELF_FIRST |
||
| 28 | ); |
||
| 29 | foreach ($iterator as $item) { |
||
| 30 | chmod($item, $mode); |
||
| 31 | } |
||
| 34 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.