Total Complexity | 4 |
Total Lines | 50 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
16 | class Collection extends ExtendCustomerCollection |
||
17 | { |
||
18 | /** |
||
19 | * @inheritDoc |
||
20 | */ |
||
21 | protected function _initSelect() |
||
22 | { |
||
23 | parent::_initSelect(); |
||
24 | |||
25 | $this->getSelect()->joinLeft( |
||
26 | ['ac_contact' => $this->_resource->getTableName(SchemaInterface::CONTACT_TABLE)], |
||
27 | 'ac_contact.email = e.email', |
||
28 | ['ac_contact.activecampaign_id'] |
||
29 | ); |
||
30 | |||
31 | $this->getSelect()->joinLeft( |
||
32 | ['ac_customer' => $this->_resource->getTableName(SchemaInterface::CUSTOMER_TABLE)], |
||
33 | 'ac_customer.magento_customer_id = e.entity_id', |
||
34 | ['ac_customer.activecampaign_id'] |
||
35 | ); |
||
36 | |||
37 | return $this; |
||
38 | } |
||
39 | |||
40 | /** |
||
41 | * @param string $email |
||
42 | * @return Collection |
||
43 | */ |
||
44 | public function addEmailFilter(string $email): self |
||
45 | { |
||
46 | $this->getSelect()->where('e.email = ?', $email); |
||
47 | return $this; |
||
48 | } |
||
49 | |||
50 | /** |
||
51 | * @return Collection |
||
52 | */ |
||
53 | public function addContactOmittedFilter(): self |
||
54 | { |
||
55 | $this->getSelect()->where('ac_contact.activecampaign_id IS NULL'); |
||
56 | return $this; |
||
57 | } |
||
58 | |||
59 | /** |
||
60 | * @return Collection |
||
61 | */ |
||
62 | public function addCustomerOmittedFilter(): self |
||
66 | } |
||
67 | } |
||
68 | |||
69 |
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