brokencube/automatorm

View on GitHub
src/Exception/Query.php

Summary

Maintainability
A
0 mins
Test Coverage

Suspicious type false of a variable or expression used to build a string. (Expected type to be able to cast to a string)
Open

        parent::__construct('Query error: '.$query->error, $query, $previous_exception);
Severity: Minor
Found in src/Exception/Query.php by phan

The parameter $previous_exception is not named in camelCase.
Open

    public function __construct(Q $query, \Exception $previous_exception = null)
    {
        parent::__construct('Query error: '.$query->error, $query, $previous_exception);
    }
Severity: Minor
Found in src/Exception/Query.php by phpmd

CamelCaseParameterName

Since: 0.2

It is considered best practice to use the camelCase notation to name parameters.

Example

class ClassName {
    public function doSomething($user_name) {
    }
}

Source

The variable $previous_exception is not named in camelCase.
Open

    public function __construct(Q $query, \Exception $previous_exception = null)
    {
        parent::__construct('Query error: '.$query->error, $query, $previous_exception);
    }
Severity: Minor
Found in src/Exception/Query.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