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
Pull Request — development (#840)
by Dave
14:03 queued 06:52
created
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/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/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.
src/Display/Extension/ColumnFilters.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
      */
36 36
     public function set($columnFilters)
37 37
     {
38
-        if (! is_array($columnFilters)) {
38
+        if (!is_array($columnFilters)) {
39 39
             $columnFilters = func_get_args();
40 40
         }
41 41
 
@@ -173,13 +173,13 @@  discard block
 block discarded – undo
173 173
 
174 174
         $display = $this->getDisplay();
175 175
 
176
-        if (! $display->getExtensions()->has('columns')) {
176
+        if (!$display->getExtensions()->has('columns')) {
177 177
             return;
178 178
         }
179 179
 
180 180
         $columns = $display->getColumns()->all();
181 181
 
182
-        if (! is_int(key($search))) {
182
+        if (!is_int(key($search))) {
183 183
             $search = [$search];
184 184
         }
185 185
 
@@ -216,7 +216,7 @@  discard block
 block discarded – undo
216 216
 
217 217
     protected function prepareView()
218 218
     {
219
-        if (! in_array($this->getPlacement(), ['table.footer', 'table.header']) && $this->view == 'display.extensions.columns_filters_table') {
219
+        if (!in_array($this->getPlacement(), ['table.footer', 'table.header']) && $this->view == 'display.extensions.columns_filters_table') {
220 220
             $this->view = 'display.extensions.columns_filters';
221 221
             $this->setHtmlAttribute('class', 'table table-default');
222 222
         }
Please login to merge, or discard this patch.
src/Display/ExtensionCollection.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
      */
16 16
     public function placable()
17 17
     {
18
-        return $this->filter(function (DisplayExtensionInterface $extension) {
18
+        return $this->filter(function(DisplayExtensionInterface $extension) {
19 19
             return $extension instanceof Placable;
20 20
         });
21 21
     }
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
      */
43 43
     public function renderable()
44 44
     {
45
-        return $this->filter(function (DisplayExtensionInterface $extension) {
45
+        return $this->filter(function(DisplayExtensionInterface $extension) {
46 46
             return $extension instanceof Renderable;
47 47
         });
48 48
     }
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
      */
53 53
     public function sortByOrder()
54 54
     {
55
-        return $this->sortBy(function (DisplayExtensionInterface $extension) {
55
+        return $this->sortBy(function(DisplayExtensionInterface $extension) {
56 56
             return $extension->getOrder();
57 57
         });
58 58
     }
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
      */
63 63
     public function initialize()
64 64
     {
65
-        $this->each(function (DisplayExtensionInterface $extension) {
65
+        $this->each(function(DisplayExtensionInterface $extension) {
66 66
             if ($extension instanceof Initializable) {
67 67
                 $extension->initialize();
68 68
             }
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
      */
77 77
     public function modifyQuery(\Illuminate\Database\Eloquent\Builder $query)
78 78
     {
79
-        $this->each(function (DisplayExtensionInterface $extension) use ($query) {
79
+        $this->each(function(DisplayExtensionInterface $extension) use ($query) {
80 80
             $extension->modifyQuery($query);
81 81
         });
82 82
 
Please login to merge, or discard this patch.
src/Admin.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -121,7 +121,7 @@
 block discarded – undo
121 121
             $class = get_class($class);
122 122
         }
123 123
 
124
-        if (! $this->hasModel($class)) {
124
+        if (!$this->hasModel($class)) {
125 125
             $this->registerModel($class);
126 126
         }
127 127
 
Please login to merge, or discard this patch.
src/Display/Filter/FilterCustom.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
     {
22 22
         parent::__construct($name, $title);
23 23
 
24
-        if (! is_null($callback)) {
24
+        if (!is_null($callback)) {
25 25
             $this->setCallback($callback);
26 26
         }
27 27
     }
Please login to merge, or discard this patch.
src/Display/Column/Custom.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
     public function __construct($label = null, Closure $callback = null)
33 33
     {
34 34
         parent::__construct($label);
35
-        if (! is_null($callback)) {
35
+        if (!is_null($callback)) {
36 36
             $this->setCallback($callback);
37 37
         }
38 38
     }
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
      */
67 67
     public function getModelValue()
68 68
     {
69
-        if (! is_callable($callback = $this->getCallback())) {
69
+        if (!is_callable($callback = $this->getCallback())) {
70 70
             throw new \Exception('Invalid custom column callback');
71 71
         }
72 72
 
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();
@@ -287,7 +287,7 @@  discard block
 block discarded – undo
287 287
     protected function makeRepository()
288 288
     {
289 289
         $repository = app($this->repositoryClass);
290
-        if (! ($repository instanceof RepositoryInterface)) {
290
+        if (!($repository instanceof RepositoryInterface)) {
291 291
             throw new \Exception('Repository class must be instanced of [RepositoryInterface]');
292 292
         }
293 293
 
Please login to merge, or discard this patch.