GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — master ( a9bc98...b864c9 )
by butschster
10:50
created
src/Form/Element/DateRange.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
      */
28 28
     public function getDefaultFrom()
29 29
     {
30
-        if (! $this->defaultFrom) {
30
+        if (!$this->defaultFrom) {
31 31
             $this->defaultFrom = Carbon::now();
32 32
         }
33 33
 
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
      */
54 54
     public function getDefaultTo()
55 55
     {
56
-        if (! $this->defaultTo) {
56
+        if (!$this->defaultTo) {
57 57
             $this->defaultTo = Carbon::now();
58 58
         }
59 59
 
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
      */
82 82
     public function setValue(Model $model, $attribute, $value)
83 83
     {
84
-        $value = ! empty($value) ? array_map(function ($date) {
84
+        $value = !empty($value) ? array_map(function($date) {
85 85
             return Carbon::createFromFormat($this->getPickerFormat(), $date);
86 86
         }, explode('::', $value)) : null;
87 87
 
Please login to merge, or discard this patch.
src/Form/Element/DateTime.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
     public function getValue()
50 50
     {
51 51
         $value = parent::getValue();
52
-        if (! empty($value)) {
52
+        if (!empty($value)) {
53 53
             return $this->parseValue($value);
54 54
         }
55 55
     }
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
      */
82 82
     public function setValue(Model $model, $attribute, $value)
83 83
     {
84
-        $value = ! empty($value) ? Carbon::createFromFormat($this->getPickerFormat(), $value)->format($this->getFormat()) : null;
84
+        $value = !empty($value) ? Carbon::createFromFormat($this->getPickerFormat(), $value)->format($this->getFormat()) : null;
85 85
 
86 86
         parent::setValue($model, $attribute, $value);
87 87
     }
Please login to merge, or discard this patch.
src/Form/Element/Images.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
      */
13 13
     public function storeAsJson()
14 14
     {
15
-        $this->mutateValue(function ($value) {
15
+        $this->mutateValue(function($value) {
16 16
             return json_encode($value);
17 17
         });
18 18
 
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
      */
27 27
     public function storeAsComaSeparatedValue()
28 28
     {
29
-        $this->mutateValue(function ($value) {
29
+        $this->mutateValue(function($value) {
30 30
             return implode(',', $value);
31 31
         });
32 32
 
@@ -38,13 +38,13 @@  discard block
 block discarded – undo
38 38
         $name = $this->getName();
39 39
         $value = Request::input($name, '');
40 40
 
41
-        if (! empty($value)) {
41
+        if (!empty($value)) {
42 42
             $value = explode(',', $value);
43 43
         } else {
44
-            $value = [];
44
+            $value = [ ];
45 45
         }
46 46
 
47
-        Request::merge([$name => $value]);
47
+        Request::merge([ $name => $value ]);
48 48
         parent::save();
49 49
     }
50 50
 
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
     {
56 56
         $value = parent::getValue();
57 57
         if (is_null($value)) {
58
-            $value = [];
58
+            $value = [ ];
59 59
         }
60 60
 
61 61
         if (is_string($value)) {
Please login to merge, or discard this patch.
src/Form/Element/MultiSelect.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -96,11 +96,11 @@  discard block
 block discarded – undo
96 96
         ];
97 97
 
98 98
         if ($this->isTaggable()) {
99
-            $attributes['class'] .= ' input-taggable';
99
+            $attributes[ 'class' ] .= ' input-taggable';
100 100
         }
101 101
 
102 102
         if ($this->isReadonly()) {
103
-            $attributes['disabled'] = 'disabled';
103
+            $attributes[ 'disabled' ] = 'disabled';
104 104
         }
105 105
 
106 106
         return [
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
         $attribute = $this->getAttribute();
126 126
 
127 127
         if (is_null(Request::input($this->getPath()))) {
128
-            $values = [];
128
+            $values = [ ];
129 129
         } else {
130 130
             $values = $this->getValue();
131 131
         }
@@ -134,19 +134,19 @@  discard block
 block discarded – undo
134 134
 
135 135
         if ($relation instanceof \Illuminate\Database\Eloquent\Relations\BelongsToMany) {
136 136
             foreach ($values as $i => $value) {
137
-                if (! array_key_exists($value, $this->getOptions()) and $this->isTaggable()) {
137
+                if (!array_key_exists($value, $this->getOptions()) and $this->isTaggable()) {
138 138
                     $model = clone $this->getModelForOptions();
139 139
                     $model->{$this->getDisplay()} = $value;
140 140
                     $model->save();
141 141
 
142
-                    $values[$i] = $model->getKey();
142
+                    $values[ $i ] = $model->getKey();
143 143
                 }
144 144
             }
145 145
 
146 146
             $relation->sync($values);
147 147
         } elseif ($relation instanceof \Illuminate\Database\Eloquent\Relations\HasMany) {
148 148
             foreach ($relation->get() as $item) {
149
-                if (! in_array($item->getKey(), $values)) {
149
+                if (!in_array($item->getKey(), $values)) {
150 150
                     if ($this->isDeleteRelatedItem()) {
151 151
                         $item->delete();
152 152
                     } else {
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
                 $item = $model->find($value);
163 163
 
164 164
                 if (is_null($item)) {
165
-                    if (! $this->isTaggable()) {
165
+                    if (!$this->isTaggable()) {
166 166
                         continue;
167 167
                     }
168 168
 
Please login to merge, or discard this patch.
src/Form/Element/Password.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
     {
14 14
         $value = $this->getValue();
15 15
 
16
-        if (! $this->isAllowedEmptyValue() and $this->getModel()->exists() and empty($value)) {
16
+        if (!$this->isAllowedEmptyValue() and $this->getModel()->exists() and empty($value)) {
17 17
             return;
18 18
         }
19 19
 
@@ -27,11 +27,11 @@  discard block
 block discarded – undo
27 27
     {
28 28
         $data = parent::getValidationRules();
29 29
 
30
-        if (! $this->isAllowedEmptyValue() and $this->getModel()->exists()) {
30
+        if (!$this->isAllowedEmptyValue() and $this->getModel()->exists()) {
31 31
             foreach ($data as $field => $rules) {
32 32
                 foreach ($rules as $i => $rule) {
33 33
                     if ($rule == 'required') {
34
-                        unset($data[$field][$i]);
34
+                        unset($data[ $field ][ $i ]);
35 35
                     }
36 36
                 }
37 37
             }
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
      */
64 64
     public function hashWithBcrypt()
65 65
     {
66
-        return $this->mutateValue(function ($value) {
66
+        return $this->mutateValue(function($value) {
67 67
             return bcrypt($value);
68 68
         });
69 69
     }
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
      */
74 74
     public function hashWithMD5()
75 75
     {
76
-        return $this->mutateValue(function ($value) {
76
+        return $this->mutateValue(function($value) {
77 77
             return md5($value);
78 78
         });
79 79
     }
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
      */
84 84
     public function hashWithSHA1()
85 85
     {
86
-        return $this->mutateValue(function ($value) {
86
+        return $this->mutateValue(function($value) {
87 87
             return sha1($value);
88 88
         });
89 89
     }
Please login to merge, or discard this patch.
src/Display/ControlLink.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
     public function getConditionAttributes(Model $model)
93 93
     {
94
-        $temp = $this->attributeCondition ? call_user_func($this->attributeCondition, $model) : [];
94
+        $temp = $this->attributeCondition ? call_user_func($this->attributeCondition, $model) : [ ];
95 95
 
96 96
         if ($temp) {
97 97
             foreach ($temp as $key => $value) {
Please login to merge, or discard this patch.
src/Display/Extension/Filters.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
      */
41 41
     public function set($filters)
42 42
     {
43
-        if (! is_array($filters)) {
43
+        if (!is_array($filters)) {
44 44
             $filters = func_get_args();
45 45
         }
46 46
 
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
      */
79 79
     public function getActive()
80 80
     {
81
-        return $this->filters->filter(function (FilterInterface $filter) {
81
+        return $this->filters->filter(function(FilterInterface $filter) {
82 82
             return $filter->isActive();
83 83
         });
84 84
     }
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
      */
125 125
     public function modifyQuery(\Illuminate\Database\Eloquent\Builder $query)
126 126
     {
127
-        $this->getActive()->each(function (FilterInterface $filter) use ($query) {
127
+        $this->getActive()->each(function(FilterInterface $filter) use ($query) {
128 128
             $filter->apply($query);
129 129
         });
130 130
     }
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
      */
135 135
     public function initialize()
136 136
     {
137
-        $this->filters->each(function (FilterInterface $filter) {
137
+        $this->filters->each(function(FilterInterface $filter) {
138 138
             $filter->initialize();
139 139
         });
140 140
     }
Please login to merge, or discard this patch.
src/Display/Extension/ColumnFilters.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
     /**
16 16
      * @var ColumnFilterInterface[]
17 17
      */
18
-    protected $columnFilters = [];
18
+    protected $columnFilters = [ ];
19 19
 
20 20
     /**
21 21
      * @var string|\Illuminate\View\View
@@ -34,11 +34,11 @@  discard block
 block discarded – undo
34 34
      */
35 35
     public function set($columnFilters)
36 36
     {
37
-        if (! is_array($columnFilters)) {
37
+        if (!is_array($columnFilters)) {
38 38
             $columnFilters = func_get_args();
39 39
         }
40 40
 
41
-        $this->columnFilters = [];
41
+        $this->columnFilters = [ ];
42 42
 
43 43
         foreach ($columnFilters as $filter) {
44 44
             $this->push($filter);
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
      */
63 63
     public function push(ColumnFilterInterface $filter = null)
64 64
     {
65
-        $this->columnFilters[] = $filter;
65
+        $this->columnFilters[ ] = $filter;
66 66
 
67 67
         return $this;
68 68
     }
@@ -156,12 +156,12 @@  discard block
 block discarded – undo
156 156
             }
157 157
         }
158 158
 
159
-        if (! in_array($this->getPlacement(), ['table.footer', 'table.header']) && $this->view == 'display.extensions.columns_filters_table') {
159
+        if (!in_array($this->getPlacement(), [ 'table.footer', 'table.header' ]) && $this->view == 'display.extensions.columns_filters_table') {
160 160
             $this->view = 'display.extensions.columns_filters';
161 161
             $this->setHtmlAttribute('class', 'table table-default');
162 162
         }
163 163
 
164
-        if (! $this->hasHtmlAttribute('class')) {
164
+        if (!$this->hasHtmlAttribute('class')) {
165 165
             $this->setHtmlAttribute('class', 'panel-footer');
166 166
         }
167 167
     }
Please login to merge, or discard this patch.
src/Display/Extension/Columns.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -88,10 +88,10 @@  discard block
 block discarded – undo
88 88
         $this->controlActive = false;
89 89
 
90 90
         if ($this->isInitialize()) {
91
-            $this->columns = $this->columns->filter(function ($column) {
91
+            $this->columns = $this->columns->filter(function($column) {
92 92
                 $class = get_class($this->getControlColumn());
93 93
 
94
-                return ! ($column instanceof $class);
94
+                return !($column instanceof $class);
95 95
             });
96 96
         }
97 97
 
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
      */
114 114
     public function set($columns)
115 115
     {
116
-        if (! is_array($columns)) {
116
+        if (!is_array($columns)) {
117 117
             $columns = func_get_args();
118 118
         }
119 119
 
@@ -179,7 +179,7 @@  discard block
 block discarded – undo
179 179
 
180 180
     public function initialize()
181 181
     {
182
-        $this->all()->each(function (ColumnInterface $column) {
182
+        $this->all()->each(function(ColumnInterface $column) {
183 183
             $column->initialize();
184 184
         });
185 185
 
@@ -198,14 +198,14 @@  discard block
 block discarded – undo
198 198
     public function render()
199 199
     {
200 200
         $params = $this->toArray();
201
-        $params['collection'] = $this->getDisplay()->getCollection();
202
-        $params['pagination'] = null;
201
+        $params[ 'collection' ] = $this->getDisplay()->getCollection();
202
+        $params[ 'pagination' ] = null;
203 203
 
204
-        if ($params['collection'] instanceof \Illuminate\Contracts\Pagination\Paginator) {
204
+        if ($params[ 'collection' ] instanceof \Illuminate\Contracts\Pagination\Paginator) {
205 205
             if (class_exists('Illuminate\Pagination\BootstrapThreePresenter')) {
206
-                $params['pagination'] = (new \Illuminate\Pagination\BootstrapThreePresenter($params['collection']))->render();
206
+                $params[ 'pagination' ] = (new \Illuminate\Pagination\BootstrapThreePresenter($params[ 'collection' ]))->render();
207 207
             } else {
208
-                $params['pagination'] = $params['collection']->render();
208
+                $params[ 'pagination' ] = $params[ 'collection' ]->render();
209 209
             }
210 210
         }
211 211
 
Please login to merge, or discard this patch.