YetiForceCompany/YetiForceCRM

View on GitHub
app/Controller/Base.php

Summary

Maintainability
A
0 mins
Test Coverage
A
100%

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

    public function postProcess(\App\Request $request, $display = true)
Severity: Minor
Found in app/Controller/Base.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 preProcess has a boolean flag argument $display, which is a certain sign of a Single Responsibility Principle violation.
Open

    public function preProcess(\App\Request $request, $display = true)
Severity: Minor
Found in app/Controller/Base.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\Config' in method '__construct'.
Open

        if (!self::$activatedLocale && \App\Config::performance('CHANGE_LOCALE')) {
Severity: Minor
Found in app/Controller/Base.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\Controller\Headers' in method '__construct'.
Open

        $this->headers = \App\Controller\Headers::getInstance();
Severity: Minor
Found in app/Controller/Base.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\Language' in method '__construct'.
Open

            \App\Language::initLocale();
Severity: Minor
Found in app/Controller/Base.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 '__construct'.
Open

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

        if (\App\Config::security('csrfActive') && !self::$csrfInitiated) {
Severity: Minor
Found in app/Controller/Base.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

Remove the unused function parameter "$request".
Open

    public function isSessionExtend(\App\Request $request)
Severity: Major
Found in app/Controller/Base.php by sonar-php

Unused parameters are misleading. Whatever the value passed to such parameters is, the behavior will be the same.

Noncompliant Code Example

function doSomething($a, $b) { // "$a" is unused
  return compute($b);
}

Compliant Solution

function doSomething($b) {
  return compute($b);
}

Exceptions

Functions in classes that override a class or implement interfaces are ignored.

class C extends B {

  function doSomething($a, $b) {     // no issue reported on $b
    compute($a);
  }

}

See

  • MISRA C++:2008, 0-1-11 - There shall be no unused parameters (named or unnamed) in nonvirtual functions.
  • MISRA C:2012, 2.7 - There should be no unused parameters in functions
  • CERT, MSC12-C. - Detect and remove code that has no effect or is never executed
  • CERT, MSC12-CPP. - Detect and remove code that has no effect

Remove the unused function parameter "$request".
Open

    public function postProcess(\App\Request $request, $display = true)
Severity: Major
Found in app/Controller/Base.php by sonar-php

Unused parameters are misleading. Whatever the value passed to such parameters is, the behavior will be the same.

Noncompliant Code Example

function doSomething($a, $b) { // "$a" is unused
  return compute($b);
}

Compliant Solution

function doSomething($b) {
  return compute($b);
}

Exceptions

Functions in classes that override a class or implement interfaces are ignored.

class C extends B {

  function doSomething($a, $b) {     // no issue reported on $b
    compute($a);
  }

}

See

  • MISRA C++:2008, 0-1-11 - There shall be no unused parameters (named or unnamed) in nonvirtual functions.
  • MISRA C:2012, 2.7 - There should be no unused parameters in functions
  • CERT, MSC12-C. - Detect and remove code that has no effect or is never executed
  • CERT, MSC12-CPP. - Detect and remove code that has no effect

Remove the unused function parameter "$display".
Open

    public function postProcess(\App\Request $request, $display = true)
Severity: Major
Found in app/Controller/Base.php by sonar-php

Unused parameters are misleading. Whatever the value passed to such parameters is, the behavior will be the same.

Noncompliant Code Example

function doSomething($a, $b) { // "$a" is unused
  return compute($b);
}

Compliant Solution

function doSomething($b) {
  return compute($b);
}

Exceptions

Functions in classes that override a class or implement interfaces are ignored.

class C extends B {

  function doSomething($a, $b) {     // no issue reported on $b
    compute($a);
  }

}

See

  • MISRA C++:2008, 0-1-11 - There shall be no unused parameters (named or unnamed) in nonvirtual functions.
  • MISRA C:2012, 2.7 - There should be no unused parameters in functions
  • CERT, MSC12-C. - Detect and remove code that has no effect or is never executed
  • CERT, MSC12-CPP. - Detect and remove code that has no effect

Remove the unused function parameter "$request".
Open

    public function preProcessAjax(\App\Request $request)
Severity: Major
Found in app/Controller/Base.php by sonar-php

Unused parameters are misleading. Whatever the value passed to such parameters is, the behavior will be the same.

Noncompliant Code Example

function doSomething($a, $b) { // "$a" is unused
  return compute($b);
}

Compliant Solution

function doSomething($b) {
  return compute($b);
}

Exceptions

Functions in classes that override a class or implement interfaces are ignored.

class C extends B {

  function doSomething($a, $b) {     // no issue reported on $b
    compute($a);
  }

}

See

  • MISRA C++:2008, 0-1-11 - There shall be no unused parameters (named or unnamed) in nonvirtual functions.
  • MISRA C:2012, 2.7 - There should be no unused parameters in functions
  • CERT, MSC12-C. - Detect and remove code that has no effect or is never executed
  • CERT, MSC12-CPP. - Detect and remove code that has no effect

Remove the unused function parameter "$display".
Open

    public function preProcess(\App\Request $request, $display = true)
Severity: Major
Found in app/Controller/Base.php by sonar-php

Unused parameters are misleading. Whatever the value passed to such parameters is, the behavior will be the same.

Noncompliant Code Example

function doSomething($a, $b) { // "$a" is unused
  return compute($b);
}

Compliant Solution

function doSomething($b) {
  return compute($b);
}

Exceptions

Functions in classes that override a class or implement interfaces are ignored.

class C extends B {

  function doSomething($a, $b) {     // no issue reported on $b
    compute($a);
  }

}

See

  • MISRA C++:2008, 0-1-11 - There shall be no unused parameters (named or unnamed) in nonvirtual functions.
  • MISRA C:2012, 2.7 - There should be no unused parameters in functions
  • CERT, MSC12-C. - Detect and remove code that has no effect or is never executed
  • CERT, MSC12-CPP. - Detect and remove code that has no effect

Remove the unused function parameter "$request".
Open

    public function preProcess(\App\Request $request, $display = true)
Severity: Major
Found in app/Controller/Base.php by sonar-php

Unused parameters are misleading. Whatever the value passed to such parameters is, the behavior will be the same.

Noncompliant Code Example

function doSomething($a, $b) { // "$a" is unused
  return compute($b);
}

Compliant Solution

function doSomething($b) {
  return compute($b);
}

Exceptions

Functions in classes that override a class or implement interfaces are ignored.

class C extends B {

  function doSomething($a, $b) {     // no issue reported on $b
    compute($a);
  }

}

See

  • MISRA C++:2008, 0-1-11 - There shall be no unused parameters (named or unnamed) in nonvirtual functions.
  • MISRA C:2012, 2.7 - There should be no unused parameters in functions
  • CERT, MSC12-C. - Detect and remove code that has no effect or is never executed
  • CERT, MSC12-CPP. - Detect and remove code that has no effect

Remove the unused function parameter "$request".
Open

    public function postProcessAjax(\App\Request $request)
Severity: Major
Found in app/Controller/Base.php by sonar-php

Unused parameters are misleading. Whatever the value passed to such parameters is, the behavior will be the same.

Noncompliant Code Example

function doSomething($a, $b) { // "$a" is unused
  return compute($b);
}

Compliant Solution

function doSomething($b) {
  return compute($b);
}

Exceptions

Functions in classes that override a class or implement interfaces are ignored.

class C extends B {

  function doSomething($a, $b) {     // no issue reported on $b
    compute($a);
  }

}

See

  • MISRA C++:2008, 0-1-11 - There shall be no unused parameters (named or unnamed) in nonvirtual functions.
  • MISRA C:2012, 2.7 - There should be no unused parameters in functions
  • CERT, MSC12-C. - Detect and remove code that has no effect or is never executed
  • CERT, MSC12-CPP. - Detect and remove code that has no effect

Avoid unused parameters such as '$request'.
Open

    public function isSessionExtend(\App\Request $request)
Severity: Minor
Found in app/Controller/Base.php by phpmd

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

Avoid unused parameters such as '$display'.
Open

    public function postProcess(\App\Request $request, $display = true)
Severity: Minor
Found in app/Controller/Base.php by phpmd

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

Avoid unused parameters such as '$request'.
Open

    public function preProcess(\App\Request $request, $display = true)
Severity: Minor
Found in app/Controller/Base.php by phpmd

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

Avoid unused parameters such as '$display'.
Open

    public function preProcess(\App\Request $request, $display = true)
Severity: Minor
Found in app/Controller/Base.php by phpmd

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

Avoid unused parameters such as '$request'.
Open

    public function postProcess(\App\Request $request, $display = true)
Severity: Minor
Found in app/Controller/Base.php by phpmd

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

Avoid unused parameters such as '$request'.
Open

    public function postProcessAjax(\App\Request $request)
Severity: Minor
Found in app/Controller/Base.php by phpmd

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

Avoid unused parameters such as '$request'.
Open

    public function preProcessAjax(\App\Request $request)
Severity: Minor
Found in app/Controller/Base.php by phpmd

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

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

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

Call to method send from undeclared class \App\Headers (Did you mean class \App\Controller\Headers)
Open

        $this->headers->send();
Severity: Critical
Found in app/Controller/Base.php by phan

Assigning \App\Controller\Base|\App\Controller\Headers|\self to property but \App\Controller\Base->headers is \App\Headers
Open

        $this->headers = \App\Controller\Headers::getInstance();
Severity: Minor
Found in app/Controller/Base.php by phan

Property \App\Controller\Base->headers has undeclared type \App\Headers (Did you mean class \App\Controller\Headers)
Open

    public $headers;
Severity: Minor
Found in app/Controller/Base.php by phan

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

     * Constructor.
Severity: Minor
Found in app/Controller/Base.php by phpcodesniffer

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

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

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

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

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

        $this->headers->send();
Severity: Minor
Found in app/Controller/Base.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/Controller/Base.php by phpcodesniffer

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

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

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

     * @param \App\Request $request
Severity: Minor
Found in app/Controller/Base.php by phpcodesniffer

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

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

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

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

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

     * @param \App\Request $request
Severity: Minor
Found in app/Controller/Base.php by phpcodesniffer

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

    public function postProcess(\App\Request $request, $display = true)
Severity: Minor
Found in app/Controller/Base.php by phpcodesniffer

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

    public function loginRequired()
Severity: Minor
Found in app/Controller/Base.php by phpcodesniffer

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

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

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

    abstract public function checkPermission(\App\Request $request);
Severity: Minor
Found in app/Controller/Base.php by phpcodesniffer

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

     * Function to validate request method.
Severity: Minor
Found in app/Controller/Base.php by phpcodesniffer

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

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

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

     * Post process function.
Severity: Minor
Found in app/Controller/Base.php by phpcodesniffer

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

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

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

        $request->validateReadAccess();
Severity: Minor
Found in app/Controller/Base.php by phpcodesniffer

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

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

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

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

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

     * Pre process function.
Severity: Minor
Found in app/Controller/Base.php by phpcodesniffer

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

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

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

     * @param bool         $display
Severity: Minor
Found in app/Controller/Base.php by phpcodesniffer

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

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

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

     * Send headers.
Severity: Minor
Found in app/Controller/Base.php by phpcodesniffer

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

    /** @var bool  CSRF already initiated. */
Severity: Minor
Found in app/Controller/Base.php by phpcodesniffer

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

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

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

    abstract public function process(\App\Request $request);
Severity: Minor
Found in app/Controller/Base.php by phpcodesniffer

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

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

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

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

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

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

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

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

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

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

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

        if (!self::$activatedLocale && \App\Config::performance('CHANGE_LOCALE')) {
Severity: Minor
Found in app/Controller/Base.php by phpcodesniffer

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

            self::$activatedLocale = true;
Severity: Minor
Found in app/Controller/Base.php by phpcodesniffer

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

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

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

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

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

     * Process function.
Severity: Minor
Found in app/Controller/Base.php by phpcodesniffer

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

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

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

     * Pre process ajax function.
Severity: Minor
Found in app/Controller/Base.php by phpcodesniffer

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

     * @param bool         $display
Severity: Minor
Found in app/Controller/Base.php by phpcodesniffer

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

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

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

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

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

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

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

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

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

     * Function to check login required permission.
Severity: Minor
Found in app/Controller/Base.php by phpcodesniffer

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

    public function preProcessAjax(\App\Request $request)
Severity: Minor
Found in app/Controller/Base.php by phpcodesniffer

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

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

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

     * @param \App\Request $request
Severity: Minor
Found in app/Controller/Base.php by phpcodesniffer

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

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

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

     * @param \App\Request $request
Severity: Minor
Found in app/Controller/Base.php by phpcodesniffer

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

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

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

    public function __construct()
Severity: Minor
Found in app/Controller/Base.php by phpcodesniffer

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

    public function validateRequest(\App\Request $request)
Severity: Minor
Found in app/Controller/Base.php by phpcodesniffer

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

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

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

    public function preProcess(\App\Request $request, $display = true)
Severity: Minor
Found in app/Controller/Base.php by phpcodesniffer

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

     * @param \App\Request $request
Severity: Minor
Found in app/Controller/Base.php by phpcodesniffer

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

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

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

     * @return bool
Severity: Minor
Found in app/Controller/Base.php by phpcodesniffer

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

    public function isSessionExtend(\App\Request $request)
Severity: Minor
Found in app/Controller/Base.php by phpcodesniffer

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

        return true;
Severity: Minor
Found in app/Controller/Base.php by phpcodesniffer

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

            self::$csrfInitiated = true;
Severity: Minor
Found in app/Controller/Base.php by phpcodesniffer

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

     * @param \App\Request $request
Severity: Minor
Found in app/Controller/Base.php by phpcodesniffer

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

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

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

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

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

     * @param \App\Request $request
Severity: Minor
Found in app/Controller/Base.php by phpcodesniffer

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

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

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

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

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

    private static $csrfInitiated = false;
Severity: Minor
Found in app/Controller/Base.php by phpcodesniffer

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

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

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

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

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

        if (\App\Config::security('csrfActive') && !self::$csrfInitiated) {
Severity: Minor
Found in app/Controller/Base.php by phpcodesniffer

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

    public function postProcessAjax(\App\Request $request)
Severity: Minor
Found in app/Controller/Base.php by phpcodesniffer

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

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

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

    public function sendHeaders()
Severity: Minor
Found in app/Controller/Base.php by phpcodesniffer

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

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

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

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

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

    public $headers;
Severity: Minor
Found in app/Controller/Base.php by phpcodesniffer

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

    protected static $activatedLocale = false;
Severity: Minor
Found in app/Controller/Base.php by phpcodesniffer

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

            \App\Language::initLocale();
Severity: Minor
Found in app/Controller/Base.php by phpcodesniffer

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

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

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

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

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

     * @return bool
Severity: Minor
Found in app/Controller/Base.php by phpcodesniffer

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

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

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

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

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

     * @return void
Severity: Minor
Found in app/Controller/Base.php by phpcodesniffer

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

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

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

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

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

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

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

     * Function to check if session is extended.
Severity: Minor
Found in app/Controller/Base.php by phpcodesniffer

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

     * @param \App\Request $request
Severity: Minor
Found in app/Controller/Base.php by phpcodesniffer

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

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

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

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

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

     * Post process ajax function.
Severity: Minor
Found in app/Controller/Base.php by phpcodesniffer

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

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

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

        $this->headers = \App\Controller\Headers::getInstance();
Severity: Minor
Found in app/Controller/Base.php by phpcodesniffer

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

        return true;
Severity: Minor
Found in app/Controller/Base.php by phpcodesniffer

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

     * Function to check permission.
Severity: Minor
Found in app/Controller/Base.php by phpcodesniffer

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

     * @throws \App\Exceptions\NoPermitted
Severity: Minor
Found in app/Controller/Base.php by phpcodesniffer

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

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

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

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

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

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

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

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

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

    /** @var \App\Headers Headers instance. */
Severity: Minor
Found in app/Controller/Base.php by phpcodesniffer

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

    /** @var bool Activated language locale. */
Severity: Minor
Found in app/Controller/Base.php by phpcodesniffer

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

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

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

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

There are no issues that match your filters.

Category
Status