| Conditions | 2 |
| Paths | 2 |
| Total Lines | 16 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 53 | public function handle() |
||
| 54 | { |
||
| 55 | $userLogin = $this->argument('login'); |
||
| 56 | $userPassword = $this->argument('password'); |
||
| 57 | |||
| 58 | try { |
||
| 59 | $user = User::where(['login' => $userLogin])->firstOrFail(); |
||
| 60 | } catch (ModelNotFoundException $e) { |
||
| 61 | $this->error("User not found"); |
||
| 62 | return 1; |
||
| 63 | } |
||
| 64 | |||
| 65 | $user->password = $userPassword; |
||
| 66 | $user->save(); |
||
| 67 | |||
| 68 | $this->info("Password changed"); |
||
| 69 | } |
||
| 71 |
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