@@ 59-64 (lines=6) @@ | ||
56 | } |
|
57 | ||
58 | $upsize = false; |
|
59 | if (isset($options['upsize'])) { |
|
60 | $upsize = $options['upsize']; |
|
61 | if ($upsize !== true && $upsize !== false) { |
|
62 | throw new \InvalidArgumentException('$options["upsize"] was not a bool'); |
|
63 | } |
|
64 | } |
|
65 | ||
66 | $bestfit = false; |
|
67 | if (isset($options['bestfit'])) { |
|
@@ 67-72 (lines=6) @@ | ||
64 | } |
|
65 | ||
66 | $bestfit = false; |
|
67 | if (isset($options['bestfit'])) { |
|
68 | $bestfit = $options['bestfit']; |
|
69 | if ($bestfit !== true && $bestfit !== false) { |
|
70 | throw new \InvalidArgumentException('$options["bestfit"] was not a bool'); |
|
71 | } |
|
72 | } |
|
73 | ||
74 | $maxWidth = 10000; |
|
75 | if (isset($options['maxWidth'])) { |