Code Duplication    Length = 3-4 lines in 2 locations

src/FluentFilesLoader.php 2 locations

@@ 284-286 (lines=3) @@
281
        // in a specific directory, so they can provide only filename,
282
        // instead of sending full directory path with file marker.
283
284
        if ($this->params['marker'] && $this->params['path']) {
285
            $this->params['marker'] = $this->params['path'].'/'.ltrim($this->params['marker'], '/');
286
        }
287
288
        // Also, if user is loading prefixed files from a directory
289
        // there's no need to send directory path with prefix. We
@@ 292-295 (lines=4) @@
289
        // there's no need to send directory path with prefix. We
290
        // can append path to prefix and then reset path value.
291
292
        if ($this->params['prefix'] && $this->params['path']) {
293
            $this->params['prefix'] = $this->params['path'].'/'.ltrim($this->params['prefix']);
294
            $this->params['path'] = '';
295
        }
296
297
        return $this->params;
298
    }