skqr/hateoas

View on GitHub

Showing 662 of 662 total issues

Inline control structures are not allowed
Open

            if (is_string($value)) $value = explode(',', $value);

Line exceeds 120 characters; contains 122 characters
Open

        ERROR_MULTIPLE_IDS_WITH_RELATIONSHIP = "Multiple Ids are not supported when requesting a resource field or link.",
Severity: Minor
Found in JsonApi/Request/Parser.php by phpcodesniffer

Line exceeds 120 characters; contains 219 characters
Open

    const DEFAULT_MESSAGE = "The JSON-API documents cannot be merged. The most likely reason is that the parameters included an individual resource and a resource collection of the same type. E.g. /users and /users/1.";

Inline control structures are not allowed
Open

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

Line exceeds 120 characters; contains 178 characters
Open

    const ERROR_MISSING_TOP_LEVEL_LINKS = "Por algún motivo desconocido dos recursos del mismo tipo intentan registrar dos plantillas de URL distintas para la misma relación.";
Severity: Minor
Found in JsonApi/Merge/Blender.php by phpcodesniffer

Line exceeds 120 characters; contains 133 characters
Open

        ERROR_ACTION_NOT_ALLOWED = "The attempted action is not allowed on the requested resource. Supported HTTP methods are [%s].",
Severity: Minor
Found in JsonApi/Request/Parser.php by phpcodesniffer

Inline control structures are not allowed
Open

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

Expected 0 spaces after opening bracket; newline found
Open

            if (
Severity: Minor
Found in Entity/Validating.php by phpcodesniffer

Expected 0 spaces after opening bracket; newline found
Open

        if (
Severity: Minor
Found in JsonApi/EntityResource.php by phpcodesniffer

Expected 0 spaces after opening bracket; newline found
Open

        if (

Expected 0 spaces after opening bracket; newline found
Open

                    foreach (

Expected 0 spaces after opening bracket; newline found
Open

            if (

Line indented incorrectly; expected at least 20 spaces, found 19
Open

                   $json = $value;

Expected 0 spaces after opening bracket; newline found
Open

        foreach (

Expected 0 spaces after opening bracket; newline found
Open

        if (

Expected 0 spaces after opening bracket; newline found
Open

        if (

Expected 0 spaces after opening bracket; newline found
Open

        if (

Expected 0 spaces after opening bracket; newline found
Open

        if (

Expected 0 spaces after opening bracket; newline found
Open

        if (

Expected 0 spaces after opening bracket; newline found
Open

        foreach (
Severity
Category
Status
Source
Language