Conditions | 3 |
Paths | 3 |
Total Lines | 13 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
23 | protected function getCurrentOpts($volume) |
||
24 | { |
||
25 | $name = substr(get_class($this), 14); // remove "elFinderPlugin" |
||
26 | $opts = $this->opts; |
||
27 | if (is_object($volume)) { |
||
28 | $volOpts = $volume->getOptionsPlugin($name); |
||
29 | if (is_array($volOpts)) { |
||
30 | $opts = array_merge($opts, $volOpts); |
||
31 | } |
||
32 | } |
||
33 | |||
34 | return $opts; |
||
35 | } |
||
36 | |||
78 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.