Passed
Push — master ( c39ef6...1fc558 )
by Peter
05:09
created

FileViewFinder   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1
Metric Value
wmc 1
lcom 1
cbo 1
dl 0
loc 15
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A addLocation() 0 4 1
1
<?php
2
3
namespace PeterColes\Themes;
4
5
use Illuminate\View\FileViewFinder as IlluminateFileViewFinder;
6
7
class FileViewFinder extends IlluminateFileViewFinder
8
{
9
    /**
10
     * Add a location to the finder.
11
     * Differs from standard Laravel as that adds locations to the end of
12
     * the array, but we want the added themes to be considered first
13
     *
14
     * @param  string  $location
15
     * @return void
16
     */
17
    public function addLocation($location)
18
    {
19
        array_unshift($this->paths, $location);
20
    }
21
}
22