Code Duplication    Length = 6-6 lines in 2 locations

src/Formatter.php 2 locations

@@ 383-388 (lines=6) @@
380
            $subKey = $parts[0];
381
        }
382
383
        if ($this->isIdentifierField($subKey)) {
384
            // Handle like a regular relationship
385
            list($key, $value) = $this->formatQueryElementRel($root, $value, $metadata, $store);
386
            $key = (true === $hasIndex) ? sprintf('%s.%s', $key, $parts[0]) : $key;
387
            return [$key, $value];
388
        }
389
390
        if ($this->isTypeField($subKey)) {
391
            // Handle as a model type field.
@@ 390-395 (lines=6) @@
387
            return [$key, $value];
388
        }
389
390
        if ($this->isTypeField($subKey)) {
391
            // Handle as a model type field.
392
            list($key, $value) = $this->formatQueryElementRoot($subKey, $value, $metadata);
393
            $key = (true === $hasIndex) ? sprintf('%s.%s.%s', $root, $parts[0], $key) : sprintf('%s.%s', $root, $key);
394
            return [$key, $value];
395
        }
396
        return [$key, $value];
397
    }
398