@@ -36,7 +36,7 @@ |
||
36 | 36 | * Handle the command. |
37 | 37 | * |
38 | 38 | * @param AssignField $command |
39 | - * @return AssignmentInterface |
|
39 | + * @return \Anomaly\Streams\Platform\Model\EloquentModel |
|
40 | 40 | */ |
41 | 41 | public function handle(AssignField $command) |
42 | 42 | { |
@@ -105,7 +105,6 @@ |
||
105 | 105 | /** |
106 | 106 | * Get the name. |
107 | 107 | * |
108 | - * @param null|string $locale |
|
109 | 108 | * @return string |
110 | 109 | */ |
111 | 110 | public function getName() |
@@ -112,7 +112,7 @@ discard block |
||
112 | 112 | /** |
113 | 113 | * Fire a model event. |
114 | 114 | * |
115 | - * @param $event |
|
115 | + * @param string $event |
|
116 | 116 | * @return mixed |
117 | 117 | */ |
118 | 118 | public function fireEvent($event) |
@@ -397,6 +397,9 @@ discard block |
||
397 | 397 | return get_class($this) . 'Translation'; |
398 | 398 | } |
399 | 399 | |
400 | + /** |
|
401 | + * @return string|null |
|
402 | + */ |
|
400 | 403 | public function getRelationKey() |
401 | 404 | { |
402 | 405 | return $this->translationForeignKey ?: $this->getForeignKey(); |
@@ -588,6 +591,9 @@ discard block |
||
588 | 591 | return parent::fill($attributes); |
589 | 592 | } |
590 | 593 | |
594 | + /** |
|
595 | + * @param string $key |
|
596 | + */ |
|
591 | 597 | private function getTranslationByLocaleKey($key) |
592 | 598 | { |
593 | 599 | foreach ($this->translations as $translation) { |
@@ -758,6 +764,9 @@ discard block |
||
758 | 764 | return class_exists($criteria) ? $criteria : EloquentCriteria::class; |
759 | 765 | } |
760 | 766 | |
767 | + /** |
|
768 | + * @param string $key |
|
769 | + */ |
|
761 | 770 | public function __get($key) |
762 | 771 | { |
763 | 772 | if ($this->hasHook($hook = 'get_' . $key)) { |
@@ -2,9 +2,7 @@ |
||
2 | 2 | |
3 | 3 | use Anomaly\Streams\Platform\Application\Application; |
4 | 4 | use Anomaly\Streams\Platform\Stream\Contract\StreamInterface; |
5 | -use Illuminate\Contracts\Config\Repository; |
|
6 | 5 | use Illuminate\Filesystem\Filesystem; |
7 | -use Laravel\Scout\EngineManager; |
|
8 | 6 | |
9 | 7 | class DeleteEntryIndex |
10 | 8 | { |
@@ -41,7 +41,7 @@ |
||
41 | 41 | /** |
42 | 42 | * Get the paginated entries. |
43 | 43 | * |
44 | - * @return Collection |
|
44 | + * @return Paginator |
|
45 | 45 | */ |
46 | 46 | public function paginate($perPage = 15, $pageName = 'page', $page = null) |
47 | 47 | { |
@@ -103,7 +103,7 @@ |
||
103 | 103 | /** |
104 | 104 | * Return the currency symbol. |
105 | 105 | * |
106 | - * @param null $currency |
|
106 | + * @param string $currency |
|
107 | 107 | * @return string |
108 | 108 | */ |
109 | 109 | public function symbol($currency = null) |
@@ -178,7 +178,7 @@ discard block |
||
178 | 178 | /** |
179 | 179 | * Close the current form. |
180 | 180 | * |
181 | - * @return string |
|
181 | + * @return HtmlString |
|
182 | 182 | */ |
183 | 183 | public function close() |
184 | 184 | { |
@@ -192,7 +192,7 @@ discard block |
||
192 | 192 | /** |
193 | 193 | * Generate a hidden field with the current CSRF token. |
194 | 194 | * |
195 | - * @return string |
|
195 | + * @return HtmlString |
|
196 | 196 | */ |
197 | 197 | public function token() |
198 | 198 | { |
@@ -591,11 +591,6 @@ discard block |
||
591 | 591 | /** |
592 | 592 | * Create a select year field. |
593 | 593 | * |
594 | - * @param string $name |
|
595 | - * @param string $begin |
|
596 | - * @param string $end |
|
597 | - * @param string $selected |
|
598 | - * @param array $options |
|
599 | 594 | * |
600 | 595 | * @return mixed |
601 | 596 | */ |
@@ -684,7 +679,7 @@ discard block |
||
684 | 679 | /** |
685 | 680 | * Create a placeholder select element option. |
686 | 681 | * |
687 | - * @param $display |
|
682 | + * @param string $display |
|
688 | 683 | * @param $selected |
689 | 684 | * |
690 | 685 | * @return \Illuminate\Support\HtmlString |
@@ -720,7 +715,7 @@ discard block |
||
720 | 715 | * Create a checkbox input field. |
721 | 716 | * |
722 | 717 | * @param string $name |
723 | - * @param mixed $value |
|
718 | + * @param integer $value |
|
724 | 719 | * @param bool $checked |
725 | 720 | * @param array $options |
726 | 721 | * |
@@ -1140,7 +1135,7 @@ discard block |
||
1140 | 1135 | * |
1141 | 1136 | * @param string $key |
1142 | 1137 | * |
1143 | - * @return mixed |
|
1138 | + * @return string |
|
1144 | 1139 | */ |
1145 | 1140 | protected function transformKey($key) |
1146 | 1141 | { |
@@ -65,7 +65,7 @@ |
||
65 | 65 | /** |
66 | 66 | * Fire a set of closures by trigger. |
67 | 67 | * |
68 | - * @param $trigger |
|
68 | + * @param string $trigger |
|
69 | 69 | * @param array $parameters |
70 | 70 | * @return $this |
71 | 71 | */ |
@@ -50,7 +50,6 @@ |
||
50 | 50 | /** |
51 | 51 | * Handle the command. |
52 | 52 | * |
53 | - * @param Translator $translator |
|
54 | 53 | * @return string |
55 | 54 | */ |
56 | 55 | public function handle() |