skqr/hateoas

View on GitHub

Showing 662 of 662 total issues

Inline control structures are not allowed
Open

                if (is_null($page)) continue;

Line exceeds 120 characters; contains 141 characters
Open

     * @todo The configuration doesn't actually allow overridding resource type to entity class mappings as the error message suggests. Oops.

Line exceeds 120 characters; contains 129 characters
Open

        ERROR_MAPPING_EXPECTED_VALUE = "Sólo puede obtenerse la metadata de mapeo de una entidad por su clase o una instancia.";

Inline control structures are not allowed
Open

            if ($class->hasMethod($method)) $entity->$method($value);
Severity: Minor
Found in Entity/AltersEntities.php by phpcodesniffer

Inline control structures are not allowed
Open

                if ($class->hasMethod($method)) $entity->$method($value);
Severity: Minor
Found in Entity/AltersEntities.php by phpcodesniffer

Line exceeds 120 characters; contains 256 characters
Open

    const DEFAULT_MESSAGE = "The response document contains too many resources. Please try requesting a specific page, e.g. \"/resources?page=1\", a specific resource, e.g. \"/resources/27\", or applying some filters, e.g. \"/resources?relationship=11\".";

Line exceeds 120 characters; contains 128 characters
Open

        ERROR_INACCESSIBLE_MEMBER = "For some reason the field is known or is a relationship, but its value can't be accessed.",
Severity: Minor
Found in JsonApi/EntityResource.php by phpcodesniffer

Line exceeds 120 characters; contains 173 characters
Open

    const ERROR_NOT_RESOURCE_ENTITY = "The relationship \"%s\" contains a \"%s\", an entity implementing GoIntegro\\Hateoas\\JsonApi\\ResourceEntityInterface was expected.",
Severity: Minor
Found in JsonApi/EntityResource.php by phpcodesniffer

Line exceeds 120 characters; contains 217 characters
Open

        ERROR_TO_MANY_RELATION_NULL = "The to-many relationship \"%s\" returns neither an array nor a collection. The corresponding property needs to be initialized with either during the construction of the entity.",
Severity: Minor
Found in JsonApi/EntityResource.php by phpcodesniffer

Line exceeds 120 characters; contains 170 characters
Open

     * @var string A short, human-readable summary of the problem. It SHOULD NOT change from occurrence to occurrence of the problem, except for purposes of localization.
Severity: Minor
Found in JsonApi/ErrorObject.php by phpcodesniffer

Inline control structures are not allowed
Open

                foreach ($value as $item) $entity->$adder($item);
Severity: Minor
Found in Entity/AltersEntities.php by phpcodesniffer

Line exceeds 120 characters; contains 180 characters
Open

     * @var string The relative path to the relevant attribute within the associated resource(s). Only appropriate for problems that apply to a single resource or type of resource.
Severity: Minor
Found in JsonApi/ErrorObject.php by phpcodesniffer

Inline control structures are not allowed
Open

        if (empty($params->primaryClass)) return $pagination;

Line exceeds 120 characters; contains 183 characters
Open

        ERROR_RELATIONSHIP_UNDEFINED = "The requested relationship is undefined or can only be accessed through its own URL, filtering by its relationship with the current resource.",
Severity: Minor
Found in JsonApi/Request/Parser.php by phpcodesniffer

Line exceeds 120 characters; contains 132 characters
Open

        ERROR_INHERITANCE_MAPPING = "The mapping inheritance in the ORM for the relationship \"%s\" is not being properly handled.",

Line exceeds 120 characters; contains 179 characters
Open

    const ERROR_MISSING_MAPPING_FIELD = "Una de las relaciones declaradas o evaluadas como \"link-only\" posiblemente no tenga un campo de mapeo inverso en la entidad vinculada.",

Inline control structures are not allowed
Open

        if (empty($type)) $subtype = $type;

Inline control structures are not allowed
Open

            foreach ($paramBags as &$bag) unset($bag[$name]);
Severity: Minor
Found in Entity/DefaultBuilder.php by phpcodesniffer

Inline control structures are not allowed
Open

        if ($linkedResources) $json = array_merge($json, $linkedResources);

Inline control structures are not allowed
Open

        if ($paginationLinks) $json = array_merge($json, $paginationLinks);
Severity
Category
Status
Source
Language