@@ -73,6 +73,7 @@ |
||
| 73 | 73 | * @see http://www.php.net/manual/en/function.image-type-to-mime-type.php |
| 74 | 74 | * @param string $imagePath |
| 75 | 75 | * @param bool $getExtension |
| 76 | + * @return integer |
|
| 76 | 77 | */ |
| 77 | 78 | public function GetImageMimeType($imagePath, $getExtension = false) |
| 78 | 79 | { |
@@ -25,7 +25,7 @@ discard block |
||
| 25 | 25 | } |
| 26 | 26 | |
| 27 | 27 | /** |
| 28 | - * @param $imagePath |
|
| 28 | + * @param string $imagePath |
|
| 29 | 29 | * |
| 30 | 30 | * @return array |
| 31 | 31 | * @throws \Exception |
@@ -112,7 +112,7 @@ discard block |
||
| 112 | 112 | } |
| 113 | 113 | |
| 114 | 114 | /** |
| 115 | - * @param $imagePath |
|
| 115 | + * @param string $imagePath |
|
| 116 | 116 | * @param string $modifier |
| 117 | 117 | * |
| 118 | 118 | * @return string |
@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | * Use build-in logic to position the x of watermark |
| 58 | 58 | * |
| 59 | 59 | * @param string $imageResource |
| 60 | - * @return self |
|
| 60 | + * @return integer |
|
| 61 | 61 | */ |
| 62 | 62 | protected function calculateX($imageResource) |
| 63 | 63 | { |
@@ -82,7 +82,7 @@ discard block |
||
| 82 | 82 | * Use build-in logic to position the y of watermark |
| 83 | 83 | * |
| 84 | 84 | * @param string $imageResource |
| 85 | - * @return self |
|
| 85 | + * @return integer |
|
| 86 | 86 | */ |
| 87 | 87 | public function calculateY($imageResource) |
| 88 | 88 | { |
@@ -131,6 +131,7 @@ discard block |
||
| 131 | 131 | * Set the x |
| 132 | 132 | * |
| 133 | 133 | * @param int | string $x |
| 134 | + * @param string $x |
|
| 134 | 135 | * @return self |
| 135 | 136 | */ |
| 136 | 137 | public function SetX($x) |
@@ -143,6 +144,7 @@ discard block |
||
| 143 | 144 | * Set the y |
| 144 | 145 | * |
| 145 | 146 | * @param int | string $y |
| 147 | + * @param string $y |
|
| 146 | 148 | * @return self |
| 147 | 149 | */ |
| 148 | 150 | public function SetY($y) |
@@ -62,8 +62,8 @@ |
||
| 62 | 62 | |
| 63 | 63 | // Preserve transparency |
| 64 | 64 | imagecolortransparent($new, imagecolorallocatealpha($new, 0, 0, 0, 127)); |
| 65 | - imagealphablending($new, false); |
|
| 66 | - imagesavealpha($new, true); |
|
| 65 | + imagealphablending($new, false); |
|
| 66 | + imagesavealpha($new, true); |
|
| 67 | 67 | |
| 68 | 68 | imagecopyresampled($new, $imageResource, $this->_destX, $this->_destY, $this->_x, $this->_y, $this->_destWidth, $this->_destHeight, $originalWidth, $originalHeight); |
| 69 | 69 | |