Completed
Push — master ( 928024...e9b57b )
by Ryan
18:22
created
src/Ui/Table/Table.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -388,7 +388,7 @@
 block discarded – undo
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)
Please login to merge, or discard this patch.
src/Addon/FieldType/FieldTypeQuery.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -128,7 +128,7 @@
 block discarded – undo
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)
Please login to merge, or discard this patch.
src/Entry/EntryModel.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -196,7 +196,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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)
Please login to merge, or discard this patch.
src/Ui/Table/Component/Header/Guesser/HeadingsGuesser.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,5 @@
 block discarded – undo
1 1
 <?php namespace Anomaly\Streams\Platform\Ui\Table\Component\Header\Guesser;
2 2
 
3
-use Anomaly\Streams\Platform\Addon\Module\Module;
4 3
 use Anomaly\Streams\Platform\Addon\Module\ModuleCollection;
5 4
 use Anomaly\Streams\Platform\Stream\Contract\StreamInterface;
6 5
 use Anomaly\Streams\Platform\Support\Str;
Please login to merge, or discard this patch.
src/Model/EloquentModel.php 1 patch
Doc Comments   +13 added lines, -1 removed lines patch added patch discarded remove patch
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
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)
@@ -385,11 +385,17 @@  discard block
 block discarded – undo
385 385
         return get_class($this) . 'Translation';
386 386
     }
387 387
 
388
+    /**
389
+     * @return string|null
390
+     */
388 391
     public function getRelationKey()
389 392
     {
390 393
         return $this->translationForeignKey ?: $this->getForeignKey();
391 394
     }
392 395
 
396
+    /**
397
+     * @return string
398
+     */
393 399
     public function getLocaleKey()
394 400
     {
395 401
         return $this->localeKey ?: 'locale';
@@ -573,6 +579,9 @@  discard block
 block discarded – undo
573 579
         return parent::fill($attributes);
574 580
     }
575 581
 
582
+    /**
583
+     * @param string $key
584
+     */
576 585
     private function getTranslationByLocaleKey($key)
577 586
     {
578 587
         foreach ($this->translations as $translation) {
@@ -734,6 +743,9 @@  discard block
 block discarded – undo
734 743
         return class_exists($criteria) ? $criteria : EloquentCriteria::class;
735 744
     }
736 745
 
746
+    /**
747
+     * @param string $key
748
+     */
737 749
     public function __get($key)
738 750
     {
739 751
         if ($this->hasHook($key)) {
Please login to merge, or discard this patch.
src/Asset/Asset.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -454,7 +454,7 @@  discard block
 block discarded – undo
454 454
     /**
455 455
      * Publish the collection of assets to the path.
456 456
      *
457
-     * @param $path
457
+     * @param string $path
458 458
      * @param $collection
459 459
      * @param $additionalFilters
460 460
      */
@@ -647,7 +647,7 @@  discard block
 block discarded – undo
647 647
      * Decide whether we need to publish the file
648 648
      * to the path or not.
649 649
      *
650
-     * @param        $path
650
+     * @param        string $path
651 651
      * @param        $collection
652 652
      * @param  array $filters
653 653
      * @return bool
@@ -702,7 +702,7 @@  discard block
 block discarded – undo
702 702
     /**
703 703
      * Add a namespace path hint.
704 704
      *
705
-     * @param  $namespace
705
+     * @param  string $namespace
706 706
      * @param  $path
707 707
      * @return $this
708 708
      */
Please login to merge, or discard this patch.
src/Http/Middleware/VerifyCsrfToken.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
      * Handle the request.
60 60
      *
61 61
      * @param \Illuminate\Http\Request $request
62
-     * @param callable                 $next
62
+     * @param Closure                 $next
63 63
      * @return \Illuminate\Http\RedirectResponse|mixed
64 64
      */
65 65
     public function handle($request, Closure $next)
Please login to merge, or discard this patch.
src/Addon/Extension/Command/InstallExtension.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
     /**
49 49
      * Handle the command.
50 50
      *
51
-     * @param InstallExtension|Kernel      $console
51
+     * @param Kernel      $console
52 52
      * @param AddonManager                 $manager
53 53
      * @param Dispatcher                   $dispatcher
54 54
      * @param ExtensionRepositoryInterface $extensions
Please login to merge, or discard this patch.
src/Ui/Form/FormBuilder.php 1 patch
Doc Comments   +13 added lines, -14 removed lines patch added patch discarded remove patch
@@ -274,7 +274,7 @@  discard block
 block discarded – undo
274 274
     /**
275 275
      * Fire field events.
276 276
      *
277
-     * @param       $trigger
277
+     * @param       string $trigger
278 278
      * @param array $payload
279 279
      */
280 280
     public function fireFieldEvents($trigger, array $payload = [])
@@ -444,7 +444,7 @@  discard block
 block discarded – undo
444 444
     /**
445 445
      * Get the entry object.
446 446
      *
447
-     * @return null|EntryInterface|FieldInterface|mixed
447
+     * @return null|integer
448 448
      */
449 449
     public function getEntry()
450 450
     {
@@ -685,8 +685,8 @@  discard block
 block discarded – undo
685 685
     /**
686 686
      * Get an option value.
687 687
      *
688
-     * @param      $key
689
-     * @param null $default
688
+     * @param      string $key
689
+     * @param string $default
690 690
      * @return mixed
691 691
      */
692 692
     public function getOption($key, $default = null)
@@ -762,7 +762,7 @@  discard block
 block discarded – undo
762 762
     /**
763 763
      * Get a form option value.
764 764
      *
765
-     * @param      $key
765
+     * @param      string $key
766 766
      * @param null $default
767 767
      * @return mixed
768 768
      */
@@ -818,7 +818,7 @@  discard block
 block discarded – undo
818 818
     /**
819 819
      * Return the form entry's ID.
820 820
      *
821
-     * @return int|mixed|null
821
+     * @return null|integer
822 822
      */
823 823
     public function getFormEntryId()
824 824
     {
@@ -854,7 +854,7 @@  discard block
 block discarded – undo
854 854
     /**
855 855
      * Set the form mode.
856 856
      *
857
-     * @param $mode
857
+     * @param string $mode
858 858
      * @return $this
859 859
      */
860 860
     public function setFormMode($mode)
@@ -879,7 +879,7 @@  discard block
 block discarded – undo
879 879
     /**
880 880
      * Set a form value.
881 881
      *
882
-     * @param $key
882
+     * @param string $key
883 883
      * @param $value
884 884
      * @return $this
885 885
      */
@@ -949,7 +949,7 @@  discard block
 block discarded – undo
949 949
     /**
950 950
      * Set the form response.
951 951
      *
952
-     * @param null|false|Response $response
952
+     * @param Response $response
953 953
      * @return $this
954 954
      */
955 955
     public function setFormResponse(Response $response)
@@ -1021,7 +1021,7 @@  discard block
 block discarded – undo
1021 1021
      * Disable a form field.
1022 1022
      *
1023 1023
      * @param $fieldSlug
1024
-     * @return FieldType
1024
+     * @return Form
1025 1025
      */
1026 1026
     public function disableFormField($fieldSlug)
1027 1027
     {
@@ -1186,9 +1186,9 @@  discard block
 block discarded – undo
1186 1186
     /**
1187 1187
      * Get a request value.
1188 1188
      *
1189
-     * @param      $key
1189
+     * @param      string $key
1190 1190
      * @param null $default
1191
-     * @return mixed
1191
+     * @return string
1192 1192
      */
1193 1193
     public function getRequestValue($key, $default = null)
1194 1194
     {
@@ -1211,8 +1211,7 @@  discard block
 block discarded – undo
1211 1211
      * Return a post key flag.
1212 1212
      *
1213 1213
      * @param      $key
1214
-     * @param null $default
1215
-     * @return mixed
1214
+     * @return boolean
1216 1215
      */
1217 1216
     public function hasPostedInput($key)
1218 1217
     {
Please login to merge, or discard this patch.