Code Duplication    Length = 4-4 lines in 2 locations

src/Formatter.php 2 locations

@@ 345-348 (lines=4) @@
342
            $key = sprintf('%s.%s', $key, Persister::IDENTIFIER_KEY);
343
        }
344
345
        if (is_array($value)) {
346
            $value = (true === $this->hasOperators($value)) ? $value : ['$in' => $value];
347
            return [$key, $this->formatQueryExpression($value, $converter)];
348
        }
349
        return [$key, $converter($value)];
350
    }
351
@@ 373-376 (lines=4) @@
370
        }
371
372
        $converter = $this->getQueryRootConverter($metadata, $dbKey);
373
        if (is_array($value)) {
374
            $value = (true === $this->hasOperators($value)) ? $value : ['$in' => $value];
375
            return [$dbKey, $this->formatQueryExpression($value, $converter)];
376
        }
377
        return [$dbKey, $converter($value)];
378
    }
379