skqr/hateoas

View on GitHub

Showing 662 of 662 total issues

TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
Open

    public function hasTopLevelLinks($type = NULL)

TRUE, FALSE and NULL must be lowercase; expected "false" but found "FALSE"
Open

        if (FALSE === $position) {
Severity: Minor
Found in Util/Inflector.php by phpcodesniffer

The closing parenthesis and the opening brace of a multi-line function declaration must be on the same line
Open

    {

Space found after opening bracket of FOREACH loop
Open

        foreach (

Multi-line function declarations must define one parameter per line
Open

        EntityResource $resource, ResourceRelationship $relationship

TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
Open

        $fields = NULL;

Multi-line function declarations must define one parameter per line
Open

        DocumentResource $resource, $relationship

The extends keyword must be on the same line as the class name
Open

    extends ResourceCollection

Multi-line function declarations must define one parameter per line
Open

        $query, Result $result, array $facets, array $entities
Severity: Minor
Found in Search/SolrSearchResult.php by phpcodesniffer

The closing parenthesis and the opening brace of a multi-line function declaration must be on the same line
Open

    {

There must be one USE keyword per declaration
Open

use IteratorAggregate, ArrayIterator, Countable;

Expected 1 space after FUNCTION keyword; 0 found
Open

        $callback = function(array $serializedLinks) use (&$topLevelLinks) {

Multi-line function declarations must define one parameter per line
Open

        \ReflectionClass $class, array $params = []
Severity: Minor
Found in Util/Reflection.php by phpcodesniffer

There must be one USE keyword per declaration
Open

use GoIntegro\Hateoas\Metadata\Entity\MetadataCache,

TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
Open

        $json = NULL;

TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
Open

            = $entityClass->getMethod('getRelationships')->invoke(NULL);

TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
Open

    public function stub($type, $subtype = NULL)

Multi-line function declarations must define one parameter per line
Open

        $class, $type, $subtype, $kind, $name, $mappingField

TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
Open

                    throw new TranslationException($message, NULL, $e);
Severity: Minor
Found in Entity/DefaultMutator.php by phpcodesniffer

Expected 1 space before "as"; 16 found
Open

        foreach (
Severity
Category
Status
Source
Language