Completed
Pull Request — master (#3405)
by
unknown
02:16
created
src/Widgets/Form.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -275,7 +275,7 @@  discard block
 block discarded – undo
275 275
      */
276 276
     public function setWidth($fieldWidth = 8, $labelWidth = 2)
277 277
     {
278
-        collect($this->fields)->each(function ($field) use ($fieldWidth, $labelWidth) {
278
+        collect($this->fields)->each(function($field) use ($fieldWidth, $labelWidth) {
279 279
             /* @var Field $field  */
280 280
             $field->setWidth($fieldWidth, $labelWidth);
281 281
         });
@@ -446,7 +446,7 @@  discard block
 block discarded – undo
446 446
      */
447 447
     public function __call($method, $arguments)
448 448
     {
449
-        if (! $this->hasField($method)) {
449
+        if (!$this->hasField($method)) {
450 450
             return $this;
451 451
         }
452 452
 
@@ -454,7 +454,7 @@  discard block
 block discarded – undo
454 454
 
455 455
         $field = new $class($arguments[0], array_slice($arguments, 1));
456 456
 
457
-        return tap($field, function ($field) {
457
+        return tap($field, function($field) {
458 458
             $this->pushField($field);
459 459
         });
460 460
     }
Please login to merge, or discard this patch.
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
     /**
114 114
      * Get form title.
115 115
      *
116
-     * @return mixed
116
+     * @return string
117 117
      */
118 118
     protected function title()
119 119
     {
@@ -176,7 +176,7 @@  discard block
 block discarded – undo
176 176
     /**
177 177
      * Add form attributes.
178 178
      *
179
-     * @param string|array $attr
179
+     * @param string $attr
180 180
      * @param string       $value
181 181
      *
182 182
      * @return $this
Please login to merge, or discard this patch.
src/Widgets/Carousel.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
     /**
25 25
      * Carousel constructor.
26 26
      *
27
-     * @param array $items
27
+     * @param \Illuminate\Support\Collection $items
28 28
      */
29 29
     public function __construct($items = [])
30 30
     {
Please login to merge, or discard this patch.
src/Grid/Displayers/Carousel.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
             return '';
21 21
         }
22 22
 
23
-        $images = collect((array) $this->value)->filter()->map(function ($path) use ($server) {
23
+        $images = collect((array) $this->value)->filter()->map(function($path) use ($server) {
24 24
             if (url()->isValidUrl($path) || strpos($path, 'data:image') === 0) {
25 25
                 $image = $path;
26 26
             } elseif ($server) {
Please login to merge, or discard this patch.
src/Grid/Displayers/ProgressBar.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@
 block discarded – undo
6 6
 {
7 7
     public function display($style = 'primary', $size = '', $max = 100)
8 8
     {
9
-        $style = collect((array) $style)->map(function ($style) {
9
+        $style = collect((array) $style)->map(function($style) {
10 10
             return 'progress-bar-'.$style;
11 11
         })->implode(' ');
12 12
 
Please login to merge, or discard this patch.