YetiForceCompany/YetiForceCRM

View on GitHub
tests/Base/E_TestModule.php

Summary

Maintainability
A
1 hr
Test Coverage
F
0%

setUp accesses the super-global variable $_SERVER.
Open

    protected function setUp(): void
    {
        if (\file_exists(self::$testDataPath)) {
            $this->fileUrl = self::$testDataPath;
        } elseif (!empty($_SERVER['YETI_TEST_MODULE_KEY'])) {
Severity: Minor
Found in tests/Base/E_TestModule.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

setUp accesses the super-global variable $_SERVER.
Open

    protected function setUp(): void
    {
        if (\file_exists(self::$testDataPath)) {
            $this->fileUrl = self::$testDataPath;
        } elseif (!empty($_SERVER['YETI_TEST_MODULE_KEY'])) {
Severity: Minor
Found in tests/Base/E_TestModule.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

Function setUp has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
Open

    protected function setUp(): void
    {
        if (\file_exists(self::$testDataPath)) {
            $this->fileUrl = self::$testDataPath;
        } elseif (!empty($_SERVER['YETI_TEST_MODULE_KEY'])) {
Severity: Minor
Found in tests/Base/E_TestModule.php - About 1 hr to fix

Cognitive Complexity

Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

A method's cognitive complexity is based on a few simple rules:

  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
  • Code is considered more complex for each "break in the linear flow of the code"
  • Code is considered more complex when "flow breaking structures are nested"

Further reading

Missing class import via use statement (line '59', column '11').
Open

                    (new \GuzzleHttp\Client(\App\RequestHttp::getOptions()))->request('GET', self::$testDataUrl . $_SERVER['YETI_TEST_MODULE_KEY'], ['sink' => $path]);
Severity: Minor
Found in tests/Base/E_TestModule.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 '87', column '27').
Open

            $this->assertTrue((new \App\Db\Query())->from('vtiger_tab')->where(['name' => 'TestData'])->exists(), 'TestData instalation failed.');
Severity: Minor
Found in tests/Base/E_TestModule.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 '86', column '9').
Open

            (new \vtlib\Package())->import(self::$testModuleFile);
Severity: Minor
Found in tests/Base/E_TestModule.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\RequestUtil' in method 'setUp'.
Open

            if (\App\RequestUtil::isNetConnection()) {
Severity: Minor
Found in tests/Base/E_TestModule.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

The method setUp uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

        } else {
            self::$skipTest = 'TestData package not available, no sample data to install.';
        }
Severity: Minor
Found in tests/Base/E_TestModule.php by phpmd

ElseExpression

Since: 1.4.0

An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

Example

class Foo
{
    public function bar($flag)
    {
        if ($flag) {
            // one branch
        } else {
            // another branch
        }
    }
}

Source https://phpmd.org/rules/cleancode.html#elseexpression

The method setUp uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

                } else {
                    self::$skipTest = 'TestData package not available - bad response from remote server, no sample data to install.';
                }
Severity: Minor
Found in tests/Base/E_TestModule.php by phpmd

ElseExpression

Since: 1.4.0

An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

Example

class Foo
{
    public function bar($flag)
    {
        if ($flag) {
            // one branch
        } else {
            // another branch
        }
    }
}

Source https://phpmd.org/rules/cleancode.html#elseexpression

The method setUp uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

            } else {
                self::$skipTest = 'TestData package not available - no internet connection, no sample data to install.';
            }
Severity: Minor
Found in tests/Base/E_TestModule.php by phpmd

ElseExpression

Since: 1.4.0

An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

Example

class Foo
{
    public function bar($flag)
    {
        if ($flag) {
            // one branch
        } else {
            // another branch
        }
    }
}

Source https://phpmd.org/rules/cleancode.html#elseexpression

Avoid using static access to class '\App\Db' in method 'testInstallSampleData'.
Open

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

                    (new \GuzzleHttp\Client(\App\RequestHttp::getOptions()))->request('GET', self::$testDataUrl . $_SERVER['YETI_TEST_MODULE_KEY'], ['sink' => $path]);
Severity: Minor
Found in tests/Base/E_TestModule.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 empty try-catch blocks in setUp.
Open

                } catch (\Exception $e) {
                }
Severity: Minor
Found in tests/Base/E_TestModule.php by phpmd

EmptyCatchBlock

Since: 2.7.0

Usually empty try-catch is a bad idea because you are silently swallowing an error condition and then continuing execution. Occasionally this may be the right thing to do, but often it's a sign that a developer saw an exception, didn't know what to do about it, and so used an empty catch to silence the problem.

Example

class Foo {

  public function bar()
  {
      try {
          // ...
      } catch (Exception $e) {} // empty catch block
  }
}

Source https://phpmd.org/rules/design.html#emptycatchblock

Call to method __construct from undeclared class \GuzzleHttp\Client
Open

                    (new \GuzzleHttp\Client(\App\RequestHttp::getOptions()))->request('GET', self::$testDataUrl . $_SERVER['YETI_TEST_MODULE_KEY'], ['sink' => $path]);
Severity: Critical
Found in tests/Base/E_TestModule.php by phan

Call to undeclared method \Tests\Base\E_TestModule::assertTrue
Open

            $this->assertTrue((new \App\Db\Query())->from('vtiger_tab')->where(['name' => 'TestData'])->exists(), 'TestData instalation failed.');
Severity: Critical
Found in tests/Base/E_TestModule.php by phan

Call to undeclared method \Tests\Base\E_TestModule::markTestSkipped
Open

            $this->markTestSkipped(self::$skipTest);
Severity: Critical
Found in tests/Base/E_TestModule.php by phan

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

            $this->assertTrue((new \App\Db\Query())->from('vtiger_tab')->where(['name' => 'TestData'])->exists(), 'TestData instalation failed.');
Severity: Critical
Found in tests/Base/E_TestModule.php by phan

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

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

Call to method request from undeclared class \GuzzleHttp\Client
Open

                    (new \GuzzleHttp\Client(\App\RequestHttp::getOptions()))->request('GET', self::$testDataUrl . $_SERVER['YETI_TEST_MODULE_KEY'], ['sink' => $path]);
Severity: Critical
Found in tests/Base/E_TestModule.php by phan

Either remove or fill this block of code.
Open

                } catch (\Exception $e) {
                }
Severity: Major
Found in tests/Base/E_TestModule.php by sonar-php

Most of the time a block of code is empty when a piece of code is really missing. So such empty block must be either filled or removed.

Noncompliant Code Example

for ($i = 0; $i < 42; $i++){}  // Empty on purpose or missing piece of code ?

Exceptions

When a block contains a comment, this block is not considered to be empty.

The class E_TestModule is not named in CamelCase.
Open

class E_TestModule extends \Tests\Base
{
    /**
     * TestData package at yetiforce.com url prefix.
     *
Severity: Minor
Found in tests/Base/E_TestModule.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

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

            $db = \App\Db::getInstance();
Severity: Minor
Found in tests/Base/E_TestModule.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

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

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

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

     * @var bool|string Skip test flag and message
Severity: Minor
Found in tests/Base/E_TestModule.php by phpcodesniffer

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

     * @var string
Severity: Minor
Found in tests/Base/E_TestModule.php by phpcodesniffer

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

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

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

    public $fileUrl = '';
Severity: Minor
Found in tests/Base/E_TestModule.php by phpcodesniffer

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

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

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

    public static $skipTest = false;
Severity: Minor
Found in tests/Base/E_TestModule.php by phpcodesniffer

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

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

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

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

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

        } catch (\Exception $exc) {
Severity: Minor
Found in tests/Base/E_TestModule.php by phpcodesniffer

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

    public static $testDataUrl = 'https://tests.yetiforce.com/';
Severity: Minor
Found in tests/Base/E_TestModule.php by phpcodesniffer

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

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

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

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

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

            } else {
Severity: Minor
Found in tests/Base/E_TestModule.php by phpcodesniffer

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

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

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

     * Detect if is possible to install sample data.
Severity: Minor
Found in tests/Base/E_TestModule.php by phpcodesniffer

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

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

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

            if (\App\RequestUtil::isNetConnection()) {
Severity: Minor
Found in tests/Base/E_TestModule.php by phpcodesniffer

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

        } else {
Severity: Minor
Found in tests/Base/E_TestModule.php by phpcodesniffer

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

            $this->fileUrl = self::$testDataPath;
Severity: Minor
Found in tests/Base/E_TestModule.php by phpcodesniffer

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

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

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

            self::$skipTest = 'TestData package not available, no sample data to install.';
Severity: Minor
Found in tests/Base/E_TestModule.php by phpcodesniffer

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

     * TestData package at yetiforce.com url prefix.
Severity: Minor
Found in tests/Base/E_TestModule.php by phpcodesniffer

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

    public static $testDataPath = './public_html/_private/TestData.zip';
Severity: Minor
Found in tests/Base/E_TestModule.php by phpcodesniffer

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

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

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

     * @var string File url
Severity: Minor
Found in tests/Base/E_TestModule.php by phpcodesniffer

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

                    (new \GuzzleHttp\Client(\App\RequestHttp::getOptions()))->request('GET', self::$testDataUrl . $_SERVER['YETI_TEST_MODULE_KEY'], ['sink' => $path]);
Severity: Minor
Found in tests/Base/E_TestModule.php by phpcodesniffer

Line exceeds 120 characters; contains 167 characters
Open

                    (new \GuzzleHttp\Client(\App\RequestHttp::getOptions()))->request('GET', self::$testDataUrl . $_SERVER['YETI_TEST_MODULE_KEY'], ['sink' => $path]);
Severity: Minor
Found in tests/Base/E_TestModule.php by phpcodesniffer

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

                    $this->fileUrl = $path;
Severity: Minor
Found in tests/Base/E_TestModule.php by phpcodesniffer

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

                self::$skipTest = 'TestData package not available - no internet connection, no sample data to install.';
Severity: Minor
Found in tests/Base/E_TestModule.php by phpcodesniffer

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

            $this->markTestSkipped(self::$skipTest);
Severity: Minor
Found in tests/Base/E_TestModule.php by phpcodesniffer

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

     * @var string Test module package file name
Severity: Minor
Found in tests/Base/E_TestModule.php by phpcodesniffer

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

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

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

            \copy($this->fileUrl, self::$testModuleFile);
Severity: Minor
Found in tests/Base/E_TestModule.php by phpcodesniffer

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

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

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

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

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

                } else {
Severity: Minor
Found in tests/Base/E_TestModule.php by phpcodesniffer

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

            $this->assertTrue((new \App\Db\Query())->from('vtiger_tab')->where(['name' => 'TestData'])->exists(), 'TestData instalation failed.');
Severity: Minor
Found in tests/Base/E_TestModule.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/E_TestModule.php by phpcodesniffer

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

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

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

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

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

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

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

        } elseif (!empty($_SERVER['YETI_TEST_MODULE_KEY'])) {
Severity: Minor
Found in tests/Base/E_TestModule.php by phpcodesniffer

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

            (new \vtlib\Package())->import(self::$testModuleFile);
Severity: Minor
Found in tests/Base/E_TestModule.php by phpcodesniffer

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

                ], ['name' => 'TestData'])
Severity: Minor
Found in tests/Base/E_TestModule.php by phpcodesniffer

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

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

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

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

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

                if (file_exists($path)) {
Severity: Minor
Found in tests/Base/E_TestModule.php by phpcodesniffer

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

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

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

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

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

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

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

            echo 'TestData instalation failed' . PHP_EOL . $exc->__toString();
Severity: Minor
Found in tests/Base/E_TestModule.php by phpcodesniffer

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

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

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

    public static $testModuleFile = 'TestModule.zip';
Severity: Minor
Found in tests/Base/E_TestModule.php by phpcodesniffer

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

        if (\file_exists(self::$testDataPath)) {
Severity: Minor
Found in tests/Base/E_TestModule.php by phpcodesniffer

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

                $path = sys_get_temp_dir() . \DIRECTORY_SEPARATOR . self::$testModuleFile;
Severity: Minor
Found in tests/Base/E_TestModule.php by phpcodesniffer

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

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

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

     * Testing the installation of the sample data module.
Severity: Minor
Found in tests/Base/E_TestModule.php by phpcodesniffer

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

            return;
Severity: Minor
Found in tests/Base/E_TestModule.php by phpcodesniffer

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

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

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

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

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

                } catch (\Exception $e) {
Severity: Minor
Found in tests/Base/E_TestModule.php by phpcodesniffer

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

                    self::$skipTest = 'TestData package not available - bad response from remote server, no sample data to install.';
Severity: Minor
Found in tests/Base/E_TestModule.php by phpcodesniffer

Line exceeds 120 characters; contains 133 characters
Open

                    self::$skipTest = 'TestData package not available - bad response from remote server, no sample data to install.';
Severity: Minor
Found in tests/Base/E_TestModule.php by phpcodesniffer

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

        if (self::$skipTest) {
Severity: Minor
Found in tests/Base/E_TestModule.php by phpcodesniffer

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

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

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

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

Line exceeds 120 characters; contains 146 characters
Open

            $this->assertTrue((new \App\Db\Query())->from('vtiger_tab')->where(['name' => 'TestData'])->exists(), 'TestData instalation failed.');
Severity: Minor
Found in tests/Base/E_TestModule.php by phpcodesniffer

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

                ->update('vtiger_cron_task', [
Severity: Minor
Found in tests/Base/E_TestModule.php by phpcodesniffer

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

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

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

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

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

     * @var string TestData package path in _private directory
Severity: Minor
Found in tests/Base/E_TestModule.php by phpcodesniffer

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

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

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

    protected function setUp(): void
Severity: Minor
Found in tests/Base/E_TestModule.php by phpcodesniffer

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

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

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

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

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

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

There are no issues that match your filters.

Category
Status