Completed
Pull Request — master (#4435)
by Muhlis
07:58
created
src/Form/Field/MultipleFile.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
 
73 73
         $attributes = [];
74 74
 
75
-        if (! $fieldRules = $this->getRules()) {
75
+        if (!$fieldRules = $this->getRules()) {
76 76
             return false;
77 77
         }
78 78
 
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
172 172
     {
173 173
         $this->name = $this->getStoreName($file);
174 174
 
175
-        return tap($this->upload($file), function () {
175
+        return tap($this->upload($file), function() {
176 176
             $this->name = null;
177 177
         });
178 178
     }
@@ -314,7 +314,7 @@  discard block
 block discarded – undo
314 314
 
315 315
         $this->setupDefaultOptions();
316 316
 
317
-        if (! empty($this->value)) {
317
+        if (!empty($this->value)) {
318 318
             $this->options(['initialPreview' => $this->preview()]);
319 319
             $this->setupPreviewOptions();
320 320
         }
@@ -339,7 +339,7 @@  discard block
 block discarded – undo
339 339
 
340 340
         $file = Arr::get($files, $key);
341 341
 
342
-        if (! $this->retainable && $this->storage->exists($file)) {
342
+        if (!$this->retainable && $this->storage->exists($file)) {
343 343
             $this->storage->delete($file);
344 344
         }
345 345
 
Please login to merge, or discard this patch.
src/Form/Field/ListField.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -80,17 +80,17 @@  discard block
 block discarded – undo
80 80
             return $this->validator->call($this, $input);
81 81
         }
82 82
 
83
-        if (! is_string($this->column)) {
83
+        if (!is_string($this->column)) {
84 84
             return false;
85 85
         }
86 86
 
87 87
         $rules = $attributes = [];
88 88
 
89
-        if (! $fieldRules = $this->getRules()) {
89
+        if (!$fieldRules = $this->getRules()) {
90 90
             return false;
91 91
         }
92 92
 
93
-        if (! Arr::has($input, $this->column)) {
93
+        if (!Arr::has($input, $this->column)) {
94 94
             return false;
95 95
         }
96 96
 
@@ -99,11 +99,11 @@  discard block
 block discarded – undo
99 99
 
100 100
         $rules["{$this->column}.values"][] = 'array';
101 101
 
102
-        if (! is_null($this->max)) {
102
+        if (!is_null($this->max)) {
103 103
             $rules["{$this->column}.values"][] = "max:$this->max";
104 104
         }
105 105
 
106
-        if (! is_null($this->min)) {
106
+        if (!is_null($this->min)) {
107 107
             $rules["{$this->column}.values"][] = "min:$this->min";
108 108
         }
109 109
 
Please login to merge, or discard this patch.
src/Form/Tools.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
     {
85 85
         if ($disable) {
86 86
             array_delete($this->tools, 'list');
87
-        } elseif (! in_array('list', $this->tools)) {
87
+        } elseif (!in_array('list', $this->tools)) {
88 88
             array_push($this->tools, 'list');
89 89
         }
90 90
 
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
     {
101 101
         if ($disable) {
102 102
             array_delete($this->tools, 'delete');
103
-        } elseif (! in_array('delete', $this->tools)) {
103
+        } elseif (!in_array('delete', $this->tools)) {
104 104
             array_push($this->tools, 'delete');
105 105
         }
106 106
 
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
     {
117 117
         if ($disable) {
118 118
             array_delete($this->tools, 'view');
119
-        } elseif (! in_array('view', $this->tools)) {
119
+        } elseif (!in_array('view', $this->tools)) {
120 120
             array_push($this->tools, 'view');
121 121
         }
122 122
 
@@ -328,7 +328,7 @@  discard block
 block discarded – undo
328 328
             return '';
329 329
         }
330 330
 
331
-        return $tools->map(function ($tool) {
331
+        return $tools->map(function($tool) {
332 332
             if ($tool instanceof Renderable) {
333 333
                 return $tool->render();
334 334
             }
Please login to merge, or discard this patch.
src/Form/HasHooks.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
         $hooks = Arr::get($this->hooks, $name, []);
44 44
 
45 45
         foreach ($hooks as $func) {
46
-            if (! $func instanceof Closure) {
46
+            if (!$func instanceof Closure) {
47 47
                 continue;
48 48
             }
49 49
 
Please login to merge, or discard this patch.
src/Form/Footer.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
     {
60 60
         if ($disable) {
61 61
             array_delete($this->buttons, 'reset');
62
-        } elseif (! in_array('reset', $this->buttons)) {
62
+        } elseif (!in_array('reset', $this->buttons)) {
63 63
             array_push($this->buttons, 'reset');
64 64
         }
65 65
 
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
     {
76 76
         if ($disable) {
77 77
             array_delete($this->buttons, 'submit');
78
-        } elseif (! in_array('submit', $this->buttons)) {
78
+        } elseif (!in_array('submit', $this->buttons)) {
79 79
             array_push($this->buttons, 'submit');
80 80
         }
81 81
 
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
     {
92 92
         if ($disable) {
93 93
             array_delete($this->checkboxes, 'view');
94
-        } elseif (! in_array('view', $this->checkboxes)) {
94
+        } elseif (!in_array('view', $this->checkboxes)) {
95 95
             array_push($this->checkboxes, 'view');
96 96
         }
97 97
 
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
     {
108 108
         if ($disable) {
109 109
             array_delete($this->checkboxes, 'continue_editing');
110
-        } elseif (! in_array('continue_editing', $this->checkboxes)) {
110
+        } elseif (!in_array('continue_editing', $this->checkboxes)) {
111 111
             array_push($this->checkboxes, 'continue_editing');
112 112
         }
113 113
 
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
     {
124 124
         if ($disable) {
125 125
             array_delete($this->checkboxes, 'continue_creating');
126
-        } elseif (! in_array('continue_creating', $this->checkboxes)) {
126
+        } elseif (!in_array('continue_creating', $this->checkboxes)) {
127 127
             array_push($this->checkboxes, 'continue_creating');
128 128
         }
129 129
 
Please login to merge, or discard this patch.
src/Auth/Database/Role.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
      */
92 92
     public function cannot(string $permission): bool
93 93
     {
94
-        return ! $this->can($permission);
94
+        return !$this->can($permission);
95 95
     }
96 96
 
97 97
     /**
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
     {
104 104
         parent::boot();
105 105
 
106
-        static::deleting(function ($model) {
106
+        static::deleting(function($model) {
107 107
             $model->administrators()->detach();
108 108
 
109 109
             $model->permissions()->detach();
Please login to merge, or discard this patch.
src/Grid/Exporter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@
 block discarded – undo
91 91
      */
92 92
     protected function getExporter($driver)
93 93
     {
94
-        if (! array_key_exists($driver, static::$drivers)) {
94
+        if (!array_key_exists($driver, static::$drivers)) {
95 95
             return $this->getDefaultExporter();
96 96
         }
97 97
 
Please login to merge, or discard this patch.
src/Grid/Filter/NotEqual.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
     {
14 14
         $value = Arr::get($inputs, $this->column);
15 15
 
16
-        if (! isset($value)) {
16
+        if (!isset($value)) {
17 17
             return;
18 18
         }
19 19
 
Please login to merge, or discard this patch.
src/Grid/Filter/Between.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -60,20 +60,20 @@
 block discarded – undo
60 60
         if ($this->ignore) {
61 61
             return;
62 62
         }
63
-        if (! Arr::has($inputs, $this->column)) {
63
+        if (!Arr::has($inputs, $this->column)) {
64 64
             return;
65 65
         }
66 66
         $this->value = Arr::get($inputs, $this->column);
67
-        $value = array_filter($this->value, function ($val) {
67
+        $value = array_filter($this->value, function($val) {
68 68
             return $val !== '';
69 69
         });
70 70
         if (empty($value)) {
71 71
             return;
72 72
         }
73
-        if (! isset($value['start'])) {
73
+        if (!isset($value['start'])) {
74 74
             return $this->buildCondition($this->column, '<=', $value['end']);
75 75
         }
76
-        if (! isset($value['end'])) {
76
+        if (!isset($value['end'])) {
77 77
             return $this->buildCondition($this->column, '>=', $value['start']);
78 78
         }
79 79
         $this->query = 'whereBetween';
Please login to merge, or discard this patch.