Conditions | 2 |
Paths | 2 |
Total Lines | 14 |
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 | $pretend = $this->args->getOpt('pretend', false); |
||
48 | $this->migrator->reset([$path], $pretend); |
||
49 | |||
50 | return 0; |
||
51 | } |
||
52 | |||
64 |
Methods can only be called on objects. This check looks for methods being called on variables that have been inferred to never be objects.