Conditions | 3 |
Paths | 3 |
Total Lines | 10 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
1 | <?php |
||
36 | public function fire() |
||
37 | { |
||
38 | if (parent::fire() !== false) { |
||
39 | if ($this->option('migration')) { |
||
40 | $table = Str::plural(Str::snake(class_basename($this->argument('name')))); |
||
|
|||
41 | |||
42 | $this->call('make:rethink-migration', ['name' => "create_{$table}_table", '--create' => $table]); |
||
43 | } |
||
44 | } |
||
45 | } |
||
46 | |||
81 |
This check looks at variables that are passed out again to other methods.
If the outgoing method call has stricter type requirements than the method itself, an issue is raised.
An additional type check may prevent trouble.