| Conditions | 4 |
| Paths | 4 |
| Total Lines | 24 |
| Code Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 38 | public function getRecursiveFolders($folders) |
||
| 39 | { |
||
| 40 | |||
| 41 | $paths = []; |
||
| 42 | |||
| 43 | foreach ($folders as $folder) { |
||
| 44 | $iter = new Iterator( |
||
| 45 | new DirectoryIterator($folder, DirectoryIterator::SKIP_DOTS), |
||
| 46 | Iterator::SELF_FIRST, |
||
| 47 | Iterator::CATCH_GET_CHILD // Ignore "Permission denied" |
||
| 48 | ); |
||
| 49 | |||
| 50 | $subPaths = array($folder); |
||
| 51 | foreach ($iter as $path => $dir) { |
||
| 52 | if ($dir->isDir()) { |
||
| 53 | $subPaths[] = $path; |
||
| 54 | } |
||
| 55 | } |
||
| 56 | |||
| 57 | $paths = array_merge($paths, $subPaths); |
||
| 58 | } |
||
| 59 | |||
| 60 | return $paths; |
||
| 61 | } |
||
| 62 | |||
| 77 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italyis not defined by the methodfinale(...).The most likely cause is that the parameter was removed, but the annotation was not.