YetiForceCompany/YetiForceCRM

View on GitHub
tests/Coverage.php

Summary

Maintainability
A
1 hr
Test Coverage

getInstance accesses the super-global variable $_SERVER.
Open

    public static function getInstance(): self
    {
        if (!isset(self::$self)) {
            \SebastianBergmann\CodeCoverage\Util\Filesystem::createDirectory(ROOT_DIRECTORY . '/tests/coverages/');
            self::log(($_SERVER['REQUEST_METHOD'] ?? '') . ':' . ($_SERVER['REQUEST_URI'] ?? ''), true);
Severity: Minor
Found in tests/Coverage.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

getInstance accesses the super-global variable $_SERVER.
Open

    public static function getInstance(): self
    {
        if (!isset(self::$self)) {
            \SebastianBergmann\CodeCoverage\Util\Filesystem::createDirectory(ROOT_DIRECTORY . '/tests/coverages/');
            self::log(($_SERVER['REQUEST_METHOD'] ?? '') . ':' . ($_SERVER['REQUEST_URI'] ?? ''), true);
Severity: Minor
Found in tests/Coverage.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

getInstance accesses the super-global variable $_SERVER.
Open

    public static function getInstance(): self
    {
        if (!isset(self::$self)) {
            \SebastianBergmann\CodeCoverage\Util\Filesystem::createDirectory(ROOT_DIRECTORY . '/tests/coverages/');
            self::log(($_SERVER['REQUEST_METHOD'] ?? '') . ':' . ($_SERVER['REQUEST_URI'] ?? ''), true);
Severity: Minor
Found in tests/Coverage.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

getInstance accesses the super-global variable $_SERVER.
Open

    public static function getInstance(): self
    {
        if (!isset(self::$self)) {
            \SebastianBergmann\CodeCoverage\Util\Filesystem::createDirectory(ROOT_DIRECTORY . '/tests/coverages/');
            self::log(($_SERVER['REQUEST_METHOD'] ?? '') . ':' . ($_SERVER['REQUEST_URI'] ?? ''), true);
Severity: Minor
Found in tests/Coverage.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 getFilter has 38 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function getFilter(): \SebastianBergmann\CodeCoverage\Filter
    {
        if (!isset($this->filter)) {
            $filter = new \SebastianBergmann\CodeCoverage\Filter();
            $filter->includeDirectory(ROOT_DIRECTORY . '/api');
Severity: Minor
Found in tests/Coverage.php - About 1 hr to fix

    Missing class import via use statement (line '162', column '18').
    Open

                $writer = new \SebastianBergmann\CodeCoverage\Report\Clover();
    Severity: Minor
    Found in tests/Coverage.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

    The method log has a boolean flag argument $first, which is a certain sign of a Single Responsibility Principle violation.
    Open

        public static function log(string $text, bool $first = false): void
    Severity: Minor
    Found in tests/Coverage.php by phpmd

    BooleanArgumentFlag

    Since: 1.4.0

    A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

    Example

    class Foo {
        public function bar($flag = true) {
        }
    }

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

    Missing class import via use statement (line '131', column '18').
    Open

                $writer = new \SebastianBergmann\CodeCoverage\Report\PHP();
    Severity: Minor
    Found in tests/Coverage.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 '18').
    Open

                $filter = new \SebastianBergmann\CodeCoverage\Filter();
    Severity: Minor
    Found in tests/Coverage.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 '54', column '25').
    Open

                $self->driver = (new \SebastianBergmann\CodeCoverage\Driver\Selector())->forLineCoverage($filter);
    Severity: Minor
    Found in tests/Coverage.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 '56', column '26').
    Open

                $self->coverage = new \SebastianBergmann\CodeCoverage\CodeCoverage($self->driver, $filter);
    Severity: Minor
    Found in tests/Coverage.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 '\SebastianBergmann\CodeCoverage\Util\Filesystem' in method 'getInstance'.
    Open

                \SebastianBergmann\CodeCoverage\Util\Filesystem::createDirectory(ROOT_DIRECTORY . '/tests/coverages/');
    Severity: Minor
    Found in tests/Coverage.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\Encryption' in method 'getInstance'.
    Open

                $self->name = date('H_i_s') . '_' . md5($_SERVER['REQUEST_URI'] ?? $_SERVER['REQUEST_TIME_FLOAT']) . '_' . \App\Encryption::generatePassword(10);
    Severity: Minor
    Found in tests/Coverage.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

    Rename "$filter" which has the same name as the field declared at line 31.
    Open

                $filter = new \SebastianBergmann\CodeCoverage\Filter();
    Severity: Major
    Found in tests/Coverage.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

    Rename "$startTime" which has the same name as the field declared at line 22.
    Open

                $startTime = microtime(true);
    Severity: Major
    Found in tests/Coverage.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

    Remove this commented out code.
    Open

                // $startTime = microtime(true);
    Severity: Major
    Found in tests/Coverage.php by sonar-php

    Programmers should not comment out code as it bloats programs and reduces readability.

    Unused code should be deleted and can be retrieved from source control history if required.

    See

    • MISRA C:2004, 2.4 - Sections of code should not be "commented out".
    • MISRA C++:2008, 2-7-2 - Sections of code shall not be "commented out" using C-style comments.
    • MISRA C++:2008, 2-7-3 - Sections of code should not be "commented out" using C++ comments.
    • MISRA C:2012, Dir. 4.4 - Sections of code should not be "commented out"

    Property \Tests\Coverage->filter has undeclared type \SebastianBergmann\CodeCoverage\Filter (Did you mean class \vtlib\Filter)
    Open

        private $filter;
    Severity: Minor
    Found in tests/Coverage.php by phan

    Call to method includeDirectory from undeclared class \SebastianBergmann\CodeCoverage\Filter (Did you mean class \vtlib\Filter)
    Open

                $filter->includeDirectory(ROOT_DIRECTORY . '/public_html/modules/MailIntegration/');
    Severity: Critical
    Found in tests/Coverage.php by phan

    Call to method excludeDirectory from undeclared class \SebastianBergmann\CodeCoverage\Filter (Did you mean class \vtlib\Filter)
    Open

                $filter->excludeDirectory(ROOT_DIRECTORY . '/modules/MailIntegration/html/outlook');
    Severity: Critical
    Found in tests/Coverage.php by phan

    Property \Tests\Coverage->coverage has undeclared type \SebastianBergmann\CodeCoverage\CodeCoverage
    Open

        public $coverage;
    Severity: Minor
    Found in tests/Coverage.php by phan

    Call to method createDirectory from undeclared class \SebastianBergmann\CodeCoverage\Util\Filesystem
    Open

                \SebastianBergmann\CodeCoverage\Util\Filesystem::createDirectory(ROOT_DIRECTORY . '/tests/coverages/');
    Severity: Critical
    Found in tests/Coverage.php by phan

    Call to method includeDirectory from undeclared class \SebastianBergmann\CodeCoverage\Filter (Did you mean class \vtlib\Filter)
    Open

                $filter->includeDirectory(ROOT_DIRECTORY . '/config');
    Severity: Critical
    Found in tests/Coverage.php by phan

    Call to method __construct from undeclared class \SebastianBergmann\CodeCoverage\Filter (Did you mean class \vtlib\Filter)
    Open

                $filter = new \SebastianBergmann\CodeCoverage\Filter();
    Severity: Critical
    Found in tests/Coverage.php by phan

    Call to method includeDirectory from undeclared class \SebastianBergmann\CodeCoverage\Filter (Did you mean class \vtlib\Filter)
    Open

                $filter->includeDirectory(ROOT_DIRECTORY . '/app_data');
    Severity: Critical
    Found in tests/Coverage.php by phan

    Call to method excludeFile from undeclared class \SebastianBergmann\CodeCoverage\Filter (Did you mean class \vtlib\Filter)
    Open

                $filter->excludeFile(ROOT_DIRECTORY . '/tests/GuiBase.php');
    Severity: Critical
    Found in tests/Coverage.php by phan

    Call to method forLineCoverage from undeclared class \SebastianBergmann\CodeCoverage\Driver\Selector
    Open

                $self->driver = (new \SebastianBergmann\CodeCoverage\Driver\Selector())->forLineCoverage($filter);
    Severity: Critical
    Found in tests/Coverage.php by phan

    Call to method includeDirectory from undeclared class \SebastianBergmann\CodeCoverage\Filter (Did you mean class \vtlib\Filter)
    Open

                $filter->includeDirectory(ROOT_DIRECTORY . '/include');
    Severity: Critical
    Found in tests/Coverage.php by phan

    Call to method includeDirectory from undeclared class \SebastianBergmann\CodeCoverage\Filter (Did you mean class \vtlib\Filter)
    Open

                $filter->includeDirectory(ROOT_DIRECTORY . '/install');
    Severity: Critical
    Found in tests/Coverage.php by phan

    Call to method includeDirectory from undeclared class \SebastianBergmann\CodeCoverage\Filter (Did you mean class \vtlib\Filter)
    Open

                $filter->includeDirectory(ROOT_DIRECTORY . '/app');
    Severity: Critical
    Found in tests/Coverage.php by phan

    Call to method excludeDirectory from undeclared class \SebastianBergmann\CodeCoverage\Filter (Did you mean class \vtlib\Filter)
    Open

                $filter->excludeDirectory(ROOT_DIRECTORY . '/tests/setup');
    Severity: Critical
    Found in tests/Coverage.php by phan

    Call to method generatePassword from undeclared class \App\Encryption (Did you mean class \Tests\App\Encryption)
    Open

                $self->name = date('H_i_s') . '_' . md5($_SERVER['REQUEST_URI'] ?? $_SERVER['REQUEST_TIME_FLOAT']) . '_' . \App\Encryption::generatePassword(10);
    Severity: Critical
    Found in tests/Coverage.php by phan

    Return type of getFilter() is undeclared type \SebastianBergmann\CodeCoverage\Filter (Did you mean class \vtlib\Filter)
    Open

        public function getFilter(): \SebastianBergmann\CodeCoverage\Filter
    Severity: Minor
    Found in tests/Coverage.php by phan

    Call to method __construct from undeclared class \SebastianBergmann\CodeCoverage\CodeCoverage
    Open

                $self->coverage = new \SebastianBergmann\CodeCoverage\CodeCoverage($self->driver, $filter);
    Severity: Critical
    Found in tests/Coverage.php by phan

    Call to method includeDirectory from undeclared class \SebastianBergmann\CodeCoverage\Filter (Did you mean class \vtlib\Filter)
    Open

                $filter->includeDirectory(ROOT_DIRECTORY . '/modules');
    Severity: Critical
    Found in tests/Coverage.php by phan

    Call to method excludeDirectory from undeclared class \SebastianBergmann\CodeCoverage\Filter (Did you mean class \vtlib\Filter)
    Open

                $filter->excludeDirectory(ROOT_DIRECTORY . '/tests/coverages');
    Severity: Critical
    Found in tests/Coverage.php by phan

    Call to method excludeDirectory from undeclared class \SebastianBergmann\CodeCoverage\Filter (Did you mean class \vtlib\Filter)
    Open

                $filter->excludeDirectory(ROOT_DIRECTORY . '/vendor');
    Severity: Critical
    Found in tests/Coverage.php by phan

    Call to method stop from undeclared class \SebastianBergmann\CodeCoverage\CodeCoverage
    Open

                $this->coverage->stop();
    Severity: Critical
    Found in tests/Coverage.php by phan

    Reference to undeclared property \Tests\Coverage->name
    Open

                $self->name = date('H_i_s') . '_' . md5($_SERVER['REQUEST_URI'] ?? $_SERVER['REQUEST_TIME_FLOAT']) . '_' . \App\Encryption::generatePassword(10);
    Severity: Minor
    Found in tests/Coverage.php by phan

    Call to method includeDirectory from undeclared class \SebastianBergmann\CodeCoverage\Filter (Did you mean class \vtlib\Filter)
    Open

                $filter->includeDirectory(ROOT_DIRECTORY . '/public_html/install');
    Severity: Critical
    Found in tests/Coverage.php by phan

    Call to method includeDirectory from undeclared class \SebastianBergmann\CodeCoverage\Filter (Did you mean class \vtlib\Filter)
    Open

                $filter->includeDirectory(ROOT_DIRECTORY . '/vtlib/Vtiger');
    Severity: Critical
    Found in tests/Coverage.php by phan

    Call to method includeFiles from undeclared class \SebastianBergmann\CodeCoverage\Filter (Did you mean class \vtlib\Filter)
    Open

                $filter->includeFiles([
    Severity: Critical
    Found in tests/Coverage.php by phan

    Call to method includeDirectory from undeclared class \SebastianBergmann\CodeCoverage\Filter (Did you mean class \vtlib\Filter)
    Open

                $filter->includeDirectory(ROOT_DIRECTORY . '/user_privileges');
    Severity: Critical
    Found in tests/Coverage.php by phan

    Call to method process from undeclared class \SebastianBergmann\CodeCoverage\Report\PHP
    Open

                $writer->process($this->coverage, "{$this->dir}php/{$this->name}.php");
    Severity: Critical
    Found in tests/Coverage.php by phan

    Property \Tests\Coverage->driver has undeclared type \SebastianBergmann\CodeCoverage\Driver
    Open

        public $driver;
    Severity: Minor
    Found in tests/Coverage.php by phan

    Call to method excludeDirectory from undeclared class \SebastianBergmann\CodeCoverage\Filter (Did you mean class \vtlib\Filter)
    Open

                $filter->excludeDirectory(ROOT_DIRECTORY . '/modules/OSSMail');
    Severity: Critical
    Found in tests/Coverage.php by phan

    Reference to undeclared property \Tests\Coverage->name
    Open

                $writer->process($this->coverage, "{$this->dir}php/{$this->name}.php");
    Severity: Minor
    Found in tests/Coverage.php by phan

    Call to method merge from undeclared class \SebastianBergmann\CodeCoverage\CodeCoverage
    Open

                    $this->coverage->merge(require $file);
    Severity: Critical
    Found in tests/Coverage.php by phan

    Call to method nameAndVersion from undeclared class \SebastianBergmann\CodeCoverage\Driver
    Open

                self::log('Driver: ' . $self->driver->nameAndVersion() . ' ');
    Severity: Critical
    Found in tests/Coverage.php by phan

    Call to method includeDirectory from undeclared class \SebastianBergmann\CodeCoverage\Filter (Did you mean class \vtlib\Filter)
    Open

                $filter->includeDirectory(ROOT_DIRECTORY . '/tests');
    Severity: Critical
    Found in tests/Coverage.php by phan

    Call to method excludeDirectory from undeclared class \SebastianBergmann\CodeCoverage\Filter (Did you mean class \vtlib\Filter)
    Open

                $filter->excludeDirectory(ROOT_DIRECTORY . '/modules/Vtiger/pdfs');
    Severity: Critical
    Found in tests/Coverage.php by phan

    Call to method excludeFile from undeclared class \SebastianBergmann\CodeCoverage\Filter (Did you mean class \vtlib\Filter)
    Open

                $filter->excludeFile(ROOT_DIRECTORY . '/tests/Coverage.php');
    Severity: Critical
    Found in tests/Coverage.php by phan

    Call to method process from undeclared class \SebastianBergmann\CodeCoverage\Report\Clover
    Open

                $clover = $writer->process($this->coverage);
    Severity: Critical
    Found in tests/Coverage.php by phan

    Call to method __construct from undeclared class \SebastianBergmann\CodeCoverage\Driver\Selector
    Open

                $self->driver = (new \SebastianBergmann\CodeCoverage\Driver\Selector())->forLineCoverage($filter);
    Severity: Critical
    Found in tests/Coverage.php by phan

    Call to method includeDirectory from undeclared class \SebastianBergmann\CodeCoverage\Filter (Did you mean class \vtlib\Filter)
    Open

                $filter->includeDirectory(ROOT_DIRECTORY . '/api');
    Severity: Critical
    Found in tests/Coverage.php by phan

    Call to method start from undeclared class \SebastianBergmann\CodeCoverage\CodeCoverage
    Open

            $this->coverage->start($this->name);
    Severity: Critical
    Found in tests/Coverage.php by phan

    Reference to undeclared property \Tests\Coverage->name
    Open

            $this->coverage->start($this->name);
    Severity: Minor
    Found in tests/Coverage.php by phan

    Call to method __construct from undeclared class \SebastianBergmann\CodeCoverage\Report\PHP
    Open

                $writer = new \SebastianBergmann\CodeCoverage\Report\PHP();
    Severity: Critical
    Found in tests/Coverage.php by phan

    Call to method __construct from undeclared class \SebastianBergmann\CodeCoverage\Report\Clover
    Open

                $writer = new \SebastianBergmann\CodeCoverage\Report\Clover();
    Severity: Critical
    Found in tests/Coverage.php by phan

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

            $t = '';
    Severity: Minor
    Found in tests/Coverage.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 $i. Configured minimum length is 3.
    Open

                $i = 0;
    Severity: Minor
    Found in tests/Coverage.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

        public $coverage;
    Severity: Minor
    Found in tests/Coverage.php by phpcodesniffer

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

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

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

            return self::$self;
    Severity: Minor
    Found in tests/Coverage.php by phpcodesniffer

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

                    ROOT_DIRECTORY . '/webservice.php',
    Severity: Minor
    Found in tests/Coverage.php by phpcodesniffer

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

                ]);
    Severity: Minor
    Found in tests/Coverage.php by phpcodesniffer

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

                $filter->excludeDirectory(ROOT_DIRECTORY . '/tests/coverages');
    Severity: Minor
    Found in tests/Coverage.php by phpcodesniffer

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

                self::log(PHP_EOL . 'Collection exception !!!' . PHP_EOL);
    Severity: Minor
    Found in tests/Coverage.php by phpcodesniffer

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

                    rename($file, $this->dir . '' . basename($file) . '.old');
    Severity: Minor
    Found in tests/Coverage.php by phpcodesniffer

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

                file_put_contents("{$this->dir}coverage.xml", $clover);
    Severity: Minor
    Found in tests/Coverage.php by phpcodesniffer

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

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

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

                $filter->includeDirectory(ROOT_DIRECTORY . '/config');
    Severity: Minor
    Found in tests/Coverage.php by phpcodesniffer

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

                $filter->includeDirectory(ROOT_DIRECTORY . '/modules');
    Severity: Minor
    Found in tests/Coverage.php by phpcodesniffer

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

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

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

                self::log($ex->__toString());
    Severity: Minor
    Found in tests/Coverage.php by phpcodesniffer

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

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

    Line exceeds 120 characters; contains 147 characters
    Open

                file_put_contents("{$this->dir}coverage3.xml", str_replace('/var/www/html/', '/home/runner/work/YetiForceCRM/YetiForceCRM/', $clover));
    Severity: Minor
    Found in tests/Coverage.php by phpcodesniffer

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

            } catch (\Exception $ex) {
    Severity: Minor
    Found in tests/Coverage.php by phpcodesniffer

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

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

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

         * @param string $text
    Severity: Minor
    Found in tests/Coverage.php by phpcodesniffer

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

        public $driver;
    Severity: Minor
    Found in tests/Coverage.php by phpcodesniffer

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

        public static function getInstance(): self
    Severity: Minor
    Found in tests/Coverage.php by phpcodesniffer

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

                $filter->includeDirectory(ROOT_DIRECTORY . '/tests');
    Severity: Minor
    Found in tests/Coverage.php by phpcodesniffer

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

                    ROOT_DIRECTORY . '/cli.php',
    Severity: Minor
    Found in tests/Coverage.php by phpcodesniffer

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

                    ROOT_DIRECTORY . '/public_html/dav.php',
    Severity: Minor
    Found in tests/Coverage.php by phpcodesniffer

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

         * @return void
    Severity: Minor
    Found in tests/Coverage.php by phpcodesniffer

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

        public static function log(string $text, bool $first = false): void
    Severity: Minor
    Found in tests/Coverage.php by phpcodesniffer

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

         * Get instance and Initialize.
    Severity: Minor
    Found in tests/Coverage.php by phpcodesniffer

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

                $self->name = date('H_i_s') . '_' . md5($_SERVER['REQUEST_URI'] ?? $_SERVER['REQUEST_TIME_FLOAT']) . '_' . \App\Encryption::generatePassword(10);
    Severity: Minor
    Found in tests/Coverage.php by phpcodesniffer

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

                $filter = $self->getFilter();
    Severity: Minor
    Found in tests/Coverage.php by phpcodesniffer

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

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

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

                    ROOT_DIRECTORY . '/public_html/index.php',
    Severity: Minor
    Found in tests/Coverage.php by phpcodesniffer

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

                $filter->excludeDirectory(ROOT_DIRECTORY . '/modules/OSSMail');
    Severity: Minor
    Found in tests/Coverage.php by phpcodesniffer

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

                $filter->excludeFile(ROOT_DIRECTORY . '/tests/Coverage.php');
    Severity: Minor
    Found in tests/Coverage.php by phpcodesniffer

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

         * Stop collection of code coverage information.
    Severity: Minor
    Found in tests/Coverage.php by phpcodesniffer

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

                $writer->process($this->coverage, "{$this->dir}php/{$this->name}.php");
    Severity: Minor
    Found in tests/Coverage.php by phpcodesniffer

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

                foreach ($coverages as $file) {
    Severity: Minor
    Found in tests/Coverage.php by phpcodesniffer

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

                $startTime = microtime(true);
    Severity: Minor
    Found in tests/Coverage.php by phpcodesniffer

    Line exceeds 120 characters; contains 121 characters
    Open

                file_put_contents("{$this->dir}coverage4.xml", str_replace('/var/www/html/', '/github/workspace/', $clover));
    Severity: Minor
    Found in tests/Coverage.php by phpcodesniffer

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

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

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

            if (!isset(self::$self)) {
    Severity: Minor
    Found in tests/Coverage.php by phpcodesniffer

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

                $self->coverage = new \SebastianBergmann\CodeCoverage\CodeCoverage($self->driver, $filter);
    Severity: Minor
    Found in tests/Coverage.php by phpcodesniffer

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

                $filter->includeDirectory(ROOT_DIRECTORY . '/include');
    Severity: Minor
    Found in tests/Coverage.php by phpcodesniffer

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

                    ROOT_DIRECTORY . '/dav.php',
    Severity: Minor
    Found in tests/Coverage.php by phpcodesniffer

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

                    ROOT_DIRECTORY . '/public_html/cron.php',
    Severity: Minor
    Found in tests/Coverage.php by phpcodesniffer

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

                    ROOT_DIRECTORY . '/public_html/webservice.php',
    Severity: Minor
    Found in tests/Coverage.php by phpcodesniffer

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

        public function start(): void
    Severity: Minor
    Found in tests/Coverage.php by phpcodesniffer

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

                $writer = new \SebastianBergmann\CodeCoverage\Report\PHP();
    Severity: Minor
    Found in tests/Coverage.php by phpcodesniffer

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

                self::log('Driver: ' . $self->driver->nameAndVersion() . ' ');
    Severity: Minor
    Found in tests/Coverage.php by phpcodesniffer

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

                $filter->excludeDirectory(ROOT_DIRECTORY . '/modules/Vtiger/pdfs');
    Severity: Minor
    Found in tests/Coverage.php by phpcodesniffer

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

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

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

         * @return void
    Severity: Minor
    Found in tests/Coverage.php by phpcodesniffer

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

                self::log('Generate report exception !!!');
    Severity: Minor
    Found in tests/Coverage.php by phpcodesniffer

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

        /** @var self */
    Severity: Minor
    Found in tests/Coverage.php by phpcodesniffer

    Line exceeds 120 characters; contains 157 characters
    Open

                $self->name = date('H_i_s') . '_' . md5($_SERVER['REQUEST_URI'] ?? $_SERVER['REQUEST_TIME_FLOAT']) . '_' . \App\Encryption::generatePassword(10);
    Severity: Minor
    Found in tests/Coverage.php by phpcodesniffer

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

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

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

         * Get coverage filter.
    Severity: Minor
    Found in tests/Coverage.php by phpcodesniffer

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

                $filter->includeDirectory(ROOT_DIRECTORY . '/app');
    Severity: Minor
    Found in tests/Coverage.php by phpcodesniffer

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

                    ROOT_DIRECTORY . '/public_html/file.php',
    Severity: Minor
    Found in tests/Coverage.php by phpcodesniffer

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

            return $this->filter;
    Severity: Minor
    Found in tests/Coverage.php by phpcodesniffer

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

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

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

         * @param bool   $first
    Severity: Minor
    Found in tests/Coverage.php by phpcodesniffer

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

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

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

                $t = date('H:i:s') . ' ';
    Severity: Minor
    Found in tests/Coverage.php by phpcodesniffer

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

        /** @var \SebastianBergmann\CodeCoverage\Filter */
    Severity: Minor
    Found in tests/Coverage.php by phpcodesniffer

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

                \SebastianBergmann\CodeCoverage\Util\Filesystem::createDirectory(ROOT_DIRECTORY . '/tests/coverages/');
    Severity: Minor
    Found in tests/Coverage.php by phpcodesniffer

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

                $self->dir = ROOT_DIRECTORY . '/tests/coverages/';
    Severity: Minor
    Found in tests/Coverage.php by phpcodesniffer

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

                    ROOT_DIRECTORY . '/index.php',
    Severity: Minor
    Found in tests/Coverage.php by phpcodesniffer

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

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

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

            self::log('Started');
    Severity: Minor
    Found in tests/Coverage.php by phpcodesniffer

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

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

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

                $this->coverage->stop();
    Severity: Minor
    Found in tests/Coverage.php by phpcodesniffer

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

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

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

                $writer = new \SebastianBergmann\CodeCoverage\Report\Clover();
    Severity: Minor
    Found in tests/Coverage.php by phpcodesniffer

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

            file_put_contents(ROOT_DIRECTORY . '/tests/coverages/codecoverage.log', $t . $text . '| ', FILE_APPEND);
    Severity: Minor
    Found in tests/Coverage.php by phpcodesniffer

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

        public $startTime;
    Severity: Minor
    Found in tests/Coverage.php by phpcodesniffer

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

                $self->startTime = microtime(true);
    Severity: Minor
    Found in tests/Coverage.php by phpcodesniffer

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

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

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

                $filter->excludeFile(ROOT_DIRECTORY . '/tests/GuiBase.php');
    Severity: Minor
    Found in tests/Coverage.php by phpcodesniffer

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

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

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

            $this->coverage->start($this->name);
    Severity: Minor
    Found in tests/Coverage.php by phpcodesniffer

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

        public function __destruct()
    Severity: Minor
    Found in tests/Coverage.php by phpcodesniffer

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

                self::log('Stop');
    Severity: Minor
    Found in tests/Coverage.php by phpcodesniffer

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

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

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

                // self::log('Clover Html time: ' . round(microtime(true) - $startTime, 1) . ' s.');
    Severity: Minor
    Found in tests/Coverage.php by phpcodesniffer

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

                self::log($ex->__toString());
    Severity: Minor
    Found in tests/Coverage.php by phpcodesniffer

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

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

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

            if ($first) {
    Severity: Minor
    Found in tests/Coverage.php by phpcodesniffer

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

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

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

        /** @var string|float */
    Severity: Minor
    Found in tests/Coverage.php by phpcodesniffer

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

        private $filter;
    Severity: Minor
    Found in tests/Coverage.php by phpcodesniffer

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

        /** @var \SebastianBergmann\CodeCoverage\Driver */
    Severity: Minor
    Found in tests/Coverage.php by phpcodesniffer

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

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

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

                self::$self = $self;
    Severity: Minor
    Found in tests/Coverage.php by phpcodesniffer

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

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

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

                $filter->includeDirectory(ROOT_DIRECTORY . '/api');
    Severity: Minor
    Found in tests/Coverage.php by phpcodesniffer

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

                $filter->includeDirectory(ROOT_DIRECTORY . '/app_data');
    Severity: Minor
    Found in tests/Coverage.php by phpcodesniffer

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

                $filter->includeFiles([
    Severity: Minor
    Found in tests/Coverage.php by phpcodesniffer

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

                $filter->excludeDirectory(ROOT_DIRECTORY . '/tests/setup');
    Severity: Minor
    Found in tests/Coverage.php by phpcodesniffer

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

                $coverages = glob("{$this->dir}/php/*.php");
    Severity: Minor
    Found in tests/Coverage.php by phpcodesniffer

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

                // $writer = new \SebastianBergmann\CodeCoverage\Report\Html\Facade();
    Severity: Minor
    Found in tests/Coverage.php by phpcodesniffer

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

                $clover = $writer->process($this->coverage);
    Severity: Minor
    Found in tests/Coverage.php by phpcodesniffer

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

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

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

         * Log.
    Severity: Minor
    Found in tests/Coverage.php by phpcodesniffer

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

                self::log(($_SERVER['REQUEST_METHOD'] ?? '') . ':' . ($_SERVER['REQUEST_URI'] ?? ''), true);
    Severity: Minor
    Found in tests/Coverage.php by phpcodesniffer

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

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

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

                $filter->includeDirectory(ROOT_DIRECTORY . '/public_html/modules/MailIntegration/');
    Severity: Minor
    Found in tests/Coverage.php by phpcodesniffer

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

                $filter->includeDirectory(ROOT_DIRECTORY . '/vtlib/Vtiger');
    Severity: Minor
    Found in tests/Coverage.php by phpcodesniffer

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

                    ROOT_DIRECTORY . '/file.php',
    Severity: Minor
    Found in tests/Coverage.php by phpcodesniffer

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

                $filter->excludeDirectory(ROOT_DIRECTORY . '/vendor');
    Severity: Minor
    Found in tests/Coverage.php by phpcodesniffer

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

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

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

            } catch (\Exception $ex) {
    Severity: Minor
    Found in tests/Coverage.php by phpcodesniffer

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

                    $this->coverage->merge(require $file);
    Severity: Minor
    Found in tests/Coverage.php by phpcodesniffer

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

                self::log('Number of merged files: ' . $i);
    Severity: Minor
    Found in tests/Coverage.php by phpcodesniffer

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

                // $writer->process($this->coverage, $this->dir . 'html/');
    Severity: Minor
    Found in tests/Coverage.php by phpcodesniffer

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

                file_put_contents("{$this->dir}coverage4.xml", str_replace('/var/www/html/', '/github/workspace/', $clover));
    Severity: Minor
    Found in tests/Coverage.php by phpcodesniffer

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

                self::log('Clover Report time: ' . round(microtime(true) - $startTime, 1) . ' s.');
    Severity: Minor
    Found in tests/Coverage.php by phpcodesniffer

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

         * @return self
    Severity: Minor
    Found in tests/Coverage.php by phpcodesniffer

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

         * @return \SebastianBergmann\CodeCoverage\Filter
    Severity: Minor
    Found in tests/Coverage.php by phpcodesniffer

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

            if (!isset($this->filter)) {
    Severity: Minor
    Found in tests/Coverage.php by phpcodesniffer

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

                    ROOT_DIRECTORY . '/cron.php',
    Severity: Minor
    Found in tests/Coverage.php by phpcodesniffer

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

         * Start collection of code coverage information.
    Severity: Minor
    Found in tests/Coverage.php by phpcodesniffer

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

                self::log('Collection time: ' . round(microtime(true) - $this->startTime, 1) . ' s.' . PHP_EOL);
    Severity: Minor
    Found in tests/Coverage.php by phpcodesniffer

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

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

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

                $i = 0;
    Severity: Minor
    Found in tests/Coverage.php by phpcodesniffer

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

            $t = '';
    Severity: Minor
    Found in tests/Coverage.php by phpcodesniffer

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

                $filter->includeDirectory(ROOT_DIRECTORY . '/user_privileges');
    Severity: Minor
    Found in tests/Coverage.php by phpcodesniffer

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

                $filter->excludeDirectory(ROOT_DIRECTORY . '/modules/MailIntegration/html/outlook');
    Severity: Minor
    Found in tests/Coverage.php by phpcodesniffer

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

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

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

                // $startTime = microtime(true);
    Severity: Minor
    Found in tests/Coverage.php by phpcodesniffer

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

                file_put_contents("{$this->dir}coverage3.xml", str_replace('/var/www/html/', '/home/runner/work/YetiForceCRM/YetiForceCRM/', $clover));
    Severity: Minor
    Found in tests/Coverage.php by phpcodesniffer

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

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

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

        public $dir;
    Severity: Minor
    Found in tests/Coverage.php by phpcodesniffer

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

        private static $self;
    Severity: Minor
    Found in tests/Coverage.php by phpcodesniffer

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

                $filter->includeDirectory(ROOT_DIRECTORY . '/install');
    Severity: Minor
    Found in tests/Coverage.php by phpcodesniffer

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

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

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

         * Generate report.
    Severity: Minor
    Found in tests/Coverage.php by phpcodesniffer

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

            echo file_get_contents(ROOT_DIRECTORY . '/tests/coverages/codecoverage.log');
    Severity: Minor
    Found in tests/Coverage.php by phpcodesniffer

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

        /** @var \SebastianBergmann\CodeCoverage\CodeCoverage */
    Severity: Minor
    Found in tests/Coverage.php by phpcodesniffer

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

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

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

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

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

                $self->driver = (new \SebastianBergmann\CodeCoverage\Driver\Selector())->forLineCoverage($filter);
    Severity: Minor
    Found in tests/Coverage.php by phpcodesniffer

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

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

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

        public function getFilter(): \SebastianBergmann\CodeCoverage\Filter
    Severity: Minor
    Found in tests/Coverage.php by phpcodesniffer

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

                $this->filter = $filter;
    Severity: Minor
    Found in tests/Coverage.php by phpcodesniffer

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

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

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

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

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

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

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

                    ++$i;
    Severity: Minor
    Found in tests/Coverage.php by phpcodesniffer

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

                $self = new self();
    Severity: Minor
    Found in tests/Coverage.php by phpcodesniffer

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

                $filter = new \SebastianBergmann\CodeCoverage\Filter();
    Severity: Minor
    Found in tests/Coverage.php by phpcodesniffer

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

                $filter->includeDirectory(ROOT_DIRECTORY . '/public_html/install');
    Severity: Minor
    Found in tests/Coverage.php by phpcodesniffer

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

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

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

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

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

        public function generateReport(): void
    Severity: Minor
    Found in tests/Coverage.php by phpcodesniffer

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

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

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

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

    There are no issues that match your filters.

    Category
    Status