Conditions | 3 |
Paths | 3 |
Total Lines | 11 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 12 |
Changes | 0 |
1 | <?php |
||
26 | public function getMediaFilesystemDiskName($collection = null) |
||
27 | { |
||
28 | $methodBase = 'generateMediaFilesystemDiskName'; |
||
29 | $method = $methodBase . Str::camel($collection); |
||
30 | if (method_exists($this, $method)) { |
||
31 | return $this->{$method}($collection); |
||
32 | } |
||
33 | if (method_exists($this, $methodBase)) { |
||
34 | return $this->{$methodBase}($collection); |
||
35 | } |
||
36 | return 'public'; |
||
37 | } |
||
39 |