@@ -288,7 +288,7 @@ |
||
288 | 288 | } |
289 | 289 | |
290 | 290 | /** |
291 | - * @return mixed |
|
291 | + * @return integer |
|
292 | 292 | */ |
293 | 293 | public function getPrimary() |
294 | 294 | { |
@@ -107,7 +107,7 @@ |
||
107 | 107 | } |
108 | 108 | |
109 | 109 | /** |
110 | - * @return mixed |
|
110 | + * @return string |
|
111 | 111 | */ |
112 | 112 | public function getPhrase() |
113 | 113 | { |
@@ -335,7 +335,7 @@ |
||
335 | 335 | } |
336 | 336 | |
337 | 337 | /** |
338 | - * @return mixed |
|
338 | + * @return integer |
|
339 | 339 | */ |
340 | 340 | public function getDisplayDate() |
341 | 341 | { |
@@ -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 | /** |