Completed
Push — master ( 98a062...441031 )
by Ryan
10:10
created
src/Addon/Console/MakeAddon.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -1,7 +1,6 @@
 block discarded – undo
1 1
 <?php namespace Anomaly\Streams\Platform\Addon\Console;
2 2
 
3 3
 use Anomaly\Streams\Platform\Addon\AddonManager;
4
-use Anomaly\Streams\Platform\Addon\Command\RegisterAddons;
5 4
 use Anomaly\Streams\Platform\Addon\Console\Command\MakeAddonPaths;
6 5
 use Anomaly\Streams\Platform\Addon\Console\Command\ScaffoldTheme;
7 6
 use Anomaly\Streams\Platform\Addon\Console\Command\WriteAddonClass;
Please login to merge, or discard this patch.
src/Addon/Addon.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -154,7 +154,7 @@
 block discarded – undo
154 154
     /**
155 155
      * Get a namespaced key string.
156 156
      *
157
-     * @param  null $key
157
+     * @param  string|null $key
158 158
      * @return string
159 159
      */
160 160
     public function getNamespace($key = null)
Please login to merge, or discard this patch.
src/Addon/Console/Command/ScaffoldTheme.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,6 @@
 block discarded – undo
45 45
     /**
46 46
      * Handle the command.
47 47
      *
48
-     * @param Parser $parser
49 48
      * @param Filesystem $filesystem
50 49
      */
51 50
     public function handle(Filesystem $filesystem)
Please login to merge, or discard this patch.
src/Asset/Asset.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -473,7 +473,7 @@  discard block
 block discarded – undo
473 473
     /**
474 474
      * Publish the collection of assets to the path.
475 475
      *
476
-     * @param $path
476
+     * @param string $path
477 477
      * @param $collection
478 478
      * @param $additionalFilters
479 479
      */
@@ -683,7 +683,7 @@  discard block
 block discarded – undo
683 683
      * Decide whether we need to publish the file
684 684
      * to the path or not.
685 685
      *
686
-     * @param        $path
686
+     * @param        string $path
687 687
      * @param        $collection
688 688
      * @param  array $filters
689 689
      * @return bool
@@ -738,7 +738,7 @@  discard block
 block discarded – undo
738 738
     /**
739 739
      * Add a namespace path hint.
740 740
      *
741
-     * @param  $namespace
741
+     * @param  string $namespace
742 742
      * @param  $path
743 743
      * @return $this
744 744
      */
@@ -752,7 +752,7 @@  discard block
 block discarded – undo
752 752
     /**
753 753
      * Set the public base directory.
754 754
      *
755
-     * @param  $directory
755
+     * @param  string $directory
756 756
      * @return $this
757 757
      */
758 758
     public function setDirectory($directory)
Please login to merge, or discard this patch.
src/Field/Form/FieldFormBuilder.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -116,7 +116,7 @@
 block discarded – undo
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)
Please login to merge, or discard this patch.
src/Http/Controller/AssignmentsController.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
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,
Please login to merge, or discard this patch.
src/Image/Image.php 1 patch
Doc Comments   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -274,7 +274,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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)
Please login to merge, or discard this patch.
src/Model/EloquentModel.php 1 patch
Doc Comments   +10 added lines, -1 removed lines patch added patch discarded remove patch
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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)) {
Please login to merge, or discard this patch.
src/Ui/ControlPanel/Component/Navigation/NavigationLink.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -97,7 +97,6 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.