| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | function initialize_task_permissions() { |
||
| 8 | Permission::firstOrCreate(['name' => 'list-tasks']); |
||
| 9 | Permission::firstOrCreate(['name' => 'show-tasks']); |
||
| 10 | Permission::firstOrCreate(['name' => 'store-tasks']); |
||
| 11 | Permission::firstOrCreate(['name' => 'update-tasks']); |
||
| 12 | Permission::firstOrCreate(['name' => 'destroy-tasks']); |
||
| 13 | |||
| 14 | $role = Role::firstOrCreate(['name' => 'task-manager']); |
||
| 15 | |||
| 16 | $role->givePermissionTo('list-tasks'); |
||
| 17 | $role->givePermissionTo('show-tasks'); |
||
| 18 | $role->givePermissionTo('store-tasks'); |
||
| 19 | $role->givePermissionTo('update-tasks'); |
||
| 20 | $role->givePermissionTo('destroy-tasks'); |
||
| 21 | } |
||
| 38 | } |
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