Code Duplication    Length = 7-7 lines in 2 locations

src/POData/UriProcessor/RequestExpander.php 1 location

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

src/POData/ObjectModel/CynicSerialiser.php 1 location

@@ 668-674 (lines=7) @@
665
     *
666
     * @return ResourceSetWrapper
667
     */
668
    protected function getCurrentResourceSetWrapper()
669
    {
670
        $segmentWrappers = $this->getStack()->getSegmentWrappers();
671
        $count = count($segmentWrappers);
672
673
        return 0 == $count ? $this->getRequest()->getTargetResourceSetWrapper() : $segmentWrappers[$count - 1];
674
    }
675
676
    /**
677
     * Wheter next link is needed for the current resource set (feed)