Skip to content

Commit da4e0e6

Browse files
committed
Merged
1 parent 5a860d7 commit da4e0e6

File tree

1 file changed

+8
-15
lines changed

1 file changed

+8
-15
lines changed

src/ImageResize.php

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,6 @@
77
/**
88
* Handles thumb image(s) according to the original source given.
99
*/
10-
/**
11-
* Image Resize
12-
*
13-
* @package Eventviva
14-
*/
1510
class ImageResize
1611
{
1712
const cropTOP = 1;
@@ -68,7 +63,7 @@ public static function createFromString($imageData){
6863
$s->loadFromString($imageData);
6964
return $s;
7065
}
71-
66+
7267
/**
7368
* Constructor
7469
*
@@ -77,7 +72,7 @@ public static function createFromString($imageData){
7772
*/
7873
public function __construct($filename=null)
7974
{
80-
if(!empty($filename)){
75+
if(!empty($filename)) {
8176
$this->load($filename);
8277
}
8378
}
@@ -118,11 +113,10 @@ public function loadFromString($imagedata)
118113
}
119114

120115
/**
121-
* Load a file
122-
*
116+
* Loads image source and its properties to the instanciated object
123117
* @param string $filename
124-
* @return ImageResize
125-
* @throws \Exception
118+
* @return \static
119+
* @throws Exception
126120
*/
127121
public function load($filename)
128122
{
@@ -247,10 +241,9 @@ public function toString($image_type = null, $quality = null){
247241
}
248242

249243
/**
250-
* Outputs image source to browser
251-
*
252-
* @param int $image_type
253-
* @param int $quality
244+
* Outpus image source to browser
245+
* @param string $image_type
246+
* @param integer $quality
254247
*/
255248
public function output($image_type = null, $quality = null)
256249
{

0 commit comments

Comments
 (0)