| Conditions | 3 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 26 | public function submit() |
||
| 27 | { |
||
| 28 | $category = Category::create([ |
||
| 29 | 'code' => rand(100000, 999999), |
||
| 30 | 'model' => $this->model, |
||
| 31 | 'name' => $this->name, |
||
| 32 | 'category_id' => $this->categoryid ? ($this->categoryid != '' ? $this->categoryid : null) : null, |
||
| 33 | 'slug' => SlugService::createSlug(Category::class, 'slug', $this->name), |
||
| 34 | ]); |
||
| 35 | |||
| 36 | $this->category_id = $category->id; |
||
| 37 | |||
| 38 | $this->emit('quick_category_created'); |
||
| 39 | } |
||
| 46 |
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