isotopsweden/wp-cargo

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

Summary

Maintainability
A
0 mins
Test Coverage

The class Driver_Interface is not named in CamelCase.
Open

interface Driver_Interface {

    /**
     * Driver Constructor.
     *
Severity: Minor
Found in src/contracts/interface-driver.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

Expected 0 spaces between argument "$cargo" and closing bracket; 1 found
Open

    public function __construct( Cargo $cargo );

Expected 0 spaces between opening bracket and type hint "Cargo"; 1 found
Open

    public function __construct( Cargo $cargo );

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

interface Driver_Interface {

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

     *

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

     * @param \Isotop\Cargo\Cargo $cargo

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 __construct( Cargo $cargo );

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

     * Driver Constructor.

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

     */

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

interface Driver_Interface {

There are no issues that match your filters.

Category
Status