@@ -9,6 +9,8 @@ |
||
9 | 9 | /** |
10 | 10 | * @param int $maxwidth |
11 | 11 | * @param int $maxheight |
12 | + * @param integer $width |
|
13 | + * @param integer $height |
|
12 | 14 | * @return \stdClass |
13 | 15 | */ |
14 | 16 | public function resizeToWithin($width, $height, $maxwidth, $maxheight) |
@@ -53,11 +53,11 @@ discard block |
||
53 | 53 | } |
54 | 54 | |
55 | 55 | if (!file_exists($filepath)) { |
56 | - throw new \InvalidArgumentException('File does not exist: ' . $filepath); |
|
56 | + throw new \InvalidArgumentException('File does not exist: '.$filepath); |
|
57 | 57 | } |
58 | 58 | |
59 | 59 | if (!is_readable($filepath)) { |
60 | - throw new \Exception('File is not readable: ' . $filepath); |
|
60 | + throw new \Exception('File is not readable: '.$filepath); |
|
61 | 61 | } |
62 | 62 | |
63 | 63 | $this->filepath = $filepath; |
@@ -385,7 +385,7 @@ discard block |
||
385 | 385 | */ |
386 | 386 | public function output($quality = self::DEFAULT_JPEG_QUALITY) |
387 | 387 | { |
388 | - header('Content-type: ' . $this->mimetype); |
|
388 | + header('Content-type: '.$this->mimetype); |
|
389 | 389 | $this->outputImage(null, $quality); |
390 | 390 | } |
391 | 391 |