Code Duplication    Length = 7-7 lines in 2 locations

src/POData/UriProcessor/UriProcessor.php 2 locations

@@ 573-579 (lines=7) @@
570
571
        // Note $inlinecount=allpages means include the total count regardless of paging..so we set the counts first
572
	    // regardless if POData does the paging or not.
573
        if ($this->request->queryType == QueryType::ENTITIES_WITH_COUNT()) {
574
            if ($this->providers->handlesOrderedPaging()) {
575
                $this->request->setCountValue($result->count);
576
            } else {
577
                $this->request->setCountValue(count($result->results));
578
            }
579
        }
580
581
	    //Have POData perform paging if necessary
582
	    if(!$this->providers->handlesOrderedPaging() && !empty($result->results)){
@@ 588-594 (lines=7) @@
585
586
	    //a bit surprising, but $skip and $top affects $count so update it here, not above
587
	    //IE  data.svc/Collection/$count?$top=10 returns 10 even if Collection has 11+ entries
588
	    if ($this->request->queryType == QueryType::COUNT()) {
589
		    if ($this->providers->handlesOrderedPaging()) {
590
			    $this->request->setCountValue($result->count);
591
		    } else {
592
			    $this->request->setCountValue(count($result->results));
593
		    }
594
	    }
595
596
        $segment->setResult($result->results);
597
    }