@@ -2,7 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Charcoal\Admin\Widget\Cms; |
| 4 | 4 | |
| 5 | -use Exception; |
|
| 6 | 5 | use RuntimeException; |
| 7 | 6 | |
| 8 | 7 | // From 'charcoal-core' |
@@ -363,7 +363,7 @@ discard block |
||
| 363 | 363 | /** |
| 364 | 364 | * Retrieve the menus this object belongs to. |
| 365 | 365 | * |
| 366 | - * @return Translation|string|null |
|
| 366 | + * @return string[] |
|
| 367 | 367 | */ |
| 368 | 368 | public function inMenu() |
| 369 | 369 | { |
@@ -430,7 +430,7 @@ discard block |
||
| 430 | 430 | } |
| 431 | 431 | |
| 432 | 432 | /** |
| 433 | - * @return Translation|string|null |
|
| 433 | + * @return null|Translation |
|
| 434 | 434 | */ |
| 435 | 435 | public function defaultMetaDescription() |
| 436 | 436 | { |
@@ -5,7 +5,6 @@ |
||
| 5 | 5 | use InvalidArgumentException; |
| 6 | 6 | |
| 7 | 7 | // From 'charcoal-core' |
| 8 | -use Charcoal\Model\Collection; |
|
| 9 | 8 | use Charcoal\Loader\CollectionLoader; |
| 10 | 9 | |
| 11 | 10 | // From 'charcoal-object' |
@@ -83,7 +83,7 @@ discard block |
||
| 83 | 83 | // ========================================================================== |
| 84 | 84 | |
| 85 | 85 | /** |
| 86 | - * @return mixed |
|
| 86 | + * @return string |
|
| 87 | 87 | */ |
| 88 | 88 | public function defaultMetaTitle() |
| 89 | 89 | { |
@@ -91,7 +91,7 @@ discard block |
||
| 91 | 91 | } |
| 92 | 92 | |
| 93 | 93 | /** |
| 94 | - * @return mixed |
|
| 94 | + * @return string |
|
| 95 | 95 | */ |
| 96 | 96 | public function defaultMetaDescription() |
| 97 | 97 | { |
@@ -99,7 +99,7 @@ discard block |
||
| 99 | 99 | } |
| 100 | 100 | |
| 101 | 101 | /** |
| 102 | - * @return mixed |
|
| 102 | + * @return string |
|
| 103 | 103 | */ |
| 104 | 104 | public function defaultMetaImage() |
| 105 | 105 | { |
@@ -107,7 +107,7 @@ discard block |
||
| 107 | 107 | } |
| 108 | 108 | |
| 109 | 109 | /** |
| 110 | - * @return mixed |
|
| 110 | + * @return string |
|
| 111 | 111 | */ |
| 112 | 112 | public function defaultMetaUrl() |
| 113 | 113 | { |
@@ -232,7 +232,7 @@ |
||
| 232 | 232 | // ========================================================================== |
| 233 | 233 | |
| 234 | 234 | /** |
| 235 | - * @return mixed |
|
| 235 | + * @return string |
|
| 236 | 236 | */ |
| 237 | 237 | public function defaultFromEmail() |
| 238 | 238 | { |
@@ -59,7 +59,7 @@ |
||
| 59 | 59 | } |
| 60 | 60 | |
| 61 | 61 | /** |
| 62 | - * @return boolean Entry cycle. |
|
| 62 | + * @return string Entry cycle. |
|
| 63 | 63 | */ |
| 64 | 64 | public function entryCycle() |
| 65 | 65 | { |
@@ -55,7 +55,7 @@ |
||
| 55 | 55 | } |
| 56 | 56 | |
| 57 | 57 | /** |
| 58 | - * @return mixed |
|
| 58 | + * @return string[] |
|
| 59 | 59 | */ |
| 60 | 60 | public function name() |
| 61 | 61 | { |
@@ -27,7 +27,7 @@ discard block |
||
| 27 | 27 | /** |
| 28 | 28 | * Formatted event list |
| 29 | 29 | * Return the entries for the current page |
| 30 | - * @return \Generator|void |
|
| 30 | + * @return \Generator |
|
| 31 | 31 | */ |
| 32 | 32 | public function eventsList() |
| 33 | 33 | { |
@@ -41,7 +41,7 @@ discard block |
||
| 41 | 41 | /** |
| 42 | 42 | * Formatted event archive list |
| 43 | 43 | * Returns the entries for the current page. |
| 44 | - * @return \Generator|void |
|
| 44 | + * @return \Generator |
|
| 45 | 45 | */ |
| 46 | 46 | public function eventArchiveList() |
| 47 | 47 | { |
@@ -73,7 +73,7 @@ discard block |
||
| 73 | 73 | } |
| 74 | 74 | |
| 75 | 75 | /** |
| 76 | - * @return mixed |
|
| 76 | + * @return \Generator |
|
| 77 | 77 | */ |
| 78 | 78 | public function featEvents() |
| 79 | 79 | { |
@@ -122,7 +122,7 @@ discard block |
||
| 122 | 122 | |
| 123 | 123 | /** |
| 124 | 124 | * Amount of events (total) |
| 125 | - * @return integer How many events? |
|
| 125 | + * @return boolean How many events? |
|
| 126 | 126 | */ |
| 127 | 127 | public function numEvent() |
| 128 | 128 | { |
@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | /** |
| 33 | 33 | * Formatted news list |
| 34 | 34 | * Returns the entries for the current page. |
| 35 | - * @return \Generator|void |
|
| 35 | + * @return \Generator |
|
| 36 | 36 | */ |
| 37 | 37 | public function newsList() |
| 38 | 38 | { |
@@ -45,7 +45,7 @@ discard block |
||
| 45 | 45 | /** |
| 46 | 46 | * Formatted news archive list |
| 47 | 47 | * Returns the entries for the current page. |
| 48 | - * @return \Generator|void |
|
| 48 | + * @return \Generator |
|
| 49 | 49 | */ |
| 50 | 50 | public function newsArchiveList() |
| 51 | 51 | { |
@@ -124,7 +124,7 @@ discard block |
||
| 124 | 124 | |
| 125 | 125 | /** |
| 126 | 126 | * Amount of news (total) |
| 127 | - * @return integer How many news? |
|
| 127 | + * @return boolean How many news? |
|
| 128 | 128 | */ |
| 129 | 129 | public function numNews() |
| 130 | 130 | { |
@@ -71,7 +71,7 @@ |
||
| 71 | 71 | |
| 72 | 72 | /** |
| 73 | 73 | * Gets latest route for the given slug. |
| 74 | - * @return string The latest url. |
|
| 74 | + * @return \Closure The latest url. |
|
| 75 | 75 | */ |
| 76 | 76 | public function routes() |
| 77 | 77 | { |