skqr/hateoas

View on GitHub

Showing 662 of 662 total issues

Only one argument is allowed per line in a multi-line function call
Open

                self::ERROR_NOT_RESOURCE_ENTITY, $relationship, $type
Severity: Minor
Found in JsonApi/EntityResource.php by phpcodesniffer

Only one argument is allowed per line in a multi-line function call
Open

                self::ERROR_NOT_ENTITY_COLLECTION, $relationship, $type
Severity: Minor
Found in JsonApi/EntityResource.php by phpcodesniffer

Only one argument is allowed per line in a multi-line function call
Open

                self::ACCESS_VIEW, $entity

Only one argument is allowed per line in a multi-line function call
Open

                        self::ERROR_LINKS_CONTENT, $relationship

Only one argument is allowed per line in a multi-line function call
Open

                self::ERROR_ACTION_NOT_ALLOWED, implode(', ', $allowedMethods)
Severity: Minor
Found in JsonApi/Request/Parser.php by phpcodesniffer

Line exceeds 120 characters; contains 126 characters
Open

    const ERROR_REFLECTION_EXPECTED_VALUE = "Sólo puede obtenerse la reflexión de una clase por su nombre o una instancia.",

Line exceeds 120 characters; contains 180 characters
Open

        ERROR_NOT_ENTITY_COLLECTION = "The relationship \"%s\" contains a \"%s\", a collection of entities that implements Doctrine\\Common\\Collections\\Collection was expected.",
Severity: Minor
Found in JsonApi/EntityResource.php by phpcodesniffer

Inline control structures are not allowed
Open

            if (!is_array($fieldTranslations)) continue;

Inline control structures are not allowed
Open

            if (in_array($key, static::$reservedTopLevel)) continue;
Severity: Minor
Found in JsonApi/Merge/Blender.php by phpcodesniffer

Line exceeds 120 characters; contains 127 characters
Open

        ERROR_ACCESS_CONTROL_FILTER = "Access control voters are not being supported properly by corresponding query filters.";

Line exceeds 120 characters; contains 159 characters
Open

        ERROR_LINK_ONLY_RELATIONSHIP = "The relationship \"%s\" cannot be included, possibly because of its size. You must fetch this resource by getting %s.",

Line exceeds 120 characters; contains 131 characters
Open

        // @todo El TopLevelLinksSerializer debería ir primero, pero depende de que el LinkedResourcesSerializer arme el Document.

Inline control structures are not allowed
Open

        if ($meta) $json['meta'] = $meta;

Inline control structures are not allowed
Open

            if (!$resource->getMetadata()->hasRelationships()) continue;

Line exceeds 120 characters; contains 285 characters
Open

        ERROR_ENTITIES_PER_RESOURCE = "The resource \"%s\" listed in the RAML doc matches the following entity class names: \"%s\". If you want to keep the short-names of these resource entities you need to map all but one of them to other resource types in the bundle configuration.";

Line exceeds 120 characters; contains 130 characters
Open

        ERROR_DUPLICATED_TRANSLATION = "Two or more translations were provided twice for the same field and locale in an entity.",

Inline control structures are not allowed
Open

            if (NULL === $value || ('code' == $field && 0 == $value)) continue;
Severity: Minor
Found in JsonApi/ErrorSerializer.php by phpcodesniffer

Line exceeds 120 characters; contains 122 characters
Open

        ERROR_UNSUPPORTED_CONTENT_TYPE = "The expected content type is \"%s\". The content type \"%s\" is not supported.";

Inline control structures are not allowed
Open

        if (isset($map[$type])) return $map[$type];
Severity: Minor
Found in JsonApi/Request/Parser.php by phpcodesniffer

Inline control structures are not allowed
Open

                if (is_null($document->pagination->$key)) continue;
Severity
Category
Status
Source
Language