bueltge/wp-rest-api-filter-items

View on GitHub
inc/Core/Filter.php

Summary

Maintainability
A
0 mins
Test Coverage

The variable $filtered_data is not named in camelCase.
Open

    public function filter_data() {

        if ( empty( $this->request ) ) {
            return $this->data;
        }
Severity: Minor
Found in inc/Core/Filter.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $filtered_data is not named in camelCase.
Open

    public function filter_data() {

        if ( empty( $this->request ) ) {
            return $this->data;
        }
Severity: Minor
Found in inc/Core/Filter.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $filtered_data is not named in camelCase.
Open

    public function filter_data() {

        if ( empty( $this->request ) ) {
            return $this->data;
        }
Severity: Minor
Found in inc/Core/Filter.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The method filter_data is not named in camelCase.
Open

    public function filter_data() {

        if ( empty( $this->request ) ) {
            return $this->data;
        }
Severity: Minor
Found in inc/Core/Filter.php by phpmd

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

There are no issues that match your filters.

Category
Status