Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 9 |
Lines | 13 |
Ratio | 100 % |
Tests | 10 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
82 | 3 | View Code Duplication | public function actionRestore() |
83 | { |
||
84 | 3 | $this->stdout('Dumping '); |
|
85 | 3 | $this->stdout($this->getDbComponent(), Console::BOLD); |
|
86 | 3 | $this->stdout(' from '); |
|
87 | 3 | $this->stdout($this->getDumpFile(), Console::BOLD); |
|
88 | 3 | $this->stdout('... '); |
|
89 | |||
90 | 3 | $this->module->restore($this->file, $this->db); |
|
91 | |||
92 | 3 | $this->stdout('done', Console::BOLD); |
|
93 | 3 | $this->stdout("\n"); |
|
94 | 3 | } |
|
95 | } |
||
96 |
This check looks for the generic type
array
as a return type and suggests a more specific type. This type is inferred from the actual code.