Function getOrderBy
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
public function getOrderBy($order = false): array
{
$condition = [];
if ($order && 'DESC' === strtoupper($order)) {
foreach ($this->getRelatedTableName() as $formattedName) {
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function getRelatedTables
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
public function getRelatedTables(array $modules, string $fieldName): array
{
$relatedTableName = [];
foreach ($modules as $moduleName) {
$formattedTables = [];
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
The method getOrderBy has a boolean flag argument $order, which is a certain sign of a Single Responsibility Principle violation. Open
public function getOrderBy($order = false): array
- Read upRead up
- Exclude checks
BooleanArgumentFlag
Since: 1.4.0
A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.
Example
class Foo {
public function bar($flag = true) {
}
}
Source https://phpmd.org/rules/cleancode.html#booleanargumentflag
Missing class import via use statement (line '66', column '72'). Open
$relatedTableName[$moduleName] = \count($formattedTables) > 1 ? new \yii\db\Expression('CONCAT(' . implode(",' ',", $formattedTables) . ')') : current($formattedTables);
- 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 '\App\Config' in method 'getRelatedTableName'. Open
if (\App\Config::performance('SEARCH_REFERENCE_BY_AJAX')) {
- 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_Module_Model' in method 'getRelatedTableName'. Open
$relatedModuleModel = \Vtiger_Module_Model::getInstance($this->related['relatedModule']);
- 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\Config' in method 'operatorA'. Open
if (\App\Config::performance('SEARCH_REFERENCE_BY_AJAX')) {
- 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_Module_Model' in method 'getRelatedTables'. Open
$relatedModuleModel = \Vtiger_Module_Model::getInstance($moduleName);
- 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 assigning values to variables in if clauses and the like (line '57', column '9'). Open
public function getRelatedTables(array $modules, string $fieldName): array
{
$relatedTableName = [];
foreach ($modules as $moduleName) {
$formattedTables = [];
- Read upRead up
- Exclude checks
IfStatementAssignment
Since: 2.7.0
Assignments in if clauses and the like are considered a code smell. Assignments in PHP return the right operand as their result. In many cases, this is an expected behavior, but can lead to many difficult to spot bugs, especially when the right operand could result in zero, null or an empty string and the like.
Example
class Foo
{
public function bar($flag)
{
if ($foo = 'bar') { // possible typo
// ...
}
if ($baz = 0) { // always false
// ...
}
}
}
Source http://phpmd.org/rules/cleancode.html#ifstatementassignment
Avoid using static access to class '\App\Module' in method 'getRelatedTables'. Open
$entityFieldInfo = \App\Module::getEntityInfo($moduleName);
- 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
The method getOrderBy uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
foreach ($this->getRelatedTableName() as $formattedName) {
$condition[(string) $formattedName] = SORT_ASC;
}
}
- Read upRead up
- Exclude checks
ElseExpression
Since: 1.4.0
An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.
Example
class Foo
{
public function bar($flag)
{
if ($flag) {
// one branch
} else {
// another branch
}
}
}
Source https://phpmd.org/rules/cleancode.html#elseexpression
Call to method addJoin
from undeclared class \App\QueryGenerator
(Did you mean class \Tests\App\QueryGenerator) Open
$this->queryGenerator->addJoin(['LEFT JOIN',
- Exclude checks
Call to method getReference
from undeclared class \App\QueryGenerator
(Did you mean class \Tests\App\QueryGenerator) Open
return $this->queryGenerator->getReference($this->fieldModel->getName());
- Exclude checks
Call to method __construct
from undeclared class \yii\db\Expression
Open
$relatedTableName[$moduleName] = \count($formattedTables) > 1 ? new \yii\db\Expression('CONCAT(' . implode(",' ',", $formattedTables) . ')') : current($formattedTables);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
return parent::operatorA();
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
public function getRelatedTableName(): 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
/**
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$relatedTableName[$moduleName] = \count($formattedTables) > 1 ? new \yii\db\Expression('CONCAT(' . implode(",' ',", $formattedTables) . ')') : current($formattedTables);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$condition[] = [$this->getColumnName() => $value];
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$condition = ['or'];
- 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
if ($this->related) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$fieldModel = $relatedModuleModel->getFieldByName($this->related['relatedField']);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
* Get formatted column references from related records.
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
if ($relField = $relatedModuleModel->getFieldByColumn($column)) {
- Exclude checks
Line exceeds 120 characters; contains 181 characters Open
$relatedTableName[$moduleName] = \count($formattedTables) > 1 ? new \yii\db\Expression('CONCAT(' . implode(",' ',", $formattedTables) . ')') : current($formattedTables);
- 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 [$this->getColumnName() => $this->getValue()];
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
public function operatorN(): 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
if (\App\Config::performance('SEARCH_REFERENCE_BY_AJAX')) {
- 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
* Starts with operator.
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
public function getTables()
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
return $this->getRelatedTables($this->getTables(), $this->fieldModel->getName());
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
public function getRelatedTables(array $modules, string $fieldName): array
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$relatedModuleModel = \Vtiger_Module_Model::getInstance($moduleName);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
foreach (explode('##', $this->value) as $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
* Equals Id operator.
- 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
*
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$relatedTableName = [];
- 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
foreach ($this->getRelatedTableName() as $formattedName) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
return $condition;
- 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
* Not equal operator.
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
return $condition;
- 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
* Get related column name.
- 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
$formattedTables = [];
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
foreach ($entityFieldInfo['fieldnameArr'] as $column) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$formattedTables[] = "{$referenceTable}.{$column}";
- 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
if (\App\Config::performance('SEARCH_REFERENCE_BY_AJAX')) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
return [$this->getColumnName() => $this->value];
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
return $condition;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
public function operatorEid()
- 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
foreach ($this->getRelatedTableName() as $formattedName) {
- 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 string[]
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
foreach ($modules as $moduleName) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$this->queryGenerator->addJoin(['LEFT JOIN',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
return $relatedTableName;
- 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
* @return array
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
return $this->queryGenerator->getReference($this->fieldModel->getName());
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
"{$this->getColumnName()} = {$referenceTable}.{$relTableIndexes[$relField->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
*
- 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
* @return string[]
- 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
* Auto operator.
- 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
$condition[] = ['<>', $formattedName, $this->getValue()];
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
public function operatorS()
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
foreach ($this->getRelatedTableName() as $formattedName) {
- 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
$relatedModuleModel = \Vtiger_Module_Model::getInstance($this->related['relatedModule']);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
* @param array $modules
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$referenceTable = $relField->getTableName() . $fieldName;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
"{$relField->getTableName()} {$referenceTable}",
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
* Equals operator.
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$condition[] = ['=', $formattedName, $this->getValue()];
- 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
*
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$relTableIndexes = $relatedModuleModel->getEntityInstance()->tab_name_index;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
public function operatorE(): 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
/**
- Exclude checks
Line exceeds 120 characters; contains 134 characters Open
return [$this->fieldModel->getTableName() . $this->related['sourceField'] . '.' . $this->fieldModel->getColumnName()];
- 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
$condition = ['or'];
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$condition[] = ['like', $formattedName, $this->getValue() . '%', false];
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
return $condition;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
* Ends with operator.
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$condition = ['or'];
- 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
foreach ($this->getRelatedTableName() as $formattedName) {
- 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
$condition[(string) $formattedName] = SORT_DESC;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
} else {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
return [$this->fieldModel->getTableName() . $this->related['sourceField'] . '.' . $this->fieldModel->getColumnName()];
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
return $this->getRelatedTables($fieldModel->getReferenceList(), $this->related['relatedField']);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$entityFieldInfo = \App\Module::getEntityInfo($moduleName);
- 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 operatorA(): array
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
if (false === strpos($this->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
* @return array
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$condition = ['or'];
- 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
foreach ($this->getRelatedTableName() as $formattedName) {
- 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
}
- 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 ['or',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
['=', $this->getColumnName(), ''],
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
* Is not empty operator.
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
public function operatorNy(): 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
foreach ($this->getRelatedTableName() as $formattedName) {
- 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 string $fieldName
- 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
$condition = ['or'];
- 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
if ($order && 'DESC' === strtoupper($order)) {
- 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
$condition = ['or'];
- 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
return ['and',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
['<>', $this->getColumnName(), 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
}
- 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->getColumnName() => null],
- 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
$condition[] = ['like', $formattedName, '%' . $this->getValue(), 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
}
- 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
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
return $condition;
- 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
public function operatorC(): array
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
return $condition;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$condition[] = ['not like', $formattedName, $this->getValue()];
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
return $condition;
- 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 operatorY(): array
- 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
public function operatorK(): array
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
['=', $this->getColumnName(), 0],
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
public function getOrderBy($order = false): array
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
foreach ($this->getRelatedTableName() as $formattedName) {
- 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
* Contains operator.
- 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
$condition = [];
- 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
$condition[(string) $formattedName] = SORT_ASC;
- 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 operatorEw()
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
return $condition;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$condition = ['or'];
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$condition[] = ['like', $formattedName, $this->getValue()];
- 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
foreach ($this->getRelatedTableName() as $formattedName) {
- 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
* Does not contain operator.
- 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
['not', [$this->getColumnName() => null]],
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
['<>', $this->getColumnName(), ''],
- 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
* Is empty operator.
- 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
* @return array
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
* Get order by.
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
* @param mixed $order
- 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