| Conditions | 1 |
| Paths | 1 |
| Total Lines | 20 |
| Code Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 41 | public function handle() |
||
| 42 | { |
||
| 43 | $username = $this->ask(trans('uccello::command.user.username')); |
||
| 44 | $firstName = $this->ask(trans('uccello::command.user.first_name')); |
||
| 45 | $lastName = $this->ask(trans('uccello::command.user.last_name')); |
||
| 46 | $email = $this->ask(trans('uccello::command.user.email')); |
||
| 47 | $password = $this->secret(trans('uccello::command.user.password')); |
||
| 48 | $isAdmin = $this->ask(trans('uccello::command.user.is_admin'), true); |
||
| 49 | |||
| 50 | User::create([ |
||
| 51 | 'username' => $username, |
||
| 52 | 'first_name' => $firstName, |
||
| 53 | 'last_name' => $lastName, |
||
| 54 | 'email' => $email, |
||
| 55 | 'password' => Hash::make($password), |
||
| 56 | 'is_admin' => $isAdmin, |
||
| 57 | 'domain_id' => Domain::first()->id |
||
| 58 | ]); |
||
| 59 | |||
| 60 | $this->info(trans('uccello::command.user.user_created')); |
||
| 61 | } |
||
| 62 | } |
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