@@ -115,7 +115,7 @@ |
||
| 115 | 115 | * @param $addon |
| 116 | 116 | * @param $namespace |
| 117 | 117 | * @param $stream |
| 118 | - * @return \Illuminate\Http\RedirectResponse |
|
| 118 | + * @return \Symfony\Component\HttpFoundation\StreamedResponse |
|
| 119 | 119 | */ |
| 120 | 120 | public function export($addon, $namespace, $stream) |
| 121 | 121 | { |
@@ -289,7 +289,7 @@ discard block |
||
| 289 | 289 | /** |
| 290 | 290 | * Run a macro on the image. |
| 291 | 291 | * |
| 292 | - * @param $macro |
|
| 292 | + * @param string $macro |
|
| 293 | 293 | * @return Image |
| 294 | 294 | * @throws \Exception |
| 295 | 295 | */ |
@@ -394,7 +394,7 @@ discard block |
||
| 394 | 394 | * |
| 395 | 395 | * @param null $format |
| 396 | 396 | * @param int $quality |
| 397 | - * @return String |
|
| 397 | + * @return \Intervention\Image\Image |
|
| 398 | 398 | */ |
| 399 | 399 | public function encode($format = null, $quality = null) |
| 400 | 400 | { |
@@ -495,7 +495,7 @@ discard block |
||
| 495 | 495 | /** |
| 496 | 496 | * Determine if the image needs to be published |
| 497 | 497 | * |
| 498 | - * @param $path |
|
| 498 | + * @param string $path |
|
| 499 | 499 | * @return bool |
| 500 | 500 | */ |
| 501 | 501 | private function shouldPublish($path) |
@@ -531,7 +531,7 @@ discard block |
||
| 531 | 531 | /** |
| 532 | 532 | * Publish an image to the publish directory. |
| 533 | 533 | * |
| 534 | - * @param $path |
|
| 534 | + * @param string $path |
|
| 535 | 535 | */ |
| 536 | 536 | protected function publish($path) |
| 537 | 537 | { |
@@ -600,7 +600,7 @@ discard block |
||
| 600 | 600 | /** |
| 601 | 601 | * Return the image srcsets by set. |
| 602 | 602 | * |
| 603 | - * @return array |
|
| 603 | + * @return string |
|
| 604 | 604 | */ |
| 605 | 605 | public function srcset() |
| 606 | 606 | { |
@@ -843,7 +843,7 @@ discard block |
||
| 843 | 843 | /** |
| 844 | 844 | * Get the image instance. |
| 845 | 845 | * |
| 846 | - * @return \Intervention\Image\Image |
|
| 846 | + * @return null|string |
|
| 847 | 847 | */ |
| 848 | 848 | public function getImage() |
| 849 | 849 | { |
@@ -940,7 +940,7 @@ discard block |
||
| 940 | 940 | /** |
| 941 | 941 | * Add an attribute. |
| 942 | 942 | * |
| 943 | - * @param $attribute |
|
| 943 | + * @param string $attribute |
|
| 944 | 944 | * @param $value |
| 945 | 945 | * @return $this |
| 946 | 946 | */ |
@@ -1015,7 +1015,7 @@ discard block |
||
| 1015 | 1015 | /** |
| 1016 | 1016 | * Set the output mode. |
| 1017 | 1017 | * |
| 1018 | - * @param $output |
|
| 1018 | + * @param string $output |
|
| 1019 | 1019 | * @return $this |
| 1020 | 1020 | */ |
| 1021 | 1021 | public function setOutput($output) |
@@ -1061,7 +1061,7 @@ discard block |
||
| 1061 | 1061 | /** |
| 1062 | 1062 | * Add a path by it's namespace hint. |
| 1063 | 1063 | * |
| 1064 | - * @param $namespace |
|
| 1064 | + * @param string $namespace |
|
| 1065 | 1065 | * @param $path |
| 1066 | 1066 | * @return $this |
| 1067 | 1067 | */ |
@@ -107,7 +107,7 @@ |
||
| 107 | 107 | /** |
| 108 | 108 | * Return if a macro exists or not. |
| 109 | 109 | * |
| 110 | - * @param $macro |
|
| 110 | + * @param string $macro |
|
| 111 | 111 | * @return bool |
| 112 | 112 | */ |
| 113 | 113 | public function isMacro($macro) |
@@ -24,7 +24,6 @@ |
||
| 24 | 24 | use Anomaly\Streams\Platform\Installer\InstallerCollection; |
| 25 | 25 | use Anomaly\Streams\Platform\Support\Collection; |
| 26 | 26 | use Illuminate\Console\Command; |
| 27 | -use Illuminate\Contracts\Config\Repository; |
|
| 28 | 27 | use Illuminate\Contracts\Events\Dispatcher; |
| 29 | 28 | use Illuminate\Foundation\Bus\DispatchesJobs; |
| 30 | 29 | |
@@ -388,7 +388,7 @@ |
||
| 388 | 388 | * Get an option value. |
| 389 | 389 | * |
| 390 | 390 | * @param $key |
| 391 | - * @param null $default |
|
| 391 | + * @param integer|null $default |
|
| 392 | 392 | * @return mixed |
| 393 | 393 | */ |
| 394 | 394 | public function getOption($key, $default = null) |
@@ -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) |
@@ -564,6 +564,9 @@ discard block |
||
| 564 | 564 | return parent::fill($attributes); |
| 565 | 565 | } |
| 566 | 566 | |
| 567 | + /** |
|
| 568 | + * @param string $key |
|
| 569 | + */ |
|
| 567 | 570 | private function getTranslationByLocaleKey($key) |
| 568 | 571 | { |
| 569 | 572 | foreach ($this->translations as $translation) { |
@@ -700,6 +703,9 @@ discard block |
||
| 700 | 703 | return false; |
| 701 | 704 | } |
| 702 | 705 | |
| 706 | + /** |
|
| 707 | + * @param string $key |
|
| 708 | + */ |
|
| 703 | 709 | public function __get($key) |
| 704 | 710 | { |
| 705 | 711 | if ($this->hasHook($key)) { |
@@ -259,7 +259,7 @@ discard block |
||
| 259 | 259 | /** |
| 260 | 260 | * Fire field events. |
| 261 | 261 | * |
| 262 | - * @param $trigger |
|
| 262 | + * @param string $trigger |
|
| 263 | 263 | * @param array $payload |
| 264 | 264 | */ |
| 265 | 265 | public function fireFieldEvents($trigger, array $payload = []) |
@@ -393,7 +393,7 @@ discard block |
||
| 393 | 393 | /** |
| 394 | 394 | * Set the form model. |
| 395 | 395 | * |
| 396 | - * @param $model |
|
| 396 | + * @param string|null $model |
|
| 397 | 397 | * @return $this |
| 398 | 398 | */ |
| 399 | 399 | public function setModel($model) |
@@ -429,7 +429,7 @@ discard block |
||
| 429 | 429 | /** |
| 430 | 430 | * Get the entry object. |
| 431 | 431 | * |
| 432 | - * @return null|EntryInterface|FieldInterface|mixed |
|
| 432 | + * @return null|integer |
|
| 433 | 433 | */ |
| 434 | 434 | public function getEntry() |
| 435 | 435 | { |
@@ -660,8 +660,8 @@ discard block |
||
| 660 | 660 | /** |
| 661 | 661 | * Get an option value. |
| 662 | 662 | * |
| 663 | - * @param $key |
|
| 664 | - * @param null $default |
|
| 663 | + * @param string $key |
|
| 664 | + * @param string $default |
|
| 665 | 665 | * @return mixed |
| 666 | 666 | */ |
| 667 | 667 | public function getOption($key, $default = null) |
@@ -672,8 +672,8 @@ discard block |
||
| 672 | 672 | /** |
| 673 | 673 | * Set an option value. |
| 674 | 674 | * |
| 675 | - * @param $key |
|
| 676 | - * @param $value |
|
| 675 | + * @param string $key |
|
| 676 | + * @param string $value |
|
| 677 | 677 | * @return $this |
| 678 | 678 | */ |
| 679 | 679 | public function setOption($key, $value) |
@@ -737,7 +737,7 @@ discard block |
||
| 737 | 737 | /** |
| 738 | 738 | * Get a form option value. |
| 739 | 739 | * |
| 740 | - * @param $key |
|
| 740 | + * @param string $key |
|
| 741 | 741 | * @param null $default |
| 742 | 742 | * @return mixed |
| 743 | 743 | */ |
@@ -793,7 +793,7 @@ discard block |
||
| 793 | 793 | /** |
| 794 | 794 | * Return the form entry's ID. |
| 795 | 795 | * |
| 796 | - * @return int|mixed|null |
|
| 796 | + * @return null|integer |
|
| 797 | 797 | */ |
| 798 | 798 | public function getFormEntryId() |
| 799 | 799 | { |
@@ -829,7 +829,7 @@ discard block |
||
| 829 | 829 | /** |
| 830 | 830 | * Set the form mode. |
| 831 | 831 | * |
| 832 | - * @param $mode |
|
| 832 | + * @param string $mode |
|
| 833 | 833 | * @return $this |
| 834 | 834 | */ |
| 835 | 835 | public function setFormMode($mode) |
@@ -854,7 +854,7 @@ discard block |
||
| 854 | 854 | /** |
| 855 | 855 | * Set a form value. |
| 856 | 856 | * |
| 857 | - * @param $key |
|
| 857 | + * @param string $key |
|
| 858 | 858 | * @param $value |
| 859 | 859 | * @return $this |
| 860 | 860 | */ |
@@ -924,7 +924,7 @@ discard block |
||
| 924 | 924 | /** |
| 925 | 925 | * Set the form response. |
| 926 | 926 | * |
| 927 | - * @param null|false|Response $response |
|
| 927 | + * @param Response $response |
|
| 928 | 928 | * @return $this |
| 929 | 929 | */ |
| 930 | 930 | public function setFormResponse(Response $response) |
@@ -996,7 +996,7 @@ discard block |
||
| 996 | 996 | * Disable a form field. |
| 997 | 997 | * |
| 998 | 998 | * @param $fieldSlug |
| 999 | - * @return FieldType |
|
| 999 | + * @return Form |
|
| 1000 | 1000 | */ |
| 1001 | 1001 | public function disableFormField($fieldSlug) |
| 1002 | 1002 | { |
@@ -1056,7 +1056,7 @@ discard block |
||
| 1056 | 1056 | /** |
| 1057 | 1057 | * Get the form errors. |
| 1058 | 1058 | * |
| 1059 | - * @return null|MessageBag |
|
| 1059 | + * @return MessageBag |
|
| 1060 | 1060 | */ |
| 1061 | 1061 | public function getFormErrors() |
| 1062 | 1062 | { |
@@ -1067,7 +1067,7 @@ discard block |
||
| 1067 | 1067 | * Add an error to the form. |
| 1068 | 1068 | * |
| 1069 | 1069 | * @param $field |
| 1070 | - * @param $message |
|
| 1070 | + * @param string $message |
|
| 1071 | 1071 | * @return $this |
| 1072 | 1072 | */ |
| 1073 | 1073 | public function addFormError($field, $message) |
@@ -1155,9 +1155,9 @@ discard block |
||
| 1155 | 1155 | /** |
| 1156 | 1156 | * Get a request value. |
| 1157 | 1157 | * |
| 1158 | - * @param $key |
|
| 1158 | + * @param string $key |
|
| 1159 | 1159 | * @param null $default |
| 1160 | - * @return mixed |
|
| 1160 | + * @return string |
|
| 1161 | 1161 | */ |
| 1162 | 1162 | public function getRequestValue($key, $default = null) |
| 1163 | 1163 | { |
@@ -1180,8 +1180,7 @@ discard block |
||
| 1180 | 1180 | * Return a post key flag. |
| 1181 | 1181 | * |
| 1182 | 1182 | * @param $key |
| 1183 | - * @param null $default |
|
| 1184 | - * @return mixed |
|
| 1183 | + * @return boolean |
|
| 1185 | 1184 | */ |
| 1186 | 1185 | public function hasPostedInput($key) |
| 1187 | 1186 | { |
@@ -128,7 +128,7 @@ |
||
| 128 | 128 | /** |
| 129 | 129 | * Set the constraint. |
| 130 | 130 | * |
| 131 | - * @param $constraint |
|
| 131 | + * @param string $constraint |
|
| 132 | 132 | * @return $this |
| 133 | 133 | */ |
| 134 | 134 | public function setConstraint($constraint) |
@@ -196,7 +196,7 @@ discard block |
||
| 196 | 196 | /** |
| 197 | 197 | * Set a field value. |
| 198 | 198 | * |
| 199 | - * @param $fieldSlug |
|
| 199 | + * @param string $fieldSlug |
|
| 200 | 200 | * @param $value |
| 201 | 201 | * @param null $locale |
| 202 | 202 | * @return $this |
@@ -608,7 +608,7 @@ discard block |
||
| 608 | 608 | * Return whether or not the assignment for |
| 609 | 609 | * the given field slug is translatable. |
| 610 | 610 | * |
| 611 | - * @param $fieldSlug |
|
| 611 | + * @param string $fieldSlug |
|
| 612 | 612 | * @return bool |
| 613 | 613 | */ |
| 614 | 614 | public function assignmentIsTranslatable($fieldSlug) |