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 ( 96525c...151d6f )
by Aden
03:18
created
src/Flare/Admin/Widgets/WidgetAdmin.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -49,20 +49,20 @@
 block discarded – undo
49 49
             return static::$view;
50 50
         }
51 51
 
52
-        if (view()->exists('admin.widgets.'.static::safeTitle().'.widget')) {
53
-            return 'admin.widgets.'.static::safeTitle().'.widget';
52
+        if (view()->exists('admin.widgets.' . static::safeTitle() . '.widget')) {
53
+            return 'admin.widgets.' . static::safeTitle() . '.widget';
54 54
         }
55 55
 
56
-        if (view()->exists('admin.widgets.'.static::safeTitle())) {
57
-            return 'admin.widgets.'.static::safeTitle();
56
+        if (view()->exists('admin.widgets.' . static::safeTitle())) {
57
+            return 'admin.widgets.' . static::safeTitle();
58 58
         }
59 59
 
60
-        if (view()->exists('admin.'.static::safeTitle())) {
61
-            return 'admin.'.static::safeTitle();
60
+        if (view()->exists('admin.' . static::safeTitle())) {
61
+            return 'admin.' . static::safeTitle();
62 62
         }
63 63
 
64
-        if (view()->exists('flare::'.self::$view)) {
65
-            return 'flare::'.self::$view;
64
+        if (view()->exists('flare::' . self::$view)) {
65
+            return 'flare::' . self::$view;
66 66
         }
67 67
     }
68 68
 
Please login to merge, or discard this patch.
src/Flare/Http/Controllers/AdminController.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@
 block discarded – undo
102 102
         $view = 'admin.dashboard';
103 103
 
104 104
         if (!view()->exists($view)) {
105
-            $view = 'flare::'.$view;
105
+            $view = 'flare::' . $view;
106 106
         }
107 107
 
108 108
         return view($view, ['widgetAdminManager' => (new WidgetAdminManager())]);
Please login to merge, or discard this patch.
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
     /**
75 75
      * Log the user.
76 76
      *
77
-     * @return \Illuminate\Http\RedirectReponse
77
+     * @return \Illuminate\Http\RedirectResponse
78 78
      */
79 79
     public function getLogout()
80 80
     {
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
      * panel.If they do no, they will be sent
118 118
      * to the homepage of the website.
119 119
      * 
120
-     * @return \Illuminate\Http\RedirectReponse
120
+     * @return \Illuminate\Http\RedirectResponse
121 121
      */
122 122
     protected function loginRedirect()
123 123
     {
Please login to merge, or discard this patch.
src/Flare/Admin/Models/ModelAdmin.php 2 patches
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.
Doc Comments   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -384,7 +384,7 @@  discard block
 block discarded – undo
384 384
     /**
385 385
      * Determine if the Model Admin has Viewing Capabilities.
386 386
      * 
387
-     * @return bool
387
+     * @return null|boolean
388 388
      */
389 389
     public function hasViewing()
390 390
     {
@@ -394,7 +394,7 @@  discard block
 block discarded – undo
394 394
     /**
395 395
      * Determine if the Model Admin has Creating Capabilities.
396 396
      * 
397
-     * @return bool
397
+     * @return null|boolean
398 398
      */
399 399
     public function hasCreating()
400 400
     {
@@ -404,7 +404,7 @@  discard block
 block discarded – undo
404 404
     /**
405 405
      * Determine if the Model Admin has Cloning Capabilities.
406 406
      * 
407
-     * @return bool
407
+     * @return null|boolean
408 408
      */
409 409
     public function hasCloning()
410 410
     {
@@ -414,7 +414,7 @@  discard block
 block discarded – undo
414 414
     /**
415 415
      * Determine if the Model Admin has Editting Capabilities.
416 416
      * 
417
-     * @return bool
417
+     * @return null|boolean
418 418
      */
419 419
     public function hasEditting()
420 420
     {
@@ -424,7 +424,7 @@  discard block
 block discarded – undo
424 424
     /**
425 425
      * Determine if the Model Admin has Deleting Capabilities.
426 426
      * 
427
-     * @return bool
427
+     * @return null|boolean
428 428
      */
429 429
     public function hasDeleting()
430 430
     {
@@ -457,7 +457,7 @@  discard block
 block discarded – undo
457 457
     /**
458 458
      * Determine if the Model Admin has Validating Capabilities.
459 459
      * 
460
-     * @return bool
460
+     * @return null|boolean
461 461
      */
462 462
     public function hasValidating()
463 463
     {
@@ -479,7 +479,7 @@  discard block
 block discarded – undo
479 479
      * 
480 480
      * @param  string  $trait  
481 481
      * 
482
-     * @return boolean        
482
+     * @return null|boolean        
483 483
      */
484 484
     public function hasTrait($trait = null)
485 485
     {
@@ -497,7 +497,7 @@  discard block
 block discarded – undo
497 497
      * 
498 498
      * @param  string  $contract  
499 499
      * 
500
-     * @return boolean        
500
+     * @return boolean|null        
501 501
      */
502 502
     public function hasContract($contract = null)
503 503
     {
Please login to merge, or discard this patch.
src/Flare/Flare.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@
 block discarded – undo
98 98
     /**
99 99
      * Returns the Application Instance.
100 100
      * 
101
-     * @return mixed
101
+     * @return \Illuminate\Foundation\Application
102 102
      */
103 103
     public function app()
104 104
     {
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
             return $this->config[$key];
131 131
         }
132 132
 
133
-        return config('flare.'.$key);
133
+        return config('flare.' . $key);
134 134
     }
135 135
 
136 136
     /**
@@ -233,7 +233,7 @@  discard block
 block discarded – undo
233 233
      */
234 234
     public function relativeAdminUrl($path = '')
235 235
     {
236
-        return rtrim($this->getRelativeAdminUrl().'/'.$path, '/');
236
+        return rtrim($this->getRelativeAdminUrl() . '/' . $path, '/');
237 237
     }
238 238
 
239 239
     /**
@@ -271,7 +271,7 @@  discard block
 block discarded – undo
271 271
      */
272 272
     public function docsUrl($path = '')
273 273
     {
274
-        return url('#'.$path);
274
+        return url('#' . $path);
275 275
     }
276 276
 
277 277
     /**
Please login to merge, or discard this patch.
src/Flare/Providers/RouteServiceProvider.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
             ], 
94 94
             function ($router) {
95 95
                 \Flare::admin()->registerRoutes($router);
96
-                $router->get('/', $this->namespace.'\AdminController@getDashboard')->name('dashboard');
96
+                $router->get('/', $this->namespace . '\AdminController@getDashboard')->name('dashboard');
97 97
             }
98 98
         );
99 99
     }
@@ -123,20 +123,20 @@  discard block
 block discarded – undo
123 123
             ], 
124 124
             function ($router) {
125 125
                 // Logout route...
126
-                $router->get('logout', $this->namespace.'\AdminController@getLogout')->name('logout');
126
+                $router->get('logout', $this->namespace . '\AdminController@getLogout')->name('logout');
127 127
 
128 128
                 if (\Flare::show('login')) {
129 129
                     // Login request reoutes...
130
-                    $router->get('login', $this->namespace.'\AdminController@getLogin')->name('login');
131
-                    $router->post('login', $this->namespace.'\AdminController@postLogin')->name('login');
130
+                    $router->get('login', $this->namespace . '\AdminController@getLogin')->name('login');
131
+                    $router->post('login', $this->namespace . '\AdminController@postLogin')->name('login');
132 132
 
133 133
                     // Password reset link request routes...
134
-                    $router->get('email', $this->namespace.'\AdminController@getEmail')->name('email');
135
-                    $router->post('email', $this->namespace.'\AdminController@postEmail')->name('email');
134
+                    $router->get('email', $this->namespace . '\AdminController@getEmail')->name('email');
135
+                    $router->post('email', $this->namespace . '\AdminController@postEmail')->name('email');
136 136
 
137 137
                     // Password reset routes...
138
-                    $router->get('reset/{token}', $this->namespace.'\AdminController@getReset')->name('reset');
139
-                    $router->post('reset', $this->namespace.'\AdminController@postReset')->name('reset');
138
+                    $router->get('reset/{token}', $this->namespace . '\AdminController@getReset')->name('reset');
139
+                    $router->post('reset', $this->namespace . '\AdminController@postReset')->name('reset');
140 140
                 }
141 141
             }
142 142
         );
Please login to merge, or discard this patch.
src/Flare/FlareServiceProvider.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -127,7 +127,7 @@
 block discarded – undo
127 127
     /**
128 128
      * Returns the path to a provided file within the Flare package.
129 129
      * 
130
-     * @param bool $fiepath
130
+     * @param bool $filepath
131 131
      * 
132 132
      * @return string
133 133
      */
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -133,6 +133,6 @@
 block discarded – undo
133 133
      */
134 134
     private function basePath($filepath = false)
135 135
     {
136
-        return __DIR__.'/../'.$filepath;
136
+        return __DIR__ . '/../' . $filepath;
137 137
     }
138 138
 }
Please login to merge, or discard this patch.
src/Flare/Admin/Admin.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -212,7 +212,7 @@  discard block
 block discarded – undo
212 212
             return $this->view;
213 213
         }
214 214
 
215
-        return 'flare::'.$this->view;
215
+        return 'flare::' . $this->view;
216 216
     }
217 217
 
218 218
     /**
@@ -368,7 +368,7 @@  discard block
 block discarded – undo
368 368
      */
369 369
     public function relativeUrl($path = '')
370 370
     {
371
-        return \Flare::relativeAdminUrl($this->urlPrefix().($path ? '/'.$path : ''));
371
+        return \Flare::relativeAdminUrl($this->urlPrefix() . ($path ? '/' . $path : ''));
372 372
     }
373 373
 
374 374
     /**
@@ -392,7 +392,7 @@  discard block
 block discarded – undo
392 392
      */
393 393
     public function relativeCurrentUrl($path)
394 394
     {
395
-        return \Route::current() ? \Route::current()->getPrefix().'/'.$path : null;
395
+        return \Route::current() ? \Route::current()->getPrefix() . '/' . $path : null;
396 396
     }
397 397
 
398 398
     /**
Please login to merge, or discard this patch.
src/Flare/Admin/Attributes/AttributeManager.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,10 +24,10 @@
 block discarded – undo
24 24
         if ($this->attributeTypeExists($field['type'])) {
25 25
             $fieldType = $this->resolveAttributeClass($field['type']);
26 26
 
27
-            return call_user_func_array([new $fieldType($attribute, $field, $model, $modelManager), camel_case('render_'.$action)], []);
27
+            return call_user_func_array([new $fieldType($attribute, $field, $model, $modelManager), camel_case('render_' . $action)], []);
28 28
         }
29 29
 
30
-        return call_user_func_array([new BaseAttribute($attribute, $field, $model, $modelManager), camel_case('render_'.$action)], []);
30
+        return call_user_func_array([new BaseAttribute($attribute, $field, $model, $modelManager), camel_case('render_' . $action)], []);
31 31
     }
32 32
 
33 33
     /**
Please login to merge, or discard this patch.
src/Flare/Admin/Attributes/BaseAttribute.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
      */
71 71
     public function renderAdd()
72 72
     {
73
-        return view($this->viewpath.'.add', $this->viewData());
73
+        return view($this->viewpath . '.add', $this->viewData());
74 74
     }
75 75
 
76 76
     /**
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
      */
81 81
     public function renderEdit()
82 82
     {
83
-        return view($this->viewpath.'.edit', $this->viewData());
83
+        return view($this->viewpath . '.edit', $this->viewData());
84 84
     }
85 85
 
86 86
     /**
@@ -90,11 +90,11 @@  discard block
 block discarded – undo
90 90
      */
91 91
     public function renderClone()
92 92
     {
93
-        if (view()->exists($this->viewpath.'.clone')) {
94
-            view($this->viewpath.'.clone', $this->viewData());
93
+        if (view()->exists($this->viewpath . '.clone')) {
94
+            view($this->viewpath . '.clone', $this->viewData());
95 95
         }
96 96
 
97
-        return view($this->viewpath.'.edit', $this->viewData());
97
+        return view($this->viewpath . '.edit', $this->viewData());
98 98
     }
99 99
 
100 100
     /**
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
      */
105 105
     public function renderView()
106 106
     {
107
-        return view($this->viewpath.'.view', $this->viewData());
107
+        return view($this->viewpath . '.view', $this->viewData());
108 108
     }
109 109
 
110 110
     /**
@@ -134,10 +134,10 @@  discard block
 block discarded – undo
134 134
      */
135 135
     public function getFieldOptions()
136 136
     {
137
-        if (method_exists($this->getModelManager(), $method = camel_case('get_'.$this->getAttribute().'_options'))) {
137
+        if (method_exists($this->getModelManager(), $method = camel_case('get_' . $this->getAttribute() . '_options'))) {
138 138
             // First check for a method of options based on getAttributeNameOptions()
139 139
             $this->field['options'] = $this->getModelManager()->$method();
140
-        } elseif (isset($this->field['options']) && is_string($this->field['options']) && method_exists($this->getModelManager(), $method = camel_case('get_'.$this->field['options'].'_options'))) {
140
+        } elseif (isset($this->field['options']) && is_string($this->field['options']) && method_exists($this->getModelManager(), $method = camel_case('get_' . $this->field['options'] . '_options'))) {
141 141
             // Check if Options is a string and if so, check for a method
142 142
             // of options based on getDefinedOptions()
143 143
             $this->field['options'] = $this->getModelManager()->$method();
Please login to merge, or discard this patch.