Total Complexity | 3 |
Total Lines | 38 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | trait ModelEvents |
||
12 | { |
||
13 | /** |
||
14 | * @var string Tracking Event to fire |
||
15 | */ |
||
16 | protected $trackingEvent = TrackActivityEvent::class; |
||
17 | |||
18 | /** |
||
19 | * @var AbstractModel|Model |
||
20 | */ |
||
21 | private $trackingEventModel; |
||
22 | |||
23 | /** |
||
24 | * Fire the trackingEvent |
||
25 | * |
||
26 | * @return void |
||
27 | */ |
||
28 | protected function fireEvent() |
||
31 | } |
||
32 | |||
33 | /** |
||
34 | * Retrieve the Model to be used in the fireEvent() method |
||
35 | * |
||
36 | * - optionally set a the $trackingEventModel property |
||
37 | * - useful for using a different model in the trackingEvent than the resolved/saved model |
||
38 | * |
||
39 | * @param Model|null $model |
||
40 | * @return AbstractModel|Model |
||
41 | */ |
||
42 | protected function trackingEventModel(Model $model = null): Model |
||
51 |
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