isotopsweden/wp-cargo

View on GitHub
src/contracts/interface-content.php

Summary

Maintainability
A
0 mins
Test Coverage

The class Content_Interface is not named in CamelCase.
Open

interface Content_Interface {

    /**
     * Get content data.
     *
Severity: Minor
Found in src/contracts/interface-content.php by phpmd

CamelCaseClassName

Since: 0.2

It is considered best practice to use the CamelCase notation to name classes.

Example

class class_name {
}

Source

Opening brace of a interface must be on the line after the definition
Open

interface Content_Interface {

Method name "Content_Interface::to_json" is not in camel caps format
Open

    public function to_json();

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

     *

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

    public function action();

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

     * Get content data.

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

    /**

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

     * @return mixed

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

     */

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

    public function type();

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

     *

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

     *

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

    public function data();

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

     */

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

     */

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

     * Convert content data to JSON.

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

    public function to_json();

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

     * @return mixed

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

    /**

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

     */

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

     * @return mixed

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

    /**

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

    /**

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

     * @return mixed

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

     * Get content type.

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

     *

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

     * Get content action.

Interface name "Content_Interface" is not in camel caps format
Open

interface Content_Interface {

The method to_json is not named in camelCase.
Open

    public function to_json();
Severity: Minor
Found in src/contracts/interface-content.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