| Total Complexity | 4 |
| Total Lines | 21 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | class ReorderChildrenCategory extends Component |
||
| 9 | { |
||
| 10 | public $category_id; |
||
| 11 | |||
| 12 | public function mount($category_id) |
||
| 15 | } |
||
| 16 | |||
| 17 | public function childPositionReorder($lists) |
||
| 18 | { |
||
| 19 | foreach ($lists as $list) { |
||
| 20 | Category::find($list['value'])->update(['position' => $list['order']]); |
||
| 21 | } |
||
| 22 | $this->emit('reorderingComplete'); |
||
| 23 | } |
||
| 24 | |||
| 25 | public function render() |
||
| 29 | } |
||
| 30 | } |
||
| 31 |
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