Total Complexity | 3 |
Total Lines | 28 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
9 | class UserPreferences extends Component |
||
10 | { |
||
11 | public $user; |
||
12 | |||
13 | public $preference; |
||
14 | |||
15 | public $enabled; |
||
16 | |||
17 | protected $listeners = ['preference_changed' => 'preferenceChanged']; |
||
18 | |||
19 | public function mount(User $user, Preference $preference) |
||
20 | { |
||
21 | $this->user = $user; |
||
22 | $this->preference = $preference; |
||
23 | $this->enabled = $preference->pivot->enabled; |
||
24 | } |
||
25 | |||
26 | public function preferenceChanged(User $user, Preference $preference) |
||
32 | } |
||
33 | |||
34 | public function render() |
||
37 | } |
||
38 | } |
||
39 |
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