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