Showing 529 of 529 total issues
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
syntax error, unexpected ')', expecting variable (T_VARIABLE)
Open
Open
): PropertyInterface;
- Exclude checks
syntax error, unexpected 'string' (T_STRING), expecting function (T_FUNCTION) or const (T_CONST)
Open
Open
protected string $attribute;
- Exclude checks
syntax error, unexpected 'protected' (T_PROTECTED), expecting variable (T_VARIABLE)
Open
Open
protected ResolvedDefinitionsCollection $definitionsCollection,
- Exclude checks
syntax error, unexpected ')'
Open
Open
);
- Exclude checks
syntax error, unexpected 'array' (T_ARRAY), expecting function (T_FUNCTION) or const (T_CONST)
Open
Open
protected array $json;
- Exclude checks
syntax error, unexpected '?', expecting function (T_FUNCTION) or const (T_CONST)
Open
Open
static private ?Render $renderer = null;
- Exclude checks
syntax error, unexpected ':', expecting ',' or ')'
Open
Open
deadCode: true,
- Exclude checks
syntax error, unexpected 'array' (T_ARRAY), expecting function (T_FUNCTION) or const (T_CONST)
Open
Open
private array $renderedTypeHints = [];
- Exclude checks
syntax error, unexpected ')', expecting variable (T_VARIABLE)
Open
Open
) {
- Exclude checks
syntax error, unexpected ')'
Open
Open
)
- Exclude checks
syntax error, unexpected 'array' (T_ARRAY), expecting function (T_FUNCTION) or const (T_CONST)
Open
Open
private array $parsedExternalFileSchemas = [];
- Exclude checks
syntax error, unexpected 'private' (T_PRIVATE), expecting variable (T_VARIABLE)
Open
Open
public function __construct(private string $name, private ?bool $nullable = null) {}
- Exclude checks
syntax error, unexpected 'protected' (T_PROTECTED), expecting variable (T_VARIABLE)
Open
Open
public function __construct(protected PropertyValidatorInterface $validator, protected int $priority) {}
- Exclude checks
syntax error, unexpected 'PropertyInterface' (T_STRING), expecting function (T_FUNCTION) or const (T_CONST)
Open
Open
private PropertyInterface $validationProperty;
- Exclude checks
Possibly zero references to use statement for classlike/namespace JsonSchema
(\PHPModelGenerator\Model\SchemaDefinition\JsonSchema)
Open
Open
use PHPModelGenerator\Model\SchemaDefinition\JsonSchema;
- Exclude checks
syntax error, unexpected 'string' (T_STRING), expecting function (T_FUNCTION) or const (T_CONST)
Open
Open
private string $modifiedValuesMethod;
- Exclude checks
syntax error, unexpected 'protected' (T_PROTECTED), expecting variable (T_VARIABLE)
Open
Open
protected string $fileName,
- Exclude checks