| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | public function run() |
||
| 18 | { |
||
| 19 | if (! config('adminetic.migrate_with_dummy', false)) { |
||
| 20 | $admin = User::create([ |
||
| 21 | 'name' => 'Admin User', |
||
| 22 | 'email' => '[email protected]', |
||
| 23 | 'password' => Hash::make('admin123'), |
||
| 24 | ]); |
||
| 25 | |||
| 26 | $role = Role::where('name', 'admin')->first(); |
||
| 27 | |||
| 28 | $admin->roles()->attach($role); |
||
| 29 | $admin->profile()->create(); |
||
| 30 | } |
||
| 33 |
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