| 1 | <?php |
||
| 9 | class Migrator extends M |
||
| 10 | { |
||
| 11 | |||
| 12 | /** |
||
| 13 | * Get all of the migration files in a given path. |
||
| 14 | * |
||
| 15 | * @param string $path |
||
|
|
|||
| 16 | * @param bool $recursive |
||
| 17 | * |
||
| 18 | * @return array |
||
| 19 | */ |
||
| 20 | public function getMigrationFiles($paths = [], $recursive = true) |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Get all subdirectories located in an array of folders |
||
| 33 | * |
||
| 34 | * @param array $folders |
||
| 35 | * |
||
| 36 | * @return array |
||
| 37 | */ |
||
| 38 | public function getRecursiveFolders($folders) |
||
| 62 | |||
| 63 | /** |
||
| 64 | * Add date folders to migrations path. |
||
| 65 | * |
||
| 66 | * @param string $file |
||
| 67 | * |
||
| 68 | * @return string |
||
| 69 | */ |
||
| 70 | public function getDateFolderStructure($file) |
||
| 76 | } |
||
| 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.