awsmug/torro-forms-plugin-boilerplate

View on GitHub
src/actions/frontend-posting.php

Summary

Maintainability
A
35 mins
Test Coverage

Method process_response has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

    protected function process_response( $response, $connection, $route_slug, $submission, $form ) {
Severity: Minor
Found in src/actions/frontend-posting.php - About 35 mins to fix

    Avoid unused parameters such as '$route_slug'.
    Open

        protected function process_response( $response, $connection, $route_slug, $submission, $form ) {
    Severity: Minor
    Found in src/actions/frontend-posting.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 '$submission'.
    Open

        protected function process_response( $response, $connection, $route_slug, $submission, $form ) {
    Severity: Minor
    Found in src/actions/frontend-posting.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 '$form'.
    Open

        protected function process_response( $response, $connection, $route_slug, $submission, $form ) {
    Severity: Minor
    Found in src/actions/frontend-posting.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

    There are no issues that match your filters.

    Category
    Status