YetiForceCompany/YetiForceCRM

View on GitHub
app/Controller/Action.php

Summary

Maintainability
A
0 mins
Test Coverage
F
50%

Avoid unused parameters such as '$request'.
Open

    public function process(\App\Request $request)
Severity: Minor
Found in app/Controller/Action.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

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

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

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

     * Process action.
Severity: Minor
Found in app/Controller/Action.php by phpcodesniffer

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

    /**
Severity: Minor
Found in app/Controller/Action.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/Controller/Action.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/Action.php by phpcodesniffer

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

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

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

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

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

    /** {@inheritdoc} */
Severity: Minor
Found in app/Controller/Action.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/Action.php by phpcodesniffer

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

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

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

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

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

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

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

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

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

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

There are no issues that match your filters.

Category
Status