1 | <?php namespace Codengine\CustomMigrations; |
||
9 | class Migrator extends \Illuminate\Database\Migrations\Migrator { |
||
10 | /** |
||
11 | * @var string |
||
12 | */ |
||
13 | protected $migrationType = 'default'; |
||
14 | |||
15 | /** |
||
16 | * Sets the migration type filter |
||
17 | * |
||
18 | * @param string $type |
||
19 | */ |
||
20 | public function setMigrationType($type) |
||
24 | |||
25 | /** |
||
26 | * Returns the migration type filter |
||
27 | * |
||
28 | * @return string |
||
29 | */ |
||
30 | public function getMigrationType() |
||
34 | |||
35 | /** |
||
36 | * Resolves the migration and filters those that don't match the migration type |
||
37 | * |
||
38 | * @param string $migration |
||
39 | * @return bool Returns TRUE on a match, else FALSE |
||
40 | */ |
||
41 | protected function filterMigrations($migration) |
||
56 | |||
57 | /** |
||
58 | * Gets a filtered list of migrations and runs them |
||
59 | * |
||
60 | * @param array $migrations |
||
61 | * @param bool $pretend |
||
|
|||
62 | */ |
||
63 | public function runMigrationList($migrations, array $options=[]) |
||
69 | } |
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
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.