@@ -200,7 +200,7 @@ discard block |
||
200 | 200 | |
201 | 201 | /** |
202 | 202 | * @param $file |
203 | - * @return bool |
|
203 | + * @return boolean|null |
|
204 | 204 | */ |
205 | 205 | public function save($file) |
206 | 206 | { |
@@ -375,7 +375,7 @@ discard block |
||
375 | 375 | } |
376 | 376 | |
377 | 377 | /** |
378 | - * @param $originalAbsPath |
|
378 | + * @param string $originalAbsPath |
|
379 | 379 | * @throws \Exception |
380 | 380 | */ |
381 | 381 | private function checkOriginalExists($originalAbsPath) |
@@ -391,7 +391,7 @@ discard block |
||
391 | 391 | |
392 | 392 | /** |
393 | 393 | * @param $image |
394 | - * @param $originalAbsPath |
|
394 | + * @param string $originalAbsPath |
|
395 | 395 | * @throws \Exception |
396 | 396 | */ |
397 | 397 | private function saveImage($image, $originalAbsPath) |
@@ -109,8 +109,7 @@ discard block |
||
109 | 109 | $this->changeAttributesInAccordanceWithStretch(); |
110 | 110 | } |
111 | 111 | $this->attributes['alt'] = (isset($this->attributes['alt'])) ? |
112 | - htmlspecialchars($this->attributes['alt'], ENT_QUOTES) : |
|
113 | - ''; |
|
112 | + htmlspecialchars($this->attributes['alt'], ENT_QUOTES) : ''; |
|
114 | 113 | } |
115 | 114 | |
116 | 115 | private function changeAttributesInAccordanceWithStretch() |
@@ -239,7 +238,7 @@ discard block |
||
239 | 238 | */ |
240 | 239 | public function isExists() |
241 | 240 | { |
242 | - return (file_exists($this->getAbsPath(true))) ? true : false ; |
|
241 | + return (file_exists($this->getAbsPath(true))) ? true : false; |
|
243 | 242 | } |
244 | 243 | |
245 | 244 | /** |