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 master (728916)
by Dave
01:29
created
src/Form/Element/Upload.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
 
43 43
         if ($request->input($this->getPath().'_remove')) {
44 44
             $this->setModelAttribute(null);
45
-        } elseif (! is_null($value)) {
45
+        } elseif (!is_null($value)) {
46 46
             $this->setModelAttribute($value);
47 47
         }
48 48
     }
Please login to merge, or discard this patch.
src/Form/Element/Images.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
      */
16 16
     public function storeAsJson()
17 17
     {
18
-        $this->mutateValue(function ($value) {
18
+        $this->mutateValue(function($value) {
19 19
             return json_encode($value);
20 20
         });
21 21
 
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
      */
30 30
     public function storeAsComaSeparatedValue()
31 31
     {
32
-        $this->mutateValue(function ($value) {
32
+        $this->mutateValue(function($value) {
33 33
             return implode(',', $value);
34 34
         });
35 35
 
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
         $name = $this->getName();
47 47
         $value = $request->input($name, '');
48 48
 
49
-        if (! empty($value)) {
49
+        if (!empty($value)) {
50 50
             $value = explode(',', $value);
51 51
         } else {
52 52
             $value = [];
Please login to merge, or discard this patch.
src/Form/Element/DateRange.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
      */
32 32
     public function getDefaultFrom()
33 33
     {
34
-        if (! $this->defaultFrom) {
34
+        if (!$this->defaultFrom) {
35 35
             $this->defaultFrom = Carbon::now();
36 36
         }
37 37
 
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
      */
58 58
     public function getDefaultTo()
59 59
     {
60
-        if (! $this->defaultTo) {
60
+        if (!$this->defaultTo) {
61 61
             $this->defaultTo = Carbon::now();
62 62
         }
63 63
 
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
      */
86 86
     public function setModelAttribute($value)
87 87
     {
88
-        $value = ! empty($value) ? array_map(function ($date) {
88
+        $value = !empty($value) ? array_map(function($date) {
89 89
             return Carbon::createFromFormat($this->getPickerFormat(), $date);
90 90
         }, explode('::', $value)) : null;
91 91
 
Please login to merge, or discard this patch.
src/Form/Element/DependentSelect.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
     {
15 15
         $routeName = 'admin.form.element.dependent-select';
16 16
 
17
-        if (! $router->has($routeName)) {
17
+        if (!$router->has($routeName)) {
18 18
             $router->post('{adminModel}/dependent-select/{field}/{id?}', [
19 19
                 'as' => $routeName,
20 20
                 'uses' => 'SleepingOwl\Admin\Http\Controllers\FormElementController@dependentSelect',
Please login to merge, or discard this patch.
src/Form/Element/File.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
         $routeName = 'admin.form.element.'.static::$route;
29 29
 
30
-        if (! $router->has($routeName)) {
30
+        if (!$router->has($routeName)) {
31 31
             $router->post('{adminModel}/'.static::$route.'/{field}/{id?}', [
32 32
                 'as'   => $routeName,
33 33
                 'uses' => 'SleepingOwl\Admin\Http\Controllers\UploadController@fromField',
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
      */
128 128
     public function getUploadPath(UploadedFile $file)
129 129
     {
130
-        if (! is_callable($this->uploadPath)) {
130
+        if (!is_callable($this->uploadPath)) {
131 131
             return $this->defaultUploadPath($file);
132 132
         }
133 133
 
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
      */
154 154
     public function getUploadFileName(UploadedFile $file)
155 155
     {
156
-        if (! is_callable($this->uploadFileName)) {
156
+        if (!is_callable($this->uploadFileName)) {
157 157
             return $this->defaultUploadFilename($file);
158 158
         }
159 159
 
Please login to merge, or discard this patch.
src/Repositories/BaseRepository.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
      */
57 57
     public function setClass($class)
58 58
     {
59
-        if (! class_exists($class)) {
59
+        if (!class_exists($class)) {
60 60
             throw new RepositoryException("Class {$class} not found.");
61 61
         }
62 62
 
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
      */
104 104
     public function with($with)
105 105
     {
106
-        if (! is_array($with)) {
106
+        if (!is_array($with)) {
107 107
             $with = func_get_args();
108 108
         }
109 109
 
Please login to merge, or discard this patch.
src/Repositories/TreeRepository.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
      */
41 41
     public function __construct($treeType = null)
42 42
     {
43
-        if (! is_null($treeType)) {
43
+        if (!is_null($treeType)) {
44 44
             $this->setTreeType($treeType);
45 45
         }
46 46
     }
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
     {
55 55
         $this->treeType = new $treeType($this);
56 56
 
57
-        if (! ($this->treeType instanceof TreeTypeInterface)) {
57
+        if (!($this->treeType instanceof TreeTypeInterface)) {
58 58
             throw new DisplayTreeException('Tree type class must be instanced of [SleepingOwl\Admin\Contracts\Display\Tree\TreeTypeInterface]');
59 59
         }
60 60
     }
Please login to merge, or discard this patch.
src/Templates/Template.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@
 block discarded – undo
101 101
      */
102 102
     public function assetPath($path = null)
103 103
     {
104
-        return ! is_null($path) ? $this->assetDir().'/'.ltrim($path, '/') : $this->assetDir();
104
+        return !is_null($path) ? $this->assetDir().'/'.ltrim($path, '/') : $this->assetDir();
105 105
     }
106 106
 
107 107
     /**
Please login to merge, or discard this patch.
src/Model/ModelConfiguration.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -204,7 +204,7 @@  discard block
 block discarded – undo
204 204
      */
205 205
     public function can($action, Model $model)
206 206
     {
207
-        if (! $this->checkAccess) {
207
+        if (!$this->checkAccess) {
208 208
             return true;
209 209
         }
210 210
 
@@ -216,7 +216,7 @@  discard block
 block discarded – undo
216 216
      */
217 217
     public function isCreatable()
218 218
     {
219
-        if (! is_callable($this->getCreate())) {
219
+        if (!is_callable($this->getCreate())) {
220 220
             return false;
221 221
         }
222 222
 
@@ -240,7 +240,7 @@  discard block
 block discarded – undo
240 240
      */
241 241
     public function isEditable(Model $model)
242 242
     {
243
-        if (! is_callable($this->getEdit())) {
243
+        if (!is_callable($this->getEdit())) {
244 244
             return false;
245 245
         }
246 246
 
@@ -363,7 +363,7 @@  discard block
 block discarded – undo
363 363
      */
364 364
     public function fireDisplay(array $payload = [])
365 365
     {
366
-        if (! is_callable($this->getDisplay())) {
366
+        if (!is_callable($this->getDisplay())) {
367 367
             return;
368 368
         }
369 369
 
@@ -409,7 +409,7 @@  discard block
 block discarded – undo
409 409
      */
410 410
     public function fireCreate()
411 411
     {
412
-        if (! is_callable($this->getCreate())) {
412
+        if (!is_callable($this->getCreate())) {
413 413
             return;
414 414
         }
415 415
 
@@ -456,7 +456,7 @@  discard block
 block discarded – undo
456 456
      */
457 457
     public function fireEdit($id)
458 458
     {
459
-        if (! is_callable($this->getEdit())) {
459
+        if (!is_callable($this->getEdit())) {
460 460
             return;
461 461
         }
462 462
 
Please login to merge, or discard this patch.