YetiForceCompany/YetiForceCRM

View on GitHub
app/Log.php

Summary

Maintainability
D
2 days
Test Coverage
F
47%

File Log.php has 265 lines of code (exceeds 250 allowed). Consider refactoring.
Open

<?php
/**
 * Logger files.
 *
 * @package App
Severity: Minor
Found in app/Log.php - About 2 hrs to fix

    Function setLevels has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring.
    Open

        public function setLevels($levels)
        {
            if (\is_array($levels)) {
                foreach ($levels as $level) {
                    if (isset(self::$levelMap[$level])) {
    Severity: Minor
    Found in app/Log.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

    Function getlastLogs has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
    Open

        public static function getlastLogs($types = false)
        {
            $content = '';
            $i = 0;
            foreach (\Yii::getLogger()->messages as $message) {
    Severity: Minor
    Found in app/Log.php - About 35 mins 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 '358', column '17').
    Open

            $query = (new \App\Db\Query())->from('o_#__' . $type);
    Severity: Minor
    Found in app/Log.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 getlastLogs has a boolean flag argument $types, which is a certain sign of a Single Responsibility Principle violation.
    Open

        public static function getlastLogs($types = false)
    Severity: Minor
    Found in app/Log.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

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

        public static function getLogs($type, $mode, $countMode = false)
    Severity: Minor
    Found in app/Log.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

    Avoid using static access to class 'App\Debuger' in method 'log'.
    Open

                $traces = Debuger::getBacktrace(2, $this->traceLevel, ' - ');
    Severity: Minor
    Found in app/Log.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 getLogs uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
    Open

            } else {
                $query->limit(100);
            }
    Severity: Minor
    Found in app/Log.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\Debuger' in method 'log'.
    Open

                Debuger::addLogs($message, self::getLevelName($level), $traces);
    Severity: Minor
    Found in app/Log.php by phpmd

    StaticAccess

    Since: 1.4.0

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

    Example

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

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

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

            $db = \App\Db::getInstance('log');
    Severity: Minor
    Found in app/Log.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 '\yii\log\Logger' in method 'getlastLogs'.
    Open

                $level = \yii\log\Logger::getLevelName($message[1]);
    Severity: Minor
    Found in app/Log.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 setLevels uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
    Open

                    } else {
                        throw new Exceptions\AppException("Unrecognized level: $level");
                    }
    Severity: Minor
    Found in app/Log.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 setLevels uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
    Open

            } else {
                $bitmapValues = array_reduce(self::$levelMap, fn ($carry, $item) => $carry | $item);
                if (!($bitmapValues & $levels) && 0 !== $levels) {
                    throw new Exceptions\AppException("Incorrect $levels value");
                }
    Severity: Minor
    Found in app/Log.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

    syntax error, unexpected '=>' (T_DOUBLE_ARROW), expecting ',' or ')'
    Open

                $bitmapValues = array_reduce(self::$levelMap, fn ($carry, $item) => $carry | $item);
    Severity: Critical
    Found in app/Log.php by phan

    Similar blocks of code found in 3 locations. Consider refactoring.
    Open

            'profile' => [
                'label' => 'LBL_PROFILING',
                'labelModule' => 'Settings:Log',
                'table' => 'l_#__profile',
                'icon' => 'fas fa-stopwatch',
    Severity: Major
    Found in app/Log.php and 2 other locations - About 3 hrs to fix
    app/Log.php on lines 43..62
    app/Log.php on lines 63..82

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 143.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 3 locations. Consider refactoring.
    Open

            'magento' => [
                'label' => 'LBL_MAGENTO',
                'labelModule' => 'Settings:Magento',
                'table' => 'l_#__magento',
                'icon' => 'yfi-magento',
    Severity: Major
    Found in app/Log.php and 2 other locations - About 3 hrs to fix
    app/Log.php on lines 63..82
    app/Log.php on lines 142..161

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 143.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 3 locations. Consider refactoring.
    Open

            'wapro' => [
                'label' => 'LBL_WAPRO_ERP',
                'labelModule' => 'Settings:Wapro',
                'table' => 'l_#__wapro',
                'icon' => 'fab fa-connectdevelop',
    Severity: Major
    Found in app/Log.php and 2 other locations - About 3 hrs to fix
    app/Log.php on lines 43..62
    app/Log.php on lines 142..161

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 143.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 2 locations. Consider refactoring.
    Open

            'batchMethod' => [
                'label' => 'LBL_BATCH_METHODS',
                'labelModule' => 'Settings:CronTasks',
                'table' => 'l_#__batchmethod',
                'icon' => 'fas fa-swatchbook',
    Severity: Major
    Found in app/Log.php and 1 other location - About 2 hrs to fix
    app/Log.php on lines 123..141

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 138.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 2 locations. Consider refactoring.
    Open

            'mail' => [
                'label' => 'LBL_MAILS_NOT_SENT',
                'labelModule' => 'Settings:Log',
                'table' => 'l_#__mail',
                'icon' => 'adminIcon-mail-queue',
    Severity: Major
    Found in app/Log.php and 1 other location - About 2 hrs to fix
    app/Log.php on lines 104..122

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 138.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Avoid excessively long variable names like $logsViewerColumnMapping. Keep variable name length under 20.
    Open

        public static $logsViewerColumnMapping = [
            'magento' => [
                'label' => 'LBL_MAGENTO',
                'labelModule' => 'Settings:Magento',
                'table' => 'l_#__magento',
    Severity: Minor
    Found in app/Log.php by phpmd

    LongVariable

    Since: 0.2

    Detects when a field, formal or local variable is declared with a long name.

    Example

    class Something {
        protected $reallyLongIntName = -3; // VIOLATION - Field
        public static function main( array $interestingArgumentsList[] ) { // VIOLATION - Formal
            $otherReallyLongName = -5; // VIOLATION - Local
            for ($interestingIntIndex = 0; // VIOLATION - For
                 $interestingIntIndex < 10;
                 $interestingIntIndex++ ) {
            }
        }
    }

    Source https://phpmd.org/rules/naming.html#longvariable

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

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

            $db = \App\Db::getInstance('log');
    Severity: Minor
    Found in app/Log.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 app/Log.php by phpcodesniffer

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

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

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

                    'time' => 'DateTimeRange',
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

                'icon' => 'yfi-users',
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

                    'status' => ['type' => 'Text', 'label' => 'LBL_STATUS'],
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

                ],
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

         * Column mapping by table for logs owasp.
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

                ],
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

                'label' => 'LBL_WAPRO_ERP',
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

                ],
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

            'access_for_user' => ['date', 'username', 'ip', 'module', 'url', 'agent', 'request', 'referer'],
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

            'magento' => [
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

                    'message' => ['type' => 'Text', 'label' => 'LBL_MESSAGE'],
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

                    'code' => ['type' => 'Text', 'label' => 'LBL_CODE'],
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

                'columns' => [
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

            'switchUsers' => [
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

                    'agent' => 'Text',
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

                'label' => 'LBL_MAGENTO',
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

                    'trace' => 'Text',
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

                ],
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

                    'dusername' => 'Text',
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

            ],
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

        public $logToLevels = 0;
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

         * @var array
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

                    'time' => ['type' => 'DateTime', 'label' => 'LBL_TIME'],
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

                    'time' => 'DateTimeRange',
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

                    'message' => 'Text',
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

                    'busername' => ['type' => 'Text', 'label' => 'LBL_BASE_USER'],
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

            'access_for_admin' => ['date', 'username', 'ip', 'module', 'url', 'agent', 'request', 'referer'],
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

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

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

                    'date' => 'DateTimeRange',
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

            'csrf' => ['date', 'username', 'ip', 'referer', 'url', 'agent'],
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

                'labelModule' => 'Settings:Wapro',
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

                    'error' => ['type' => 'Text', 'label' => 'LBL_CODE'],
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

                    'code' => 'Text',
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

            ],
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

                'columns' => [
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

                    'date' => ['type' => 'DateTime', 'label' => 'LBL_TIME'],
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

                    'agent' => ['type' => 'Text', 'label' => 'LBL_USER_AGENT'],
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

                'labelModule' => 'Settings:CronTasks',
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

                'columns' => [
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

                    'code' => 'Text',
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

                    'trace' => 'Text',
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

        public static $logToFile;
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

            'wapro' => [
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

        public static $logToProfile;
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

                'table' => 'l_#__magento',
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

                ],
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

                    'category' => ['type' => 'Text', 'label' => 'LBL_CATEGORY'],
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

                    'busername' => 'Text',
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

        public static $owaspColumnMapping = [
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

         * Column mapping by table for logs viewer.
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

                    'category' => 'Text',
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

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

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

                'labelModule' => 'Settings:Magento',
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

                    'time' => ['type' => 'DateTime', 'label' => 'LBL_TIME'],
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

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

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

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

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

                'filter' => [
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

                'labelModule' => 'Settings:Users',
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

                    'ip' => 'Text',
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

            'access_for_api' => ['date', 'username', 'ip', 'url', 'agent', 'request'],
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

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

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

                'filter' => [
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

            'access_to_record' => ['date', 'username', 'ip', 'module', 'record', 'url', 'agent', 'request', 'referer'],
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

        public static $logsViewerColumnMapping = [
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

                'icon' => 'yfi-magento',
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

                    'category' => ['type' => 'Text', 'label' => 'LBL_CATEGORY'],
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

                    'category' => 'Text',
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

                'table' => 'l_#__wapro',
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

                'label' => 'LBL_SWITCH_USERS',
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

        public static $logToConsole;
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

                    'trace' => ['type' => 'Text', 'label' => 'LBL_BACKTRACE'],
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

                    'message' => 'Text',
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

                    'message' => ['type' => 'Text', 'label' => 'LBL_MESSAGE'],
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

                    'trace' => ['type' => 'Text', 'label' => 'LBL_BACKTRACE'],
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

                'table' => 'l_#__switch_users',
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

                    'dusername' => ['type' => 'Text', 'label' => 'LBL_DEST_USER'],
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

                'label' => 'LBL_BATCH_METHODS',
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

         * @var array
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

                'filter' => [
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

            ],
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

                'icon' => 'fab fa-connectdevelop',
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

                ],
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

                    'ip' => ['type' => 'Text', 'label' => 'LBL_IP_ADDRESS'],
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

            'batchMethod' => [
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

                ],
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

                ],
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

            ],
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

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

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

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

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

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

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

        public static function trace($message, $category = '')
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

         * @param string $category the category of the message
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

                'icon' => 'fas fa-swatchbook',
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

                    'from' => 'Text',
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

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

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

                $bitmapValues = array_reduce(self::$levelMap, fn ($carry, $item) => $carry | $item);
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

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

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

         * @param string $category the category of the message
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

                'columns' => [
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

        public static $levelMap = [
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

            if (\is_array($levels)) {
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

                        $this->logToLevels |= self::$levelMap[$level];
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

                    } else {
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

         * @param int          $level    the level of the message. This must be one of the following:
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

            if ($this->traceLevel) {
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

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

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

            if (static::$logToFile) {
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

         * Logs an informative message.
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

                    'params' => 'Text',
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

                'labelModule' => 'Settings:Log',
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

                    'trace' => ['type' => 'Text', 'label' => 'LBL_BACKTRACE'],
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

                    'duration' => ['type' => 'Text', 'label' => 'LBL_DURATION'],
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

            'profile' => Logger::LEVEL_PROFILE,
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

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

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

                return;
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

                \Yii::getLogger()->log($message, Logger::LEVEL_TRACE, $category);
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

                'labelModule' => 'Settings:Log',
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

                'label' => 'LBL_MAILS_NOT_SENT',
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

            'info' => Logger::LEVEL_INFO,
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

                    'log_time' => ['type' => 'Text', 'label' => 'LBL_TIME'],
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

                    'duration' => 'Text',
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

        public function init()
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

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

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

            } else {
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

         * Sets the message levels that this target is interested in.
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

                    throw new Exceptions\AppException("Incorrect $levels value");
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

                $this->logToLevels = $levels;
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

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

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

            if (static::$logToConsole) {
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

         * Logs a message with the given type and category.
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

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

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

         *                               complex data structure that will be handled by a [[Target|log target]]
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

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

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

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

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

                'table' => 'l_#__batchmethod',
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

                'columns' => [
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

                'filter' => [
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

                    'to' => 'Text',
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

                    'category' => 'Text',
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

            ],
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

            'error' => Logger::LEVEL_ERROR,
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

            'warning' => Logger::LEVEL_WARNING,
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

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

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

            parent::init();
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

            if (\Config\Debug::$LOG_LEVELS) {
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

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

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

                foreach ($levels as $level) {
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

                if (!($bitmapValues & $levels) && 0 !== $levels) {
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

            if (0 !== $this->logToLevels && !($this->logToLevels & $level)) {
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

                $this->flush();
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

        public static function info($message, $category = '')
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

                'columns' => [
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

                    'subject' => ['type' => 'Text', 'label' => 'LBL_SUBJECT'],
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

                'table' => 'l_#__profile',
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

                ],
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

            'trace' => Logger::LEVEL_TRACE,
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

         * Initializes the logger by registering [[flush()]] as a shutdown function.
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

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

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

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

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

        public function log($message, $level, $category = '')
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

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

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

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

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

                    'date' => ['type' => 'DateTime', 'label' => 'LBL_TIME'],
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

                    'method' => ['type' => 'Text', 'label' => 'LBL_BATCH_NAME'],
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

                ],
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

                'filter' => [
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

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

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

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

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

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

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

         * If [[traceLevel]] is greater than 0, additional call stack information about
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

         * @param string       $category the category of the message
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

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

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

                    'message' => ['type' => 'Text', 'label' => 'LBL_ERROR_MASAGE'],
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

                ],
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

            ],
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

                    'owner' => ['type' => 'Owner', 'label' => 'LBL_OWNER'],
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

                    'subject' => 'Text',
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

            'profile' => [
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

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

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

         * @param array|int $levels message levels that this target is interested in.
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

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

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

         * An informative message is typically logged by an application to keep record of
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

                    'from' => ['type' => 'Text', 'label' => 'LBL_FROM'],
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

                    'category' => ['type' => 'Text', 'label' => 'Category'],
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

                    'subinfoject' => 'Text',
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

                $this->setLevels(\Config\Debug::$LOG_LEVELS);
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

         * the application code will be logged as well.
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

         * @param array|string $message  the message to be logged. This can be a simple string or a more
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

         *                               `Logger::LEVEL_ERROR`, `Logger::LEVEL_WARNING`, `Logger::LEVEL_INFO`, `Logger::LEVEL_TRACE`,
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

            $traces = '';
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

                Debuger::addLogs($message, self::getLevelName($level), $traces);
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

         * Trace messages are logged mainly for development purpose to see
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

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

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

                    'userid' => ['type' => 'Owner', 'label' => 'LBL_OWNER'],
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

                'icon' => 'adminIcon-mail-queue',
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

                    'info' => ['type' => 'Text', 'label' => 'LBL_PARAMS'],
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

                ],
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

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

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

        public function setLevels($levels)
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

    Line exceeds 120 characters; contains 129 characters
    Open

         *                               `Logger::LEVEL_ERROR`, `Logger::LEVEL_WARNING`, `Logger::LEVEL_INFO`, `Logger::LEVEL_TRACE`,
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

            if ($this->flushInterval > 0 && \count($this->messages) >= $this->flushInterval) {
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

         * Logs a trace message.
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

         * @param string $message  the message to be logged
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

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

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

                    'date' => 'DateTimeRange',
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

            'mail' => [
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

                    'log_time' => 'Text',
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

                    if (isset(self::$levelMap[$level])) {
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

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

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

         * the execution work flow of some code.
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

                'filter' => [
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

                'icon' => 'fas fa-stopwatch',
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

                        throw new Exceptions\AppException("Unrecognized level: $level");
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

            $this->messages[] = [$message, $level, $category, microtime(true), $traces];
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

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

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

         * @param string $message  the message to be logged
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

                'table' => 'l_#__mail',
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

                    'date' => ['type' => 'DateTime', 'label' => 'LBL_TIME'],
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

                    'to' => ['type' => 'Text', 'label' => 'LBL_TO'],
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

                    'date' => 'DateTimeRange',
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

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

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

         *                               `Logger::LEVEL_PROFILE_BEGIN`, `Logger::LEVEL_PROFILE_END`
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

                    'params' => ['type' => 'Text', 'label' => 'LBL_PARAMS'],
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

                    'method' => 'Text',
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

                    'message' => 'Text',
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

                'label' => 'LBL_PROFILING',
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

                    'trace' => 'Text',
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

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

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

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

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

                $traces = Debuger::getBacktrace(2, $this->traceLevel, ' - ');
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

         * something important (e.g. an administrator logs in).
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

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

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

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

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

         * A warning message is typically logged when an error occurs while the execution
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

         * This has to be matched with a previous call to [[beginProfile]] with the same category name.
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

         * @see beginProfile()
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

                if ($categories && !\in_array($category, $categories)) {
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

         * @return array
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

                    continue;
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

            return $content;
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

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

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

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

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

         * @param string $message  the message to be logged
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

            if (static::$logToFile) {
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

                \Yii::getLogger()->log($message, Logger::LEVEL_ERROR, $category);
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

         *     \Yii::beginProfile('block2');
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

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

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

         * @param string $category the category of this log message
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

         * @param string $mode
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

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

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

            if ('oneDay' === $mode) {
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

                return $query->count('*', $db);
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

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

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

         * @param bool|string[] $types
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

                if ($category) {
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

            if (static::$logToFile) {
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

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

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

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

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

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

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

         * Marks the end of a code block for profiling.
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

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

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

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

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

        public static function warning($message, $category = '')
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

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

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

         * ```php
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

         * \Yii::beginProfile('block1');
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

         * @param string $category the category of this log message
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

            $content = '';
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

                if (false !== $types && !\in_array($level, $types)) {
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

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

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

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

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

        public static function error($message, $category = '')
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

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

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

                    return;
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

            $db = \App\Db::getInstance('log');
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

                $query->where(['>=', 'date', date('Y-m-d H:i:s', strtotime('-1 day'))]);
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

                \Yii::getLogger()->log($message, Logger::LEVEL_INFO, $category);
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

            if (static::$logToFile) {
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

                \Yii::getLogger()->log($message, Logger::LEVEL_WARNING, $category);
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

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

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

         * Marks the beginning of a code block for profiling.
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

         * This has to be matched with a call to [[endProfile]] with the same category name.
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

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

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

                    return;
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

         * @param string $category the category of the message
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

         * An error message is typically logged when an unrecoverable error occurs
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

            if (static::$logToProfile) {
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

         * @param string $token    token for the code block
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

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

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

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

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

            return $query->all($db);
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

         * @return string
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

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

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

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

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

         * can still continue.
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

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

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

         * @param string $category the category of the message
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

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

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

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

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

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

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

         * The begin- and end- calls must also be properly nested. For example,.
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

         * @see endProfile()
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

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

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

                $categories = \Config\Debug::$LOG_PROFILE_CATEGORIES ?? [];
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

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

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

                if ($categories && !\in_array($category, $categories)) {
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

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

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

                $level = \yii\log\Logger::getLevelName($message[1]);
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

            if (static::$logToProfile) {
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

         * @param string $type
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

        public static function getLogs($type, $mode, $countMode = false)
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

                $category = $message[2] ?: '';
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

                $content .= " {$message[0]}" . PHP_EOL;
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

         * ```
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

                $categories = \Config\Debug::$LOG_PROFILE_CATEGORIES ?? [];
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

         * @param bool   $countMode
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

            $query->orderBy(['id' => SORT_DESC]);
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

         * @param string $message  the message to be logged
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

         * // some code to be profiled
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

         * @param string $token    token for the code block
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

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

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

            foreach (\Yii::getLogger()->messages as $message) {
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

                $content .= "#$i [$level]";
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

         *     // some other code to be profiled
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

         *     \Yii::endProfile('block2');
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

         * \Yii::endProfile('block1');
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

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

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

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

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

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

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

                $query->limit(100);
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

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

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

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

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

         * Logs an error message.
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

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

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

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

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

            $query = (new \App\Db\Query())->from('o_#__' . $type);
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

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

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

            if ($countMode) {
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

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

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

        public static function getlastLogs($types = false)
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

         * during the execution of an application.
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

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

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

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

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

                \Yii::getLogger()->log($token, Logger::LEVEL_PROFILE_END, $category);
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

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

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

         * Get last logs.
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

                    $content .= "[$category]";
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

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

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

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

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

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

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

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

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

         * Get user action logs.
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

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

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

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

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

         * Logs a warning message.
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

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

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

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

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

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

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

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

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

        public static function beginProfile($token, $category = '')
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

                \Yii::getLogger()->log($token, Logger::LEVEL_PROFILE_BEGIN, $category);
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

        public static function endProfile($token, $category = '')
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

            } else {
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

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

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

    Space before opening parenthesis of function call prohibited
    Open

                $bitmapValues = array_reduce(self::$levelMap, fn ($carry, $item) => $carry | $item);
    Severity: Minor
    Found in app/Log.php by phpcodesniffer

    There are no issues that match your filters.

    Category
    Status