| Total Complexity | 4 |
| Total Lines | 25 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 8 | class PostPriority extends Component |
||
| 9 | { |
||
| 10 | public $post; |
||
| 11 | |||
| 12 | public $priority; |
||
| 13 | |||
| 14 | protected $listeners = ['priority_changed' => 'priorityChanged']; |
||
| 15 | |||
| 16 | public function mount($post) |
||
| 20 | } |
||
| 21 | |||
| 22 | public function priorityChanged(Post $post) |
||
| 23 | { |
||
| 24 | $post->update([ |
||
| 25 | 'priority' => $this->priority ?? 1 |
||
| 26 | ]); |
||
| 27 | $this->post = $post; |
||
| 28 | } |
||
| 29 | |||
| 30 | public function render() |
||
| 33 | } |
||
| 34 | } |
||
| 35 |
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