Conditions | 2 |
Paths | 2 |
Total Lines | 14 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 0 |
1 | <?php |
||
30 | public function fire() |
||
31 | { |
||
32 | $module = Str::studly($this->argument('module')); |
||
|
|||
33 | |||
34 | if (!$this->laravel['modules']->has($module)) { |
||
35 | $this->error("Module [{$module}] does not exists."); |
||
36 | |||
37 | return; |
||
38 | } |
||
39 | |||
40 | $this->laravel['modules']->setUsed($module); |
||
41 | |||
42 | $this->info("Module [{$module}] used successfully."); |
||
43 | } |
||
44 | |||
57 |
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.