1 | <?php |
||
9 | class Migrator extends M |
||
10 | { |
||
11 | /** |
||
12 | * Fully qualified path to the application's migration directory |
||
13 | * |
||
14 | * @var string |
||
15 | */ |
||
16 | private $path; |
||
|
|||
17 | |||
18 | /** |
||
19 | * Get all of the migration files in a given path. |
||
20 | * |
||
21 | * @param string $path |
||
22 | * @param bool $recursive |
||
23 | * |
||
24 | * @return array |
||
25 | */ |
||
26 | public function getMigrationFiles($paths = [], $recursive = true) |
||
36 | |||
37 | /** |
||
38 | * Get all subdirectories located in an array of folders |
||
39 | * |
||
40 | * @param array $folders |
||
41 | * |
||
42 | * @return array |
||
43 | */ |
||
44 | public function getRecursiveFolders($folders) |
||
68 | |||
69 | /** |
||
70 | * Add date folders to migrations path. |
||
71 | * |
||
72 | * @param string $file |
||
73 | * |
||
74 | * @return string |
||
75 | */ |
||
76 | public function getDateFolderStructure($file) |
||
82 | } |
||
83 |
This check marks private properties in classes that are never used. Those properties can be removed.