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
Branch development (1144d9)
by butschster
09:48
created
src/Form/Element/MultiSelect.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
     protected function syncBelongsToManyRelation(\Illuminate\Database\Eloquent\Relations\BelongsToMany $relation, array $values)
159 159
     {
160 160
         foreach ($values as $i => $value) {
161
-            if (! array_key_exists($value, $this->getOptions()) and $this->isTaggable()) {
161
+            if (!array_key_exists($value, $this->getOptions()) and $this->isTaggable()) {
162 162
                 $model = clone $this->getModelForOptions();
163 163
                 $model->{$this->getDisplay()} = $value;
164 164
                 $model->save();
@@ -179,7 +179,7 @@  discard block
 block discarded – undo
179 179
         $items = $relation->get();
180 180
 
181 181
         foreach ($items as $item) {
182
-            if (! in_array($item->getKey(), $values)) {
182
+            if (!in_array($item->getKey(), $values)) {
183 183
                 if ($this->isDeleteRelatedItem()) {
184 184
                     $item->delete();
185 185
                 } else {
@@ -202,7 +202,7 @@  discard block
 block discarded – undo
202 202
             $item = $model->find($value);
203 203
 
204 204
             if (is_null($item)) {
205
-                if (! $this->isTaggable()) {
205
+                if (!$this->isTaggable()) {
206 206
                     continue;
207 207
                 }
208 208
 
Please login to merge, or discard this patch.
src/Display/Column/Order.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
     public static function registerRoutes(Router $router)
29 29
     {
30 30
         $routeName = 'admin.display.column.move-up';
31
-        if (! $router->has($routeName)) {
31
+        if (!$router->has($routeName)) {
32 32
             $router->post('{adminModel}/{adminModelId}/up', [
33 33
                 'as' => $routeName,
34 34
                 'uses' => 'SleepingOwl\Admin\Http\Controllers\DisplayColumnController@orderUp',
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
         }
37 37
 
38 38
         $routeName = 'admin.display.column.move-down';
39
-        if (! $router->has($routeName)) {
39
+        if (!$router->has($routeName)) {
40 40
             $router->post('{adminModel}/{adminModelId}/down', [
41 41
                 'as' => $routeName,
42 42
                 'uses' => 'SleepingOwl\Admin\Http\Controllers\DisplayColumnController@orderDown',
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
      */
57 57
     public function getModel()
58 58
     {
59
-        if (! in_array(OrderableModel::class, trait_uses_recursive($class = get_class($this->model)))) {
59
+        if (!in_array(OrderableModel::class, trait_uses_recursive($class = get_class($this->model)))) {
60 60
             throw new \Exception("Model [$class] should uses trait [SleepingOwl\\Admin\\Traits\\OrderableModel]");
61 61
         }
62 62
 
Please login to merge, or discard this patch.
src/Display/Column/Filter/Range.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -104,15 +104,15 @@
 block discarded – undo
104 104
         $from = $this->from->parseValue($from);
105 105
         $to = $this->to->parseValue($to);
106 106
 
107
-        if (! empty($from) && ! empty($to)) {
107
+        if (!empty($from) && !empty($to)) {
108 108
             $this->setOperator('between');
109 109
 
110 110
             return [$from, $to];
111
-        } elseif (! empty($from)) {
111
+        } elseif (!empty($from)) {
112 112
             $this->setOperator('greater_or_equal');
113 113
 
114 114
             return $from;
115
-        } elseif (! empty($to)) {
115
+        } elseif (!empty($to)) {
116 116
             $this->setOperator('less_or_equal');
117 117
 
118 118
             return $to;
Please login to merge, or discard this patch.
src/Display/Column/Filter/BaseColumnFilter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -119,7 +119,7 @@
 block discarded – undo
119 119
             $fieldName = array_pop($parts);
120 120
             $relationName = implode('.', $parts);
121 121
 
122
-            $query->whereHas($relationName, function ($q) use ($queryString, $fieldName) {
122
+            $query->whereHas($relationName, function($q) use ($queryString, $fieldName) {
123 123
                 $this->buildQuery($q, $fieldName, $queryString);
124 124
             });
125 125
         } else {
Please login to merge, or discard this patch.
src/Display/Column/Filter/Select.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
             $this->setModelForOptions($options);
53 53
         }
54 54
 
55
-        if (! is_null($title)) {
55
+        if (!is_null($title)) {
56 56
             $this->setDisplay($title);
57 57
         }
58 58
     }
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
         if ($this->multiple) {
78 78
             $this->setHtmlAttribute('multiple', 'multiple');
79 79
 
80
-            if (! in_array($this->operator, ['in', 'not_in'])) {
80
+            if (!in_array($this->operator, ['in', 'not_in'])) {
81 81
                 $this->setOperator('in');
82 82
             }
83 83
         } else {
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
      */
122 122
     public function getOptions()
123 123
     {
124
-        if (! is_null($this->getModelForOptions()) and ! is_null($this->getDisplay())) {
124
+        if (!is_null($this->getModelForOptions()) and !is_null($this->getDisplay())) {
125 125
             $this->setOptions(
126 126
                 $this->loadOptions()
127 127
             );
Please login to merge, or discard this patch.
src/Display/Column/DateTime.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -74,8 +74,8 @@
 block discarded – undo
74 74
      */
75 75
     protected function getFormatedDate($date)
76 76
     {
77
-        if (! is_null($date)) {
78
-            if (! $date instanceof Carbon) {
77
+        if (!is_null($date)) {
78
+            if (!$date instanceof Carbon) {
79 79
                 $date = Carbon::parse($date);
80 80
             }
81 81
 
Please login to merge, or discard this patch.
src/Display/Display.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -190,7 +190,7 @@  discard block
 block discarded – undo
190 190
             $this->title,
191 191
         ];
192 192
 
193
-        $this->getExtensions()->each(function (DisplayExtensionInterface $extension) use (&$titles) {
193
+        $this->getExtensions()->each(function(DisplayExtensionInterface $extension) use (&$titles) {
194 194
             if (method_exists($extension, $method = 'getTitle')) {
195 195
                 $titles[] = call_user_func([$extension, $method]);
196 196
             }
@@ -238,7 +238,7 @@  discard block
 block discarded – undo
238 238
 
239 239
         foreach ($blocks as $block => $data) {
240 240
             foreach ($data as $html) {
241
-                if (! empty($html)) {
241
+                if (!empty($html)) {
242 242
                     $view->getFactory()->startSection($block);
243 243
                     echo $html;
244 244
                     $view->getFactory()->yieldSection();
@@ -288,7 +288,7 @@  discard block
 block discarded – undo
288 288
     {
289 289
         $repository = app($this->repositoryClass, [$this->modelClass]);
290 290
 
291
-        if (! ($repository instanceof RepositoryInterface)) {
291
+        if (!($repository instanceof RepositoryInterface)) {
292 292
             throw new \Exception('Repository class must be instanced of [RepositoryInterface]');
293 293
         }
294 294
 
Please login to merge, or discard this patch.
src/Display/DisplayDatatablesAsync.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
     public static function registerRoutes(Router $router)
28 28
     {
29 29
         $routeName = 'admin.display.async';
30
-        if (! $router->has($routeName)) {
30
+        if (!$router->has($routeName)) {
31 31
             $router->get('{adminModel}/async/{adminDisplayName?}', [
32 32
                 'as' => $routeName,
33 33
                 'uses' => 'SleepingOwl\Admin\Http\Controllers\DisplayController@async'
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
         }
36 36
 
37 37
         $routeName = 'admin.display.async.inlineEdit';
38
-        if (! $router->has($routeName)) {
38
+        if (!$router->has($routeName)) {
39 39
             $router->post('{adminModel}/async/{adminDisplayName?}', [
40 40
                 'as' => $routeName,
41 41
                 'uses' => 'SleepingOwl\Admin\Http\Controllers\AdminController@inlineEdit'
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
         $totalCount = $query->count();
146 146
         $filteredCount = 0;
147 147
 
148
-        if (! is_null($this->distinct)) {
148
+        if (!is_null($this->distinct)) {
149 149
             $filteredCount = $query->distinct()->count($this->getDistinct());
150 150
         }
151 151
 
@@ -193,7 +193,7 @@  discard block
 block discarded – undo
193 193
             return;
194 194
         }
195 195
 
196
-        $query->where(function ($query) use ($search) {
196
+        $query->where(function($query) use ($search) {
197 197
             $columns = $this->getColumns()->all();
198 198
             foreach ($columns as $column) {
199 199
                 if (in_array(get_class($column), $this->searchableColumns)) {
Please login to merge, or discard this patch.
src/Display/Extension/Columns.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -91,10 +91,10 @@  discard block
 block discarded – undo
91 91
         $this->controlActive = false;
92 92
 
93 93
         if ($this->isInitialize()) {
94
-            $this->columns = $this->columns->filter(function ($column) {
94
+            $this->columns = $this->columns->filter(function($column) {
95 95
                 $class = get_class($this->getControlColumn());
96 96
 
97
-                return ! ($column instanceof $class);
97
+                return !($column instanceof $class);
98 98
             });
99 99
         }
100 100
 
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
      */
117 117
     public function set($columns)
118 118
     {
119
-        if (! is_array($columns)) {
119
+        if (!is_array($columns)) {
120 120
             $columns = func_get_args();
121 121
         }
122 122
 
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
 
163 163
     public function initialize()
164 164
     {
165
-        $this->all()->each(function (ColumnInterface $column) {
165
+        $this->all()->each(function(ColumnInterface $column) {
166 166
             $column->initialize();
167 167
         });
168 168
 
@@ -204,7 +204,7 @@  discard block
 block discarded – undo
204 204
 
205 205
         $columns = $this->all();
206 206
 
207
-        if (! is_int(key($orders))) {
207
+        if (!is_int(key($orders))) {
208 208
             $orders = [$orders];
209 209
         }
210 210
 
@@ -212,7 +212,7 @@  discard block
 block discarded – undo
212 212
             $columnIndex = array_get($order, 'column');
213 213
             $direction = array_get($order, 'dir', 'asc');
214 214
 
215
-            if (! $columnIndex && $columnIndex !== '0') {
215
+            if (!$columnIndex && $columnIndex !== '0') {
216 216
                 continue;
217 217
             }
218 218
 
Please login to merge, or discard this patch.