speedworks/speedy

View on GitHub

Showing 149 of 149 total issues

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

    private static function init()
    {
        $session_factory = new SessionFactory;
        $session = $session_factory->newInstance($_COOKIE);
        $session->setCookieParams(array('lifetime' => $_ENV['session_life']));
Severity: Minor
Found in Core/Classes/Session.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 Pass($requestUri, $requestMethod, $requestData, $rawData)
    {
        if(!array_key_exists($requestMethod,Route::$URLS))
        {
            System::GiveError(405,"Method not allowed");
Severity: Minor
Found in Core/Bridge.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 Pass($requestUri, $requestMethod, $requestData, $rawData)
    {
        if(!array_key_exists($requestMethod,Route::$URLS))
        {
            System::GiveError(405,"Method not allowed");
Severity: Minor
Found in Core/Bridge.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

The variable $session_factory is not named in camelCase.
Open

    private static function init()
    {
        $session_factory = new SessionFactory;
        $session = $session_factory->newInstance($_COOKIE);
        $session->setCookieParams(array('lifetime' => $_ENV['session_life']));
Severity: Minor
Found in Core/Classes/Session.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 GiveResponse is not named in camelCase.
Open

    public static function GiveResponse($inData)
    {
        header('Content-Type: application/json');
        $outData=array('errStatus' =>0,
            'code'=>200,
Severity: Minor
Found in Core/Classes/System.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 Run is not named in camelCase.
Open

    public static function Run()
    {
        self::$jobHandler->run();
    }
Severity: Minor
Found in Core/Classes/Crontab.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 MakeLog is not named in camelCase.
Open

    public static function MakeLog($logdir, $filename, $logstr)
    {
        $logstr .= "\n";
        if(is_dir($logdir.date('Y')))
        {
Severity: Minor
Found in Core/Classes/System.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 GiveError is not named in camelCase.
Open

    public static function GiveError($errorCode, $errorMessage)
    {
        if($errorCode==400)
        {
            header("HTTP/1.0 400 Bad Request");
Severity: Minor
Found in Core/Classes/System.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 Credentials is not named in camelCase.
Open

    public static function Credentials($userName, $password)
    {
        $auth = new Auth("CREDENTIALS",$userName,$password);
        return $auth;
    }
Severity: Minor
Found in Core/Middleware/Auth.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 DBD is not named in camelCase.
Open

    public static function DBD($inData, $die=false) //DEBUG AND DIE
    {
        if(is_array($inData))
        {
            echo "<pre><br/>\n";
Severity: Minor
Found in Core/Classes/System.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 FilterInput is not named in camelCase.
Open

    public static function FilterInput($inData, $keepHTML=false)
    {
        if(is_array($inData))
        {
            $outData=array();
Severity: Minor
Found in Core/Classes/System.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 Authorize is not named in camelCase.
Open

    public function Authorize($authType, $redirectTo=null)
    {
        $auth = new BaseAuth();
        if($authType == "session")
        {
Severity: Minor
Found in Core/Middleware/Auth.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 Pass is not named in camelCase.
Open

    public static function Pass($requestUri, $requestMethod, $requestData, $rawData)
    {
        if(!array_key_exists($requestMethod,Route::$URLS))
        {
            System::GiveError(405,"Method not allowed");
Severity: Minor
Found in Core/Bridge.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