Completed
Pull Request — master (#215)
by bloveless
07:29
created
src/Ui/Grid/Grid.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -295,7 +295,7 @@
 block discarded – undo
295 295
     /**
296 296
      * Add data to the data collection.
297 297
      *
298
-     * @param $key
298
+     * @param string $key
299 299
      * @param $value
300 300
      * @return $this
301 301
      */
Please login to merge, or discard this patch.
src/Ui/Grid/GridBuilder.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -265,7 +265,7 @@  discard block
 block discarded – undo
265 265
     /**
266 266
      * Get an option value.
267 267
      *
268
-     * @param      $key
268
+     * @param      string $key
269 269
      * @param null $default
270 270
      * @return mixed
271 271
      */
@@ -352,7 +352,7 @@  discard block
 block discarded – undo
352 352
     /**
353 353
      * Get a tree option value.
354 354
      *
355
-     * @param      $key
355
+     * @param      string $key
356 356
      * @param null $default
357 357
      * @return mixed
358 358
      */
@@ -364,7 +364,7 @@  discard block
 block discarded – undo
364 364
     /**
365 365
      * Set a tree option value.
366 366
      *
367
-     * @param $key
367
+     * @param string $key
368 368
      * @param $value
369 369
      * @return $this
370 370
      */
@@ -477,7 +477,7 @@  discard block
 block discarded – undo
477 477
     /**
478 478
      * Get a request value.
479 479
      *
480
-     * @param      $key
480
+     * @param      string $key
481 481
      * @param null $default
482 482
      * @return mixed
483 483
      */
Please login to merge, or discard this patch.
src/Http/Controller/EntryController.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -115,7 +115,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
src/Image/Image.php 1 patch
Doc Comments   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -289,7 +289,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
      */
Please login to merge, or discard this patch.
src/Image/ImageMacros.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -107,7 +107,7 @@
 block discarded – undo
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)
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
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
     /**
190 190
      * Set a field value.
191 191
      *
192
-     * @param $fieldSlug
192
+     * @param string $fieldSlug
193 193
      * @param $value
194 194
      */
195 195
     public function setFieldValue($fieldSlug, $value)
@@ -584,7 +584,7 @@  discard block
 block discarded – undo
584 584
      * Return whether or not the assignment for
585 585
      * the given field slug is translatable.
586 586
      *
587
-     * @param $fieldSlug
587
+     * @param string $fieldSlug
588 588
      * @return bool
589 589
      */
590 590
     public function assignmentIsTranslatable($fieldSlug)
Please login to merge, or discard this patch.
src/Installer/Console/Command/SetStreamsData.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,6 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
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/Model/EloquentModel.php 1 patch
Doc Comments   +7 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)
@@ -564,6 +564,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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)) {
Please login to merge, or discard this patch.