YetiForceCompany/YetiForceCRM

View on GitHub
vtlib/Vtiger/Cron.php

Summary

Maintainability
C
1 day
Test Coverage
D
67%

Cron has 44 functions (exceeds 20 allowed). Consider refactoring.
Open

class Cron
{
    protected static $cronAction = false;
    protected static $baseTable = 'vtiger_cron_task';
    protected static $schemaInitialized = false;
Severity: Minor
Found in vtlib/Vtiger/Cron.php - About 6 hrs to fix

    The class Cron has 16 public methods. Consider refactoring Cron to keep number of public methods under 10.
    Open

    class Cron
    {
        protected static $cronAction = false;
        protected static $baseTable = 'vtiger_cron_task';
        protected static $schemaInitialized = false;
    Severity: Minor
    Found in vtlib/Vtiger/Cron.php by phpmd

    TooManyPublicMethods

    Since: 0.1

    A class with too many public methods is probably a good suspect for refactoring, in order to reduce its complexity and find a way to have more fine grained objects.

    By default it ignores methods starting with 'get' or 'set'.

    Example

    Source https://phpmd.org/rules/codesize.html#toomanypublicmethods

    The class Cron has an overall complexity of 72 which is very high. The configured complexity threshold is 50.
    Open

    class Cron
    {
        protected static $cronAction = false;
        protected static $baseTable = 'vtiger_cron_task';
        protected static $schemaInitialized = false;
    Severity: Minor
    Found in vtlib/Vtiger/Cron.php by phpmd

    File Cron.php has 294 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    <?php
    /* +**********************************************************************************
     * The contents of this file are subject to the vtiger CRM Public License Version 1.0
     * ("License"); You may not use this file except in compliance with the License
     * The Original Code is:  vtiger CRM Open Source
    Severity: Minor
    Found in vtlib/Vtiger/Cron.php - About 3 hrs to fix

      The class Cron has 47 public methods and attributes. Consider reducing the number of public items to less than 45.
      Open

      class Cron
      {
          protected static $cronAction = false;
          protected static $baseTable = 'vtiger_cron_task';
          protected static $schemaInitialized = false;
      Severity: Minor
      Found in vtlib/Vtiger/Cron.php by phpmd

      ExcessivePublicCount

      Since: 0.1

      A large number of public methods and attributes declared in a class can indicate the class may need to be broken up as increased effort will be required to thoroughly test it.

      Example

      public class Foo {
          public $value;
          public $something;
          public $var;
          // [... more more public attributes ...]
      
          public function doWork() {}
          public function doMoreWork() {}
          public function doWorkAgain() {}
          // [... more more public methods ...]
      }

      Source https://phpmd.org/rules/codesize.html#excessivepubliccount

      Method register has 7 arguments (exceeds 4 allowed). Consider refactoring.
      Open

          public static function register($name, $handlerClass, $frequency, $module = 'Home', $status = 1, $sequence = 0, $description = '')
      Severity: Major
      Found in vtlib/Vtiger/Cron.php - About 50 mins to fix

        Class "Cron" has 44 methods, which is greater than 20 authorized. Split it into smaller classes.
        Open

        class Cron
        Severity: Major
        Found in vtlib/Vtiger/Cron.php by sonar-php

        A class that grows too much tends to aggregate too many responsibilities and inevitably becomes harder to understand and therefore to maintain. Above a specific threshold, it is strongly advised to refactor the class into smaller ones which focus on well defined topics.

        Missing class import via use statement (line '169', column '15').
        Open

                return (new \DateTimeField(date('Y-m-d H:i:s', $this->data['last_update'])))->getDisplayDateTimeValue();
        Severity: Minor
        Found in vtlib/Vtiger/Cron.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 '156', column '15').
        Open

                return (new \DateTimeField(date('Y-m-d H:i:s', $this->data['laststart'])))->getDisplayDateTimeValue();
        Severity: Minor
        Found in vtlib/Vtiger/Cron.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 '294', column '15').
        Open

                        throw new \App\Exceptions\AppException('Invalid status');
        Severity: Minor
        Found in vtlib/Vtiger/Cron.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 '510', column '16').
        Open

                $data = (new \App\Db\Query())->from(self::$baseTable)->where(['id' => $this->getId()])->one();
        Severity: Minor
        Found in vtlib/Vtiger/Cron.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 '458', column '17').
        Open

                    $data = (new \App\Db\Query())->from(self::$baseTable)->where(['name' => $name])->one();
        Severity: Minor
        Found in vtlib/Vtiger/Cron.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 '182', column '15').
        Open

                return (new \DateTimeField(date('Y-m-d H:i:s', $this->data['lastend'])))->getDisplayDateTimeValue();
        Severity: Minor
        Found in vtlib/Vtiger/Cron.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 '436', column '17').
        Open

                $query = (new \App\Db\Query())->select(['id', 'name'])->from(self::$baseTable)->where(['<>', 'status', self::$STATUS_DISABLED])->orderBy(['sequence' => SORT_ASC]);
        Severity: Minor
        Found in vtlib/Vtiger/Cron.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 '480', column '17').
        Open

                    $data = (new \App\Db\Query())->from(self::$baseTable)->where(['id' => $id])->one();
        Severity: Minor
        Found in vtlib/Vtiger/Cron.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 '498', column '22').
        Open

                $dataReader = (new \App\Db\Query())->from(self::$baseTable)->where(['module' => $moduleName])->createCommand()->query();
        Severity: Minor
        Found in vtlib/Vtiger/Cron.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 '\App\Cron' in method 'hadTimeout'.
        Open

                return (time() > ($time + \App\Cron::getMaxExecutionTime()))
        Severity: Minor
        Found in vtlib/Vtiger/Cron.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\Db' in method 'register'.
        Open

                $db = \App\Db::getInstance();
        Severity: Minor
        Found in vtlib/Vtiger/Cron.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\Purifier' in method 'getName'.
        Open

                return \App\Purifier::decodeHtml($this->data['name']);
        Severity: Minor
        Found in vtlib/Vtiger/Cron.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 'vtlib\Functions' in method 'deleteForModule'.
        Open

                    Functions::recurseDelete("modules/{$moduleInstance->name}/crons");
        Severity: Minor
        Found in vtlib/Vtiger/Cron.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 "module" 4 times.
        Open

                return $this->data['module'];
        Severity: Critical
        Found in vtlib/Vtiger/Cron.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.

        Rename "$data" which has the same name as the field declared at line 27.
        Open

                $data = (new \App\Db\Query())->from(self::$baseTable)->where(['id' => $this->getId()])->one();
        Severity: Major
        Found in vtlib/Vtiger/Cron.php by sonar-php

        Shadowing fields with a local variable is a bad practice that reduces code readability: it makes it confusing to know whether the field or the variable is being used.

        Noncompliant Code Example

        class Foo {
          public $myField;
        
          public function doSomething() {
            $myField = 0;
            ...
          }
        }
        

        See

        Define a constant instead of duplicating this literal "last_update" 8 times.
        Open

                return (int) ($this->data['last_update']);
        Severity: Critical
        Found in vtlib/Vtiger/Cron.php by sonar-php

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

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

        Noncompliant Code Example

        With the default threshold of 3:

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

        Compliant Solution

        ACTION_1 = 'action1';
        
        function run() {
          prepare(ACTION_1);
          execute(ACTION_1);
          release(ACTION_1);
        }
        

        Exceptions

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

        Define a constant instead of duplicating this literal "Y-m-d H:i:s" 3 times.
        Open

                return (new \DateTimeField(date('Y-m-d H:i:s', $this->data['laststart'])))->getDisplayDateTimeValue();
        Severity: Critical
        Found in vtlib/Vtiger/Cron.php by sonar-php

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

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

        Noncompliant Code Example

        With the default threshold of 3:

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

        Compliant Solution

        ACTION_1 = 'action1';
        
        function run() {
          prepare(ACTION_1);
          execute(ACTION_1);
          release(ACTION_1);
        }
        

        Exceptions

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

        Define a constant instead of duplicating this literal "frequency" 3 times.
        Open

                return (int) ($this->data['frequency']);
        Severity: Critical
        Found in vtlib/Vtiger/Cron.php by sonar-php

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

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

        Noncompliant Code Example

        With the default threshold of 3:

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

        Compliant Solution

        ACTION_1 = 'action1';
        
        function run() {
          prepare(ACTION_1);
          execute(ACTION_1);
          release(ACTION_1);
        }
        

        Exceptions

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

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

                return (int) ($this->data['lastend']);
        Severity: Critical
        Found in vtlib/Vtiger/Cron.php by sonar-php

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

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

        Noncompliant Code Example

        With the default threshold of 3:

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

        Compliant Solution

        ACTION_1 = 'action1';
        
        function run() {
          prepare(ACTION_1);
          execute(ACTION_1);
          release(ACTION_1);
        }
        

        Exceptions

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

        Define a constant instead of duplicating this literal "status" 7 times.
        Open

                return (int) ($this->data['status']);
        Severity: Critical
        Found in vtlib/Vtiger/Cron.php by sonar-php

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

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

        Noncompliant Code Example

        With the default threshold of 3:

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

        Compliant Solution

        ACTION_1 = 'action1';
        
        function run() {
          prepare(ACTION_1);
          execute(ACTION_1);
          release(ACTION_1);
        }
        

        Exceptions

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

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

                return (int) ($this->data['laststart']);
        Severity: Critical
        Found in vtlib/Vtiger/Cron.php by sonar-php

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

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

        Noncompliant Code Example

        With the default threshold of 3:

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

        Compliant Solution

        ACTION_1 = 'action1';
        
        function run() {
          prepare(ACTION_1);
          execute(ACTION_1);
          release(ACTION_1);
        }
        

        Exceptions

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

        Define a constant instead of duplicating this literal "sequence" 4 times.
        Open

                return \App\Db::getInstance()->getUniqueID(self::$baseTable, 'sequence', false);
        Severity: Critical
        Found in vtlib/Vtiger/Cron.php by sonar-php

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

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

        Noncompliant Code Example

        With the default threshold of 3:

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

        Compliant Solution

        ACTION_1 = 'action1';
        
        function run() {
          prepare(ACTION_1);
          execute(ACTION_1);
          release(ACTION_1);
        }
        

        Exceptions

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

        Define a constant instead of duplicating this literal "max_exe_time" 4 times.
        Open

                    || (!empty($this->data['max_exe_time']) && time() >= (($this->data['max_exe_time'] * 60) + $time));
        Severity: Critical
        Found in vtlib/Vtiger/Cron.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.

        Argument 1 (value) is string but \DateTimeField::__construct() takes \type defined at /code/include/fields/DateTimeField.php:31
        Open

                return (new \DateTimeField(date('Y-m-d H:i:s', $this->data['last_update'])))->getDisplayDateTimeValue();
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phan

        Argument 2 (value) is int but \vtlib\Cron::set() takes \vtlib\type defined at /code/vtlib/Vtiger/Cron.php:50
        Open

                return $this->set('laststart', $time);
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phan

        Call to undeclared method \App\Db::createCommand
        Open

                $db->createCommand()->insert(self::$baseTable, [
        Severity: Critical
        Found in vtlib/Vtiger/Cron.php by phan

        Parameter $value has undeclared type \vtlib\type
        Open

            public function set($key, $value): self
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phan

        Argument 1 (value) is string but \DateTimeField::__construct() takes \type defined at /code/include/fields/DateTimeField.php:31
        Open

                return (new \DateTimeField(date('Y-m-d H:i:s', $this->data['laststart'])))->getDisplayDateTimeValue();
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phan

        Call to undeclared method \App\Db::createCommand
        Open

                \App\Db::getInstance()->createCommand()->update(self::$baseTable, ['status' => $status], ['id' => $this->getId()])->execute();
        Severity: Critical
        Found in vtlib/Vtiger/Cron.php by phan

        Call to undeclared method \App\Db::createCommand
        Open

                \App\Db::getInstance()->createCommand()->delete(self::$baseTable, ['name' => $name])->execute();
        Severity: Critical
        Found in vtlib/Vtiger/Cron.php by phan

        Call to undeclared method \App\Db::createCommand
        Open

                \App\Db::getInstance()->createCommand()->update(self::$baseTable, ['last_update' => $time], ['id' => $this->getId()])->execute();
        Severity: Critical
        Found in vtlib/Vtiger/Cron.php by phan

        Call to undeclared method \App\Db::createCommand
        Open

                \App\Db::getInstance()->createCommand()->update(self::$baseTable, ['lase_error' => $errorMessage], ['id' => $this->getId()])->execute();
        Severity: Critical
        Found in vtlib/Vtiger/Cron.php by phan

        Expected @param annotation for key to be before the @param annotation for value
        Open

             * @param type  $value ,$key
        Severity: Info
        Found in vtlib/Vtiger/Cron.php by phan

        Return type of getInstanceById() is undeclared type \self
        Open

            public static function getInstanceById($id)
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phan

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

                $dataReader = (new \App\Db\Query())->from(self::$baseTable)->where(['module' => $moduleName])->createCommand()->query();
        Severity: Critical
        Found in vtlib/Vtiger/Cron.php by phan

        Call to undeclared method \App\Db::createCommand
        Open

                \App\Db::getInstance()->createCommand()->update(self::$baseTable, ['frequency' => $frequency], ['id' => $this->getId()])->execute();
        Severity: Critical
        Found in vtlib/Vtiger/Cron.php by phan

        Argument 2 (value) is int but \vtlib\Cron::set() takes \vtlib\type defined at /code/vtlib/Vtiger/Cron.php:50
        Open

                return $this->set('lastend', $time);
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phan

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

                    $data = (new \App\Db\Query())->from(self::$baseTable)->where(['name' => $name])->one();
        Severity: Critical
        Found in vtlib/Vtiger/Cron.php by phan

        When fetching an array index from a value of type array<string>|array{},</string> found an array index of type int, but expected the index to be of type string
        Open

                    $instance = self::$instanceCache[$id];
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phan

        Call to undeclared method \App\Db::createCommand
        Open

                \App\Db::getInstance()->createCommand()->update(
        Severity: Critical
        Found in vtlib/Vtiger/Cron.php by phan

        Argument 2 (value) is int but \vtlib\Cron::set() takes \vtlib\type defined at /code/vtlib/Vtiger/Cron.php:50
        Open

                return $this->set('last_update', $time);
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phan

        Return type of listAllActiveInstances() is undeclared type \self[]
        Open

            public static function listAllActiveInstances()
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phan

        Argument 1 (value) is string but \DateTimeField::__construct() takes \type defined at /code/include/fields/DateTimeField.php:31
        Open

                return (new \DateTimeField(date('Y-m-d H:i:s', $this->data['lastend'])))->getDisplayDateTimeValue();
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phan

        Call to undeclared method \App\Db::createCommand
        Open

                \App\Db::getInstance()->createCommand()->update(self::$baseTable, $conditions, ['id' => $this->getId()])->execute();
        Severity: Critical
        Found in vtlib/Vtiger/Cron.php by phan

        Argument 2 (value) is int but \vtlib\Cron::set() takes \vtlib\type defined at /code/vtlib/Vtiger/Cron.php:50
        Open

                $this->set('last_update', $time);
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phan

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

                $query = (new \App\Db\Query())->select(['id', 'name'])->from(self::$baseTable)->where(['<>', 'status', self::$STATUS_DISABLED])->orderBy(['sequence' => SORT_ASC]);
        Severity: Critical
        Found in vtlib/Vtiger/Cron.php by phan

        Return type of listAllInstancesByModule() is undeclared type \self[]
        Open

            public static function listAllInstancesByModule($moduleName)
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phan

        Return type of getInstance() is undeclared type \self
        Open

            public static function getInstance($name)
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phan

        Suspicious type false of a variable or expression used to build a string. (Expected type to be able to cast to a string)
        Open

                    Functions::recurseDelete("modules/{$moduleInstance->name}/crons");
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phan

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

                $data = (new \App\Db\Query())->from(self::$baseTable)->where(['id' => $this->getId()])->one();
        Severity: Critical
        Found in vtlib/Vtiger/Cron.php by phan

        Call to undeclared method \App\Db::createCommand
        Open

                \App\Db::getInstance()->createCommand()->delete(self::$baseTable, ['module' => $moduleInstance->name])->execute();
        Severity: Critical
        Found in vtlib/Vtiger/Cron.php by phan

        Suspicious type false of a variable or expression used to build a string. (Expected type to be able to cast to a string)
        Open

                if (is_dir("modules/{$moduleInstance->name}/crons")) {
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phan

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

                    $data = (new \App\Db\Query())->from(self::$baseTable)->where(['id' => $id])->one();
        Severity: Critical
        Found in vtlib/Vtiger/Cron.php by phan

        Avoid variables with short names like $db. Configured minimum length is 3.
        Open

                $db = \App\Db::getInstance();
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpmd

        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 property $STATUS_RUNNING is not named in camelCase.
        Open

        class Cron
        {
            protected static $cronAction = false;
            protected static $baseTable = 'vtiger_cron_task';
            protected static $schemaInitialized = false;
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpmd

        CamelCasePropertyName

        Since: 0.2

        It is considered best practice to use the camelCase notation to name attributes.

        Example

        class ClassName {
            protected $property_name;
        }

        Source

        The property $STATUS_COMPLETED is not named in camelCase.
        Open

        class Cron
        {
            protected static $cronAction = false;
            protected static $baseTable = 'vtiger_cron_task';
            protected static $schemaInitialized = false;
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpmd

        CamelCasePropertyName

        Since: 0.2

        It is considered best practice to use the camelCase notation to name attributes.

        Example

        class ClassName {
            protected $property_name;
        }

        Source

        Avoid variables with short names like $id. Configured minimum length is 3.
        Open

            public static function getInstanceById($id)
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpmd

        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 property $STATUS_DISABLED is not named in camelCase.
        Open

        class Cron
        {
            protected static $cronAction = false;
            protected static $baseTable = 'vtiger_cron_task';
            protected static $schemaInitialized = false;
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpmd

        CamelCasePropertyName

        Since: 0.2

        It is considered best practice to use the camelCase notation to name attributes.

        Example

        class ClassName {
            protected $property_name;
        }

        Source

        The property $STATUS_ENABLED is not named in camelCase.
        Open

        class Cron
        {
            protected static $cronAction = false;
            protected static $baseTable = 'vtiger_cron_task';
            protected static $schemaInitialized = false;
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpmd

        CamelCasePropertyName

        Since: 0.2

        It is considered best practice to use the camelCase notation to name attributes.

        Example

        class ClassName {
            protected $property_name;
        }

        Source

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

            }
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             * set the value to the data.
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            }
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            public static $STATUS_COMPLETED = 3;
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             *
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             * Set cron instance.
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             */
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            /**
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                self::$instanceCache[$this->getName()] = $this;
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                $this->cronInstance = $cronInstance;
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             *
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             */
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             *
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            public function getName(): string
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            /**
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             * Get the timestamp lastrun started.
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                return (int) ($this->data['laststart']);
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            public static $STATUS_DISABLED = 0;
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            public static $STATUS_RUNNING = 2;
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             */
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            protected function __construct($values)
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            public function set($key, $value): self
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             * @return void
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            }
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            /**
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            {
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             * @param mixed $values
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            protected $cronInstance;
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            /**
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             */
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            {
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            /**
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            public function getStatus(): int
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                return $this;
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             */
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             * @return int
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             * @return int
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             * @return int
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            /**
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            {
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             */
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            public function getFrequency(): int
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            {
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             * @param type  $value ,$key
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            }
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                return \App\Purifier::decodeHtml($this->data['name']);
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            /**
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             *
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             */
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                $this->data[$key] = $value;
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            /**
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             * Get the frequency set.
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                return (int) ($this->data['frequency']);
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            }
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             * Constructor.
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             * @param \App\Cron $cronInstance
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             *
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            public function setCronInstance(\App\Cron $cronInstance): void
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            {
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            protected static $baseTable = 'vtiger_cron_task';
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            protected $data;
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             * @param mixed $key
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            }
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            }
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                return (int) $this->data['id'];
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             * Get name of this task instance.
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                return (int) ($this->data['status']);
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            {
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            protected static $cronAction = false;
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            /** @var \App\Cron Cron instance. */
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            {
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             *  @return string
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            protected static $instanceCache = [];
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             *
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             * @return self
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            {
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             *
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             *
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            protected static $schemaInitialized = false;
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            public static $STATUS_ENABLED = 1;
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                $this->data = $values;
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             *
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             *
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             * Get id reference of this instance.
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            public function getId(): int
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             * Get the status.
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             * @return int
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             */
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            public function getLastStart(): int
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             * Get the next sequence.
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             */
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                    return '';
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            {
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            /**
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             */
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                $status = (int) ($this->data['status']);
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             * Is task in running status?
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            /**
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            }
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            /**
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             */
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            }
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            /**
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             * Get the configured handler file.
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            }
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             */
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            {
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             * get the description of cron.
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                // Take care of last time (end - on success, start - if timedout)
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             */
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             */
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            {
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                return (new \DateTimeField(date('Y-m-d H:i:s', $this->data['last_update'])))->getDisplayDateTimeValue();
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            }
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             * @return string
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             */
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            }
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            {
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             *
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             * Get the timestamp last task update.
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                return (int) ($this->data['last_update']);
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            {
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            }
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             * Get the last task update date time.
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                return (new \DateTimeField(date('Y-m-d H:i:s', $this->data['lastend'])))->getDisplayDateTimeValue();
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             * Get Time taken to complete task.
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            {
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            }
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            {
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            public function getLockStatus()
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            {
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            /**
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             * Get the timestamp lastrun ended.
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                if (empty($this->data['last_update'])) {
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             */
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            public function getDescription()
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            /**
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                return $status == $value;
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            {
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            {
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                return $this->statusEqual(self::$STATUS_DISABLED);
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            /**
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            }
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             *
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                if (empty($this->data['laststart'])) {
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                }
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                }
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             */
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            /**
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                $lastTime = ($this->getLastStart() > 0) ? $this->getLastStart() : $this->getLastEnd();
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             * Helper function to check the status value.
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            public function isRunning()
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            }
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             *
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             * @throws \Exception
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            /**
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             * @return int
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            /**
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            public function getLastUpdateDateTime(): string
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                    return '';
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             * Get the last end date time.
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             */
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            public function getModule()
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                return $this->data['sequence'];
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            {
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             */
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             * Get the last start date time.
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                if (empty($this->data['lastend'])) {
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            }
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                // Take care to start the cron im
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            }
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            {
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             * Update status.
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            {
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            public function getLastStartDateTime(): string
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            {
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             *
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            public function getLastEndDateTime(): string
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            {
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             * Get the Module name.
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                return $this->data['description'];
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             * @param mixed $value
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             */
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             * Is task disabled?
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             * @param int $status
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                return (int) ($this->data['lastend']);
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            {
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            public function getHandlerClass()
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             * get the Sequence.
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            public function isRunnable()
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                $elapsedTime = time() - $lastTime;
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            public function isDisabled()
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            }
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                return (new \DateTimeField(date('Y-m-d H:i:s', $this->data['laststart'])))->getDisplayDateTimeValue();
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            /**
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             * @return string
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                    return '';
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            /**
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            /**
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            public function getSequence()
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             */
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            }
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             */
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            public function isEnabled()
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             */
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                }
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            public function getTimeDiff()
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                return $this->data['module'];
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                return $elapsedTime >= ($this->getFrequency() - 60);
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            {
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             *
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             *
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            public function getLastEnd(): int
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            public static function nextSequence()
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                return \App\Db::getInstance()->getUniqueID(self::$baseTable, 'sequence', false);
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            }
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             *
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            }
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                return $this->getLastEnd() - $this->getLastStart();
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            }
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            /**
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             */
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                return $this->data['lockStatus'] ?? false;
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             * Check if task is right state for running.
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            }
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                return $this->statusEqual(self::$STATUS_RUNNING);
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             * Is task enabled?
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                return $this->statusEqual(self::$STATUS_ENABLED);
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             * @return string
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             */
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            /**
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                return $this->data['handler_class'];
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            public function statusEqual($value)
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            /**
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            }
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            /**
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                    self::$baseTable,
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            /**
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                $time = time();
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                if (isset(self::$instanceCache["$name"])) {
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                }
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            }
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            }
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            {
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             *
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            /**
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            public static function deregister($name)
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            {
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                $query = (new \App\Db\Query())->select(['id', 'name'])->from(self::$baseTable)->where(['<>', 'status', self::$STATUS_DISABLED])->orderBy(['sequence' => SORT_ASC]);
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                $dataReader = $query->createCommand()->query();
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            public function updateStatus($status)
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            {
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                        throw new \App\Exceptions\AppException('Invalid status');
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             * @param int $frequency
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

        Line exceeds 120 characters; contains 140 characters
        Open

                \App\Db::getInstance()->createCommand()->update(self::$baseTable, ['frequency' => $frequency], ['id' => $this->getId()])->execute();
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             * Mark this instance as running.
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                \App\Db::getInstance()->createCommand()->update(
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            }
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                $conditions = ['lastend' => $time, 'last_update' => $time, 'lase_error' => ''];
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                $time = $this->getLastUpdate();
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                    || (!empty($this->data['max_exe_time']) && time() >= (($this->data['max_exe_time'] * 60) + $time));
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                if (empty($sequence)) {
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                $db->createCommand()->insert(self::$baseTable, [
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                    'module' => $module,
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             * Get instances that are active (not disabled).
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                        break;
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            public function markFinished(): self
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                $this->set('last_update', $time);
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                return $this->set('lastend', $time);
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                    $time = $this->getLastEnd();
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            /**
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             */
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             * @param string $name
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             *
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            public function getLastUpdate(): int
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             * @return int
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            /**
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            }
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                    case self::$STATUS_DISABLED:
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                }
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             */
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            public function markRunning(): self
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             * Update cron task last action time.
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             * @return self
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             */
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

        Line exceeds 120 characters; contains 137 characters
        Open

                \App\Db::getInstance()->createCommand()->update(self::$baseTable, ['last_update' => $time], ['id' => $this->getId()])->execute();
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                if (0 == $time) {
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             * Check cron task timeout.
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             * @param string $module
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             * @param int    $status
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             * @param int    $sequence
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            public static function register($name, $handlerClass, $frequency, $module = 'Home', $status = 1, $sequence = 0, $description = '')
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                $db = \App\Db::getInstance();
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                    'name' => $name,
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                    'handler_class' => $handlerClass,
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             * @param string $name
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            /**
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             */
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                    case self::$STATUS_ENABLED:
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

        Line exceeds 120 characters; contains 134 characters
        Open

                \App\Db::getInstance()->createCommand()->update(self::$baseTable, ['status' => $status], ['id' => $this->getId()])->execute();
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                \App\Db::getInstance()->createCommand()->update(self::$baseTable, ['frequency' => $frequency], ['id' => $this->getId()])->execute();
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                    return false;
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            {
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                || (!empty($this->data['max_exe_time']) && $this->getLastStart() && time() >= (($this->data['max_exe_time'] * 60) + $this->getLastStart()));
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             * @param int    $frequency
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                    'status' => $status,
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            }
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             *
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                    unset(self::$instanceCache["$name"]);
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             * @return \self[]
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            {
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            {
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             */
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

        Line exceeds 120 characters; contains 124 characters
        Open

                \App\Db::getInstance()->createCommand()->update(self::$baseTable, $conditions, ['id' => $this->getId()])->execute();
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             */
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                }
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                    $time = $this->getLastStart();
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            }
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

        Line exceeds 120 characters; contains 134 characters
        Open

            public static function register($name, $handlerClass, $frequency, $module = 'Home', $status = 1, $sequence = 0, $description = '')
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            public static function listAllActiveInstances()
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             * Mark this instance as finished.
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            /**
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             *
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            /**
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             * De-register cron task.
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            /**
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             */
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             * @return self
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                return $this->set('last_update', $time);
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             */
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                \App\Db::getInstance()->createCommand()->delete(self::$baseTable, ['name' => $name])->execute();
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                \App\Db::getInstance()->createCommand()->update(self::$baseTable, ['status' => $status], ['id' => $this->getId()])->execute();
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             * Detect if the task was started by never finished.
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             * @return bool
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

        Line exceeds 120 characters; contains 148 characters
        Open

                || (!empty($this->data['max_exe_time']) && $this->getLastStart() && time() >= (($this->data['max_exe_time'] * 60) + $this->getLastStart()));
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            }
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                ])->execute();
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                switch ((int) $status) {
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             * Update frequency.
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             *
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            }
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             *
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             *
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             *
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            {
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             *
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                $time = time();
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            /**
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            {
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                \App\Db::getInstance()->createCommand()->update(self::$baseTable, $conditions, ['id' => $this->getId()])->execute();
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                \App\Db::getInstance()->createCommand()->update(self::$baseTable, ['last_update' => $time], ['id' => $this->getId()])->execute();
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             *
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                }
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             * @param string $handlerClass
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                    $sequence = static::nextSequence();
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                    'sequence' => $sequence,
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                    default:
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            public function updateFrequency($frequency)
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                )->execute();
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                    $conditions['status'] = self::$STATUS_ENABLED;
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            {
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                if (!$this->isRunning()) {
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             * @param string $description
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             */
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                    'description' => $description,
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                    case self::$STATUS_RUNNING:
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             * @return self
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                if (!$lock) {
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            public function updateLastActionTime(): self
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                }
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            {
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                    'frequency' => $frequency,
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

        Line exceeds 120 characters; contains 171 characters
        Open

                $query = (new \App\Db\Query())->select(['id', 'name'])->from(self::$baseTable)->where(['<>', 'status', self::$STATUS_DISABLED])->orderBy(['sequence' => SORT_ASC]);
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                return $this->set('laststart', $time);
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                }
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            public function hadTimeout(): bool
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                return (time() > ($time + \App\Cron::getMaxExecutionTime()))
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            public function checkTimeout(): bool
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             * Register cron task.
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                }
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            }
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                $instances = [];
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                    ['status' => self::$STATUS_RUNNING, 'laststart' => $time, 'last_update' => $time],
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                    ['id' => $this->getId()]
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                $lock = $this->getLockStatus();
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                $time = time();
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                if (0 == $time) {
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             * @return bool
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                return $this->cronInstance->checkCronTimeout()
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             *
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                    $instance = self::$instanceCache[$id];
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                while ($row = $dataReader->read()) {
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            {
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            public static function getInstance($name)
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             */
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                    $data = (new \App\Db\Query())->from(self::$baseTable)->where(['id' => $id])->one();
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                    if ($data) {
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             *
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                \App\Db::getInstance()->createCommand()->delete(self::$baseTable, ['module' => $moduleInstance->name])->execute();
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

        Line exceeds 120 characters; contains 122 characters
        Open

                \App\Db::getInstance()->createCommand()->delete(self::$baseTable, ['module' => $moduleInstance->name])->execute();
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                while ($row = $dataReader->read()) {
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             */
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            {
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                if (isset(self::$instanceCache["$name"])) {
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                    $instance = self::$instanceCache["$name"];
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                        $instance = new self($data);
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             *
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            }
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            /**
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            }
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             */
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                }
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             */
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            public static function isCronAction()
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                    if ($data) {
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            }
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            }
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            {
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            /**
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             * Function sets cron status.
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             * @param bool $status
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                $instance = false;
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                if (isset(self::$instanceCache[$id])) {
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                }
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

        Line exceeds 120 characters; contains 128 characters
        Open

                $dataReader = (new \App\Db\Query())->from(self::$baseTable)->where(['module' => $moduleName])->createCommand()->query();
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                \App\Db::getInstance()->createCommand()->update(self::$baseTable, ['lase_error' => $errorMessage], ['id' => $this->getId()])->execute();
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                return self::$cronAction;
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                    $data = (new \App\Db\Query())->from(self::$baseTable)->where(['name' => $name])->one();
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                if (false === $instance) {
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             * @return \self[]
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                $this->updateStatus(self::$STATUS_ENABLED);
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             *
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                if (is_dir("modules/{$moduleInstance->name}/crons")) {
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                self::$cronAction = $status;
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                }
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             *
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                    }
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                $dataReader = (new \App\Db\Query())->from(self::$baseTable)->where(['module' => $moduleName])->createCommand()->query();
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             * Function to refresh information about task.
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            {
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            public function setError(string $errorMessage): void
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             * Function checks cron status.
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             * @return \self
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             * @param string $moduleName
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             *
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                if ($data) {
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                return $this;
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            {
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                }
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                }
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            {
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            }
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             */
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             * Delete all cron tasks associated with module.
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             * @param ModuleBasic $moduleInstance
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             * @return \self
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                return $instance;
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             * @param int $id
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                        $instance = new self($data);
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                    $instances[] = new self($row);
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                }
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            }
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            public static function deleteForModule(ModuleBasic $moduleInstance)
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            }
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            /**
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             */
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                $instance = false;
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                if (false === $instance) {
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                    }
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                }
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            {
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            {
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                $data = (new \App\Db\Query())->from(self::$baseTable)->where(['id' => $this->getId()])->one();
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            /**
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             * Set error message.
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             *
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            /**
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                    $instances[] = new self($row);
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                return $instances;
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             * Get instance of cron job by id.
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                return $instances;
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            public function unlockTask()
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             * @return void
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                    Functions::recurseDelete("modules/{$moduleInstance->name}/crons");
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             * Get instance of cron task.
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             * @param string $name
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            public static function getInstanceById($id)
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                return $instance;
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             */
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                $instances = [];
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            public function refreshData()
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                    $this->data = $data;
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

        Line exceeds 120 characters; contains 144 characters
        Open

                \App\Db::getInstance()->createCommand()->update(self::$baseTable, ['lase_error' => $errorMessage], ['id' => $this->getId()])->execute();
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             *
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            {
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            }
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             *
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            }
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             *
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            /**
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             * Get instance of cron.
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            public static function listAllInstancesByModule($moduleName)
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             */
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            /**
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            public static function setCronAction($status)
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            /**
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             * @return bool
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

                }
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             * @param string $errorMessage
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

             *
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

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

            }
        Severity: Minor
        Found in vtlib/Vtiger/Cron.php by phpcodesniffer

        There are no issues that match your filters.

        Category
        Status