Code Duplication    Length = 6-6 lines in 2 locations

src/POData/UriProcessor/ResourcePathProcessor/SegmentParser/SegmentParser.php 2 locations

@@ 371-376 (lines=6) @@
368
        $descriptor = new SegmentDescriptor();
369
        $descriptor->setIdentifier($segmentIdentifier);
370
371
        if ($segmentIdentifier === ODataConstants::URI_METADATA_SEGMENT) {
372
            $this->assertion(null === $keyPredicate);
373
            $descriptor->setTargetKind(TargetKind::METADATA());
374
375
            return $descriptor;
376
        }
377
378
        if ($segmentIdentifier === ODataConstants::URI_BATCH_SEGMENT) {
379
            $this->assertion(null === $keyPredicate);
@@ 378-383 (lines=6) @@
375
            return $descriptor;
376
        }
377
378
        if ($segmentIdentifier === ODataConstants::URI_BATCH_SEGMENT) {
379
            $this->assertion(null === $keyPredicate);
380
            $descriptor->setTargetKind(TargetKind::BATCH());
381
382
            return $descriptor;
383
        }
384
385
        if ($segmentIdentifier === ODataConstants::URI_COUNT_SEGMENT) {
386
            throw ODataException::createBadRequestError(