Code Duplication    Length = 7-7 lines in 2 locations

src/POData/UriProcessor/UriProcessor.php 2 locations

@@ 444-450 (lines=7) @@
441
442
        // Note $inlinecount=allpages means include the total count regardless of paging..so we set the counts first
443
        // regardless if POData does the paging or not.
444
        if ($this->request->queryType == QueryType::ENTITIES_WITH_COUNT()) {
445
            if ($this->providers->handlesOrderedPaging()) {
446
                $this->request->setCountValue($result->count);
447
            } else {
448
                $this->request->setCountValue(count($result->results));
449
            }
450
        }
451
452
        //Have POData perform paging if necessary
453
        if (!$this->providers->handlesOrderedPaging() && !empty($result->results)) {
@@ 459-465 (lines=7) @@
456
457
        //a bit surprising, but $skip and $top affects $count so update it here, not above
458
        //IE  data.svc/Collection/$count?$top=10 returns 10 even if Collection has 11+ entries
459
        if ($this->request->queryType == QueryType::COUNT()) {
460
            if ($this->providers->handlesOrderedPaging()) {
461
                $this->request->setCountValue($result->count);
462
            } else {
463
                $this->request->setCountValue(count($result->results));
464
            }
465
        }
466
467
        $segment->setResult($result->results);
468
    }