| Total Complexity | 2 |
| Total Lines | 19 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 8 | class PostStatus extends Component |
||
| 9 | { |
||
| 10 | public $post; |
||
| 11 | |||
| 12 | protected $listeners = ['status_changed' => 'statusChanged']; |
||
| 13 | |||
| 14 | |||
| 15 | public function statusChanged($status, Post $post) |
||
| 16 | { |
||
| 17 | $post->update([ |
||
| 18 | 'status' => $status |
||
| 19 | ]); |
||
| 20 | |||
| 21 | $this->post = $post; |
||
| 22 | } |
||
| 23 | |||
| 24 | public function render() |
||
| 27 | } |
||
| 28 | } |
||
| 29 |
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