Code Duplication    Length = 7-7 lines in 2 locations

src/POData/UriProcessor/UriProcessor.php 2 locations

@@ 413-419 (lines=7) @@
410
411
        // Note $inlinecount=allpages means include the total count regardless of paging..so we set the counts first
412
	    // regardless if POData does the paging or not.
413
        if ($this->request->queryType == QueryType::ENTITIES_WITH_COUNT()) {
414
            if ($this->providers->handlesOrderedPaging()) {
415
                $this->request->setCountValue($result->count);
416
            } else {
417
                $this->request->setCountValue(count($result->results));
418
            }
419
        }
420
421
	    //Have POData perform paging if necessary
422
	    if(!$this->providers->handlesOrderedPaging() && !empty($result->results)){
@@ 428-434 (lines=7) @@
425
426
	    //a bit surprising, but $skip and $top affects $count so update it here, not above
427
	    //IE  data.svc/Collection/$count?$top=10 returns 10 even if Collection has 11+ entries
428
	    if ($this->request->queryType == QueryType::COUNT()) {
429
		    if ($this->providers->handlesOrderedPaging()) {
430
			    $this->request->setCountValue($result->count);
431
		    } else {
432
			    $this->request->setCountValue(count($result->results));
433
		    }
434
	    }
435
436
        $segment->setResult($result->results);
437
    }