YetiForceCompany/YetiForceCRM

View on GitHub
app/Main/File.php

Summary

Maintainability
A
2 hrs
Test Coverage
B
84%

process accesses the super-global variable $_SERVER.
Open

    public function process(\App\Request $request)
    {
        if (\Config\Security::$forceHttpsRedirection && !\App\RequestUtil::isHttps()) {
            header("location: https://{$_SERVER['HTTP_HOST']}{$_SERVER['REQUEST_URI']}", true, 301);
        }
Severity: Minor
Found in app/Main/File.php by phpmd

Superglobals

Since: 0.2

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

Example

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

Source

process accesses the super-global variable $_SERVER.
Open

    public function process(\App\Request $request)
    {
        if (\Config\Security::$forceHttpsRedirection && !\App\RequestUtil::isHttps()) {
            header("location: https://{$_SERVER['HTTP_HOST']}{$_SERVER['REQUEST_URI']}", true, 301);
        }
Severity: Minor
Found in app/Main/File.php by phpmd

Superglobals

Since: 0.2

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

Example

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

Source

process accesses the super-global variable $_SERVER.
Open

    public function process(\App\Request $request)
    {
        if (\Config\Security::$forceHttpsRedirection && !\App\RequestUtil::isHttps()) {
            header("location: https://{$_SERVER['HTTP_HOST']}{$_SERVER['REQUEST_URI']}", true, 301);
        }
Severity: Minor
Found in app/Main/File.php by phpmd

Superglobals

Since: 0.2

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

Example

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

Source

process accesses the super-global variable $_SERVER.
Open

    public function process(\App\Request $request)
    {
        if (\Config\Security::$forceHttpsRedirection && !\App\RequestUtil::isHttps()) {
            header("location: https://{$_SERVER['HTTP_HOST']}{$_SERVER['REQUEST_URI']}", true, 301);
        }
Severity: Minor
Found in app/Main/File.php by phpmd

Superglobals

Since: 0.2

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

Example

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

Source

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

    public function process(\App\Request $request)
    {
        if (\Config\Security::$forceHttpsRedirection && !\App\RequestUtil::isHttps()) {
            header("location: https://{$_SERVER['HTTP_HOST']}{$_SERVER['REQUEST_URI']}", true, 301);
        }
Severity: Minor
Found in app/Main/File.php - About 1 hr to fix

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

        public function process(\App\Request $request)
        {
            if (\Config\Security::$forceHttpsRedirection && !\App\RequestUtil::isHttps()) {
                header("location: https://{$_SERVER['HTTP_HOST']}{$_SERVER['REQUEST_URI']}", true, 301);
            }
    Severity: Minor
    Found in app/Main/File.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

    The method process() has an NPath complexity of 270. The configured NPath complexity threshold is 200.
    Open

        public function process(\App\Request $request)
        {
            if (\Config\Security::$forceHttpsRedirection && !\App\RequestUtil::isHttps()) {
                header("location: https://{$_SERVER['HTTP_HOST']}{$_SERVER['REQUEST_URI']}", true, 301);
            }
    Severity: Minor
    Found in app/Main/File.php by phpmd

    NPathComplexity

    Since: 0.1

    The NPath complexity of a method is the number of acyclic execution paths through that method. A threshold of 200 is generally considered the point where measures should be taken to reduce complexity.

    Example

    class Foo {
        function bar() {
            // lots of complicated code
        }
    }

    Source https://phpmd.org/rules/codesize.html#npathcomplexity

    The method process() has a Cyclomatic Complexity of 11. The configured cyclomatic complexity threshold is 10.
    Open

        public function process(\App\Request $request)
        {
            if (\Config\Security::$forceHttpsRedirection && !\App\RequestUtil::isHttps()) {
                header("location: https://{$_SERVER['HTTP_HOST']}{$_SERVER['REQUEST_URI']}", true, 301);
            }
    Severity: Minor
    Found in app/Main/File.php by phpmd

    CyclomaticComplexity

    Since: 0.1

    Complexity is determined by the number of decision points in a method plus one for the method entry. The decision points are 'if', 'while', 'for', and 'case labels'. Generally, 1-4 is low complexity, 5-7 indicates moderate complexity, 8-10 is high complexity, and 11+ is very high complexity.

    Example

    // Cyclomatic Complexity = 11
    class Foo {
    1   public function example() {
    2       if ($a == $b) {
    3           if ($a1 == $b1) {
                    fiddle();
    4           } elseif ($a2 == $b2) {
                    fiddle();
                } else {
                    fiddle();
                }
    5       } elseif ($c == $d) {
    6           while ($c == $d) {
                    fiddle();
                }
    7        } elseif ($e == $f) {
    8           for ($n = 0; $n < $h; $n++) {
                    fiddle();
                }
            } else {
                switch ($z) {
    9               case 1:
                        fiddle();
                        break;
    10              case 2:
                        fiddle();
                        break;
    11              case 3:
                        fiddle();
                        break;
                    default:
                        fiddle();
                        break;
                }
            }
        }
    }

    Source https://phpmd.org/rules/codesize.html#cyclomaticcomplexity

    Missing class import via use statement (line '51', column '15').
    Open

                    throw new \App\Exceptions\NoPermitted('ERR_NOT_ACCESSIBLE', 403);
    Severity: Minor
    Found in app/Main/File.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 '40', column '14').
    Open

                throw new \App\Exceptions\NoPermitted('Method Not Allowed', 405);
    Severity: Minor
    Found in app/Main/File.php by phpmd

    MissingImport

    Since: 2.7.0

    Importing all external classes in a file through use statements makes them clearly visible.

    Example

    function make() {
        return new \stdClass();
    }

    Source http://phpmd.org/rules/cleancode.html#MissingImport

    Missing class import via use statement (line '70', column '13').
    Open

            throw new \App\Exceptions\NoPermitted('Unauthorized', 401);
    Severity: Minor
    Found in app/Main/File.php by phpmd

    MissingImport

    Since: 2.7.0

    Importing all external classes in a file through use statements makes them clearly visible.

    Example

    function make() {
        return new \stdClass();
    }

    Source http://phpmd.org/rules/cleancode.html#MissingImport

    Avoid using static access to class '\App\Config' in method 'process'.
    Open

            if (\App\Config::security('csrfActive')) {
    Severity: Minor
    Found in app/Main/File.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\Config' in method 'process'.
    Open

                if (0 !== stripos($requestUrl, \App\Config::main('site_URL'))) {
    Severity: Minor
    Found in app/Main/File.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 'getLogin'.
    Open

                if ($userid && \App\Config::main('application_unique_key') === \App\Session::get('app_unique_key')) {
    Severity: Minor
    Found in app/Main/File.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 '\CsrfMagic\Csrf' in method 'process'.
    Open

                \CsrfMagic\Csrf::init();
    Severity: Minor
    Found in app/Main/File.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 'process'.
    Open

            \App\Session::init();
    Severity: Minor
    Found in app/Main/File.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 '\Vtiger_Loader' in method 'process'.
    Open

            $handlerClass = \Vtiger_Loader::getComponentClassName('File', $action, $moduleName);
    Severity: Minor
    Found in app/Main/File.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\Config' in method 'process'.
    Open

                    header('location: ' . \App\Config::main('site_URL'), true, 301);
    Severity: Minor
    Found in app/Main/File.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\Config' in method 'getLogin'.
    Open

                if ($userid && \App\Config::main('application_unique_key') === \App\Session::get('app_unique_key')) {
    Severity: Minor
    Found in app/Main/File.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\RequestUtil' in method 'process'.
    Open

            if (\Config\Security::$forceHttpsRedirection && !\App\RequestUtil::isHttps()) {
    Severity: Minor
    Found in app/Main/File.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\RequestUtil' in method 'process'.
    Open

                $requestUrl = (\App\RequestUtil::isHttps() ? 'https' : 'http') . '://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
    Severity: Minor
    Found in app/Main/File.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\Request' in method 'process'.
    Open

                $method = \App\Request::getRequestMethod();
    Severity: Minor
    Found in app/Main/File.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\User' in method 'getLogin'.
    Open

                    return \App\User::getCurrentUserModel();
    Severity: Minor
    Found in app/Main/File.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 'getLogin'.
    Open

            if (\App\Session::has('authenticated_user_id')) {
    Severity: Minor
    Found in app/Main/File.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 'getLogin'.
    Open

                $userid = \App\Session::get('authenticated_user_id');
    Severity: Minor
    Found in app/Main/File.php by phpmd

    StaticAccess

    Since: 1.4.0

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

    Example

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

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

    Call to method init from undeclared class \CsrfMagic\Csrf
    Open

                \CsrfMagic\Csrf::init();
    Severity: Critical
    Found in app/Main/File.php by phan

    Return type of getLogin() is undeclared type \App\Main\Users (Did you mean class \App\Cli\Users)
    Open

        public function getLogin()
    Severity: Minor
    Found in app/Main/File.php by phan

    Call to method getCurrentUserModel from undeclared class \App\User (Did you mean class \Tests\App\User)
    Open

                    return \App\User::getCurrentUserModel();
    Severity: Critical
    Found in app/Main/File.php by phan

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

            \App\Process::$processType = 'File';
    Severity: Minor
    Found in app/Main/File.php by phpcodesniffer

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

                $requestUrl = (\App\RequestUtil::isHttps() ? 'https' : 'http') . '://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
    Severity: Minor
    Found in app/Main/File.php by phpcodesniffer

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

                \CsrfMagic\Csrf::init();
    Severity: Minor
    Found in app/Main/File.php by phpcodesniffer

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

                throw new \App\Exceptions\NoPermitted('Method Not Allowed', 405);
    Severity: Minor
    Found in app/Main/File.php by phpcodesniffer

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

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

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

                require_once 'config/csrf_config.php';
    Severity: Minor
    Found in app/Main/File.php by phpcodesniffer

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

            if (\Config\Security::$forceUrlRedirection) {
    Severity: Minor
    Found in app/Main/File.php by phpcodesniffer

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

            $handlerClass = \Vtiger_Loader::getComponentClassName('File', $action, $moduleName);
    Severity: Minor
    Found in app/Main/File.php by phpcodesniffer

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

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

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

            $handler = new $handlerClass();
    Severity: Minor
    Found in app/Main/File.php by phpcodesniffer

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

                $userid = \App\Session::get('authenticated_user_id');
    Severity: Minor
    Found in app/Main/File.php by phpcodesniffer

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

                $handler->validateRequest($request);
    Severity: Minor
    Found in app/Main/File.php by phpcodesniffer

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

                    throw new \App\Exceptions\NoPermitted('ERR_NOT_ACCESSIBLE', 403);
    Severity: Minor
    Found in app/Main/File.php by phpcodesniffer

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

                if (0 !== stripos($requestUrl, \App\Config::main('site_URL'))) {
    Severity: Minor
    Found in app/Main/File.php by phpcodesniffer

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

            if (!$moduleName || !$action) {
    Severity: Minor
    Found in app/Main/File.php by phpcodesniffer

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

                $handler->{$method}($request);
    Severity: Minor
    Found in app/Main/File.php by phpcodesniffer

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

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

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

            $action = $request->getByType('action', \App\Purifier::STANDARD);
    Severity: Minor
    Found in app/Main/File.php by phpcodesniffer

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

                if (!$handler->{$permissionFunction}($request)) {
    Severity: Minor
    Found in app/Main/File.php by phpcodesniffer

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

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

    Line exceeds 120 characters; contains 133 characters
    Open

                $requestUrl = (\App\RequestUtil::isHttps() ? 'https' : 'http') . '://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
    Severity: Minor
    Found in app/Main/File.php by phpcodesniffer

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

            \App\Session::init();
    Severity: Minor
    Found in app/Main/File.php by phpcodesniffer

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

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

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

            if ($handler) {
    Severity: Minor
    Found in app/Main/File.php by phpcodesniffer

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

                $permissionFunction = $method . 'CheckPermission';
    Severity: Minor
    Found in app/Main/File.php by phpcodesniffer

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

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

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

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

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

        public function process(\App\Request $request)
    Severity: Minor
    Found in app/Main/File.php by phpcodesniffer

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

            if (\Config\Security::$forceHttpsRedirection && !\App\RequestUtil::isHttps()) {
    Severity: Minor
    Found in app/Main/File.php by phpcodesniffer

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

                header("location: https://{$_SERVER['HTTP_HOST']}{$_SERVER['REQUEST_URI']}", true, 301);
    Severity: Minor
    Found in app/Main/File.php by phpcodesniffer

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

         * @return Users object
    Severity: Minor
    Found in app/Main/File.php by phpcodesniffer

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

            if (\App\Config::security('csrfActive')) {
    Severity: Minor
    Found in app/Main/File.php by phpcodesniffer

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

            \App\Process::$processName = $action;
    Severity: Minor
    Found in app/Main/File.php by phpcodesniffer

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

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

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

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

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

                if ($userid && \App\Config::main('application_unique_key') === \App\Session::get('app_unique_key')) {
    Severity: Minor
    Found in app/Main/File.php by phpcodesniffer

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

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

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

            if (\App\Session::has('authenticated_user_id')) {
    Severity: Minor
    Found in app/Main/File.php by phpcodesniffer

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

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

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

                    header('location: ' . \App\Config::main('site_URL'), true, 301);
    Severity: Minor
    Found in app/Main/File.php by phpcodesniffer

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

            throw new \App\Exceptions\NoPermitted('Unauthorized', 401);
    Severity: Minor
    Found in app/Main/File.php by phpcodesniffer

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

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

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

            $this->getLogin();
    Severity: Minor
    Found in app/Main/File.php by phpcodesniffer

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

            $moduleName = $request->getModule(false);
    Severity: Minor
    Found in app/Main/File.php by phpcodesniffer

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

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

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

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

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

                    return \App\User::getCurrentUserModel();
    Severity: Minor
    Found in app/Main/File.php by phpcodesniffer

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

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

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

         * Function to get the instance of the logged in User.
    Severity: Minor
    Found in app/Main/File.php by phpcodesniffer

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

                $method = \App\Request::getRequestMethod();
    Severity: Minor
    Found in app/Main/File.php by phpcodesniffer

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

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

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

        public function getLogin()
    Severity: Minor
    Found in app/Main/File.php by phpcodesniffer

    There are no issues that match your filters.

    Category
    Status