Total Complexity | 4 |
Total Lines | 49 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
23 | class FluentExtension extends DataExtension |
||
24 | { |
||
25 | /** |
||
26 | * @var array |
||
27 | */ |
||
28 | private static $db = [ |
||
29 | 'TopPageLocale' => 'Varchar', |
||
30 | ]; |
||
31 | |||
32 | /* |
||
33 | * @inheritdoc |
||
34 | */ |
||
35 | protected function assignTopPage(Page $page): void |
||
40 | } |
||
41 | |||
42 | /* |
||
43 | * @inheritdoc |
||
44 | */ |
||
45 | protected function clearTopPage(): void |
||
46 | { |
||
47 | parent::clearTopPage(); |
||
48 | |||
49 | $this->owner->TopPageLocale = null; |
||
50 | } |
||
51 | |||
52 | /* |
||
53 | * @inheritdoc |
||
54 | */ |
||
55 | protected function assignFixedTopPage(): void |
||
56 | { |
||
57 | parent::assignFixedTopPage(); |
||
58 | |||
59 | $this->owner->TopPageLocale = FluentState::singleton()->getLocale(); |
||
60 | } |
||
61 | |||
62 | /* |
||
63 | * @inheritdoc |
||
64 | */ |
||
65 | protected function saveChanges(array $extraData = []): void |
||
72 | } |
||
73 | } |
||
74 |
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