Code Duplication    Length = 6-6 lines in 2 locations

src/Formatter.php 2 locations

@@ 307-312 (lines=6) @@
304
            $subKey = $parts[0];
305
        }
306
307
        if ($this->isIdentifierField($subKey)) {
308
            // Handle like a regular relationship
309
            list($key, $value) = $this->formatQueryElementRel($root, $value, $metadata, $store);
310
            $key = (true === $hasIndex) ? sprintf('%s.%s', $key, $parts[0]) : $key;
311
            return [$key, $value];
312
        }
313
314
        if ($this->isTypeField($subKey)) {
315
            // Handle as a model type field.
@@ 314-319 (lines=6) @@
311
            return [$key, $value];
312
        }
313
314
        if ($this->isTypeField($subKey)) {
315
            // Handle as a model type field.
316
            list($key, $value) = $this->formatQueryElementRoot($subKey, $value, $metadata);
317
            $key = (true === $hasIndex) ? sprintf('%s.%s.%s', $root, $parts[0], $key) : sprintf('%s.%s', $root, $key);
318
            return [$key, $value];
319
        }
320
        return [$key, $value];
321
    }
322