| Conditions | 2 |
| Paths | 2 |
| Total Lines | 16 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 38 | public function run() |
||
| 39 | { |
||
| 40 | if (!$this->migrator->repositoryExists()) { |
||
| 41 | $this->output->error('No migration table found.'); |
||
|
|
|||
| 42 | |||
| 43 | return 1; |
||
| 44 | } |
||
| 45 | |||
| 46 | $path = $this->args->getOpt('path', $this->migrationsPath); |
||
| 47 | $this->migrator->rollback($path, [ |
||
| 48 | 'pretend' => $this->args->getOpt('pretend', null), |
||
| 49 | 'step' => $this->args->getOpt('step', null), |
||
| 50 | ]); |
||
| 51 | |||
| 52 | return 0; |
||
| 53 | } |
||
| 54 | |||
| 66 |
Methods can only be called on objects. This check looks for methods being called on variables that have been inferred to never be objects.