GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — master ( 81648c...b3bc9a )
by Andreas
03:22
created

Model/ResourceModel/Magento/CustomerCollection.php (1 issue)

Severity
1
<?php
2
declare(strict_types=1);
3
/**
4
 */
5
6
namespace CommerceLeague\ActiveCampaign\Model\ResourceModel\Magento;
7
8
use CommerceLeague\ActiveCampaign\Setup\SchemaInterface;
9
use Magento\Customer\Model\ResourceModel\Customer\Collection as ExtendCustomerCollection;
10
11
/**
12
 * Class CustomerCollection
13
 * @codeCoverageIgnore
14
 */
15
class CustomerCollection extends ExtendCustomerCollection
16
{
17
    /**
18
     * @inheritDoc
19
     */
20
    protected function _initSelect()
21
    {
22
        parent::_initSelect();
23
24
        $this->getSelect()->joinLeft(
25
            ['ac_contact' => $this->_resource->getTableName(SchemaInterface::CONTACT_TABLE)],
0 ignored issues
show
The call to Magento\Framework\DB\Select::joinLeft() has too many arguments starting with array('ac_contact' => $t...erface::CONTACT_TABLE)). ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

25
        $this->getSelect()->/** @scrutinizer ignore-call */ joinLeft(

This check compares calls to functions or methods with their respective definitions. If the call has more arguments than are defined, it raises an issue.

If a function is defined several times with a different number of parameters, the check may pick up the wrong definition and report false positives. One codebase where this has been known to happen is Wordpress. Please note the @ignore annotation hint above.

Loading history...
26
            'ac_contact.email = e.email',
27
            ['ac_contact.activecampaign_id']
28
        );
29
30
        $this->getSelect()->joinLeft(
31
            ['ac_customer' => $this->_resource->getTableName(SchemaInterface::CUSTOMER_TABLE)],
32
            'ac_customer.magento_customer_id = e.entity_id',
33
            ['ac_customer.activecampaign_id']
34
        );
35
36
        return $this;
37
    }
38
39
    /**
40
     * @param string $email
41
     * @return CustomerCollection
42
     */
43
    public function addEmailFilter(string $email): self
44
    {
45
        $this->getSelect()->where('e.email = ?', $email);
46
        return $this;
47
    }
48
49
    /**
50
     * @return CustomerCollection
51
     */
52
    public function addContactOmittedFilter(): self
53
    {
54
        $this->getSelect()->where('ac_contact.activecampaign_id IS NULL');
55
        return $this;
56
    }
57
58
    /**
59
     * @return CustomerCollection
60
     */
61
    public function addCustomerOmittedFilter(): self
62
    {
63
        $this->getSelect()->where('ac_customer.activecampaign_id IS NULL');
64
        return $this;
65
    }
66
}
67