YetiForceCompany/YetiForceCRM

View on GitHub
tests/App/EmailParser.php

Summary

Maintainability
A
0 mins
Test Coverage
A
100%

Avoid using static access to class '\App\EmailParser' in method 'testInstancesCreation'.
Open

        self::$parserCleanModule = \App\EmailParser::getInstance('Leads');
Severity: Minor
Found in tests/App/EmailParser.php by phpmd

StaticAccess

Since: 1.4.0

Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

Example

class Foo
{
    public function bar()
    {
        Bar::baz();
    }
}

Source https://phpmd.org/rules/cleancode.html#staticaccess

Avoid using static access to class '\App\EmailParser' in method 'testInstancesCreation'.
Open

        $this->assertInstanceOf('\App\EmailParser', \App\EmailParser::getInstanceById(\Tests\Base\C_RecordActions::createLeadRecord()->getId(), 'Leads'), 'Expected instance from lead id and module string of \App\TextParser');
Severity: Minor
Found in tests/App/EmailParser.php by phpmd

StaticAccess

Since: 1.4.0

Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

Example

class Foo
{
    public function bar()
    {
        Bar::baz();
    }
}

Source https://phpmd.org/rules/cleancode.html#staticaccess

Avoid using static access to class '\App\EmailParser' in method 'testInstancesCreation'.
Open

        self::$parserRecord = \App\EmailParser::getInstanceByModel(\Tests\Base\C_RecordActions::createLeadRecord());
Severity: Minor
Found in tests/App/EmailParser.php by phpmd

StaticAccess

Since: 1.4.0

Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

Example

class Foo
{
    public function bar()
    {
        Bar::baz();
    }
}

Source https://phpmd.org/rules/cleancode.html#staticaccess

Avoid using static access to class '\Tests\Base\C_RecordActions' in method 'testInstancesCreation'.
Open

        self::$parserRecord = \App\EmailParser::getInstanceByModel(\Tests\Base\C_RecordActions::createLeadRecord());
Severity: Minor
Found in tests/App/EmailParser.php by phpmd

StaticAccess

Since: 1.4.0

Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

Example

class Foo
{
    public function bar()
    {
        Bar::baz();
    }
}

Source https://phpmd.org/rules/cleancode.html#staticaccess

Avoid using static access to class '\Tests\Base\C_RecordActions' in method 'testUseValue'.
Open

        $this->assertSame(['test0@yetiforce.com', 'test1@yetiforce.com' => 'Test One ', 'test2@yetiforce.com'], \App\EmailParser::getInstanceByModel(\Tests\Base\C_RecordActions::createLeadRecord())
Severity: Minor
Found in tests/App/EmailParser.php by phpmd

StaticAccess

Since: 1.4.0

Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

Example

class Foo
{
    public function bar()
    {
        Bar::baz();
    }
}

Source https://phpmd.org/rules/cleancode.html#staticaccess

Avoid using static access to class '\App\EmailParser' in method 'testInstancesCreation'.
Open

        self::$parserClean = \App\EmailParser::getInstance();
Severity: Minor
Found in tests/App/EmailParser.php by phpmd

StaticAccess

Since: 1.4.0

Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

Example

class Foo
{
    public function bar()
    {
        Bar::baz();
    }
}

Source https://phpmd.org/rules/cleancode.html#staticaccess

Avoid using static access to class '\Tests\Base\C_RecordActions' in method 'testUseValue'.
Open

        $tmpInstance = \App\EmailParser::getInstanceByModel(\Tests\Base\C_RecordActions::createLeadRecord());
Severity: Minor
Found in tests/App/EmailParser.php by phpmd

StaticAccess

Since: 1.4.0

Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

Example

class Foo
{
    public function bar()
    {
        Bar::baz();
    }
}

Source https://phpmd.org/rules/cleancode.html#staticaccess

Avoid using static access to class '\Tests\Base\C_RecordActions' in method 'testUseValue'.
Open

        $this->assertSame(['test0@yetiforce.com', 'test1@yetiforce.com' => 'Test One ', 'test2@yetiforce.com', 'test3@yetiforce.com'], \App\EmailParser::getInstanceByModel(\Tests\Base\C_RecordActions::createLeadRecord())
Severity: Minor
Found in tests/App/EmailParser.php by phpmd

StaticAccess

Since: 1.4.0

Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

Example

class Foo
{
    public function bar()
    {
        Bar::baz();
    }
}

Source https://phpmd.org/rules/cleancode.html#staticaccess

Avoid using static access to class '\App\EmailParser' in method 'testUseValue'.
Open

        $tmpInstance = \App\EmailParser::getInstanceByModel(\Tests\Base\C_RecordActions::createLeadRecord());
Severity: Minor
Found in tests/App/EmailParser.php by phpmd

StaticAccess

Since: 1.4.0

Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

Example

class Foo
{
    public function bar()
    {
        Bar::baz();
    }
}

Source https://phpmd.org/rules/cleancode.html#staticaccess

Avoid using static access to class '\Tests\Base\C_RecordActions' in method 'testUseValue'.
Open

        $this->assertSame(['test0@yetiforce.com', 'test1@yetiforce.com' => 'Test One ', 'test2@yetiforce.com'], \App\EmailParser::getInstanceByModel(\Tests\Base\C_RecordActions::createLeadRecord())
Severity: Minor
Found in tests/App/EmailParser.php by phpmd

StaticAccess

Since: 1.4.0

Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

Example

class Foo
{
    public function bar()
    {
        Bar::baz();
    }
}

Source https://phpmd.org/rules/cleancode.html#staticaccess

Avoid using static access to class '\Tests\Base\C_RecordActions' in method 'testUseValue'.
Open

        \Tests\Base\C_RecordActions::createLeadRecord(false);
Severity: Minor
Found in tests/App/EmailParser.php by phpmd

StaticAccess

Since: 1.4.0

Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

Example

class Foo
{
    public function bar()
    {
        Bar::baz();
    }
}

Source https://phpmd.org/rules/cleancode.html#staticaccess

Define a constant instead of duplicating this literal "test0@yetiforce.com,Test One <test1@yetiforce.com>,test2@yetiforce.com,-,,$(record : email)$" 4 times.
Open

            ->setContent('test0@yetiforce.com,Test One &lt;test1@yetiforce.com&gt;,test2@yetiforce.com,-,,$(record : email)$')
Severity: Critical
Found in tests/App/EmailParser.php by sonar-php

Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.

On the other hand, constants can be referenced from many places, but only need to be updated in a single place.

Noncompliant Code Example

With the default threshold of 3:

function run() {
  prepare('action1');                              // Non-Compliant - 'action1' is duplicated 3 times
  execute('action1');
  release('action1');
}

Compliant Solution

ACTION_1 = 'action1';

function run() {
  prepare(ACTION_1);
  execute(ACTION_1);
  release(ACTION_1);
}

Exceptions

To prevent generating some false-positives, literals having less than 5 characters are excluded.

Define a constant instead of duplicating this literal "test1@yetiforce.com" 5 times.
Open

        $this->assertSame(['test0@yetiforce.com', 'test1@yetiforce.com' => 'Test One ', 'test2@yetiforce.com'], self::$parserClean
Severity: Critical
Found in tests/App/EmailParser.php by sonar-php

Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.

On the other hand, constants can be referenced from many places, but only need to be updated in a single place.

Noncompliant Code Example

With the default threshold of 3:

function run() {
  prepare('action1');                              // Non-Compliant - 'action1' is duplicated 3 times
  execute('action1');
  release('action1');
}

Compliant Solution

ACTION_1 = 'action1';

function run() {
  prepare(ACTION_1);
  execute(ACTION_1);
  release(ACTION_1);
}

Exceptions

To prevent generating some false-positives, literals having less than 5 characters are excluded.

Define a constant instead of duplicating this literal "test3@yetiforce.com" 3 times.
Open

        \Tests\Base\C_RecordActions::createLeadRecord()->set('email', 'test3@yetiforce.com');
Severity: Critical
Found in tests/App/EmailParser.php by sonar-php

Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.

On the other hand, constants can be referenced from many places, but only need to be updated in a single place.

Noncompliant Code Example

With the default threshold of 3:

function run() {
  prepare('action1');                              // Non-Compliant - 'action1' is duplicated 3 times
  execute('action1');
  release('action1');
}

Compliant Solution

ACTION_1 = 'action1';

function run() {
  prepare(ACTION_1);
  execute(ACTION_1);
  release(ACTION_1);
}

Exceptions

To prevent generating some false-positives, literals having less than 5 characters are excluded.

Define a constant instead of duplicating this literal "content should be equal" 4 times.
Open

            ->getContent(true), 'content should be equal');
Severity: Critical
Found in tests/App/EmailParser.php by sonar-php

Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.

On the other hand, constants can be referenced from many places, but only need to be updated in a single place.

Noncompliant Code Example

With the default threshold of 3:

function run() {
  prepare('action1');                              // Non-Compliant - 'action1' is duplicated 3 times
  execute('action1');
  release('action1');
}

Compliant Solution

ACTION_1 = 'action1';

function run() {
  prepare(ACTION_1);
  execute(ACTION_1);
  release(ACTION_1);
}

Exceptions

To prevent generating some false-positives, literals having less than 5 characters are excluded.

Define a constant instead of duplicating this literal "test0@yetiforce.com" 5 times.
Open

        $this->assertSame(['test0@yetiforce.com', 'test1@yetiforce.com' => 'Test One ', 'test2@yetiforce.com'], self::$parserClean
Severity: Critical
Found in tests/App/EmailParser.php by sonar-php

Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.

On the other hand, constants can be referenced from many places, but only need to be updated in a single place.

Noncompliant Code Example

With the default threshold of 3:

function run() {
  prepare('action1');                              // Non-Compliant - 'action1' is duplicated 3 times
  execute('action1');
  release('action1');
}

Compliant Solution

ACTION_1 = 'action1';

function run() {
  prepare(ACTION_1);
  execute(ACTION_1);
  release(ACTION_1);
}

Exceptions

To prevent generating some false-positives, literals having less than 5 characters are excluded.

Define a constant instead of duplicating this literal "\App\EmailParser" 4 times.
Open

        $this->assertInstanceOf('\App\EmailParser', self::$parserClean, 'Expected clean instance without module of \App\EmailParser');
Severity: Critical
Found in tests/App/EmailParser.php by sonar-php

Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.

On the other hand, constants can be referenced from many places, but only need to be updated in a single place.

Noncompliant Code Example

With the default threshold of 3:

function run() {
  prepare('action1');                              // Non-Compliant - 'action1' is duplicated 3 times
  execute('action1');
  release('action1');
}

Compliant Solution

ACTION_1 = 'action1';

function run() {
  prepare(ACTION_1);
  execute(ACTION_1);
  release(ACTION_1);
}

Exceptions

To prevent generating some false-positives, literals having less than 5 characters are excluded.

Define a constant instead of duplicating this literal "test2@yetiforce.com" 5 times.
Open

        $this->assertSame(['test0@yetiforce.com', 'test1@yetiforce.com' => 'Test One ', 'test2@yetiforce.com'], self::$parserClean
Severity: Critical
Found in tests/App/EmailParser.php by sonar-php

Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.

On the other hand, constants can be referenced from many places, but only need to be updated in a single place.

Noncompliant Code Example

With the default threshold of 3:

function run() {
  prepare('action1');                              // Non-Compliant - 'action1' is duplicated 3 times
  execute('action1');
  release('action1');
}

Compliant Solution

ACTION_1 = 'action1';

function run() {
  prepare(ACTION_1);
  execute(ACTION_1);
  release(ACTION_1);
}

Exceptions

To prevent generating some false-positives, literals having less than 5 characters are excluded.

Define a constant instead of duplicating this literal "Test One " 5 times.
Open

        $this->assertSame(['test0@yetiforce.com', 'test1@yetiforce.com' => 'Test One ', 'test2@yetiforce.com'], self::$parserClean
Severity: Critical
Found in tests/App/EmailParser.php by sonar-php

Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.

On the other hand, constants can be referenced from many places, but only need to be updated in a single place.

Noncompliant Code Example

With the default threshold of 3:

function run() {
  prepare('action1');                              // Non-Compliant - 'action1' is duplicated 3 times
  execute('action1');
  release('action1');
}

Compliant Solution

ACTION_1 = 'action1';

function run() {
  prepare(ACTION_1);
  execute(ACTION_1);
  release(ACTION_1);
}

Exceptions

To prevent generating some false-positives, literals having less than 5 characters are excluded.

Call to undeclared method \Tests\App\EmailParser::assertInstanceOf
Open

        $this->assertInstanceOf('\App\EmailParser', \App\EmailParser::getInstanceById(\Tests\Base\C_RecordActions::createLeadRecord()->getId(), 'Leads'), 'Expected instance from lead id and module string of \App\TextParser');
Severity: Critical
Found in tests/App/EmailParser.php by phan

Call to undeclared method \Tests\App\EmailParser::assertInstanceOf
Open

        $this->assertInstanceOf('\App\EmailParser', self::$parserClean, 'Expected clean instance without module of \App\EmailParser');
Severity: Critical
Found in tests/App/EmailParser.php by phan

Call to undeclared method \App\EmailParser::setContent (Did you mean expr->getContent())
Open

        $this->assertSame('', self::$parserClean
Severity: Critical
Found in tests/App/EmailParser.php by phan

Static call to undeclared method \App\EmailParser::getInstanceById
Open

        $this->assertInstanceOf('\App\EmailParser', \App\EmailParser::getInstanceById(\Tests\Base\C_RecordActions::createLeadRecord()->getId(), 'Leads'), 'Expected instance from lead id and module string of \App\TextParser');
Severity: Critical
Found in tests/App/EmailParser.php by phan

Static call to undeclared method \App\EmailParser::getInstanceByModel
Open

        $tmpInstance = \App\EmailParser::getInstanceByModel(\Tests\Base\C_RecordActions::createLeadRecord());
Severity: Critical
Found in tests/App/EmailParser.php by phan

Call to undeclared method \App\EmailParser::setContent (Did you mean expr->getContent())
Open

        $this->assertSame(['test0@yetiforce.com', 'test1@yetiforce.com' => 'Test One ', 'test2@yetiforce.com'], self::$parserClean
Severity: Critical
Found in tests/App/EmailParser.php by phan

Static call to undeclared method \App\EmailParser::getInstance
Open

        self::$parserCleanModule = \App\EmailParser::getInstance('Leads');
Severity: Critical
Found in tests/App/EmailParser.php by phan

Call to undeclared method \Tests\App\EmailParser::assertInstanceOf
Open

        $this->assertInstanceOf('\App\EmailParser', self::$parserCleanModule, 'Expected clean instance with module Leads of \App\EmailParser');
Severity: Critical
Found in tests/App/EmailParser.php by phan

Call to undeclared method \Tests\App\EmailParser::assertSame
Open

        $this->assertSame(['test0@yetiforce.com', 'test1@yetiforce.com' => 'Test One ', 'test2@yetiforce.com'], self::$parserClean
Severity: Critical
Found in tests/App/EmailParser.php by phan

Call to undeclared method \Tests\App\EmailParser::assertSame
Open

        $this->assertSame(['test0@yetiforce.com', 'test1@yetiforce.com' => 'Test One ', 'test2@yetiforce.com'], \App\EmailParser::getInstanceByModel(\Tests\Base\C_RecordActions::createLeadRecord())
Severity: Critical
Found in tests/App/EmailParser.php by phan

Static call to undeclared method \App\EmailParser::getInstance
Open

        self::$parserClean = \App\EmailParser::getInstance();
Severity: Critical
Found in tests/App/EmailParser.php by phan

Call to undeclared method \Tests\App\EmailParser::assertInstanceOf
Open

        $this->assertInstanceOf('\App\EmailParser', self::$parserRecord, 'Expected instance from record model of \App\EmailParser');
Severity: Critical
Found in tests/App/EmailParser.php by phan

Call to undeclared method \Tests\App\EmailParser::assertSame
Open

        $this->assertSame('', self::$parserClean
Severity: Critical
Found in tests/App/EmailParser.php by phan

Call to undeclared method \Tests\App\EmailParser::assertSame
Open

        $this->assertSame(['test0@yetiforce.com', 'test1@yetiforce.com' => 'Test One ', 'test2@yetiforce.com', 'test3@yetiforce.com'], $tmpInstance->setContent('test0@yetiforce.com,Test One &lt;test1@yetiforce.com&gt;,test2@yetiforce.com,-,,$(record : email)$')
Severity: Critical
Found in tests/App/EmailParser.php by phan

Static call to undeclared method \App\EmailParser::getInstanceByModel
Open

        self::$parserRecord = \App\EmailParser::getInstanceByModel(\Tests\Base\C_RecordActions::createLeadRecord());
Severity: Critical
Found in tests/App/EmailParser.php by phan

Static call to undeclared method \App\EmailParser::getInstanceByModel
Open

        $this->assertSame(['test0@yetiforce.com', 'test1@yetiforce.com' => 'Test One ', 'test2@yetiforce.com', 'test3@yetiforce.com'], \App\EmailParser::getInstanceByModel(\Tests\Base\C_RecordActions::createLeadRecord())
Severity: Critical
Found in tests/App/EmailParser.php by phan

Static call to undeclared method \App\EmailParser::getInstanceByModel
Open

        $this->assertSame(['test0@yetiforce.com', 'test1@yetiforce.com' => 'Test One ', 'test2@yetiforce.com'], \App\EmailParser::getInstanceByModel(\Tests\Base\C_RecordActions::createLeadRecord())
Severity: Critical
Found in tests/App/EmailParser.php by phan

Call to undeclared method \Tests\App\EmailParser::assertSame
Open

        $this->assertSame(['test0@yetiforce.com', 'test1@yetiforce.com' => 'Test One ', 'test2@yetiforce.com'], \App\EmailParser::getInstanceByModel(\Tests\Base\C_RecordActions::createLeadRecord())
Severity: Critical
Found in tests/App/EmailParser.php by phan

Static call to undeclared method \App\EmailParser::getInstanceByModel
Open

        $this->assertSame(['test0@yetiforce.com', 'test1@yetiforce.com' => 'Test One ', 'test2@yetiforce.com'], \App\EmailParser::getInstanceByModel(\Tests\Base\C_RecordActions::createLeadRecord())
Severity: Critical
Found in tests/App/EmailParser.php by phan

Call to undeclared method \Tests\App\EmailParser::assertSame
Open

        $this->assertSame(['test0@yetiforce.com', 'test1@yetiforce.com' => 'Test One ', 'test2@yetiforce.com', 'test3@yetiforce.com'], \App\EmailParser::getInstanceByModel(\Tests\Base\C_RecordActions::createLeadRecord())
Severity: Critical
Found in tests/App/EmailParser.php by phan

Spaces must be used to indent lines; tabs are not allowed
Open

     *
Severity: Minor
Found in tests/App/EmailParser.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    private static $parserRecord;
Severity: Minor
Found in tests/App/EmailParser.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

     * @var \App\EmailParser
Severity: Minor
Found in tests/App/EmailParser.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    private static $parserClean;
Severity: Minor
Found in tests/App/EmailParser.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

        self::$parserRecord = \App\EmailParser::getInstanceByModel(\Tests\Base\C_RecordActions::createLeadRecord());
Severity: Minor
Found in tests/App/EmailParser.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

        $this->assertInstanceOf('\App\EmailParser', self::$parserRecord, 'Expected instance from record model of \App\EmailParser');
Severity: Minor
Found in tests/App/EmailParser.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

            ->setContent('')
Severity: Minor
Found in tests/App/EmailParser.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

     * Testing get content function.
Severity: Minor
Found in tests/App/EmailParser.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    {
Severity: Minor
Found in tests/App/EmailParser.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

     * Testing use value function.
Severity: Minor
Found in tests/App/EmailParser.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

     *
Severity: Minor
Found in tests/App/EmailParser.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

        $this->assertInstanceOf('\App\EmailParser', self::$parserCleanModule, 'Expected clean instance with module Leads of \App\EmailParser');
Severity: Minor
Found in tests/App/EmailParser.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    }
Severity: Minor
Found in tests/App/EmailParser.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

     * Tests empty content condition.
Severity: Minor
Found in tests/App/EmailParser.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

     * Test clean instance with module.
Severity: Minor
Found in tests/App/EmailParser.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    public function testInstancesCreation()
Severity: Minor
Found in tests/App/EmailParser.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

        self::$parserClean = \App\EmailParser::getInstance();
Severity: Minor
Found in tests/App/EmailParser.php by phpcodesniffer

Line exceeds 120 characters; contains 225 characters
Open

        $this->assertInstanceOf('\App\EmailParser', \App\EmailParser::getInstanceById(\Tests\Base\C_RecordActions::createLeadRecord()->getId(), 'Leads'), 'Expected instance from lead id and module string of \App\TextParser');
Severity: Minor
Found in tests/App/EmailParser.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

     */
Severity: Minor
Found in tests/App/EmailParser.php by phpcodesniffer

Line exceeds 120 characters; contains 130 characters
Open

        $this->assertSame(['test0@yetiforce.com', 'test1@yetiforce.com' => 'Test One ', 'test2@yetiforce.com'], self::$parserClean
Severity: Minor
Found in tests/App/EmailParser.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

            ->setContent('test0@yetiforce.com,Test One &lt;test1@yetiforce.com&gt;,test2@yetiforce.com,-,')
Severity: Minor
Found in tests/App/EmailParser.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    }
Severity: Minor
Found in tests/App/EmailParser.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

        $this->assertSame(['test0@yetiforce.com', 'test1@yetiforce.com' => 'Test One ', 'test2@yetiforce.com', 'test3@yetiforce.com'], $tmpInstance->setContent('test0@yetiforce.com,Test One &lt;test1@yetiforce.com&gt;,test2@yetiforce.com,-,,$(record : email)$')
Severity: Minor
Found in tests/App/EmailParser.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

            ->parse()
Severity: Minor
Found in tests/App/EmailParser.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    /**
Severity: Minor
Found in tests/App/EmailParser.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

     * Testing instances creation.
Severity: Minor
Found in tests/App/EmailParser.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

            ->getContent(), 'Clean instance: empty content should return empty result');
Severity: Minor
Found in tests/App/EmailParser.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

        $this->assertSame(['test0@yetiforce.com', 'test1@yetiforce.com' => 'Test One ', 'test2@yetiforce.com'], self::$parserClean
Severity: Minor
Found in tests/App/EmailParser.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

        $this->assertSame(['test0@yetiforce.com', 'test1@yetiforce.com' => 'Test One ', 'test2@yetiforce.com'], \App\EmailParser::getInstanceByModel(\Tests\Base\C_RecordActions::createLeadRecord())
Severity: Minor
Found in tests/App/EmailParser.php by phpcodesniffer

Line exceeds 120 characters; contains 197 characters
Open

        $this->assertSame(['test0@yetiforce.com', 'test1@yetiforce.com' => 'Test One ', 'test2@yetiforce.com'], \App\EmailParser::getInstanceByModel(\Tests\Base\C_RecordActions::createLeadRecord())
Severity: Minor
Found in tests/App/EmailParser.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

            ->getContent(true), 'content should be equal');
Severity: Minor
Found in tests/App/EmailParser.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

            ->getContent(true), 'content should be equal');
Severity: Minor
Found in tests/App/EmailParser.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

        $tmpInstance = \App\EmailParser::getInstanceByModel(\Tests\Base\C_RecordActions::createLeadRecord());
Severity: Minor
Found in tests/App/EmailParser.php by phpcodesniffer

Line exceeds 120 characters; contains 134 characters
Open

        $this->assertInstanceOf('\App\EmailParser', self::$parserClean, 'Expected clean instance without module of \App\EmailParser');
Severity: Minor
Found in tests/App/EmailParser.php by phpcodesniffer

Line exceeds 120 characters; contains 143 characters
Open

        $this->assertInstanceOf('\App\EmailParser', self::$parserCleanModule, 'Expected clean instance with module Leads of \App\EmailParser');
Severity: Minor
Found in tests/App/EmailParser.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

        $this->assertInstanceOf('\App\EmailParser', \App\EmailParser::getInstanceById(\Tests\Base\C_RecordActions::createLeadRecord()->getId(), 'Leads'), 'Expected instance from lead id and module string of \App\TextParser');
Severity: Minor
Found in tests/App/EmailParser.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    public function testEmptyContent()
Severity: Minor
Found in tests/App/EmailParser.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

        \Tests\Base\C_RecordActions::createLeadRecord()->save();
Severity: Minor
Found in tests/App/EmailParser.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    {
Severity: Minor
Found in tests/App/EmailParser.php by phpcodesniffer

Line exceeds 120 characters; contains 197 characters
Open

        $this->assertSame(['test0@yetiforce.com', 'test1@yetiforce.com' => 'Test One ', 'test2@yetiforce.com'], \App\EmailParser::getInstanceByModel(\Tests\Base\C_RecordActions::createLeadRecord())
Severity: Minor
Found in tests/App/EmailParser.php by phpcodesniffer

Line exceeds 120 characters; contains 126 characters
Open

            ->setContent('test0@yetiforce.com,Test One &lt;test1@yetiforce.com&gt;,test2@yetiforce.com,-,,$(record : email)$')
Severity: Minor
Found in tests/App/EmailParser.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

        $this->assertSame(['test0@yetiforce.com', 'test1@yetiforce.com' => 'Test One ', 'test2@yetiforce.com', 'test3@yetiforce.com'], \App\EmailParser::getInstanceByModel(\Tests\Base\C_RecordActions::createLeadRecord())
Severity: Minor
Found in tests/App/EmailParser.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    /**
Severity: Minor
Found in tests/App/EmailParser.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

     */
Severity: Minor
Found in tests/App/EmailParser.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

        $this->assertSame('', self::$parserClean
Severity: Minor
Found in tests/App/EmailParser.php by phpcodesniffer

Line exceeds 120 characters; contains 126 characters
Open

            ->setContent('test0@yetiforce.com,Test One &lt;test1@yetiforce.com&gt;,test2@yetiforce.com,-,,$(record : email)$')
Severity: Minor
Found in tests/App/EmailParser.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

        $this->assertInstanceOf('\App\EmailParser', self::$parserClean, 'Expected clean instance without module of \App\EmailParser');
Severity: Minor
Found in tests/App/EmailParser.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    /**
Severity: Minor
Found in tests/App/EmailParser.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

        \Tests\Base\C_RecordActions::createLeadRecord()->set('email', 'test3@yetiforce.com');
Severity: Minor
Found in tests/App/EmailParser.php by phpcodesniffer

Line exceeds 120 characters; contains 261 characters
Open

        $this->assertSame(['test0@yetiforce.com', 'test1@yetiforce.com' => 'Test One ', 'test2@yetiforce.com', 'test3@yetiforce.com'], $tmpInstance->setContent('test0@yetiforce.com,Test One &lt;test1@yetiforce.com&gt;,test2@yetiforce.com,-,,$(record : email)$')
Severity: Minor
Found in tests/App/EmailParser.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

            ->parse()
Severity: Minor
Found in tests/App/EmailParser.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    }
Severity: Minor
Found in tests/App/EmailParser.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

     */
Severity: Minor
Found in tests/App/EmailParser.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

        \Tests\Base\C_RecordActions::createLeadRecord()->set('noapprovalemails', '1');
Severity: Minor
Found in tests/App/EmailParser.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

            ->setContent('test0@yetiforce.com,Test One &lt;test1@yetiforce.com&gt;,test2@yetiforce.com,-,,$(record : email)$')
Severity: Minor
Found in tests/App/EmailParser.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    /**
Severity: Minor
Found in tests/App/EmailParser.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

     */
Severity: Minor
Found in tests/App/EmailParser.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

        $tmpInstance->emailoptout = false;
Severity: Minor
Found in tests/App/EmailParser.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

     * Test record instance.
Severity: Minor
Found in tests/App/EmailParser.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

     * @var \App\EmailParser
Severity: Minor
Found in tests/App/EmailParser.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    /**
Severity: Minor
Found in tests/App/EmailParser.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

     * Test clean instance.
Severity: Minor
Found in tests/App/EmailParser.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    /**
Severity: Minor
Found in tests/App/EmailParser.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

        $this->assertSame(['test0@yetiforce.com', 'test1@yetiforce.com' => 'Test One ', 'test2@yetiforce.com'], \App\EmailParser::getInstanceByModel(\Tests\Base\C_RecordActions::createLeadRecord())
Severity: Minor
Found in tests/App/EmailParser.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

            ->parse()
Severity: Minor
Found in tests/App/EmailParser.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

     */
Severity: Minor
Found in tests/App/EmailParser.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

     * @var \App\EmailParser
Severity: Minor
Found in tests/App/EmailParser.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    private static $parserCleanModule;
Severity: Minor
Found in tests/App/EmailParser.php by phpcodesniffer

Line exceeds 120 characters; contains 132 characters
Open

        $this->assertInstanceOf('\App\EmailParser', self::$parserRecord, 'Expected instance from record model of \App\EmailParser');
Severity: Minor
Found in tests/App/EmailParser.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

            ->parse()
Severity: Minor
Found in tests/App/EmailParser.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

            ->getContent(true), 'Clean instance: content should be equal');
Severity: Minor
Found in tests/App/EmailParser.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

            ->setContent('test0@yetiforce.com,Test One &lt;test1@yetiforce.com&gt;,test2@yetiforce.com,-,,$(record : email)$')
Severity: Minor
Found in tests/App/EmailParser.php by phpcodesniffer

Line exceeds 120 characters; contains 220 characters
Open

        $this->assertSame(['test0@yetiforce.com', 'test1@yetiforce.com' => 'Test One ', 'test2@yetiforce.com', 'test3@yetiforce.com'], \App\EmailParser::getInstanceByModel(\Tests\Base\C_RecordActions::createLeadRecord())
Severity: Minor
Found in tests/App/EmailParser.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

            ->getContent(true), 'content should be equal');
Severity: Minor
Found in tests/App/EmailParser.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

        \Tests\Base\C_RecordActions::createLeadRecord(false);
Severity: Minor
Found in tests/App/EmailParser.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    {
Severity: Minor
Found in tests/App/EmailParser.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

     */
Severity: Minor
Found in tests/App/EmailParser.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    /**
Severity: Minor
Found in tests/App/EmailParser.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

            ->parse()
Severity: Minor
Found in tests/App/EmailParser.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

     *
Severity: Minor
Found in tests/App/EmailParser.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

     */
Severity: Minor
Found in tests/App/EmailParser.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

        self::$parserCleanModule = \App\EmailParser::getInstance('Leads');
Severity: Minor
Found in tests/App/EmailParser.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    public function testGetContent()
Severity: Minor
Found in tests/App/EmailParser.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

            ->setContent('test0@yetiforce.com,Test One &lt;test1@yetiforce.com&gt;,test2@yetiforce.com,-,,$(record : email)$')
Severity: Minor
Found in tests/App/EmailParser.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

        \Tests\Base\C_RecordActions::createLeadRecord()->save();
Severity: Minor
Found in tests/App/EmailParser.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    public function testUseValue()
Severity: Minor
Found in tests/App/EmailParser.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    {
Severity: Minor
Found in tests/App/EmailParser.php by phpcodesniffer

Line exceeds 120 characters; contains 126 characters
Open

            ->setContent('test0@yetiforce.com,Test One &lt;test1@yetiforce.com&gt;,test2@yetiforce.com,-,,$(record : email)$')
Severity: Minor
Found in tests/App/EmailParser.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

            ->getContent(true), 'content should be equal');
Severity: Minor
Found in tests/App/EmailParser.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    }
Severity: Minor
Found in tests/App/EmailParser.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

            ->parse()
Severity: Minor
Found in tests/App/EmailParser.php by phpcodesniffer

There are no issues that match your filters.

Category
Status