YetiForceCompany/YetiForceCRM

View on GitHub
tests/Integrations/TwitterTest.php

Summary

Maintainability
A
0 mins
Test Coverage
A
100%

Avoid using undefined variables such as '$param' which will lead to PHP notices.
Open

        $param['fieldType'] = $type;
Severity: Minor
Found in tests/Integrations/TwitterTest.php by phpmd

UndefinedVariable

Since: 2.8.0

Detects when a variable is used that has not been defined before.

Example

class Foo
{
    private function bar()
    {
        // $message is undefined
        echo $message;
    }
}

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

Avoid using undefined variables such as '$param' which will lead to PHP notices.
Open

        $param['fieldTypeList'] = 0;
Severity: Minor
Found in tests/Integrations/TwitterTest.php by phpmd

UndefinedVariable

Since: 2.8.0

Detects when a variable is used that has not been defined before.

Example

class Foo
{
    private function bar()
    {
        // $message is undefined
        echo $message;
    }
}

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

Avoid using undefined variables such as '$param' which will lead to PHP notices.
Open

        $param['fieldLabel'] = $type . 'FL' . $suffix;
Severity: Minor
Found in tests/Integrations/TwitterTest.php by phpmd

UndefinedVariable

Since: 2.8.0

Detects when a variable is used that has not been defined before.

Example

class Foo
{
    private function bar()
    {
        // $message is undefined
        echo $message;
    }
}

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

Avoid using undefined variables such as '$param' which will lead to PHP notices.
Open

        self::$twitterFields[] = $moduleModel->addField($param['fieldType'], $block->id, $param);
Severity: Minor
Found in tests/Integrations/TwitterTest.php by phpmd

UndefinedVariable

Since: 2.8.0

Detects when a variable is used that has not been defined before.

Example

class Foo
{
    private function bar()
    {
        // $message is undefined
        echo $message;
    }
}

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

Avoid using undefined variables such as '$param' which will lead to PHP notices.
Open

        self::$twitterFields[] = $moduleModel->addField($param['fieldType'], $block->id, $param);
Severity: Minor
Found in tests/Integrations/TwitterTest.php by phpmd

UndefinedVariable

Since: 2.8.0

Detects when a variable is used that has not been defined before.

Example

class Foo
{
    private function bar()
    {
        // $message is undefined
        echo $message;
    }
}

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

Avoid using undefined variables such as '$param' which will lead to PHP notices.
Open

        $param['fieldName'] = strtolower($type . 'FL' . $suffix);
Severity: Minor
Found in tests/Integrations/TwitterTest.php by phpmd

UndefinedVariable

Since: 2.8.0

Detects when a variable is used that has not been defined before.

Example

class Foo
{
    private function bar()
    {
        // $message is undefined
        echo $message;
    }
}

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

Avoid using undefined variables such as '$param' which will lead to PHP notices.
Open

        $param['blockid'] = $block->id;
Severity: Minor
Found in tests/Integrations/TwitterTest.php by phpmd

UndefinedVariable

Since: 2.8.0

Detects when a variable is used that has not been defined before.

Example

class Foo
{
    private function bar()
    {
        // $message is undefined
        echo $message;
    }
}

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

Avoid using undefined variables such as '$param' which will lead to PHP notices.
Open

        $param['sourceModule'] = 'Contacts';
Severity: Minor
Found in tests/Integrations/TwitterTest.php by phpmd

UndefinedVariable

Since: 2.8.0

Detects when a variable is used that has not been defined before.

Example

class Foo
{
    private function bar()
    {
        // $message is undefined
        echo $message;
    }
}

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

Missing class import via use statement (line '159', column '9').
Open

            (new \App\Db\Query())->select([self::$twitterFields[0]->getColumnName()])
Severity: Minor
Found in tests/Integrations/TwitterTest.php by phpmd

MissingImport

Since: 2.7.0

Importing all external classes in a file through use statements makes them clearly visible.

Example

function make() {
    return new \stdClass();
}

Source http://phpmd.org/rules/cleancode.html#MissingImport

Missing class import via use statement (line '59', column '9').
Open

            (new \App\Db\Query())->from('vtiger_field')->where(['fieldid' => self::$twitterFields[0]->getId()])->exists(),
Severity: Minor
Found in tests/Integrations/TwitterTest.php by phpmd

MissingImport

Since: 2.7.0

Importing all external classes in a file through use statements makes them clearly visible.

Example

function make() {
    return new \stdClass();
}

Source http://phpmd.org/rules/cleancode.html#MissingImport

Missing class import via use statement (line '176', column '9').
Open

            (new \App\Db\Query())->select([self::$twitterFields[0]->getColumnName()])
Severity: Minor
Found in tests/Integrations/TwitterTest.php by phpmd

MissingImport

Since: 2.7.0

Importing all external classes in a file through use statements makes them clearly visible.

Example

function make() {
    return new \stdClass();
}

Source http://phpmd.org/rules/cleancode.html#MissingImport

Avoid using static access to class '\Vtiger_Record_Model' in method 'testAddTwitter'.
Open

        $recordModel = \Vtiger_Record_Model::getCleanInstance('Contacts');
Severity: Minor
Found in tests/Integrations/TwitterTest.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 '\Vtiger_Record_Model' in method 'testEditTwitter'.
Open

        $recordModel = \Vtiger_Record_Model::getInstanceById(self::$listId[0]);
Severity: Minor
Found in tests/Integrations/TwitterTest.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\User' in method 'testAddTwitter'.
Open

        $recordModel->set('assigned_user_id', \App\User::getActiveAdminId());
Severity: Minor
Found in tests/Integrations/TwitterTest.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 '\Vtiger_Record_Model' in method 'tearDownAfterClass'.
Open

        $recordModel = \Vtiger_Record_Model::getInstanceById(self::$listId[0]);
Severity: Minor
Found in tests/Integrations/TwitterTest.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\Cache' in method 'tearDownAfterClass'.
Open

        \App\Cache::clearAll();
Severity: Minor
Found in tests/Integrations/TwitterTest.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 "Contacts" 4 times.
Open

        $moduleModel = \Settings_LayoutEditor_Module_Model::getInstance('Settings:LayoutEditor')->setSourceModule('Contacts');
Severity: Critical
Found in tests/Integrations/TwitterTest.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.

Static call to undeclared method \Tests\Integrations\TwitterTest::assertSame
Open

        static::assertSame('yetiforceen',
Severity: Critical
Found in tests/Integrations/TwitterTest.php by phan

Static call to undeclared method \Tests\Integrations\TwitterTest::assertSame
Open

        static::assertSame('yeti',
Severity: Critical
Found in tests/Integrations/TwitterTest.php by phan

Static call to undeclared method \Tests\Integrations\TwitterTest::assertIsInt
Open

        static::assertIsInt(self::$twitterFields[0]->getId());
Severity: Critical
Found in tests/Integrations/TwitterTest.php by phan

Call to undeclared method \App\Db\Query::from
Open

            (new \App\Db\Query())->from('vtiger_field')->where(['fieldid' => self::$twitterFields[0]->getId()])->exists(),
Severity: Critical
Found in tests/Integrations/TwitterTest.php by phan

Call to undeclared method \App\Db\Query::select
Open

            (new \App\Db\Query())->select([self::$twitterFields[0]->getColumnName()])
Severity: Critical
Found in tests/Integrations/TwitterTest.php by phan

Static call to undeclared method \Tests\Integrations\TwitterTest::assertTrue
Open

        static::assertTrue(
Severity: Critical
Found in tests/Integrations/TwitterTest.php by phan

Call to undeclared method \App\Db\Query::select
Open

            (new \App\Db\Query())->select([self::$twitterFields[0]->getColumnName()])
Severity: Critical
Found in tests/Integrations/TwitterTest.php by phan

Static call to undeclared method \Tests\Integrations\TwitterTest::assertNotFalse
Open

        static::assertNotFalse($fieldModel, 'Vtiger_Field_Model problem - not exists');
Severity: Critical
Found in tests/Integrations/TwitterTest.php by phan

Variable $param was undeclared, but array fields are being added to it.
Open

        $param['fieldType'] = $type;
Severity: Info
Found in tests/Integrations/TwitterTest.php by phan

Call to undeclared method \Tests\Integrations\TwitterTest::expectExceptionCode
Open

        $this->expectExceptionCode(406);
Severity: Critical
Found in tests/Integrations/TwitterTest.php by phan

Call to undeclared method \Tests\Integrations\TwitterTest::expectExceptionCode
Open

        $this->expectExceptionCode(406);
Severity: Critical
Found in tests/Integrations/TwitterTest.php by phan

Static call to undeclared method \Tests\Integrations\TwitterTest::assertNull
Open

        static::assertNull(self::$twitterFields[0]->getUITypeModel()->validate($value, false));
Severity: Critical
Found in tests/Integrations/TwitterTest.php by phan

Static call to undeclared method \Tests\Integrations\TwitterTest::assertSame
Open

        static::assertSame(
Severity: Critical
Found in tests/Integrations/TwitterTest.php by phan

Call to method getActiveAdminId from undeclared class \App\User (Did you mean class \Tests\App\User)
Open

        $recordModel->set('assigned_user_id', \App\User::getActiveAdminId());
Severity: Critical
Found in tests/Integrations/TwitterTest.php by phan

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

    {

Line exceeds 120 characters; contains 126 characters
Open

        $moduleModel = \Settings_LayoutEditor_Module_Model::getInstance('Settings:LayoutEditor')->setSourceModule('Contacts');

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

    public function testFieldTwitter(): void

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

    {

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

    /**

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

    /**

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

        $moduleModel = \Settings_LayoutEditor_Module_Model::getInstance('Settings:LayoutEditor')->setSourceModule('Contacts');

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

        $type = 'Twitter';

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

        $param['fieldType'] = $type;

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

    }

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

        static::assertNotFalse($fieldModel, 'Vtiger_Field_Model problem - not exists');

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

            'Vtiger_Field_Model problem'

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

     *

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

    public function testUiTypeGoodData($value): void

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

     * Data provider for testUiTypeGoodData.

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

            'Field twitter not exists'

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

    }

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

     * @throws \App\Exceptions\Security

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

     */

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

            ['gfdsgf abc'],

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

            ['abcde1234567890abcde'],

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

            ['abc'],

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

     */

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

        static::assertIsInt(self::$twitterFields[0]->getId());

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

        static::assertTrue(

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

    {

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

     */

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

        ];

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

    public function providerUiTypeGoodData()

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

    /**

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

     * @codeCoverageIgnore

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

    public static function setUpBeforeClass(): void

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

        self::$twitterFields[] = $moduleModel->addField($param['fieldType'], $block->id, $param);

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

     * Check if the Twitter field exists.

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

        static::assertSame(

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

            self::$twitterFields[0]->getId(),

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

     *

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

     * @param mixed $value

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

    /**

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

     * @dataProvider providerUiTypeWrongData

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

     *

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

     * @return array

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

        $suffix = '_t1';

Line exceeds 120 characters; contains 122 characters
Open

            (new \App\Db\Query())->from('vtiger_field')->where(['fieldid' => self::$twitterFields[0]->getId()])->exists(),

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

    {

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

     *

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

    /**

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

     * @param $value

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

     *

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

            ['$#@%^$^%'],

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

     */

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

     */

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

        self::$twitterFields[0]->getUITypeModel()->validate($value, false);

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

     *

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

     * @codeCoverageIgnore

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

        $param['fieldTypeList'] = 0;

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

     *

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

     * @throws \App\Exceptions\Security

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

    public function testUiTypeUserFormatWrongData($value): void

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

    }

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

     * Data provider for testUiTypeWrongData.

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

     * @return array

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

    {

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

     * @codeCoverageIgnore

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

        $block = $moduleModel->getBlocks()['LBL_CONTACT_INFORMATION'];

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

        $fieldModel = \Vtiger_Module_Model::getInstance('Contacts')->getFieldByName(self::$twitterFields[0]->getName());

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

     */

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

    {

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

        $param['blockid'] = $block->id;

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

            (new \App\Db\Query())->from('vtiger_field')->where(['fieldid' => self::$twitterFields[0]->getId()])->exists(),

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

        );

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

    /**

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

     * @dataProvider providerUiTypeWrongData

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

     * @dataProvider providerUiTypeGoodData

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

     */

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

        return [

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

            ['yf123'],

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

        $recordModel->save();

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

    }

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

     */

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

        );

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

    }

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

            $fieldModel->delete();

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

     * Setting of tests.

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

    /**

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

    public function testUiTypeWrongData($value): void

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

    public function providerUiTypeWrongData()

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

        self::$listId[] = $recordModel->getId();

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

        $param['fieldLabel'] = $type . 'FL' . $suffix;

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

     *

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

        $this->expectExceptionCode(406);

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

    }

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

     * @param mixed $value

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

    {

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

    /**

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

    /**

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

     *

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

    public static function tearDownAfterClass(): void

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

        }

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

    }

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

    private static $twitterFields;

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

        $param['fieldName'] = strtolower($type . 'FL' . $suffix);

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

            $fieldModel->getId(),

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

     * Validation testing for uitype twitter.

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

     */

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

    }

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

     * @throws \App\Exceptions\Security

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

        return [

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

     * Testing adding a Twitter account.

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

    /**

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

    private static $listId;

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

     * Validation testing for uitype twitter - user format.

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

        self::$twitterFields[0]->getUITypeModel()->validate($value, true);

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

     *

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

    }

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

    {

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

        $recordModel = \Vtiger_Record_Model::getInstanceById(self::$listId[0]);

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

     * @throws \Exception

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

        $recordModel->save();

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

        $recordModel->delete();

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

     * @var \Settings_LayoutEditor_Field_Model[]

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

     */

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

     * @var int[]

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

        $param['sourceModule'] = 'Contacts';

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

        );

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

     *

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

        $this->expectExceptionCode(406);

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

     * Validation testing for uitype twitter.

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

        static::assertNull(self::$twitterFields[0]->getUITypeModel()->validate($value, false));

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

    public function testAddTwitter(): void

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

    /**

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

     * @throws \Exception

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

            ['YFlogin'],

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

     * Cleaning after tests.

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

        ];

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

    {

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

        $recordModel->set('assigned_user_id', \App\User::getActiveAdminId());

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

        $recordModel->set('lastname', 'Test');

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

     */

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

     */

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

        $recordModel->set(self::$twitterFields[0]->getColumnName(), 'yeti');

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

        static::assertSame('yetiforceen',

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

        \App\Cache::clearAll();

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

     *

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

        static::assertSame('yeti',

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

                ->where(['contactid' => $recordModel->getId()])->scalar()

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

        $recordModel = \Vtiger_Record_Model::getCleanInstance('Contacts');

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

                ->from(self::$twitterFields[0]->getTableName())

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

            (new \App\Db\Query())->select([self::$twitterFields[0]->getColumnName()])

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

        $recordModel = \Vtiger_Record_Model::getInstanceById(self::$listId[0]);

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

        $recordModel->set(self::$twitterFields[0]->getColumnName(), 'yetiforceen');

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

        );

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

     * Testing editing a Twitter account.

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

    public function testEditTwitter(): void

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

        foreach (self::$twitterFields as $fieldModel) {

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

                ->from(self::$twitterFields[0]->getTableName())

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

    {

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

    }

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

            (new \App\Db\Query())->select([self::$twitterFields[0]->getColumnName()])

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

                ->where(['contactid' => $recordModel->getId()])->scalar()

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

    /**

Opening parenthesis of a multi-line function call must be the last content on the line
Open

        static::assertSame('yetiforceen',

Opening parenthesis of a multi-line function call must be the last content on the line
Open

        static::assertSame('yeti',

There are no issues that match your filters.

Category
Status