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 ( 397d83...af0ff8 )
by Aden
03:32
created
src/Flare/Admin/Models/ModelAdmin.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
             if (($methodBreaker = strpos($field, '.')) !== false) {
150 150
                 $method = substr($field, 0, $methodBreaker);
151 151
                 if (method_exists($this->model, $method)) {
152
-                    if (method_exists($this->model->$method(), $submethod = str_replace($method.'.', '', $field))) {
152
+                    if (method_exists($this->model->$method(), $submethod = str_replace($method . '.', '', $field))) {
153 153
                         $this->model->$method()->$submethod();
154 154
 
155 155
                         $columns[$field] = $fieldTitle;
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
         }
190 190
 
191 191
         if ($this->hasGetAccessor($key)) {
192
-            $method = 'get'.Str::studly($key).'Attribute';
192
+            $method = 'get' . Str::studly($key) . 'Attribute';
193 193
 
194 194
             return $this->{$method}($model);
195 195
         }
@@ -210,7 +210,7 @@  discard block
 block discarded – undo
210 210
      */
211 211
     public function hasGetAccessor($key)
212 212
     {
213
-        return method_exists($this, 'get'.Str::studly($key).'Attribute');
213
+        return method_exists($this, 'get' . Str::studly($key) . 'Attribute');
214 214
     }
215 215
 
216 216
     /**
@@ -255,7 +255,7 @@  discard block
 block discarded – undo
255 255
         if (($methodBreaker = strpos($key, '.')) !== false) {
256 256
             $method = substr($key, 0, $methodBreaker);
257 257
             if (method_exists($model, $method)) {
258
-                if (method_exists($model->$method, $submethod = str_replace($method.'.', '', $key))) {
258
+                if (method_exists($model->$method, $submethod = str_replace($method . '.', '', $key))) {
259 259
                     return $model->$method->$submethod();
260 260
                 }
261 261
 
@@ -279,7 +279,7 @@  discard block
 block discarded – undo
279 279
     public function setAttribute($key, $value)
280 280
     {
281 281
         if ($this->hasSetMutator($key)) {
282
-            $method = 'set'.Str::studly($key).'Attribute';
282
+            $method = 'set' . Str::studly($key) . 'Attribute';
283 283
 
284 284
             return $this->{$method}($value);
285 285
         }
@@ -296,7 +296,7 @@  discard block
 block discarded – undo
296 296
      */
297 297
     public function hasSetMutator($key)
298 298
     {
299
-        return method_exists($this, 'set'.Str::studly($key).'Attribute');
299
+        return method_exists($this, 'set' . Str::studly($key) . 'Attribute');
300 300
     }
301 301
 
302 302
     /**
@@ -308,7 +308,7 @@  discard block
 block discarded – undo
308 308
      */
309 309
     public function hasGetMutator($key)
310 310
     {
311
-        return method_exists($this, 'get'.Str::studly($key).'Attribute');
311
+        return method_exists($this, 'get' . Str::studly($key) . 'Attribute');
312 312
     }
313 313
 
314 314
     /**
Please login to merge, or discard this patch.
src/Flare/FlareServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -149,6 +149,6 @@
 block discarded – undo
149 149
      */
150 150
     private function basePath($filepath = false)
151 151
     {
152
-        return __DIR__.'/../' . $filepath;
152
+        return __DIR__ . '/../' . $filepath;
153 153
     }
154 154
 }
Please login to merge, or discard this patch.
src/Flare/Flare.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
             return $this->config[$key];
102 102
         }
103 103
 
104
-        return config('flare.'.$key);
104
+        return config('flare.' . $key);
105 105
     }
106 106
 
107 107
     /**
@@ -213,7 +213,7 @@  discard block
 block discarded – undo
213 213
      */
214 214
     public function relativeAdminUrl($path = '')
215 215
     {
216
-        return rtrim($this->getRelativeAdminUrl().'/'.$path, '/');
216
+        return rtrim($this->getRelativeAdminUrl() . '/' . $path, '/');
217 217
     }
218 218
 
219 219
     /**
@@ -251,7 +251,7 @@  discard block
 block discarded – undo
251 251
      */
252 252
     public function docsUrl($path = '')
253 253
     {
254
-        return url('#'.$path);
254
+        return url('#' . $path);
255 255
     }
256 256
 
257 257
     /**
@@ -350,10 +350,10 @@  discard block
 block discarded – undo
350 350
         if ($this->attributeTypeExists($field['type'])) {
351 351
             $fieldType = $this->resolveAttributeClass($field['type']);
352 352
 
353
-            return call_user_func_array([new $fieldType($attribute, $field, $model, $modelManager), camel_case('render_'.$action)], []);
353
+            return call_user_func_array([new $fieldType($attribute, $field, $model, $modelManager), camel_case('render_' . $action)], []);
354 354
         }
355 355
 
356
-        return call_user_func_array([new BaseAttribute($attribute, $field, $model, $modelManager), camel_case('render_'.$action)], []);
356
+        return call_user_func_array([new BaseAttribute($attribute, $field, $model, $modelManager), camel_case('render_' . $action)], []);
357 357
     }
358 358
 
359 359
     /**
@@ -365,7 +365,7 @@  discard block
 block discarded – undo
365 365
      */
366 366
     protected function resolveAttributeClass($type)
367 367
     {
368
-        $fullClassname = array_key_exists(title_case($type).'Attribute', $this->availableAttributes()) ? $this->availableAttributes()[title_case($type).'Attribute'] : false;
368
+        $fullClassname = array_key_exists(title_case($type) . 'Attribute', $this->availableAttributes()) ? $this->availableAttributes()[title_case($type) . 'Attribute'] : false;
369 369
 
370 370
         if (!$fullClassname || !class_exists($fullClassname)) {
371 371
             return false;
Please login to merge, or discard this patch.
src/Flare/Providers/RouteServiceProvider.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
             ], 
95 95
             function ($router) {
96 96
                 \Flare::admin()->registerRoutes($router);
97
-                $router->get('/', $this->namespace.'\AdminController@getDashboard')->name('dashboard');
97
+                $router->get('/', $this->namespace . '\AdminController@getDashboard')->name('dashboard');
98 98
             }
99 99
         );
100 100
     }
@@ -123,15 +123,15 @@  discard block
 block discarded – undo
123 123
                 'middleware' => ['flarebase']
124 124
             ], 
125 125
             function ($router) {
126
-                $router->get('index', $this->namespace.'\AdminController@getIndex')->name('index');
126
+                $router->get('index', $this->namespace . '\AdminController@getIndex')->name('index');
127 127
 
128 128
                 if (\Flare::show('login')) {
129
-                    $router->get('login', $this->namespace.'\AdminController@getLogin')->name('login');
130
-                    $router->post('login', $this->namespace.'\AdminController@postLogin')->name('login');
129
+                    $router->get('login', $this->namespace . '\AdminController@getLogin')->name('login');
130
+                    $router->post('login', $this->namespace . '\AdminController@postLogin')->name('login');
131 131
                 } 
132 132
 
133
-                $router->get('logout', $this->namespace.'\AdminController@getLogout')->name('logout');
134
-                $router->get('reset', $this->namespace.'\AdminController@getReset')->name('reset');
133
+                $router->get('logout', $this->namespace . '\AdminController@getLogout')->name('logout');
134
+                $router->get('reset', $this->namespace . '\AdminController@getReset')->name('reset');
135 135
             }
136 136
         );
137 137
     }
Please login to merge, or discard this patch.