Code Duplication    Length = 7-7 lines in 2 locations

src/POData/UriProcessor/RequestExpander.php 1 location

@@ 163-169 (lines=7) @@
160
     *
161
     * @return ResourceSetWrapper
162
     */
163
    private function getCurrentResourceSetWrapper()
164
    {
165
        $wraps = $this->getStack()->getSegmentWrappers();
166
        $count = count($wraps);
167
168
        return 0 == $count ? $this->getRequest()->getTargetResourceSetWrapper() : $wraps[$count - 1];
169
    }
170
171
    /**
172
     * Pushes a segment for the root of the tree

src/POData/ObjectModel/CynicSerialiser.php 1 location

@@ 660-666 (lines=7) @@
657
     *
658
     * @return ResourceSetWrapper
659
     */
660
    protected function getCurrentResourceSetWrapper()
661
    {
662
        $segmentWrappers = $this->getStack()->getSegmentWrappers();
663
        $count = count($segmentWrappers);
664
665
        return 0 == $count ? $this->getRequest()->getTargetResourceSetWrapper() : $segmentWrappers[$count - 1];
666
    }
667
668
    /**
669
     * Wheter next link is needed for the current resource set (feed)