Showing 397 of 397 total issues
Line indented incorrectly; expected 8 spaces, found 12 Open
Open
static function (array $matches): string {
- Exclude checks
Multi-line function call not indented correctly; expected 12 spaces but found 16 Open
Open
'\\',
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 12 Open
Open
},
- Exclude checks
Line indented incorrectly; expected 16 spaces, found 24 Open
Open
static function (int $validatorIndex): string {
- Exclude checks
Multi-line function call not indented correctly; expected 20 spaces but found 24 Open
Open
$property->getName(),
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 12 Open
Open
static function (string $directory): string {
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 12 Open
Open
},
- Exclude checks
Line indented incorrectly; expected 24 spaces, found 36 Open
Open
},
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 16 Open
Open
if ($validator->getPriority() == $comparedValidator->getPriority()) {
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 12 Open
Open
},
- Exclude checks
Expected 0 spaces after opening bracket; newline found Open
Open
if (
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 20 Open
Open
},
- Exclude checks
Closing brace must be on a line by itself Open
Open
case 'integer': return 'int';
- Exclude checks
Closing brace must be on a line by itself Open
Open
case 'number': return 'float';
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 20 Open
Open
static function (string $allowedType) use ($property) : string {
- Exclude checks
Closing brace must be on a line by itself Open
Open
default: return $jsonSchemaType;
- Exclude checks
Closing brace must be on a line by itself Open
Open
case 'boolean': return 'bool';
- Exclude checks
The variable $_ is not named in camelCase. Open
Open
public static function hash(array $array, array $relevantFields = []): string
{
if ($relevantFields) {
foreach ($array as $key => $_) {
if (!in_array($key, $relevantFields)) {
- 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 array_multiksort is not named in camelCase. Open
Open
private static function array_multiksort(array &$array): void
{
foreach ($array as &$value) {
if (is_array($value)) {
self::array_multiksort($value);
- 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
syntax error, unexpected ')'
Open
Open
);
- Exclude checks