File tree Expand file tree Collapse file tree 1 file changed +3
-14
lines changed Expand file tree Collapse file tree 1 file changed +3
-14
lines changed Original file line number Diff line number Diff line change @@ -50,26 +50,15 @@ public static function createFromString($image_data)
5050 $ resize = new self ('data://application/octet-stream;base64, ' . base64_encode ($ image_data ));
5151 return $ resize ;
5252 }
53-
54- /**
55- * Constructor
56- *
57- * @param string|null $filename
58- * @throws \Exception
59- */
60- public function __construct ($ filename )
61- {
62- $ this ->loadFromFile ($ filename );
63- }
6453
6554 /**
6655 * Loads image source and its properties to the instanciated object
6756 *
6857 * @param string $filename
69- * @return \static
70- * @throws Exception
58+ * @return ImageResize
59+ * @throws \ Exception
7160 */
72- public function loadFromFile ($ filename )
61+ public function __construct ($ filename )
7362 {
7463 $ image_info = @getimagesize ($ filename );
7564
You can’t perform that action at this time.
0 commit comments