Function process
has a Cognitive Complexity of 42 (exceeds 5 allowed). Consider refactoring. Open
public function process()
{
\App\Log::trace('Start create AddressBook');
$limit = App\Config::performance('CRON_MAX_NUMBERS_RECORD_ADDRESS_BOOK_UPDATER');
- 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
Method process
has 83 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function process()
{
\App\Log::trace('Start create AddressBook');
$limit = App\Config::performance('CRON_MAX_NUMBERS_RECORD_ADDRESS_BOOK_UPDATER');
The method process() has an NPath complexity of 9409. The configured NPath complexity threshold is 200. Open
public function process()
{
\App\Log::trace('Start create AddressBook');
$limit = App\Config::performance('CRON_MAX_NUMBERS_RECORD_ADDRESS_BOOK_UPDATER');
- Read upRead up
- Exclude checks
NPathComplexity
Since: 0.1
The NPath complexity of a method is the number of acyclic execution paths through that method. A threshold of 200 is generally considered the point where measures should be taken to reduce complexity.
Example
class Foo {
function bar() {
// lots of complicated code
}
}
Source https://phpmd.org/rules/codesize.html#npathcomplexity
The method process() has a Cyclomatic Complexity of 19. The configured cyclomatic complexity threshold is 10. Open
public function process()
{
\App\Log::trace('Start create AddressBook');
$limit = App\Config::performance('CRON_MAX_NUMBERS_RECORD_ADDRESS_BOOK_UPDATER');
- Read upRead up
- Exclude checks
CyclomaticComplexity
Since: 0.1
Complexity is determined by the number of decision points in a method plus one for the method entry. The decision points are 'if', 'while', 'for', and 'case labels'. Generally, 1-4 is low complexity, 5-7 indicates moderate complexity, 8-10 is high complexity, and 11+ is very high complexity.
Example
// Cyclomatic Complexity = 11
class Foo {
1 public function example() {
2 if ($a == $b) {
3 if ($a1 == $b1) {
fiddle();
4 } elseif ($a2 == $b2) {
fiddle();
} else {
fiddle();
}
5 } elseif ($c == $d) {
6 while ($c == $d) {
fiddle();
}
7 } elseif ($e == $f) {
8 for ($n = 0; $n < $h; $n++) {
fiddle();
}
} else {
switch ($z) {
9 case 1:
fiddle();
break;
10 case 2:
fiddle();
break;
11 case 3:
fiddle();
break;
default:
fiddle();
break;
}
}
}
}
Source https://phpmd.org/rules/codesize.html#cyclomaticcomplexity
Refactor this function to reduce its Cognitive Complexity from 39 to the 15 allowed. Open
public function process()
- Read upRead up
- Exclude checks
Cognitive Complexity is a measure of how hard the control flow of a function is to understand. Functions with high Cognitive Complexity will be difficult to maintain.
See
Missing class import via use statement (line '33', column '21'). Open
$workflows = (new App\Db\Query())->select(['module_name', 'task'])->from('com_vtiger_workflows')
- 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 '57', column '26'). Open
$queryGenerator = new App\QueryGenerator($moduleName, $currentUser->id);
- 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 'process'. Open
$limit = App\Config::performance('CRON_MAX_NUMBERS_RECORD_ADDRESS_BOOK_UPDATER');
- 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\Module' in method 'process'. Open
$metainfo = \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
Avoid using static access to class 'OSSMail_AddressBook_Model' in method 'process'. Open
OSSMail_AddressBook_Model::saveLastRecord($record, $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 using static access to class 'OSSMail_AddressBook_Model' in method 'process'. Open
OSSMail_AddressBook_Model::createABFile();
- 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 'OSSMail_AddressBook_Model' in method 'process'. Open
$last = OSSMail_AddressBook_Model::getLastRecord();
- 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\Privilege' in method 'process'. Open
if (\App\Privilege::isPermitted($moduleName, 'DetailView', $record, $userId)) {
- 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 'OSSMail_AddressBook_Model' in method 'process'. Open
OSSMail_AddressBook_Model::clearLastRecord();
- 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\Utils' in method 'process'. Open
\App\Log::trace(App\Utils::varExport($i));
- 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\Log' in method 'process'. Open
\App\Log::trace(App\Utils::varExport($i));
- 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\Db' in method 'process'. Open
$db = \App\Db::getInstance();
- 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 'process'. Open
$moduleModel = 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 using static access to class '\App\Log' in method 'process'. Open
\App\Log::trace('Start create AddressBook');
- 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\Log' in method 'process'. Open
\App\Log::trace('End create AddressBook');
- 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 'Users' in method 'process'. Open
$currentUser = Users::getActiveAdminUser();
- 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\Fields\Owner' in method 'process'. Open
$usersIds = \App\Fields\Owner::getUsersIds();
- 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 "module_name" 3 times. Open
$workflows = (new App\Db\Query())->select(['module_name', 'task'])->from('com_vtiger_workflows')
- 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.
Call to undeclared method \App\Db::createCommand
Open
$dbCommand = $db->createCommand();
- Exclude checks
Call to method addCondition
from undeclared class \App\QueryGenerator
(Did you mean class \Tests\App\QueryGenerator) Open
$queryGenerator->addCondition('id', $last['record'], 'a');
- Exclude checks
Call to method trace
from undeclared class \App\Log
Open
\App\Log::trace(App\Utils::varExport($i));
- Exclude checks
Call to undeclared method \App\Db\Query::select
Open
$workflows = (new App\Db\Query())->select(['module_name', 'task'])->from('com_vtiger_workflows')
- Exclude checks
Call to method getUsersIds
from undeclared class \App\Fields\Owner
Open
$usersIds = \App\Fields\Owner::getUsersIds();
- Exclude checks
Call to method trace
from undeclared class \App\Log
Open
\App\Log::trace('End create AddressBook');
- Exclude checks
Suspicious array access to int|true
Open
$queryGenerator->addCondition('id', $last['record'], 'a');
- Exclude checks
Call to method createQuery
from undeclared class \App\QueryGenerator
(Did you mean class \Tests\App\QueryGenerator) Open
$query = $queryGenerator->createQuery();
- Exclude checks
Call to method __construct
from undeclared class \App\QueryGenerator
(Did you mean class \Tests\App\QueryGenerator) Open
$queryGenerator = new App\QueryGenerator($moduleName, $currentUser->id);
- Exclude checks
Call to method setFields
from undeclared class \App\QueryGenerator
(Did you mean class \Tests\App\QueryGenerator) Open
$queryGenerator->setFields($queryFields);
- Exclude checks
Suspicious array access to int|true
Open
if (empty($task['active']) || (false !== $last && $last['module'] != $moduleName)) {
- Exclude checks
Call to method trace
from undeclared class \App\Log
Open
\App\Log::trace('Start create AddressBook');
- Exclude checks
Each class must be in a namespace of at least one level (a top-level vendor name) Open
class Vtiger_AddressBook_Cron extends \App\CronHandler
- Exclude checks
Avoid variables with short names like $i. Configured minimum length is 3. Open
$i = ['rows' => [], 'users' => \count($usersIds)];
- Read upRead up
- Exclude checks
ShortVariable
Since: 0.2
Detects when a field, local, or parameter has a very short name.
Example
class Something {
private $q = 15; // VIOLATION - Field
public static function main( array $as ) { // VIOLATION - Formal
$r = 20 + $this->q; // VIOLATION - Local
for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
$r += $this->q;
}
}
}
Source https://phpmd.org/rules/naming.html#shortvariable
Avoid variables with short names like $l. Configured minimum length is 3. Open
$l = 0;
- Read upRead up
- Exclude checks
ShortVariable
Since: 0.2
Detects when a field, local, or parameter has a very short name.
Example
class Something {
private $q = 15; // VIOLATION - Field
public static function main( array $as ) { // VIOLATION - Formal
$r = 20 + $this->q; // VIOLATION - Local
for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
$r += $this->q;
}
}
}
Source https://phpmd.org/rules/naming.html#shortvariable
The class Vtiger_AddressBook_Cron is not named in CamelCase. Open
class Vtiger_AddressBook_Cron extends \App\CronHandler
{
/** {@inheritdoc} */
public function process()
{
- Read upRead up
- Exclude checks
CamelCaseClassName
Since: 0.2
It is considered best practice to use the CamelCase notation to name classes.
Example
class class_name {
}
Source
Avoid variables with short names like $db. Configured minimum length is 3. Open
$db = \App\Db::getInstance();
- Read upRead up
- Exclude checks
ShortVariable
Since: 0.2
Detects when a field, local, or parameter has a very short name.
Example
class Something {
private $q = 15; // VIOLATION - Field
public static function main( array $as ) { // VIOLATION - Formal
$r = 20 + $this->q; // VIOLATION - Local
for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
$r += $this->q;
}
}
}
Source https://phpmd.org/rules/naming.html#shortvariable
Line exceeds 120 characters; contains 125 characters Open
->leftJoin('com_vtiger_workflowtasks', 'com_vtiger_workflowtasks.workflow_id = com_vtiger_workflows.workflow_id')
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$task = (array) unserialize($row['task']);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
while ($row = $dataReaderRows->read()) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
if (\App\Privilege::isPermitted($moduleName, 'DetailView', $record, $userId)) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
++$l;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
\App\Log::trace(App\Utils::varExport($i));
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
public function process()
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
\App\Log::trace('Start create AddressBook');
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$workflows = (new App\Db\Query())->select(['module_name', 'task'])->from('com_vtiger_workflows')
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
if (empty($task['active']) || (false !== $last && $last['module'] != $moduleName)) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$fields = $moduleModel->getFieldsByType('email', true);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
foreach ($metainfo['fieldnameArr'] as $entityName) {
- 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
->leftJoin('com_vtiger_workflowtasks', 'com_vtiger_workflowtasks.workflow_id = com_vtiger_workflows.workflow_id')
- 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
$dbCommand->delete($table, ['id' => $record])->execute();
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$last = false;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$limit = App\Config::performance('CRON_MAX_NUMBERS_RECORD_ADDRESS_BOOK_UPDATER');
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$queryGenerator->setFields($queryFields);
- 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
$table = OSSMail_AddressBook_Model::TABLE;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$moduleName = $row['module_name'];
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$queryGenerator = new App\QueryGenerator($moduleName, $currentUser->id);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
OSSMail_AddressBook_Model::clearLastRecord();
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$usersIds = \App\Fields\Owner::getUsersIds();
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$last = OSSMail_AddressBook_Model::getLastRecord();
- 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
$i['rows'][$moduleName] = 0;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
if (empty($fields)) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$query = $queryGenerator->createQuery();
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$users = $name = '';
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$metainfo = \App\Module::getEntityInfo($moduleName);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$name .= ' ' . $row[$entityName];
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
unset($row[$entityName]);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
if (!empty($row[$fieldName]) && !\in_array($row[$fieldName], $added)) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
if (!$break && false !== $last) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
foreach ($emailFields as $fieldName) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
if ($limit == $l) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$emailFields = array_keys($fields);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$queryFields = array_merge(['id'], $metainfo['fieldnameArr'], $emailFields);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$dbCommand->insert($table, ['id' => $record, 'email' => $row[$fieldName], 'name' => trim($name), 'users' => $users])->execute();
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$break = false;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
foreach ($workflows as $row) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
if (!$moduleModel->isActive()) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Line exceeds 120 characters; contains 152 characters Open
$dbCommand->insert($table, ['id' => $record, 'email' => $row[$fieldName], 'name' => trim($name), 'users' => $users])->execute();
- 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
OSSMail_AddressBook_Model::saveLastRecord($record, $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
}
- 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
$dbCommand = $db->createCommand();
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$i = ['rows' => [], 'users' => \count($usersIds)];
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$l = 0;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$emailCondition = ['or'];
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
foreach ($emailFields as $fieldName) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
foreach ($usersIds as $userId) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$break = true;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
OSSMail_AddressBook_Model::createABFile();
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$moduleModel = Vtiger_Module_Model::getInstance($moduleName);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$this->updateLastActionTime();
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$query->andWhere($emailCondition)->limit($limit + 1);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$record = reset($row);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
break;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$db = \App\Db::getInstance();
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
->where(['like', 'task', 'VTAddressBookTask'])
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$emailCondition[] = ['<>', $fieldName, ''];
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$added = [];
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$dataReaderRows->close();
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
continue;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$queryGenerator->addCondition('id', $last['record'], 'a');
- 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
\App\Log::trace('End create AddressBook');
- 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
$currentUser = Users::getActiveAdminUser();
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
continue;
- 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
$dataReaderRows = $query->createCommand()->query();
- 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
++$i['rows'][$moduleName];
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
/** {@inheritdoc} */
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
->indexBy('module_name')->all();
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
continue;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
if (false !== $last) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$users .= ',' . $userId;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$added[] = $row[$fieldName];
- Exclude checks
Class name "Vtiger_AddressBook_Cron" is not in camel caps format Open
class Vtiger_AddressBook_Cron extends \App\CronHandler
- Exclude checks