Conditions | 5 |
Paths | 5 |
Total Lines | 14 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 2 |
1 | <?php |
||
13 | protected function getIcon() |
||
14 | { |
||
15 | $width = $this->video->width; |
||
16 | |||
17 | if ($width == 0) |
||
18 | return false; |
||
19 | elseif ($width < 961) |
||
20 | return '50px-480'; |
||
21 | elseif ($width < 1281) |
||
22 | return '50px-720'; |
||
23 | else if ($width < 3500) // highly unscientific |
||
24 | return '50px-1080_n'; |
||
25 | else |
||
26 | return '4K'; |
||
27 | } |
||
29 | } |