Showing 452 of 452 total issues
Avoid too many return
statements within this method. Open
Open
return ["DELETE FROM $table{$where}{$limit}", $this->data];
Avoid too many return
statements within this method. Open
Open
return 'ERROR_DURING_MASS_ASSIGNMENT: During ->assignData(), the following exception occurred: ' . $e->makeMessage($e->code, $e->data);
Avoid too many return
statements within this method. Open
Open
return new static($list);
Avoid too many return
statements within this method. Open
Open
return static::groupJoinM2M($collection, $var, $where, $onlyCount);
Avoid too many return
statements within this method. Open
Open
return $this->joinM2M($var, $where);
Missing class import via use statement (line '149', column '23'). Open
Open
throw new \Exception('Cannot unserialise a Connection that does not contain a server address');
- Read upRead up
- Exclude checks
MissingImport
Since: 2.7.0
Importing all external classes in a file through use statements makes them clearly visible.
Example
function make() {
return new \stdClass();
}
Source http://phpmd.org/rules/cleancode.html#MissingImport
Avoid too many return
statements within this method. Open
Open
return $value1 <= $value2;
Avoid too many return
statements within this method. Open
Open
return 'NO_SUCH_SERVICE: Tried to access service "{$data}", but it has not yet been definied';
Avoid too many return
statements within this method. Open
Open
return false;
Avoid too many return
statements within this method. Open
Open
return 'MODEL_DATA:UNEXPECTED_COLUMN_NAME: Property "'.$column.'" does not exist in the schema for this object ('.$model['table_name'].'). Please check the $model for this object, or look at $obj->var_dump()';
Avoid too many return
statements within this method. Open
Open
return $this->joinM21($var);
Avoid too many return
statements within this method. Open
Open
return 'MODEL_DATA:INCORRECT_MODEL_FOR_RELATIONSHIP: Property "'.$column.'" expected a Model relating to table "'.$expectedTable.'" but a Model for "'.$suppliedTable.'" was given instead.';
Avoid too many return
statements within this method. Open
Open
return true;
Avoid too many return
statements within this method. Open
Open
return 'MODEL_DATA:MODEL_EXPECTED_FOR_KEY: Property "'.$column.'" expected a Model object, but you gave it a variable of type "'.$type.'"';
Avoid too many return
statements within this method. Open
Open
return 'MODEL_DATA:CANNOT_SET_EXTERNAL_KEYS_TO_THIS_TABLE: Property "'.$column.'" represents a list of objects that have a foreign key that refers to this object. To change this, you must update those objects - you cannot alter this relationship from here.';
Avoid too many return
statements within this method. Open
Open
return new Collection();
Avoid too many return
statements within this method. Open
Open
return true;
Avoid too many return
statements within this method. Open
Open
return 'MODEL_DATA:SCALAR_VALUE_EXPECTED_FOR_COLUMN: Property "'.$column.'" on this object is a database column which can only accept scalar values. You tried to assign a "'.$type.'" to it.';
Avoid too many return
statements within this method. Open
Open
return 'MODEL_DATA:DATETIME_VALUE_EXPECTED_FOR_COLUMN: Column "'.$column.'" has been declared as a Datetime field - you tried to set it to "'.$value.'". You can set DateTime fields by passing it: Orm\Date objects, \DateTime objects, strings that resolve when strtotime\'d, unix_timestamps, or null (for nullable columns)';
Avoid too many return
statements within this method. Open
Open
return 'MODEL_DATA:SCALAR_VALUE_EXPECTED_FOR_COLUMN: Property "'.$column.'" on this object is a database column which can only accept scalar values. You tried to assign a "'.$type.'" to it. You probably meant to pass this object to column "'.substr($column, 0, -3).'". ';