Code Duplication    Length = 9-9 lines in 2 locations

src/POData/UriProcessor/UriProcessor.php 1 location

@@ 664-672 (lines=9) @@
661
     *
662
     * @return ResourceSetWrapper
663
     */
664
    private function _getCurrentResourceSetWrapper()
665
    {
666
        $count = count($this->_segmentResourceSetWrappers);
667
        if ($count == 0) {
668
            return $this->request->getTargetResourceSetWrapper();
669
        } else {
670
            return $this->_segmentResourceSetWrappers[$count - 1];
671
        }
672
    }
673
674
    /**
675
     * Pushes a segment for the root of the tree

src/POData/ObjectModel/ObjectModelSerializerBase.php 1 location

@@ 183-191 (lines=9) @@
180
     *
181
     * @return ResourceSetWrapper
182
     */
183
    protected function getCurrentResourceSetWrapper()
184
    {
185
        $count = count($this->_segmentResourceSetWrappers);
186
        if ($count == 0) {
187
            return $this->request->getTargetResourceSetWrapper();
188
        } else {
189
            return $this->_segmentResourceSetWrappers[$count - 1];
190
        }
191
    }
192
193
    /**
194
     * Whether the current resource set is root resource set.