Completed
Pull Request — master (#340)
by
unknown
06:15
created
src/Database/Seeder/Console/SeederMakeCommand.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -170,7 +170,7 @@
 block discarded – undo
170 170
      * Makes a question about streams to make seeders for.
171 171
      *
172 172
      * @param  StreamCollection $streams  The streams
173
-     * @return array            Answers
173
+     * @return string            Answers
174 174
      */
175 175
     public function makeQuestion(StreamCollection $streams)
176 176
     {
Please login to merge, or discard this patch.
src/Addon/AddonIntegrator.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -109,7 +109,7 @@
 block discarded – undo
109 109
      * Register an addon.
110 110
      *
111 111
      * @param         $path
112
-     * @param         $namespace
112
+     * @param         string $namespace
113 113
      * @param boolean $enabled
114 114
      * @param boolean $installed
115 115
      * @return Addon|Extension|Module|Twig_ExtensionInterface
Please login to merge, or discard this patch.
src/Image/Image.php 1 patch
Doc Comments   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -309,7 +309,7 @@  discard block
 block discarded – undo
309 309
     /**
310 310
      * Run a macro on the image.
311 311
      *
312
-     * @param $macro
312
+     * @param string $macro
313 313
      * @return Image
314 314
      * @throws \Exception
315 315
      */
@@ -434,7 +434,7 @@  discard block
 block discarded – undo
434 434
      *
435 435
      * @param  null $format
436 436
      * @param  int  $quality
437
-     * @return String
437
+     * @return \Intervention\Image\Image
438 438
      */
439 439
     public function encode($format = null, $quality = null)
440 440
     {
@@ -560,7 +560,7 @@  discard block
 block discarded – undo
560 560
     /**
561 561
      * Determine if the image needs to be published
562 562
      *
563
-     * @param $path
563
+     * @param string $path
564 564
      * @return bool
565 565
      */
566 566
     private function shouldPublish($path)
@@ -596,7 +596,7 @@  discard block
 block discarded – undo
596 596
     /**
597 597
      * Publish an image to the publish directory.
598 598
      *
599
-     * @param $path
599
+     * @param string $path
600 600
      */
601 601
     protected function publish($path)
602 602
     {
@@ -663,7 +663,7 @@  discard block
 block discarded – undo
663 663
     /**
664 664
      * Return the image srcsets by set.
665 665
      *
666
-     * @return array
666
+     * @return string
667 667
      */
668 668
     public function srcset()
669 669
     {
@@ -776,7 +776,7 @@  discard block
 block discarded – undo
776 776
     /**
777 777
      * Return if an extension is supported.
778 778
      *
779
-     * @param $extension
779
+     * @param null|string $extension
780 780
      * @return bool
781 781
      */
782 782
     protected function supportsType($extension)
@@ -912,7 +912,7 @@  discard block
 block discarded – undo
912 912
     /**
913 913
      * Get the image instance.
914 914
      *
915
-     * @return \Intervention\Image\Image
915
+     * @return null|string
916 916
      */
917 917
     public function getImage()
918 918
     {
@@ -945,7 +945,7 @@  discard block
 block discarded – undo
945 945
     /**
946 946
      * Get the file name.
947 947
      *
948
-     * @return null|string
948
+     * @return null|boolean
949 949
      */
950 950
     public function getVersion()
951 951
     {
@@ -1028,7 +1028,7 @@  discard block
 block discarded – undo
1028 1028
     /**
1029 1029
      * Add an attribute.
1030 1030
      *
1031
-     * @param  $attribute
1031
+     * @param  string $attribute
1032 1032
      * @param  $value
1033 1033
      * @return $this
1034 1034
      */
@@ -1103,7 +1103,7 @@  discard block
 block discarded – undo
1103 1103
     /**
1104 1104
      * Set the output mode.
1105 1105
      *
1106
-     * @param $output
1106
+     * @param string $output
1107 1107
      * @return $this
1108 1108
      */
1109 1109
     public function setOutput($output)
@@ -1149,7 +1149,7 @@  discard block
 block discarded – undo
1149 1149
     /**
1150 1150
      * Add a path by it's namespace hint.
1151 1151
      *
1152
-     * @param $namespace
1152
+     * @param string $namespace
1153 1153
      * @param $path
1154 1154
      * @return $this
1155 1155
      */
Please login to merge, or discard this patch.
src/Model/EloquentQueryBuilder.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
     /**
112 112
      * Index cache collection
113 113
      *
114
-     * @return object
114
+     * @return EloquentQueryBuilder
115 115
      */
116 116
     protected function indexCacheCollection()
117 117
     {
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
      * Drop a cache collection
128 128
      * from runtime cache.
129 129
      *
130
-     * @param $collection
130
+     * @param string $collection
131 131
      */
132 132
     public static function dropRuntimeCache($collection)
133 133
     {
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
      * Get fresh models / disable cache
164 164
      *
165 165
      * @param  boolean $fresh
166
-     * @return object
166
+     * @return EloquentQueryBuilder
167 167
      */
168 168
     public function fresh($fresh = true)
169 169
     {
Please login to merge, or discard this patch.
src/Support/_helpers.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
     /**
13 13
      * Humanize the string.
14 14
      *
15
-     * @param        $target
15
+     * @param        string $target
16 16
      * @param string $separator
17 17
      * @return string
18 18
      */
@@ -75,8 +75,8 @@  discard block
 block discarded – undo
75 75
      * Get an item from an array or object using "dot" notation.
76 76
      *
77 77
      * @param  mixed        $target
78
-     * @param  string|array $key
79
-     * @param  mixed        $default
78
+     * @param  string $key
79
+     * @param  string        $default
80 80
      * @return mixed
81 81
      */
82 82
     function data($target, $key, $default = null)
Please login to merge, or discard this patch.
src/Addon/Module/ModuleCollection.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -159,7 +159,6 @@
 block discarded – undo
159 159
     /**
160 160
      * Set the installed and enabled states.
161 161
      *
162
-     * @param array $installed
163 162
      */
164 163
     public function setStates(array $states)
165 164
     {
Please login to merge, or discard this patch.
src/Asset/Command/LoadThemeVariables.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,6 @@
 block discarded – undo
37 37
     /**
38 38
      * Create a new ThemeVariablesHaveLoaded instance.
39 39
      *
40
-     * @param ThemeCollection $themes
41 40
      */
42 41
     public function __construct(Collection $variables)
43 42
     {
Please login to merge, or discard this patch.
src/Field/Command/AssignField.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
      * Handle the command.
47 47
      *
48 48
      * @param  AssignmentRepositoryInterface $assignments
49
-     * @return AssignmentInterface
49
+     * @return \Anomaly\Streams\Platform\Model\EloquentModel
50 50
      */
51 51
     public function handle(AssignmentRepositoryInterface $assignments)
52 52
     {
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)
@@ -439,6 +439,9 @@  discard block
 block discarded – undo
439 439
         return get_class($this) . 'Translation';
440 440
     }
441 441
 
442
+    /**
443
+     * @return string|null
444
+     */
442 445
     public function getRelationKey()
443 446
     {
444 447
         return $this->translationForeignKey ?: $this->getForeignKey();
@@ -629,6 +632,9 @@  discard block
 block discarded – undo
629 632
         return parent::fill($attributes);
630 633
     }
631 634
 
635
+    /**
636
+     * @param string $key
637
+     */
632 638
     private function getTranslationByLocaleKey($key)
633 639
     {
634 640
         foreach ($this->translations as $translation) {
@@ -823,6 +829,9 @@  discard block
 block discarded – undo
823 829
         return $this->cascades;
824 830
     }
825 831
 
832
+    /**
833
+     * @param string $key
834
+     */
826 835
     public function __get($key)
827 836
     {
828 837
         if ($this->hasHook($hook = 'get_' . $key)) {
Please login to merge, or discard this patch.