YetiForceCompany/YetiForceCRM

View on GitHub
tests/Base/G_Cron.php

Summary

Maintainability
A
1 hr
Test Coverage
A
100%

setUpBeforeClass accesses the super-global variable $_SERVER.
Open

    public static function setUpBeforeClass(): void
    {
        if (!empty($_SERVER['YETI_MAIL_PASS'])) {
            $db = \App\Db::getInstance();
            $db->createCommand()
Severity: Minor
Found in tests/Base/G_Cron.php by phpmd

Superglobals

Since: 0.2

Accessing a super-global variable directly is considered a bad practice. These variables should be encapsulated in objects that are provided by a framework, for instance.

Example

class Foo {
    public function bar() {
        $name = $_POST['foo'];
    }
}

Source

setUpBeforeClass accesses the super-global variable $_SERVER.
Open

    public static function setUpBeforeClass(): void
    {
        if (!empty($_SERVER['YETI_MAIL_PASS'])) {
            $db = \App\Db::getInstance();
            $db->createCommand()
Severity: Minor
Found in tests/Base/G_Cron.php by phpmd

Superglobals

Since: 0.2

Accessing a super-global variable directly is considered a bad practice. These variables should be encapsulated in objects that are provided by a framework, for instance.

Example

class Foo {
    public function bar() {
        $name = $_POST['foo'];
    }
}

Source

Method setUpBeforeClass has 33 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public static function setUpBeforeClass(): void
    {
        if (!empty($_SERVER['YETI_MAIL_PASS'])) {
            $db = \App\Db::getInstance();
            $db->createCommand()
Severity: Minor
Found in tests/Base/G_Cron.php - About 1 hr to fix

    Missing class import via use statement (line '46', column '16').
    Open

                $row = (new \App\Db\Query())
    Severity: Minor
    Found in tests/Base/G_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 '76', column '27').
    Open

            $this->assertFalse((new \App\Db\Query())->from('vtiger_cron_task')->where(['status' => 2])->exists());
    Severity: Minor
    Found in tests/Base/G_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 '70', column '16').
    Open

            $rows = (new \App\Db\Query())->select(['modue' => 'setype', 'rows' => 'count(*)'])->from('vtiger_crmentity')->groupBy('setype')->orderBy(['rows' => SORT_DESC])->all();
    Severity: Minor
    Found in tests/Base/G_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 'test'.
    Open

            \App\Cron::updateStatus(\App\Cron::STATUS_DISABLED, 'LBL_UPDATER_COORDINATES');
    Severity: Minor
    Found in tests/Base/G_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\Cron' in method 'test'.
    Open

            \App\Cron::updateStatus(\App\Cron::STATUS_DISABLED, 'LBL_MAIL_SCANNER_ACTION');
    Severity: Minor
    Found in tests/Base/G_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 '\Settings_CronTasks_Module_Model' in method 'testGetLastCronStart'.
    Open

            $module = \Settings_CronTasks_Module_Model::getInstance('Settings:CronTasks');
    Severity: Minor
    Found in tests/Base/G_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 'setUpBeforeClass'.
    Open

                $db = \App\Db::getInstance();
    Severity: Minor
    Found in tests/Base/G_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\Cron' in method 'test'.
    Open

            \App\Cron::updateStatus(\App\Cron::STATUS_DISABLED, 'LBK_SYSTEM_WARNINGS');
    Severity: Minor
    Found in tests/Base/G_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\Cron' in method 'test'.
    Open

            \App\Cron::updateStatus(\App\Cron::STATUS_DISABLED, 'LBL_UPDATER_RECORDS_COORDINATES');
    Severity: Minor
    Found in tests/Base/G_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

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

                $db->createCommand()
    Severity: Critical
    Found in tests/Base/G_Cron.php by phan

    Call to undeclared method \Tests\Base\G_Cron::assertFalse
    Open

            $this->assertFalse((new \App\Db\Query())->from('vtiger_cron_task')->where(['status' => 2])->exists());
    Severity: Critical
    Found in tests/Base/G_Cron.php by phan

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

                $db->createCommand()
    Severity: Critical
    Found in tests/Base/G_Cron.php by phan

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

            $rows = (new \App\Db\Query())->select(['modue' => 'setype', 'rows' => 'count(*)'])->from('vtiger_crmentity')->groupBy('setype')->orderBy(['rows' => SORT_DESC])->all();
    Severity: Critical
    Found in tests/Base/G_Cron.php by phan

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

                    \App\Db::getInstance()->createCommand()->insert('vtiger_currency_info', $row)->execute();
    Severity: Critical
    Found in tests/Base/G_Cron.php by phan

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

            $this->assertFalse((new \App\Db\Query())->from('vtiger_cron_task')->where(['status' => 2])->exists());
    Severity: Critical
    Found in tests/Base/G_Cron.php by phan

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

                $row = (new \App\Db\Query())
    Severity: Critical
    Found in tests/Base/G_Cron.php by phan

    Call to undeclared method \Tests\Base\G_Cron::assertNotSame
    Open

            $this->assertNotSame(0, $module->getLastCronStart(), 'Last cron start is 0');
    Severity: Critical
    Found in tests/Base/G_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 tests/Base/G_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

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

            $c = '';
    Severity: Minor
    Found in tests/Base/G_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 class G_Cron is not named in CamelCase.
    Open

    class G_Cron extends \Tests\Base
    {
        /**
         * Prepare mail config for mail functionalities.
         *
    Severity: Minor
    Found in tests/Base/G_Cron.php by phpmd

    CamelCaseClassName

    Since: 0.2

    It is considered best practice to use the CamelCase notation to name classes.

    Example

    class class_name {
    }

    Source

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

        /**
    Severity: Minor
    Found in tests/Base/G_Cron.php by phpcodesniffer

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

                $db->createCommand()
    Severity: Minor
    Found in tests/Base/G_Cron.php by phpcodesniffer

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

                    ->insert('vtiger_ossmailscanner_folders_uid', [
    Severity: Minor
    Found in tests/Base/G_Cron.php by phpcodesniffer

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

        }
    Severity: Minor
    Found in tests/Base/G_Cron.php by phpcodesniffer

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

            \App\Cron::updateStatus(\App\Cron::STATUS_DISABLED, 'LBK_SYSTEM_WARNINGS');
    Severity: Minor
    Found in tests/Base/G_Cron.php by phpcodesniffer

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

        public function testGetLastCronStart(): void
    Severity: Minor
    Found in tests/Base/G_Cron.php by phpcodesniffer

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

                        'folder' => 'INBOX',
    Severity: Minor
    Found in tests/Base/G_Cron.php by phpcodesniffer

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

            foreach ($rows as $value) {
    Severity: Minor
    Found in tests/Base/G_Cron.php by phpcodesniffer

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

                    \App\Db::getInstance()->createCommand()->insert('vtiger_currency_info', $row)->execute();
    Severity: Minor
    Found in tests/Base/G_Cron.php by phpcodesniffer

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

        public function test(): void
    Severity: Minor
    Found in tests/Base/G_Cron.php by phpcodesniffer

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

        {
    Severity: Minor
    Found in tests/Base/G_Cron.php by phpcodesniffer

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

         * Prepare mail config for mail functionalities.
    Severity: Minor
    Found in tests/Base/G_Cron.php by phpcodesniffer

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

        public static function setUpBeforeClass(): void
    Severity: Minor
    Found in tests/Base/G_Cron.php by phpcodesniffer

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

                $db = \App\Db::getInstance();
    Severity: Minor
    Found in tests/Base/G_Cron.php by phpcodesniffer

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

                        'password' => $_SERVER['YETI_MAIL_PASS'],
    Severity: Minor
    Found in tests/Base/G_Cron.php by phpcodesniffer

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

                    ->where(['vtiger_currencies.currency_code' => $value, 'vtiger_currency_info.currency_code' => null])->one();
    Severity: Minor
    Found in tests/Base/G_Cron.php by phpcodesniffer

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

            $module = \Settings_CronTasks_Module_Model::getInstance('Settings:CronTasks');
    Severity: Minor
    Found in tests/Base/G_Cron.php by phpcodesniffer

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

            }
    Severity: Minor
    Found in tests/Base/G_Cron.php by phpcodesniffer

    Line exceeds 120 characters; contains 122 characters
    Open

                    ->leftJoin('vtiger_currency_info', 'vtiger_currencies.currency_code = vtiger_currency_info.currency_code')
    Severity: Minor
    Found in tests/Base/G_Cron.php by phpcodesniffer

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

        /**
    Severity: Minor
    Found in tests/Base/G_Cron.php by phpcodesniffer

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

            $this->assertFalse((new \App\Db\Query())->from('vtiger_cron_task')->where(['status' => 2])->exists());
    Severity: Minor
    Found in tests/Base/G_Cron.php by phpcodesniffer

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

                    unset($row['currencyid']);
    Severity: Minor
    Found in tests/Base/G_Cron.php by phpcodesniffer

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

         *
    Severity: Minor
    Found in tests/Base/G_Cron.php by phpcodesniffer

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

         * @codeCoverageIgnore
    Severity: Minor
    Found in tests/Base/G_Cron.php by phpcodesniffer

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

                        'language' => 'en_US',
    Severity: Minor
    Found in tests/Base/G_Cron.php by phpcodesniffer

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

            foreach (['EUR', 'USD', 'GBP', 'CNY'] as $value) {
    Severity: Minor
    Found in tests/Base/G_Cron.php by phpcodesniffer

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

            }
    Severity: Minor
    Found in tests/Base/G_Cron.php by phpcodesniffer

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

        {
    Severity: Minor
    Found in tests/Base/G_Cron.php by phpcodesniffer

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

            \file_put_contents(ROOT_DIRECTORY . '/tests/records.log', $c . PHP_EOL, FILE_APPEND);
    Severity: Minor
    Found in tests/Base/G_Cron.php by phpcodesniffer

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

                        'user_id' => '1',
    Severity: Minor
    Found in tests/Base/G_Cron.php by phpcodesniffer

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

                    $row['conversion_rate'] = 1;
    Severity: Minor
    Found in tests/Base/G_Cron.php by phpcodesniffer

    Line exceeds 120 characters; contains 175 characters
    Open

            $rows = (new \App\Db\Query())->select(['modue' => 'setype', 'rows' => 'count(*)'])->from('vtiger_crmentity')->groupBy('setype')->orderBy(['rows' => SORT_DESC])->all();
    Severity: Minor
    Found in tests/Base/G_Cron.php by phpcodesniffer

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

        {
    Severity: Minor
    Found in tests/Base/G_Cron.php by phpcodesniffer

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

                        'actions' => 'CreatedEmail,CreatedHelpDesk,BindAccounts,BindContacts,BindLeads,BindHelpDesk,BindSSalesProcesses,BindCampaigns,BindCompetition,BindOSSEmployees,BindPartners,BindProject,BindServiceContracts,BindVendors',
    Severity: Minor
    Found in tests/Base/G_Cron.php by phpcodesniffer

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

         * Cron testing.
    Severity: Minor
    Found in tests/Base/G_Cron.php by phpcodesniffer

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

         */
    Severity: Minor
    Found in tests/Base/G_Cron.php by phpcodesniffer

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

                $db->createCommand()
    Severity: Minor
    Found in tests/Base/G_Cron.php by phpcodesniffer

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

                    ])->execute();
    Severity: Minor
    Found in tests/Base/G_Cron.php by phpcodesniffer

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

                    ])->execute();
    Severity: Minor
    Found in tests/Base/G_Cron.php by phpcodesniffer

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

                $row = (new \App\Db\Query())
    Severity: Minor
    Found in tests/Base/G_Cron.php by phpcodesniffer

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

                    ->from('vtiger_currencies')
    Severity: Minor
    Found in tests/Base/G_Cron.php by phpcodesniffer

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

                    ->leftJoin('vtiger_currency_info', 'vtiger_currencies.currency_code = vtiger_currency_info.currency_code')
    Severity: Minor
    Found in tests/Base/G_Cron.php by phpcodesniffer

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

                if ($row) {
    Severity: Minor
    Found in tests/Base/G_Cron.php by phpcodesniffer

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

         * Testing last cron start getter.
    Severity: Minor
    Found in tests/Base/G_Cron.php by phpcodesniffer

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

            \App\Cron::updateStatus(\App\Cron::STATUS_DISABLED, 'LBL_MAIL_SCANNER_ACTION');
    Severity: Minor
    Found in tests/Base/G_Cron.php by phpcodesniffer

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

            $c = '';
    Severity: Minor
    Found in tests/Base/G_Cron.php by phpcodesniffer

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

        }
    Severity: Minor
    Found in tests/Base/G_Cron.php by phpcodesniffer

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

                        'uid' => '0',
    Severity: Minor
    Found in tests/Base/G_Cron.php by phpcodesniffer

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

            \App\Cron::updateStatus(\App\Cron::STATUS_DISABLED, 'LBL_UPDATER_COORDINATES');
    Severity: Minor
    Found in tests/Base/G_Cron.php by phpcodesniffer

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

            $rows = (new \App\Db\Query())->select(['modue' => 'setype', 'rows' => 'count(*)'])->from('vtiger_crmentity')->groupBy('setype')->orderBy(['rows' => SORT_DESC])->all();
    Severity: Minor
    Found in tests/Base/G_Cron.php by phpcodesniffer

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

         */
    Severity: Minor
    Found in tests/Base/G_Cron.php by phpcodesniffer

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

        }
    Severity: Minor
    Found in tests/Base/G_Cron.php by phpcodesniffer

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

         */
    Severity: Minor
    Found in tests/Base/G_Cron.php by phpcodesniffer

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

        /**
    Severity: Minor
    Found in tests/Base/G_Cron.php by phpcodesniffer

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

                        'mail_host' => 'imap.mail.yahoo.com',
    Severity: Minor
    Found in tests/Base/G_Cron.php by phpcodesniffer

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

                        'crm_user_id' => '1',
    Severity: Minor
    Found in tests/Base/G_Cron.php by phpcodesniffer

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

                    ->select(['vtiger_currencies.*'])
    Severity: Minor
    Found in tests/Base/G_Cron.php by phpcodesniffer

    Line exceeds 120 characters; contains 124 characters
    Open

                    ->where(['vtiger_currencies.currency_code' => $value, 'vtiger_currency_info.currency_code' => null])->one();
    Severity: Minor
    Found in tests/Base/G_Cron.php by phpcodesniffer

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

            if (!empty($_SERVER['YETI_MAIL_PASS'])) {
    Severity: Minor
    Found in tests/Base/G_Cron.php by phpcodesniffer

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

                    ->insert('roundcube_users', [
    Severity: Minor
    Found in tests/Base/G_Cron.php by phpcodesniffer

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

                        'preferences' => '',
    Severity: Minor
    Found in tests/Base/G_Cron.php by phpcodesniffer

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

                }
    Severity: Minor
    Found in tests/Base/G_Cron.php by phpcodesniffer

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

            \App\Cron::updateStatus(\App\Cron::STATUS_DISABLED, 'LBL_UPDATER_RECORDS_COORDINATES');
    Severity: Minor
    Found in tests/Base/G_Cron.php by phpcodesniffer

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

            }
    Severity: Minor
    Found in tests/Base/G_Cron.php by phpcodesniffer

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

                        'username' => 'yetiforcetests@yahoo.com',
    Severity: Minor
    Found in tests/Base/G_Cron.php by phpcodesniffer

    Line exceeds 120 characters; contains 238 characters
    Open

                        'actions' => 'CreatedEmail,CreatedHelpDesk,BindAccounts,BindContacts,BindLeads,BindHelpDesk,BindSSalesProcesses,BindCampaigns,BindCompetition,BindOSSEmployees,BindPartners,BindProject,BindServiceContracts,BindVendors',
    Severity: Minor
    Found in tests/Base/G_Cron.php by phpcodesniffer

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

                        'type' => 'Received',
    Severity: Minor
    Found in tests/Base/G_Cron.php by phpcodesniffer

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

                    $row['currency_status'] = 'Active';
    Severity: Minor
    Found in tests/Base/G_Cron.php by phpcodesniffer

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

            require_once 'cron.php';
    Severity: Minor
    Found in tests/Base/G_Cron.php by phpcodesniffer

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

                $c .= "{$value['modue']} = {$value['rows']}, | ";
    Severity: Minor
    Found in tests/Base/G_Cron.php by phpcodesniffer

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

            $this->assertNotSame(0, $module->getLastCronStart(), 'Last cron start is 0');
    Severity: Minor
    Found in tests/Base/G_Cron.php by phpcodesniffer

    Class name "G_Cron" is not in camel caps format
    Open

    class G_Cron extends \Tests\Base
    Severity: Minor
    Found in tests/Base/G_Cron.php by phpcodesniffer

    There are no issues that match your filters.

    Category
    Status