@@ 120-122 (lines=3) @@ | ||
117 | $class = Str::firstIn($fullName, '-'); |
|
118 | ||
119 | // check if class is instance of migration interface |
|
120 | if (!class_exists($class) || !is_a($class, 'Ffcms\Core\Migrations\MigrationInterface', true)) { |
|
121 | return false; |
|
122 | } |
|
123 | ||
124 | // implement migration |
|
125 | $init = new $class($fullName, $this->connection); |
|
@@ 160-162 (lines=3) @@ | ||
157 | $class = Str::firstIn($fullName, '-'); |
|
158 | ||
159 | // check if class is instance of migration interface |
|
160 | if (!class_exists($class) || !is_a($class, 'Ffcms\Core\Migrations\MigrationInterface', true)) { |
|
161 | return false; |
|
162 | } |
|
163 | ||
164 | // init migration and execute down method |
|
165 | $init = new $class($fullName, $this->connection); |