@@ -215,7 +215,7 @@ |
||
| 215 | 215 | /** |
| 216 | 216 | * Determine the number of attachments. |
| 217 | 217 | * |
| 218 | - * @return boolean |
|
| 218 | + * @return integer |
|
| 219 | 219 | */ |
| 220 | 220 | public function hasAttachments() |
| 221 | 221 | { |
@@ -2,7 +2,6 @@ discard block |
||
| 2 | 2 | |
| 3 | 3 | namespace Charcoal\Admin\Widget; |
| 4 | 4 | |
| 5 | -use ArrayIterator; |
|
| 6 | 5 | use RuntimeException; |
| 7 | 6 | use InvalidArgumentException; |
| 8 | 7 | |
@@ -10,7 +9,6 @@ discard block |
||
| 10 | 9 | use Pimple\Container; |
| 11 | 10 | |
| 12 | 11 | // From Mustache |
| 13 | -use Mustache_LambdaHelper as LambdaHelper; |
|
| 14 | 12 | |
| 15 | 13 | // From 'charcoal-config' |
| 16 | 14 | use Charcoal\Config\ConfigurableInterface; |
@@ -19,7 +17,6 @@ discard block |
||
| 19 | 17 | use Charcoal\Factory\FactoryInterface; |
| 20 | 18 | |
| 21 | 19 | // From 'charcoal-core' |
| 22 | -use Charcoal\Loader\CollectionLoader; |
|
| 23 | 20 | use Charcoal\Model\ModelInterface; |
| 24 | 21 | |
| 25 | 22 | // From 'charcoal-translator' |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | /** |
| 14 | 14 | * Alias of {@see Attachment::file()}. |
| 15 | 15 | * |
| 16 | - * @return string|null |
|
| 16 | + * @return \Psr\Http\Message\UriInterface|null |
|
| 17 | 17 | */ |
| 18 | 18 | public function src() |
| 19 | 19 | { |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | /** |
| 13 | 13 | * Alias of {@see Attachment::thumbnail()} and {@see Attachment::file()}. |
| 14 | 14 | * |
| 15 | - * @return string|null |
|
| 15 | + * @return \Psr\Http\Message\UriInterface|null |
|
| 16 | 16 | */ |
| 17 | 17 | public function src() |
| 18 | 18 | { |
@@ -471,7 +471,7 @@ |
||
| 471 | 471 | /** |
| 472 | 472 | * Retrieve the relationship's group ID. |
| 473 | 473 | * |
| 474 | - * @return mixed |
|
| 474 | + * @return string |
|
| 475 | 475 | */ |
| 476 | 476 | public function group() |
| 477 | 477 | { |
@@ -293,7 +293,7 @@ |
||
| 293 | 293 | * Set the attachment widget. |
| 294 | 294 | * |
| 295 | 295 | * @param AttachmentWidget $widget The widget displaying attachments. |
| 296 | - * @return string |
|
| 296 | + * @return AttachmentAwareTrait |
|
| 297 | 297 | */ |
| 298 | 298 | protected function setAttachmentWidget(AttachmentWidget $widget) |
| 299 | 299 | { |
@@ -13,8 +13,6 @@ |
||
| 13 | 13 | // From 'charcoal-attachment' |
| 14 | 14 | use Charcoal\Attachment\Interfaces\AttachableInterface; |
| 15 | 15 | use Charcoal\Attachment\Interfaces\AttachmentAwareInterface; |
| 16 | -use Charcoal\Attachment\Interfaces\AttachmentContainerInterface; |
|
| 17 | - |
|
| 18 | 16 | use Charcoal\Attachment\Object\Join; |
| 19 | 17 | use Charcoal\Attachment\Object\Attachment; |
| 20 | 18 | |
@@ -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 | { |
@@ -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 | { |
@@ -24,7 +24,6 @@ |
||
| 24 | 24 | use League\CLImate\Util\UtilFactory; |
| 25 | 25 | |
| 26 | 26 | // From 'charcoal-core' |
| 27 | -use Charcoal\Source\DatabaseSource; |
|
| 28 | 27 | use Charcoal\Model\ServiceProvider\ModelServiceProvider; |
| 29 | 28 | |
| 30 | 29 | // From 'charcoal-user' |