Showing 662 of 662 total issues
Inline control structures are not allowed Open
Open
if (is_null($page)) continue;
- Exclude checks
Line exceeds 120 characters; contains 141 characters Open
Open
* @todo The configuration doesn't actually allow overridding resource type to entity class mappings as the error message suggests. Oops.
- Exclude checks
Line exceeds 120 characters; contains 129 characters Open
Open
ERROR_MAPPING_EXPECTED_VALUE = "Sólo puede obtenerse la metadata de mapeo de una entidad por su clase o una instancia.";
- Exclude checks
Inline control structures are not allowed Open
Open
if ($class->hasMethod($method)) $entity->$method($value);
- Exclude checks
Inline control structures are not allowed Open
Open
if ($class->hasMethod($method)) $entity->$method($value);
- Exclude checks
Line exceeds 120 characters; contains 256 characters Open
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\".";
- Exclude checks
Line exceeds 120 characters; contains 128 characters Open
Open
ERROR_INACCESSIBLE_MEMBER = "For some reason the field is known or is a relationship, but its value can't be accessed.",
- Exclude checks
Line exceeds 120 characters; contains 173 characters Open
Open
const ERROR_NOT_RESOURCE_ENTITY = "The relationship \"%s\" contains a \"%s\", an entity implementing GoIntegro\\Hateoas\\JsonApi\\ResourceEntityInterface was expected.",
- Exclude checks
Line exceeds 120 characters; contains 217 characters Open
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.",
- Exclude checks
Line exceeds 120 characters; contains 170 characters Open
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.
- Exclude checks
Inline control structures are not allowed Open
Open
foreach ($value as $item) $entity->$adder($item);
- Exclude checks
Line exceeds 120 characters; contains 180 characters Open
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.
- Exclude checks
Inline control structures are not allowed Open
Open
if (empty($params->primaryClass)) return $pagination;
- Exclude checks
Line exceeds 120 characters; contains 183 characters Open
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.",
- Exclude checks
Line exceeds 120 characters; contains 132 characters Open
Open
ERROR_INHERITANCE_MAPPING = "The mapping inheritance in the ORM for the relationship \"%s\" is not being properly handled.",
- Exclude checks
Line exceeds 120 characters; contains 179 characters Open
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.",
- Exclude checks
Inline control structures are not allowed Open
Open
if (empty($type)) $subtype = $type;
- Exclude checks
Inline control structures are not allowed Open
Open
foreach ($paramBags as &$bag) unset($bag[$name]);
- Exclude checks
Inline control structures are not allowed Open
Open
if ($linkedResources) $json = array_merge($json, $linkedResources);
- Exclude checks
Inline control structures are not allowed Open
Open
if ($paginationLinks) $json = array_merge($json, $paginationLinks);
- Exclude checks