speedworks/speedy

View on GitHub
Core/Classes/Route.php

Summary

Maintainability
A
0 mins
Test Coverage

The variable $URLS is not named in camelCase.
Open

    public static function options($path, $classedFunction)
    {
        self::$URLS['OPTIONS'][($path!="/")?rtrim($path,"/"):"/"]=$classedFunction;
    }
Severity: Minor
Found in Core/Classes/Route.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 $URLS is not named in camelCase.
Open

    public static function put($path, $classedFunction)
    {
        self::$URLS['PUT'][($path!="/")?rtrim($path,"/"):"/"]=$classedFunction;
    }
Severity: Minor
Found in Core/Classes/Route.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 $URLS is not named in camelCase.
Open

    public static function head($path, $classedFunction)
    {
        self::$URLS['HEAD'][($path!="/")?rtrim($path,"/"):"/"]=$classedFunction;
    }
Severity: Minor
Found in Core/Classes/Route.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 $URLS is not named in camelCase.
Open

    public static function get($path, $classedFunction)
    {
        self::$URLS['GET'][($path!="/")?rtrim($path,"/"):"/"]=$classedFunction;
    }
Severity: Minor
Found in Core/Classes/Route.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 $URLS is not named in camelCase.
Open

    public static function delete($path, $classedFunction)
    {
        self::$URLS['DELETE'][($path!="/")?rtrim($path,"/"):"/"]=$classedFunction;
    }
Severity: Minor
Found in Core/Classes/Route.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 $URLS is not named in camelCase.
Open

    public static function post($path, $classedFunction)
    {
        self::$URLS['POST'][($path!="/")?rtrim($path,"/"):"/"]=$classedFunction;
    }
Severity: Minor
Found in Core/Classes/Route.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 $URLS is not named in camelCase.
Open

    public static function patch($path, $classedFunction)
    {
        self::$URLS['PATCH'][($path!="/")?rtrim($path,"/"):"/"]=$classedFunction;
    }
Severity: Minor
Found in Core/Classes/Route.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

There are no issues that match your filters.

Category
Status