Code Duplication    Length = 12-12 lines in 2 locations

src/POData/Writers/Json/JsonODataV1Writer.php 1 location

@@ 281-292 (lines=12) @@
278
        return $this;
279
    }
280
281
    protected function writeExpandedLink(ODataLink $link)
282
    {
283
        if ($link->isCollection) {
284
            $this->_writer->startArrayScope();
285
            $this->writeFeed($link->expandedResult);
286
        } else {
287
            $this->_writer->startObjectScope();
288
            $this->writeEntry($link->expandedResult);
289
        }
290
291
        $this->_writer->endScope();
292
    }
293
294
    /**
295
     * Write the given collection of properties.

src/POData/Writers/Json/JsonLightODataWriter.php 1 location

@@ 228-239 (lines=12) @@
225
        return $this;
226
    }
227
228
    protected function writeExpandedLink(ODataLink $link)
229
    {
230
        if ($link->isCollection) {
231
            $this->_writer->startArrayScope();
232
            $this->writeFeed($link->expandedResult);
233
        } else {
234
            $this->_writer->startObjectScope();
235
            $this->writeEntry($link->expandedResult);
236
        }
237
238
        $this->_writer->endScope();
239
    }
240
241
    /**
242
     * Writes the next page link.