Conditions | 6 |
Paths | 6 |
Total Lines | 17 |
Code Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 1 | Features | 1 |
1 | <?php |
||
32 | public function guessFormat() |
||
33 | { |
||
34 | $extension = strtolower(Arr::last(explode('.', $this->destination()))); |
||
35 | |||
36 | switch ($extension) { |
||
37 | case 'aac': |
||
38 | return new Aac; |
||
39 | case 'flac': |
||
40 | return new Flac; |
||
41 | case 'mp3': |
||
42 | return new Mp3; |
||
43 | case 'oog': |
||
44 | return new Vorbis; |
||
45 | case 'wav': |
||
46 | return new Wav; |
||
47 | default: |
||
48 | return new CopyFormat; |
||
49 | } |
||
52 |