Conditions | 3 |
Paths | 3 |
Total Lines | 17 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
21 | public function post($params) |
||
22 | { |
||
23 | $model = new ChangeEmail; |
||
24 | |||
25 | if ($model->load(['ChangeEmail' => Yii::$app->request->post()])) { |
||
26 | $model->setUser(Yii::$app->user->identityClass::findOne([ |
||
27 | 'id' => Yii::$app->user->id |
||
28 | ])); |
||
29 | |||
30 | if ($model->change()) { |
||
31 | return true; |
||
32 | } |
||
33 | |||
34 | throw new HttpException(400, \json_encode($model->getErrors())); |
||
35 | } |
||
36 | |||
37 | return false; |
||
38 | } |
||
40 |
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