Conditions | 3 |
Paths | 3 |
Total Lines | 15 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
22 | public function post($params) |
||
23 | { |
||
24 | $model = new Login; |
||
25 | |||
26 | if ($model->load(['Login' => Yii::$app->request->post()])) { |
||
27 | $token = $model->authenticate(); |
||
28 | |||
29 | if ($token === false) { |
||
30 | throw new UnauthorizedHttpException('The credentials you provided are not valid', $model->exitStatus); |
||
31 | } else { |
||
32 | return $token->getAuthResponse(); |
||
33 | } |
||
34 | } |
||
35 | |||
36 | return false; |
||
37 | } |
||
78 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths