Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
43 | public function getThumbnailSpecs($square, $scale) { |
||
44 | $height = ceil(200 * $scale); |
||
45 | if ($square) { |
||
46 | $width = $height; |
||
47 | } else { |
||
48 | $width = 2 * $height; |
||
49 | } |
||
50 | |||
51 | $thumbnail = [$width, $height, !$square, $this->animatedPreview, $this->base64Encode]; |
||
52 | |||
53 | return $thumbnail; |
||
54 | } |
||
57 |