@@ -116,7 +116,7 @@ |
||
| 116 | 116 | /** |
| 117 | 117 | * Set the namespace. |
| 118 | 118 | * |
| 119 | - * @param $namespace |
|
| 119 | + * @param null|string $namespace |
|
| 120 | 120 | * @return $this |
| 121 | 121 | */ |
| 122 | 122 | public function setNamespace($namespace) |
@@ -53,7 +53,7 @@ |
||
| 53 | 53 | * @param FieldRepositoryInterface $fields |
| 54 | 54 | * @param StreamRepositoryInterface $streams |
| 55 | 55 | * @param ModuleCollection $modules |
| 56 | - * @return \Illuminate\Contracts\View\View|mixed |
|
| 56 | + * @return \Illuminate\Contracts\View\View |
|
| 57 | 57 | */ |
| 58 | 58 | public function choose( |
| 59 | 59 | FieldRepositoryInterface $fields, |
@@ -274,7 +274,7 @@ discard block |
||
| 274 | 274 | * Make a new image instance. |
| 275 | 275 | * |
| 276 | 276 | * @param mixed $image |
| 277 | - * @param null $output |
|
| 277 | + * @param string $output |
|
| 278 | 278 | * @return $this |
| 279 | 279 | */ |
| 280 | 280 | public function make($image, $output = null) |
@@ -328,7 +328,7 @@ discard block |
||
| 328 | 328 | /** |
| 329 | 329 | * Run a macro on the image. |
| 330 | 330 | * |
| 331 | - * @param $macro |
|
| 331 | + * @param string $macro |
|
| 332 | 332 | * @return Image |
| 333 | 333 | * @throws \Exception |
| 334 | 334 | */ |
@@ -445,7 +445,7 @@ discard block |
||
| 445 | 445 | * |
| 446 | 446 | * @param null $format |
| 447 | 447 | * @param int $quality |
| 448 | - * @return String |
|
| 448 | + * @return \Intervention\Image\Image |
|
| 449 | 449 | */ |
| 450 | 450 | public function encode($format = null, $quality = null) |
| 451 | 451 | { |
@@ -577,7 +577,7 @@ discard block |
||
| 577 | 577 | /** |
| 578 | 578 | * Determine if the image needs to be published |
| 579 | 579 | * |
| 580 | - * @param $path |
|
| 580 | + * @param string $path |
|
| 581 | 581 | * @return bool |
| 582 | 582 | */ |
| 583 | 583 | private function shouldPublish($path) |
@@ -613,7 +613,7 @@ discard block |
||
| 613 | 613 | /** |
| 614 | 614 | * Publish an image to the publish directory. |
| 615 | 615 | * |
| 616 | - * @param $path |
|
| 616 | + * @param string $path |
|
| 617 | 617 | */ |
| 618 | 618 | protected function publish($path) |
| 619 | 619 | { |
@@ -684,7 +684,7 @@ discard block |
||
| 684 | 684 | /** |
| 685 | 685 | * Return the image srcsets by set. |
| 686 | 686 | * |
| 687 | - * @return array |
|
| 687 | + * @return string |
|
| 688 | 688 | */ |
| 689 | 689 | public function srcset() |
| 690 | 690 | { |
@@ -797,7 +797,7 @@ discard block |
||
| 797 | 797 | /** |
| 798 | 798 | * Return if an extension is supported. |
| 799 | 799 | * |
| 800 | - * @param $extension |
|
| 800 | + * @param null|string $extension |
|
| 801 | 801 | * @return bool |
| 802 | 802 | */ |
| 803 | 803 | protected function supportsType($extension) |
@@ -937,7 +937,7 @@ discard block |
||
| 937 | 937 | /** |
| 938 | 938 | * Get the image instance. |
| 939 | 939 | * |
| 940 | - * @return \Intervention\Image\Image |
|
| 940 | + * @return null|string |
|
| 941 | 941 | */ |
| 942 | 942 | public function getImage() |
| 943 | 943 | { |
@@ -993,7 +993,7 @@ discard block |
||
| 993 | 993 | /** |
| 994 | 994 | * Get the file name. |
| 995 | 995 | * |
| 996 | - * @return null|string |
|
| 996 | + * @return null|boolean |
|
| 997 | 997 | */ |
| 998 | 998 | public function getVersion() |
| 999 | 999 | { |
@@ -1076,7 +1076,7 @@ discard block |
||
| 1076 | 1076 | /** |
| 1077 | 1077 | * Add an attribute. |
| 1078 | 1078 | * |
| 1079 | - * @param $attribute |
|
| 1079 | + * @param string $attribute |
|
| 1080 | 1080 | * @param $value |
| 1081 | 1081 | * @return $this |
| 1082 | 1082 | */ |
@@ -1151,7 +1151,7 @@ discard block |
||
| 1151 | 1151 | /** |
| 1152 | 1152 | * Set the output mode. |
| 1153 | 1153 | * |
| 1154 | - * @param $output |
|
| 1154 | + * @param string $output |
|
| 1155 | 1155 | * @return $this |
| 1156 | 1156 | */ |
| 1157 | 1157 | public function setOutput($output) |
@@ -1197,7 +1197,7 @@ discard block |
||
| 1197 | 1197 | /** |
| 1198 | 1198 | * Add a path by it's namespace hint. |
| 1199 | 1199 | * |
| 1200 | - * @param $namespace |
|
| 1200 | + * @param string $namespace |
|
| 1201 | 1201 | * @param $path |
| 1202 | 1202 | * @return $this |
| 1203 | 1203 | */ |
@@ -1280,7 +1280,7 @@ discard block |
||
| 1280 | 1280 | /** |
| 1281 | 1281 | * Set the public base directory. |
| 1282 | 1282 | * |
| 1283 | - * @param $directory |
|
| 1283 | + * @param string $directory |
|
| 1284 | 1284 | * @return $this |
| 1285 | 1285 | */ |
| 1286 | 1286 | public function setDirectory($directory) |
@@ -131,7 +131,7 @@ discard block |
||
| 131 | 131 | /** |
| 132 | 132 | * Fire a model event. |
| 133 | 133 | * |
| 134 | - * @param $event |
|
| 134 | + * @param string $event |
|
| 135 | 135 | * @return mixed |
| 136 | 136 | */ |
| 137 | 137 | public function fireEvent($event) |
@@ -455,6 +455,9 @@ discard block |
||
| 455 | 455 | return $this->translatedAttributes; |
| 456 | 456 | } |
| 457 | 457 | |
| 458 | + /** |
|
| 459 | + * @return string|null |
|
| 460 | + */ |
|
| 458 | 461 | public function getRelationKey() |
| 459 | 462 | { |
| 460 | 463 | return $this->translationForeignKey ?: $this->getForeignKey(); |
@@ -645,6 +648,9 @@ discard block |
||
| 645 | 648 | return parent::fill($attributes); |
| 646 | 649 | } |
| 647 | 650 | |
| 651 | + /** |
|
| 652 | + * @param string $key |
|
| 653 | + */ |
|
| 648 | 654 | private function getTranslationByLocaleKey($key) |
| 649 | 655 | { |
| 650 | 656 | foreach ($this->translations as $translation) { |
@@ -839,6 +845,9 @@ discard block |
||
| 839 | 845 | return $this->cascades; |
| 840 | 846 | } |
| 841 | 847 | |
| 848 | + /** |
|
| 849 | + * @param string $key |
|
| 850 | + */ |
|
| 842 | 851 | public function __get($key) |
| 843 | 852 | { |
| 844 | 853 | if ($this->hasHook($hook = 'get_' . $key)) { |
@@ -97,7 +97,6 @@ |
||
| 97 | 97 | * |
| 98 | 98 | * @param Image $image |
| 99 | 99 | * @param Asset $asset |
| 100 | - * @param IconRegistry $icons |
|
| 101 | 100 | */ |
| 102 | 101 | public function __construct(Image $image, Asset $asset) |
| 103 | 102 | { |
@@ -157,7 +157,7 @@ discard block |
||
| 157 | 157 | /** |
| 158 | 158 | * Set the highlighted flag. |
| 159 | 159 | * |
| 160 | - * @param boolean $active |
|
| 160 | + * @param boolean $highlighted |
|
| 161 | 161 | * @return $this |
| 162 | 162 | */ |
| 163 | 163 | public function setHighlighted($highlighted); |
@@ -172,7 +172,6 @@ discard block |
||
| 172 | 172 | /** |
| 173 | 173 | * Set the context flag. |
| 174 | 174 | * |
| 175 | - * @param boolean $active |
|
| 176 | 175 | * @return $this |
| 177 | 176 | */ |
| 178 | 177 | public function setContext($context); |
@@ -211,6 +210,7 @@ discard block |
||
| 211 | 210 | * Set the buttons. |
| 212 | 211 | * |
| 213 | 212 | * @param array|string $buttons |
| 213 | + * @return void |
|
| 214 | 214 | */ |
| 215 | 215 | public function setButtons($buttons); |
| 216 | 216 | |
@@ -225,6 +225,7 @@ discard block |
||
| 225 | 225 | * Set the attributes. |
| 226 | 226 | * |
| 227 | 227 | * @param array $attributes |
| 228 | + * @return void |
|
| 228 | 229 | */ |
| 229 | 230 | public function setAttributes(array $attributes); |
| 230 | 231 | |
@@ -348,7 +348,6 @@ discard block |
||
| 348 | 348 | /** |
| 349 | 349 | * Set the highlighted flag. |
| 350 | 350 | * |
| 351 | - * @param boolean $active |
|
| 352 | 351 | * @return $this |
| 353 | 352 | */ |
| 354 | 353 | public function setHighlighted($highlighted) |
@@ -361,7 +360,7 @@ discard block |
||
| 361 | 360 | /** |
| 362 | 361 | * Get the context. |
| 363 | 362 | * |
| 364 | - * @return boolean |
|
| 363 | + * @return string |
|
| 365 | 364 | */ |
| 366 | 365 | public function getContext() |
| 367 | 366 | { |
@@ -371,7 +370,6 @@ discard block |
||
| 371 | 370 | /** |
| 372 | 371 | * Set the context flag. |
| 373 | 372 | * |
| 374 | - * @param boolean $active |
|
| 375 | 373 | * @return $this |
| 376 | 374 | */ |
| 377 | 375 | public function setContext($context) |
@@ -289,7 +289,7 @@ discard block |
||
| 289 | 289 | /** |
| 290 | 290 | * Fire field events. |
| 291 | 291 | * |
| 292 | - * @param $trigger |
|
| 292 | + * @param string $trigger |
|
| 293 | 293 | * @param array $payload |
| 294 | 294 | */ |
| 295 | 295 | public function fireFieldEvents($trigger, array $payload = []) |
@@ -459,7 +459,7 @@ discard block |
||
| 459 | 459 | /** |
| 460 | 460 | * Get the entry object. |
| 461 | 461 | * |
| 462 | - * @return null|EntryInterface|FieldInterface|mixed |
|
| 462 | + * @return null|integer |
|
| 463 | 463 | */ |
| 464 | 464 | public function getEntry() |
| 465 | 465 | { |
@@ -733,8 +733,8 @@ discard block |
||
| 733 | 733 | /** |
| 734 | 734 | * Get an option value. |
| 735 | 735 | * |
| 736 | - * @param $key |
|
| 737 | - * @param null $default |
|
| 736 | + * @param string $key |
|
| 737 | + * @param string $default |
|
| 738 | 738 | * @return mixed |
| 739 | 739 | */ |
| 740 | 740 | public function getOption($key, $default = null) |
@@ -810,8 +810,8 @@ discard block |
||
| 810 | 810 | /** |
| 811 | 811 | * Get a form option value. |
| 812 | 812 | * |
| 813 | - * @param $key |
|
| 814 | - * @param null $default |
|
| 813 | + * @param string $key |
|
| 814 | + * @param string $default |
|
| 815 | 815 | * @return mixed |
| 816 | 816 | */ |
| 817 | 817 | public function getFormOption($key, $default = null) |
@@ -866,7 +866,7 @@ discard block |
||
| 866 | 866 | /** |
| 867 | 867 | * Return the form entry's ID. |
| 868 | 868 | * |
| 869 | - * @return int|mixed|null |
|
| 869 | + * @return null|integer |
|
| 870 | 870 | */ |
| 871 | 871 | public function getFormEntryId() |
| 872 | 872 | { |
@@ -902,7 +902,7 @@ discard block |
||
| 902 | 902 | /** |
| 903 | 903 | * Set the form mode. |
| 904 | 904 | * |
| 905 | - * @param $mode |
|
| 905 | + * @param string $mode |
|
| 906 | 906 | * @return $this |
| 907 | 907 | */ |
| 908 | 908 | public function setFormMode($mode) |
@@ -1011,7 +1011,7 @@ discard block |
||
| 1011 | 1011 | /** |
| 1012 | 1012 | * Set the form response. |
| 1013 | 1013 | * |
| 1014 | - * @param null|false|Response $response |
|
| 1014 | + * @param Response $response |
|
| 1015 | 1015 | * @return $this |
| 1016 | 1016 | */ |
| 1017 | 1017 | public function setFormResponse(Response $response) |
@@ -1268,9 +1268,9 @@ discard block |
||
| 1268 | 1268 | /** |
| 1269 | 1269 | * Get a request value. |
| 1270 | 1270 | * |
| 1271 | - * @param $key |
|
| 1271 | + * @param string $key |
|
| 1272 | 1272 | * @param null $default |
| 1273 | - * @return mixed |
|
| 1273 | + * @return string |
|
| 1274 | 1274 | */ |
| 1275 | 1275 | public function getRequestValue($key, $default = null) |
| 1276 | 1276 | { |
@@ -1293,8 +1293,7 @@ discard block |
||
| 1293 | 1293 | * Return a post key flag. |
| 1294 | 1294 | * |
| 1295 | 1295 | * @param $key |
| 1296 | - * @param null $default |
|
| 1297 | - * @return mixed |
|
| 1296 | + * @return boolean |
|
| 1298 | 1297 | */ |
| 1299 | 1298 | public function hasPostedInput($key) |
| 1300 | 1299 | { |