Total Complexity | 9 |
Total Lines | 57 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
11 | trait ContractTrait |
||
12 | { |
||
13 | use EmbeddableTrait; |
||
14 | 14 | ||
15 | public function behaviors() |
||
16 | 14 | { |
|
17 | 14 | return array_merge(parent::behaviors(), [ |
|
18 | 14 | $this->getSlugBehaviorId() => ['class' => Slug::class] |
|
19 | 14 | + $this->slugBehaviorConfig(), |
|
20 | 14 | $this->getCuriesBehaviorId() => ['class' => Curies::class] |
|
21 | + $this->curiesBehaviorConfig(), |
||
22 | ]); |
||
23 | } |
||
24 | |||
25 | public function checkAccess( |
||
26 | 14 | array $params = [], |
|
27 | ?Action $action = null |
||
28 | 14 | ): void { |
|
29 | $this->getSlugBehavior()->checkAccess($params, $action); |
||
30 | } |
||
31 | 14 | ||
32 | abstract protected function slugBehaviorConfig(): array; |
||
33 | 14 | ||
34 | protected function curiesBehaviorConfig(): array |
||
35 | { |
||
36 | 14 | return []; |
|
37 | } |
||
38 | 14 | ||
39 | protected function getSlugBehaviorId(): string |
||
40 | { |
||
41 | 12 | return 'slug'; |
|
42 | } |
||
43 | 12 | ||
44 | protected function getCuriesBehaviorId(): string |
||
45 | { |
||
46 | 9 | return 'curies'; |
|
47 | } |
||
48 | 9 | ||
49 | public function getSlugBehavior(): Slug |
||
52 | } |
||
53 | 12 | ||
54 | public function getCuriesBehavior(): Curies |
||
55 | { |
||
56 | 9 | return $this->getBehavior($this->getCuriesBehaviorId()); |
|
57 | } |
||
58 | 9 | ||
59 | 9 | public function getSelfLink(): string |
|
62 | } |
||
63 | |||
64 | public function getLinks() |
||
68 | } |
||
69 | } |
||
70 |
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