@@ -324,7 +324,7 @@ discard block |
||
| 324 | 324 | * |
| 325 | 325 | * @param string $type The attachment type. |
| 326 | 326 | * @throws InvalidArgumentException If provided argument is not of type 'string'. |
| 327 | - * @return string |
|
| 327 | + * @return Attachment |
|
| 328 | 328 | */ |
| 329 | 329 | public function setType($type) |
| 330 | 330 | { |
@@ -541,7 +541,7 @@ discard block |
||
| 541 | 541 | * Show/hide the attachment's title on the front-end. |
| 542 | 542 | * |
| 543 | 543 | * @param boolean $show Show (TRUE) or hide (FALSE) the title. |
| 544 | - * @return UiItemInterface Chainable |
|
| 544 | + * @return Attachment Chainable |
|
| 545 | 545 | */ |
| 546 | 546 | public function setShowTitle($show) |
| 547 | 547 | { |
@@ -765,7 +765,7 @@ discard block |
||
| 765 | 765 | /** |
| 766 | 766 | * Retrieve the attachment's sub-title. |
| 767 | 767 | * |
| 768 | - * @return Translation|string|null |
|
| 768 | + * @return null|Translation |
|
| 769 | 769 | */ |
| 770 | 770 | public function subtitle() |
| 771 | 771 | { |
@@ -775,7 +775,7 @@ discard block |
||
| 775 | 775 | /** |
| 776 | 776 | * Retrieve attachment's description. |
| 777 | 777 | * |
| 778 | - * @return Translation|string|null |
|
| 778 | + * @return null|Translation |
|
| 779 | 779 | */ |
| 780 | 780 | public function description() |
| 781 | 781 | { |
@@ -795,7 +795,7 @@ discard block |
||
| 795 | 795 | /** |
| 796 | 796 | * Retrieve the path to the thumbnail associated with the object. |
| 797 | 797 | * |
| 798 | - * @return string|null |
|
| 798 | + * @return string |
|
| 799 | 799 | */ |
| 800 | 800 | public function thumbnail() |
| 801 | 801 | { |
@@ -838,7 +838,7 @@ discard block |
||
| 838 | 838 | /** |
| 839 | 839 | * Retrieve the file label. |
| 840 | 840 | * |
| 841 | - * @return string|null |
|
| 841 | + * @return null|Translation |
|
| 842 | 842 | */ |
| 843 | 843 | public function fileLabel() |
| 844 | 844 | { |
@@ -848,7 +848,7 @@ discard block |
||
| 848 | 848 | /** |
| 849 | 849 | * Retrieve the link label. |
| 850 | 850 | * |
| 851 | - * @return string|null |
|
| 851 | + * @return null|Translation |
|
| 852 | 852 | */ |
| 853 | 853 | public function linkLabel() |
| 854 | 854 | { |
@@ -893,7 +893,7 @@ discard block |
||
| 893 | 893 | } |
| 894 | 894 | |
| 895 | 895 | /** |
| 896 | - * @return ModelInterface|mixed |
|
| 896 | + * @return ModelInterface |
|
| 897 | 897 | */ |
| 898 | 898 | public function presenter() |
| 899 | 899 | { |
@@ -1001,7 +1001,7 @@ discard block |
||
| 1001 | 1001 | * Prepend the base URI to the given path. |
| 1002 | 1002 | * |
| 1003 | 1003 | * @param string $text A string to parse relative URIs. |
| 1004 | - * @return UriInterface|null |
|
| 1004 | + * @return string |
|
| 1005 | 1005 | */ |
| 1006 | 1006 | protected function resolveUrls($text) |
| 1007 | 1007 | { |
@@ -210,7 +210,7 @@ discard block |
||
| 210 | 210 | ]); |
| 211 | 211 | |
| 212 | 212 | foreach ($attachments as $attachment) { |
| 213 | - $this->setDynamicTemplate('widget_template', (string)$attachment->rawPreview()); |
|
| 213 | + $this->setDynamicTemplate('widget_template', (string) $attachment->rawPreview()); |
|
| 214 | 214 | |
| 215 | 215 | if (isset($attachableObjects[$attachment->objType()])) { |
| 216 | 216 | $attachment->attachmentType = $attachableObjects[$attachment->objType()]; |
@@ -474,7 +474,7 @@ discard block |
||
| 474 | 474 | ); |
| 475 | 475 | } |
| 476 | 476 | |
| 477 | - $num = (int)$num; |
|
| 477 | + $num = (int) $num; |
|
| 478 | 478 | |
| 479 | 479 | if ($num < 0) { |
| 480 | 480 | throw new InvalidArgumentException( |
@@ -502,7 +502,7 @@ discard block |
||
| 502 | 502 | ); |
| 503 | 503 | } |
| 504 | 504 | |
| 505 | - $page = (int)$page; |
|
| 505 | + $page = (int) $page; |
|
| 506 | 506 | |
| 507 | 507 | if ($page < 0) { |
| 508 | 508 | throw new InvalidArgumentException( |