Code Duplication    Length = 11-11 lines in 2 locations

src/Resource/Collection/LazyResourceCollection.php 2 locations

@@ 244-254 (lines=11) @@
241
    /**
242
     * {@inheritdoc}
243
     */
244
    public function getPaths()
245
    {
246
        if (!$this->loaded) {
247
            $this->load();
248
        }
249
250
        return array_map(
251
            function (PuliResource $resource) { return $resource->getPath(); },
252
            $this->resources
253
        );
254
    }
255
256
    /**
257
     * {@inheritdoc}
@@ 259-269 (lines=11) @@
256
    /**
257
     * {@inheritdoc}
258
     */
259
    public function getNames()
260
    {
261
        if (!$this->loaded) {
262
            $this->load();
263
        }
264
265
        return array_map(
266
            function (PuliResource $resource) { return $resource->getName(); },
267
            $this->resources
268
        );
269
    }
270
271
    /**
272
     * {@inheritdoc}