Showing 452 of 452 total issues
Usage of ELSE IF is discouraged; use ELSEIF instead Open
Open
} else if ($table instanceof QueryBuilder) {
- Exclude checks
Whitespace found at end of line Open
Open
*
- Exclude checks
Whitespace found at end of line Open
Open
}
- Exclude checks
Whitespace found at end of line Open
Open
$this->dataAccess = new DataAccess($this);
- Exclude checks
Opening brace must be the last content on the line Open
Open
return Data::groupJoin($this->map(function ($a) { return $a->getModel(); }), $parameter);
- Exclude checks
Whitespace found at end of line Open
Open
break;
- Exclude checks
Whitespace found at end of line Open
Open
}
- Exclude checks
Closing brace must be on a line by itself Open
Open
return Data::groupJoin($this->map(function ($a) { return $a->getModel(); }), $parameter);
- Exclude checks
Whitespace found at end of line Open
Open
}
- Exclude checks
Expected 1 space after FOREACH keyword; 0 found Open
Open
foreach(preg_split('~[\r\n]+~', $data) as $line) {
- Exclude checks
Expected 1 space after SWITCH keyword; 0 found Open
Open
switch(trim($value)) {
- Exclude checks
Whitespace found at end of line Open
Open
// Find all the ancestors of the root node above - i.e. find all nodes in this graph
- Exclude checks
The variable $previous_exception is not named in camelCase. Open
Open
public function __construct(Q $query, \Exception $previous_exception = null)
{
parent::__construct('Query error: '.$query->error, $query, $previous_exception);
}
- Read upRead up
- Exclude checks
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 $data_access is not named in camelCase. Open
Open
public static function dumpModel(Model $model)
{
$data_access = function ($var) {
return $this->$var;
};
- Read upRead up
- Exclude checks
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 $data_access is not named in camelCase. Open
Open
public static function dumpModel(Model $model)
{
$data_access = function ($var) {
return $this->$var;
};
- Read upRead up
- Exclude checks
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 _init is not named in camelCase. Open
Open
protected function _init()
{
}
- Read upRead up
- Exclude checks
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
Possibly zero references to use statement for classlike/namespace OperatorParser
(\Automatorm\OperatorParser)
Open
Open
use Automatorm\OperatorParser;
- Exclude checks
Argument 2 (cmp_function)
is Closure(mixed,mixed):bool
but \usort()
takes callable(mixed,mixed):int
Open
Open
usort($returnData, function ($a, $b) use ($sort) {
- Exclude checks
Variable $options
is undeclared Open
Open
foreach ((array) $options['sort'] as $sortby) {
- Exclude checks
Parameter $logger
has undeclared type ?\Psr\Log\LoggerInterface
Open
Open
protected function __construct($details, array $options = [], LoggerInterface $logger = null)
- Exclude checks