bueltge/wp-rest-api-filter-items

View on GitHub

Showing 85 of 85 total issues

The variable $sub_dirs is not named in camelCase.
Open

    public function readDirRecursive( $dir, $pattern ) {

        $sub_dirs = glob( $dir . '/*', \GLOB_ONLYDIR );
        $files = array();
        if ( ! empty( $sub_dirs ) ) {

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 $base_dir is not named in camelCase.
Open

    public static function init( $base_dir = '' ) {

        if ( self::$is_loaded )
            return;

Severity: Minor
Found in lib/Requisite/Requisite.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 $file_loader is not named in camelCase.
Open

    function __construct( $base_dir, $base_ns = '', Loader\FileLoaderInterface $file_loader = NULL ) {

        // trim potential trailing slashes
        $this->base_dir = rtrim( (string) $base_dir, '\\/' );

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 $sub_dir is not named in camelCase.
Open

    public function readDirRecursive( $dir, $pattern ) {

        $sub_dirs = glob( $dir . '/*', \GLOB_ONLYDIR );
        $files = array();
        if ( ! empty( $sub_dirs ) ) {

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 $base_ns is not named in camelCase.
Open

    function __construct( $base_dir, $base_ns = '', Loader\FileLoaderInterface $file_loader = NULL ) {

        // trim potential trailing slashes
        $this->base_dir = rtrim( (string) $base_dir, '\\/' );

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 $base_ns is not named in camelCase.
Open

    function __construct( $base_dir, $base_ns = '', Loader\FileLoaderInterface $file_loader = NULL ) {

        // trim potential trailing slashes
        $this->base_dir = rtrim( (string) $base_dir, '\\/' );

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 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( $data ) {

        $_data = $data->data;
        $filtered_data = new Filter( $this->request, $_data );

Severity: Minor
Found in inc/Items/Comments.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 $base_dir is not named in camelCase.
Open

    public static function init( $base_dir = '' ) {

        if ( self::$is_loaded )
            return;

Severity: Minor
Found in lib/Requisite/Requisite.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 $base_dir is not named in camelCase.
Open

    public static function init( $base_dir = '' ) {

        if ( self::$is_loaded )
            return;

Severity: Minor
Found in lib/Requisite/Requisite.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( $data ) {

        $_data = $data->data;
        $filtered_data = new Filter( $this->request, $_data );

Severity: Minor
Found in inc/Items/Post.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( $data ) {

        $_data = $data->data;
        $filtered_data = new Filter( $this->request, $_data );

Severity: Minor
Found in inc/Items/Post.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 $base_ns is not named in camelCase.
Open

    function __construct( $base_dir, $base_ns = '', Loader\FileLoaderInterface $file_loader = NULL ) {

        // trim potential trailing slashes
        $this->base_dir = rtrim( (string) $base_dir, '\\/' );

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 $base_ns is not named in camelCase.
Open

    function __construct( $base_dir, $base_ns = '', Loader\FileLoaderInterface $file_loader = NULL ) {

        // trim potential trailing slashes
        $this->base_dir = rtrim( (string) $base_dir, '\\/' );

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 $sub_dirs is not named in camelCase.
Open

    public function readDirRecursive( $dir, $pattern ) {

        $sub_dirs = glob( $dir . '/*', \GLOB_ONLYDIR );
        $files = array();
        if ( ! empty( $sub_dirs ) ) {

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 $base_dir is not named in camelCase.
Open

    function __construct( $base_dir, $base_ns = '', Loader\FileLoaderInterface $file_loader = NULL ) {

        // trim potential trailing slashes
        $this->base_dir = rtrim( (string) $base_dir, '\\/' );

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 get_classes is not named in camelCase.
Open

    private static function get_classes() {

        return array(
            __NAMESPACE__ . '\Loader\FileLoaderInterface'
                => '/Loader/FileLoaderInterface.php',
Severity: Minor
Found in lib/Requisite/Requisite.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

The method filter_data is not named in camelCase.
Open

    public function filter_data( $data ) {

        $_data = $data->data;
        $filtered_data = new Filter( $this->request, $_data );

Severity: Minor
Found in inc/Items/Comments.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

Severity
Category
Status
Source
Language