@@ -86,8 +86,8 @@ private function saveImage($to, $image, $quality)
86
86
}
87
87
88
88
89
- if (isset ($ quality ) && !is_int ($ quality )) {
90
- throw new \InvalidArgumentException (sprintf ('The %s quality has to be an integer ' , $ quality ));
89
+ if (isset ($ quality ) && !is_int ($ quality )) {
90
+ throw new \InvalidArgumentException (sprintf ('The %s quality has to be an integer ' , $ quality ));
91
91
}
92
92
93
93
switch ($ extension ) {
@@ -100,7 +100,7 @@ private function saveImage($to, $image, $quality)
100
100
throw new \InvalidArgumentException (sprintf ('The %s quality is out of range ' , $ quality ));
101
101
}
102
102
$ image = imagejpeg ($ image , $ to , $ quality );
103
- break ;
103
+ break ;
104
104
case 'png ' :
105
105
if ($ quality < -1 && $ quality > 9 ) {
106
106
throw new \InvalidArgumentException (sprintf ('The %s quality is out of range ' , $ quality ));
@@ -179,7 +179,8 @@ private function makeDirectory($to)
179
179
* @return resource
180
180
* @throws \InvalidArgumentException
181
181
*/
182
- function convert ($ from , $ to , $ quality = null ) {
183
- $ converter = new ImageConverter ();
184
- return $ converter ->convert ($ from , $ to , $ quality );
185
- }
182
+ function convert ($ from , $ to , $ quality = null )
183
+ {
184
+ $ converter = new ImageConverter ();
185
+ return $ converter ->convert ($ from , $ to , $ quality );
186
+ }
0 commit comments