Conditions | 2 |
Paths | 3 |
Total Lines | 9 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
19 | public function actionUpdate() |
||
20 | { |
||
21 | try { |
||
22 | Yii::$app->ip2location->update(); |
||
|
|||
23 | $this->stdout('Database was updated successfully.', Console::FG_GREEN); |
||
24 | return ExitCode::OK; |
||
25 | } catch (\Exception $exception) { |
||
26 | $this->stderr($exception->getMessage(), Console::FG_RED); |
||
27 | return ExitCode::UNSPECIFIED_ERROR; |
||
28 | } |
||
31 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.