YetiForceCompany/YetiForceCRM

View on GitHub
app/Cli/Cleaner.php

Summary

Maintainability
A
0 mins
Test Coverage
F
34%

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

        foreach ($iterator = new \RecursiveIteratorIterator(new \RecursiveDirectoryIterator(ROOT_DIRECTORY . '/cache/logs', \RecursiveDirectoryIterator::SKIP_DOTS), \RecursiveIteratorIterator::SELF_FIRST) as $item) {
Severity: Minor
Found in app/Cli/Cleaner.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 '39', column '28').
Open

        foreach ($iterator = new \RecursiveIteratorIterator(new \RecursiveDirectoryIterator(ROOT_DIRECTORY . '/cache/logs', \RecursiveDirectoryIterator::SKIP_DOTS), \RecursiveIteratorIterator::SELF_FIRST) as $item) {
Severity: Minor
Found in app/Cli/Cleaner.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 '\vtlib\Functions' in method 'logs'.
Open

        $this->climate->bold('Size of deleted log files: ' . \vtlib\Functions::showBytes($s));
Severity: Minor
Found in app/Cli/Cleaner.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\Session' in method 'session'.
Open

        $this->climate->bold('Number of deleted sessions: ' . \App\Session::cleanAll());
Severity: Minor
Found in app/Cli/Cleaner.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\Cache' in method 'cacheData'.
Open

        $this->climate->bold('Clear opcache: ' . \App\Cache::clearOpcache());
Severity: Minor
Found in app/Cli/Cleaner.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\Session' in method 'session'.
Open

        \App\Session::load();
Severity: Minor
Found in app/Cli/Cleaner.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\Cache' in method 'cacheData'.
Open

        $this->climate->bold('Clear: ' . \App\Cache::clear());
Severity: Minor
Found in app/Cli/Cleaner.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\Cache' in method 'cacheFiles'.
Open

        $stats = \App\Cache::clearTemporaryFiles('now');
Severity: Minor
Found in app/Cli/Cleaner.php by phpmd

StaticAccess

Since: 1.4.0

Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

Example

class Foo
{
    public function bar()
    {
        Bar::baz();
    }
}

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

Avoid using static access to class '\vtlib\Functions' in method 'cacheFiles'.
Open

        $this->climate->bold(" - files: {$stats['counter']} , size: " . \vtlib\Functions::showBytes($stats['size']));
Severity: Minor
Found in app/Cli/Cleaner.php by phpmd

StaticAccess

Since: 1.4.0

Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

Example

class Foo
{
    public function bar()
    {
        Bar::baz();
    }
}

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

Avoid using static access to class '\vtlib\Functions' in method 'logs'.
Open

                $this->climate->bold($iterator->getSubPathName() . ' - ' . \vtlib\Functions::showBytes($item->getSize()));
Severity: Minor
Found in app/Cli/Cleaner.php by phpmd

StaticAccess

Since: 1.4.0

Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

Example

class Foo
{
    public function bar()
    {
        Bar::baz();
    }
}

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

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

        if (!$this->climate->arguments->defined('action')) {
Severity: Critical
Found in app/Cli/Cleaner.php by sonar-php

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

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

Noncompliant Code Example

With the default threshold of 3:

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

Compliant Solution

ACTION_1 = 'action1';

function run() {
  prepare(ACTION_1);
  execute(ACTION_1);
  release(ACTION_1);
}

Exceptions

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

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

    public $moduleName = 'Cleaner';
Severity: Critical
Found in app/Cli/Cleaner.php by sonar-php

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

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

Noncompliant Code Example

With the default threshold of 3:

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

Compliant Solution

ACTION_1 = 'action1';

function run() {
  prepare(ACTION_1);
  execute(ACTION_1);
  release(ACTION_1);
}

Exceptions

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

Call to method bold from undeclared class \League\CLImate\CLImate
Open

        $this->climate->bold('Size of deleted log files: ' . \vtlib\Functions::showBytes($s));
Severity: Critical
Found in app/Cli/Cleaner.php by phan

Call to method lightYellow from undeclared class \League\CLImate\CLImate
Open

        $this->climate->lightYellow()->border('─', 200);
Severity: Critical
Found in app/Cli/Cleaner.php by phan

Call to method lightYellow from undeclared class \League\CLImate\CLImate
Open

        $this->climate->lightYellow()->border('─', 200);
Severity: Critical
Found in app/Cli/Cleaner.php by phan

Call to method lightYellow from undeclared class \League\CLImate\CLImate
Open

        $this->climate->lightYellow()->border('─', 200);
Severity: Critical
Found in app/Cli/Cleaner.php by phan

Reference to instance property arguments from undeclared class \League\CLImate\CLImate
Open

        if (!$this->climate->arguments->defined('action')) {
Severity: Minor
Found in app/Cli/Cleaner.php by phan

Call to method bold from undeclared class \League\CLImate\CLImate
Open

        $this->climate->bold('Clear opcache: ' . \App\Cache::clearOpcache());
Severity: Critical
Found in app/Cli/Cleaner.php by phan

Call to method bold from undeclared class \League\CLImate\CLImate
Open

        $this->climate->bold('Removing all sessions...');
Severity: Critical
Found in app/Cli/Cleaner.php by phan

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

        $this->climate->bold('Clear opcache: ' . \App\Cache::clearOpcache());
Severity: Minor
Found in app/Cli/Cleaner.php by phan

Call to method bold from undeclared class \League\CLImate\CLImate
Open

        $this->climate->bold('Removing all logs...');
Severity: Critical
Found in app/Cli/Cleaner.php by phan

Call to method bold from undeclared class \League\CLImate\CLImate
Open

        $this->climate->bold('Number of deleted log files: ' . $i);
Severity: Critical
Found in app/Cli/Cleaner.php by phan

Call to method lightYellow from undeclared class \League\CLImate\CLImate
Open

        $this->climate->lightYellow()->border('─', 200);
Severity: Critical
Found in app/Cli/Cleaner.php by phan

Call to method lightYellow from undeclared class \League\CLImate\CLImate
Open

        $this->climate->lightYellow()->border('─', 200);
Severity: Critical
Found in app/Cli/Cleaner.php by phan

Reference to instance property arguments from undeclared class \League\CLImate\CLImate
Open

        if (!$this->climate->arguments->defined('action')) {
Severity: Minor
Found in app/Cli/Cleaner.php by phan

Call to method bold from undeclared class \League\CLImate\CLImate
Open

        $this->climate->bold(" - files: {$stats['counter']} , size: " . \vtlib\Functions::showBytes($stats['size']));
Severity: Critical
Found in app/Cli/Cleaner.php by phan

Call to undeclared method \RecursiveIteratorIterator::getSubPathName
Open

                $this->climate->bold($iterator->getSubPathName() . ' - ' . \vtlib\Functions::showBytes($item->getSize()));
Severity: Critical
Found in app/Cli/Cleaner.php by phan

Call to method bold from undeclared class \League\CLImate\CLImate
Open

        $this->climate->bold('Clear: ' . \App\Cache::clear());
Severity: Critical
Found in app/Cli/Cleaner.php by phan

Reference to instance property arguments from undeclared class \League\CLImate\CLImate
Open

        if (!$this->climate->arguments->defined('action')) {
Severity: Minor
Found in app/Cli/Cleaner.php by phan

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

        $this->climate->bold('Clear: ' . \App\Cache::clear());
Severity: Minor
Found in app/Cli/Cleaner.php by phan

Call to method bold from undeclared class \League\CLImate\CLImate
Open

                $this->climate->bold($iterator->getSubPathName() . ' - ' . \vtlib\Functions::showBytes($item->getSize()));
Severity: Critical
Found in app/Cli/Cleaner.php by phan

Call to method bold from undeclared class \League\CLImate\CLImate
Open

        $this->climate->bold('Number of deleted sessions: ' . \App\Session::cleanAll());
Severity: Critical
Found in app/Cli/Cleaner.php by phan

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

        $i = $s = 0;
Severity: Minor
Found in app/Cli/Cleaner.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 $s. Configured minimum length is 3.
Open

        $i = $s = 0;
Severity: Minor
Found in app/Cli/Cleaner.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

        'cacheData' => 'Cache data',
Severity: Minor
Found in app/Cli/Cleaner.php by phpcodesniffer

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

    {
Severity: Minor
Found in app/Cli/Cleaner.php by phpcodesniffer

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

    }
Severity: Minor
Found in app/Cli/Cleaner.php by phpcodesniffer

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

     *
Severity: Minor
Found in app/Cli/Cleaner.php by phpcodesniffer

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

     * Delete all logs.
Severity: Minor
Found in app/Cli/Cleaner.php by phpcodesniffer

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

    /**
Severity: Minor
Found in app/Cli/Cleaner.php by phpcodesniffer

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

        'session' => 'Delete all sessions',
Severity: Minor
Found in app/Cli/Cleaner.php by phpcodesniffer

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

        $this->climate->bold('Removing all logs...');
Severity: Minor
Found in app/Cli/Cleaner.php by phpcodesniffer

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

        $this->climate->lightYellow()->border('─', 200);
Severity: Minor
Found in app/Cli/Cleaner.php by phpcodesniffer

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

        $this->climate->lightYellow()->border('─', 200);
Severity: Minor
Found in app/Cli/Cleaner.php by phpcodesniffer

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

                $this->climate->bold($iterator->getSubPathName() . ' - ' . \vtlib\Functions::showBytes($item->getSize()));
Severity: Minor
Found in app/Cli/Cleaner.php by phpcodesniffer

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

        $this->climate->bold('Size of deleted log files: ' . \vtlib\Functions::showBytes($s));
Severity: Minor
Found in app/Cli/Cleaner.php by phpcodesniffer

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

     *
Severity: Minor
Found in app/Cli/Cleaner.php by phpcodesniffer

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

        $i = $s = 0;
Severity: Minor
Found in app/Cli/Cleaner.php by phpcodesniffer

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

            if ($item->isFile() && 'index.html' !== $item->getBasename()) {
Severity: Minor
Found in app/Cli/Cleaner.php by phpcodesniffer

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

    /**
Severity: Minor
Found in app/Cli/Cleaner.php by phpcodesniffer

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

     * Delete all session.
Severity: Minor
Found in app/Cli/Cleaner.php by phpcodesniffer

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

        $this->climate->bold('Removing all sessions...');
Severity: Minor
Found in app/Cli/Cleaner.php by phpcodesniffer

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

     * @return void
Severity: Minor
Found in app/Cli/Cleaner.php by phpcodesniffer

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

        }
Severity: Minor
Found in app/Cli/Cleaner.php by phpcodesniffer

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

    /** {@inheritdoc} */
Severity: Minor
Found in app/Cli/Cleaner.php by phpcodesniffer

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

        $this->climate->bold('Number of deleted log files: ' . $i);
Severity: Minor
Found in app/Cli/Cleaner.php by phpcodesniffer

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

    }
Severity: Minor
Found in app/Cli/Cleaner.php by phpcodesniffer

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

     */
Severity: Minor
Found in app/Cli/Cleaner.php by phpcodesniffer

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

    public $moduleName = 'Cleaner';
Severity: Minor
Found in app/Cli/Cleaner.php by phpcodesniffer

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

    public function logs(): void
Severity: Minor
Found in app/Cli/Cleaner.php by phpcodesniffer

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

    {
Severity: Minor
Found in app/Cli/Cleaner.php by phpcodesniffer

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

    {
Severity: Minor
Found in app/Cli/Cleaner.php by phpcodesniffer

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

    }
Severity: Minor
Found in app/Cli/Cleaner.php by phpcodesniffer

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

    ];
Severity: Minor
Found in app/Cli/Cleaner.php by phpcodesniffer

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

     */
Severity: Minor
Found in app/Cli/Cleaner.php by phpcodesniffer

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

        if (!$this->climate->arguments->defined('action')) {
Severity: Minor
Found in app/Cli/Cleaner.php by phpcodesniffer

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

    /**
Severity: Minor
Found in app/Cli/Cleaner.php by phpcodesniffer

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

    public function cacheFiles(): void
Severity: Minor
Found in app/Cli/Cleaner.php by phpcodesniffer

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

     * @return void
Severity: Minor
Found in app/Cli/Cleaner.php by phpcodesniffer

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

     *
Severity: Minor
Found in app/Cli/Cleaner.php by phpcodesniffer

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

        $this->climate->bold('Clear opcache: ' . \App\Cache::clearOpcache());
Severity: Minor
Found in app/Cli/Cleaner.php by phpcodesniffer

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

     */
Severity: Minor
Found in app/Cli/Cleaner.php by phpcodesniffer

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

        'logs' => 'Delete all logs',
Severity: Minor
Found in app/Cli/Cleaner.php by phpcodesniffer

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

        'cacheFiles' => 'Cache files',
Severity: Minor
Found in app/Cli/Cleaner.php by phpcodesniffer

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

                $s += $item->getSize();
Severity: Minor
Found in app/Cli/Cleaner.php by phpcodesniffer

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

                unlink($item->getPathname());
Severity: Minor
Found in app/Cli/Cleaner.php by phpcodesniffer

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

                ++$i;
Severity: Minor
Found in app/Cli/Cleaner.php by phpcodesniffer

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

        }
Severity: Minor
Found in app/Cli/Cleaner.php by phpcodesniffer

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

        $this->climate->bold('Number of deleted sessions: ' . \App\Session::cleanAll());
Severity: Minor
Found in app/Cli/Cleaner.php by phpcodesniffer

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

        $this->climate->lightYellow()->border('─', 200);
Severity: Minor
Found in app/Cli/Cleaner.php by phpcodesniffer

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

    }
Severity: Minor
Found in app/Cli/Cleaner.php by phpcodesniffer

Line exceeds 120 characters; contains 122 characters
Open

                $this->climate->bold($iterator->getSubPathName() . ' - ' . \vtlib\Functions::showBytes($item->getSize()));
Severity: Minor
Found in app/Cli/Cleaner.php by phpcodesniffer

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

     */
Severity: Minor
Found in app/Cli/Cleaner.php by phpcodesniffer

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

    /** @var string[] Methods list */
Severity: Minor
Found in app/Cli/Cleaner.php by phpcodesniffer

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

        foreach ($iterator = new \RecursiveIteratorIterator(new \RecursiveDirectoryIterator(ROOT_DIRECTORY . '/cache/logs', \RecursiveDirectoryIterator::SKIP_DOTS), \RecursiveIteratorIterator::SELF_FIRST) as $item) {
Severity: Minor
Found in app/Cli/Cleaner.php by phpcodesniffer

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

        if (!$this->climate->arguments->defined('action')) {
Severity: Minor
Found in app/Cli/Cleaner.php by phpcodesniffer

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

        if (!$this->climate->arguments->defined('action')) {
Severity: Minor
Found in app/Cli/Cleaner.php by phpcodesniffer

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

    /**
Severity: Minor
Found in app/Cli/Cleaner.php by phpcodesniffer

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

    {
Severity: Minor
Found in app/Cli/Cleaner.php by phpcodesniffer

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

     * Clear cache files.
Severity: Minor
Found in app/Cli/Cleaner.php by phpcodesniffer

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

    public function session(): void
Severity: Minor
Found in app/Cli/Cleaner.php by phpcodesniffer

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

        $this->climate->bold('Clear: ' . \App\Cache::clear());
Severity: Minor
Found in app/Cli/Cleaner.php by phpcodesniffer

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

    public $methods = [
Severity: Minor
Found in app/Cli/Cleaner.php by phpcodesniffer

Line exceeds 120 characters; contains 216 characters
Open

        foreach ($iterator = new \RecursiveIteratorIterator(new \RecursiveDirectoryIterator(ROOT_DIRECTORY . '/cache/logs', \RecursiveDirectoryIterator::SKIP_DOTS), \RecursiveIteratorIterator::SELF_FIRST) as $item) {
Severity: Minor
Found in app/Cli/Cleaner.php by phpcodesniffer

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

            }
Severity: Minor
Found in app/Cli/Cleaner.php by phpcodesniffer

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

        $this->climate->lightYellow()->border('─', 200);
Severity: Minor
Found in app/Cli/Cleaner.php by phpcodesniffer

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

     * Clear cache data.
Severity: Minor
Found in app/Cli/Cleaner.php by phpcodesniffer

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

    public function cacheData(): void
Severity: Minor
Found in app/Cli/Cleaner.php by phpcodesniffer

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

            $this->cli->actionsList('Cleaner');
Severity: Minor
Found in app/Cli/Cleaner.php by phpcodesniffer

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

            $this->cli->actionsList('Cleaner');
Severity: Minor
Found in app/Cli/Cleaner.php by phpcodesniffer

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

        }
Severity: Minor
Found in app/Cli/Cleaner.php by phpcodesniffer

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

     * @return void
Severity: Minor
Found in app/Cli/Cleaner.php by phpcodesniffer

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

        $this->climate->lightYellow()->border('─', 200);
Severity: Minor
Found in app/Cli/Cleaner.php by phpcodesniffer

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

        $this->climate->bold(" - files: {$stats['counter']} , size: " . \vtlib\Functions::showBytes($stats['size']));
Severity: Minor
Found in app/Cli/Cleaner.php by phpcodesniffer

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

        \App\Session::load();
Severity: Minor
Found in app/Cli/Cleaner.php by phpcodesniffer

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

            $this->cli->actionsList('Cleaner');
Severity: Minor
Found in app/Cli/Cleaner.php by phpcodesniffer

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

        }
Severity: Minor
Found in app/Cli/Cleaner.php by phpcodesniffer

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

     *
Severity: Minor
Found in app/Cli/Cleaner.php by phpcodesniffer

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

     * @return void
Severity: Minor
Found in app/Cli/Cleaner.php by phpcodesniffer

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

        $stats = \App\Cache::clearTemporaryFiles('now');
Severity: Minor
Found in app/Cli/Cleaner.php by phpcodesniffer

There are no issues that match your filters.

Category
Status