Avoid using undefined variables such as '$param' which will lead to PHP notices. Open
$param['fieldType'] = $type;
- Read upRead up
- Exclude checks
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;
- Read upRead up
- Exclude checks
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;
- Read upRead up
- Exclude checks
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);
- Read upRead up
- Exclude checks
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);
- Read upRead up
- Exclude checks
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);
- Read upRead up
- Exclude checks
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;
- Read upRead up
- Exclude checks
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';
- Read upRead up
- Exclude checks
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()])
- Read upRead up
- Exclude checks
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(),
- Read upRead up
- Exclude checks
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()])
- Read upRead up
- Exclude checks
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');
- Read upRead up
- Exclude checks
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]);
- Read upRead up
- Exclude checks
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());
- Read upRead up
- Exclude checks
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]);
- Read upRead up
- Exclude checks
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();
- Read upRead up
- Exclude checks
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');
- Read upRead up
- Exclude checks
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',
- Exclude checks
Static call to undeclared method \Tests\Integrations\TwitterTest::assertSame
Open
static::assertSame('yeti',
- Exclude checks
Static call to undeclared method \Tests\Integrations\TwitterTest::assertIsInt
Open
static::assertIsInt(self::$twitterFields[0]->getId());
- Exclude checks
Call to undeclared method \App\Db\Query::from
Open
(new \App\Db\Query())->from('vtiger_field')->where(['fieldid' => self::$twitterFields[0]->getId()])->exists(),
- Exclude checks
Call to undeclared method \App\Db\Query::select
Open
(new \App\Db\Query())->select([self::$twitterFields[0]->getColumnName()])
- Exclude checks
Static call to undeclared method \Tests\Integrations\TwitterTest::assertTrue
Open
static::assertTrue(
- Exclude checks
Call to undeclared method \App\Db\Query::select
Open
(new \App\Db\Query())->select([self::$twitterFields[0]->getColumnName()])
- Exclude checks
Static call to undeclared method \Tests\Integrations\TwitterTest::assertNotFalse
Open
static::assertNotFalse($fieldModel, 'Vtiger_Field_Model problem - not exists');
- Exclude checks
Variable $param
was undeclared, but array fields are being added to it. Open
$param['fieldType'] = $type;
- Exclude checks
Call to undeclared method \Tests\Integrations\TwitterTest::expectExceptionCode
Open
$this->expectExceptionCode(406);
- Exclude checks
Call to undeclared method \Tests\Integrations\TwitterTest::expectExceptionCode
Open
$this->expectExceptionCode(406);
- Exclude checks
Static call to undeclared method \Tests\Integrations\TwitterTest::assertNull
Open
static::assertNull(self::$twitterFields[0]->getUITypeModel()->validate($value, false));
- Exclude checks
Static call to undeclared method \Tests\Integrations\TwitterTest::assertSame
Open
static::assertSame(
- Exclude checks
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());
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
{
- Exclude checks
Line exceeds 120 characters; contains 126 characters Open
$moduleModel = \Settings_LayoutEditor_Module_Model::getInstance('Settings:LayoutEditor')->setSourceModule('Contacts');
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
public function testFieldTwitter(): void
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
{
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
/**
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
/**
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$moduleModel = \Settings_LayoutEditor_Module_Model::getInstance('Settings:LayoutEditor')->setSourceModule('Contacts');
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$type = 'Twitter';
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$param['fieldType'] = $type;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
static::assertNotFalse($fieldModel, 'Vtiger_Field_Model problem - not exists');
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
'Vtiger_Field_Model problem'
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
*
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
public function testUiTypeGoodData($value): void
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
* Data provider for testUiTypeGoodData.
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
'Field twitter not exists'
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
* @throws \App\Exceptions\Security
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
*/
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
['gfdsgf abc'],
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
['abcde1234567890abcde'],
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
['abc'],
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
*/
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
static::assertIsInt(self::$twitterFields[0]->getId());
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
static::assertTrue(
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
{
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
*/
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
];
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
public function providerUiTypeGoodData()
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
/**
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
* @codeCoverageIgnore
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
public static function setUpBeforeClass(): void
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
self::$twitterFields[] = $moduleModel->addField($param['fieldType'], $block->id, $param);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
* Check if the Twitter field exists.
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
static::assertSame(
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
self::$twitterFields[0]->getId(),
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
*
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
* @param mixed $value
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
/**
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
* @dataProvider providerUiTypeWrongData
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
*
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
* @return array
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$suffix = '_t1';
- Exclude checks
Line exceeds 120 characters; contains 122 characters Open
(new \App\Db\Query())->from('vtiger_field')->where(['fieldid' => self::$twitterFields[0]->getId()])->exists(),
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
{
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
*
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
/**
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
* @param $value
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
*
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
['$#@%^$^%'],
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
*/
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
*/
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
self::$twitterFields[0]->getUITypeModel()->validate($value, false);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
*
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
* @codeCoverageIgnore
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$param['fieldTypeList'] = 0;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
*
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
* @throws \App\Exceptions\Security
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
public function testUiTypeUserFormatWrongData($value): void
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
* Data provider for testUiTypeWrongData.
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
* @return array
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
{
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
* @codeCoverageIgnore
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$block = $moduleModel->getBlocks()['LBL_CONTACT_INFORMATION'];
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$fieldModel = \Vtiger_Module_Model::getInstance('Contacts')->getFieldByName(self::$twitterFields[0]->getName());
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
*/
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
{
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$param['blockid'] = $block->id;
- Exclude checks
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(),
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
/**
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
* @dataProvider providerUiTypeWrongData
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
* @dataProvider providerUiTypeGoodData
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
*/
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
return [
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
['yf123'],
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$recordModel->save();
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
*/
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$fieldModel->delete();
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
* Setting of tests.
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
/**
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
public function testUiTypeWrongData($value): void
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
public function providerUiTypeWrongData()
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
self::$listId[] = $recordModel->getId();
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$param['fieldLabel'] = $type . 'FL' . $suffix;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
*
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$this->expectExceptionCode(406);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
* @param mixed $value
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
{
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
/**
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
/**
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
*
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
public static function tearDownAfterClass(): void
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
private static $twitterFields;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$param['fieldName'] = strtolower($type . 'FL' . $suffix);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$fieldModel->getId(),
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
* Validation testing for uitype twitter.
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
*/
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
* @throws \App\Exceptions\Security
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
return [
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
* Testing adding a Twitter account.
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
/**
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
private static $listId;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
* Validation testing for uitype twitter - user format.
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
self::$twitterFields[0]->getUITypeModel()->validate($value, true);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
*
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
{
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$recordModel = \Vtiger_Record_Model::getInstanceById(self::$listId[0]);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
* @throws \Exception
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$recordModel->save();
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$recordModel->delete();
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
* @var \Settings_LayoutEditor_Field_Model[]
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
*/
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
* @var int[]
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$param['sourceModule'] = 'Contacts';
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
*
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$this->expectExceptionCode(406);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
* Validation testing for uitype twitter.
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
static::assertNull(self::$twitterFields[0]->getUITypeModel()->validate($value, false));
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
public function testAddTwitter(): void
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
/**
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
* @throws \Exception
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
['YFlogin'],
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
* Cleaning after tests.
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
];
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
{
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$recordModel->set('assigned_user_id', \App\User::getActiveAdminId());
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$recordModel->set('lastname', 'Test');
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
*/
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
*/
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$recordModel->set(self::$twitterFields[0]->getColumnName(), 'yeti');
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
static::assertSame('yetiforceen',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
\App\Cache::clearAll();
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
*
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
static::assertSame('yeti',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
->where(['contactid' => $recordModel->getId()])->scalar()
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$recordModel = \Vtiger_Record_Model::getCleanInstance('Contacts');
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
->from(self::$twitterFields[0]->getTableName())
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
(new \App\Db\Query())->select([self::$twitterFields[0]->getColumnName()])
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$recordModel = \Vtiger_Record_Model::getInstanceById(self::$listId[0]);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$recordModel->set(self::$twitterFields[0]->getColumnName(), 'yetiforceen');
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
* Testing editing a Twitter account.
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
public function testEditTwitter(): void
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
foreach (self::$twitterFields as $fieldModel) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
->from(self::$twitterFields[0]->getTableName())
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
{
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
(new \App\Db\Query())->select([self::$twitterFields[0]->getColumnName()])
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
->where(['contactid' => $recordModel->getId()])->scalar()
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
/**
- Exclude checks
Opening parenthesis of a multi-line function call must be the last content on the line Open
static::assertSame('yetiforceen',
- Exclude checks
Opening parenthesis of a multi-line function call must be the last content on the line Open
static::assertSame('yeti',
- Exclude checks