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.
Passed
Push — master ( 10e84a...890c9c )
by
unknown
02:02
created
src/Models/Sql/Model.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
                 if ($filepath === $filePath) {
164 164
                     continue;
165 165
                 }
166
-                $this->validSubModels[ camelcase(pathinfo($filepath, PATHINFO_FILENAME)) ] = $filepath;
166
+                $this->validSubModels[camelcase(pathinfo($filepath, PATHINFO_FILENAME))] = $filepath;
167 167
             }
168 168
         }
169 169
     }
@@ -210,7 +210,7 @@  discard block
 block discarded – undo
210 210
             }
211 211
         }
212 212
 
213
-        if (empty($get[ $property ])) {
213
+        if (empty($get[$property])) {
214 214
             if (services()->has($property)) {
215 215
                 return services()->get($property);
216 216
             } elseif ($this->hasSubModel($property)) {
@@ -251,7 +251,7 @@  discard block
 block discarded – undo
251 251
     final protected function hasSubModel($model)
252 252
     {
253 253
         if (array_key_exists($model, $this->validSubModels)) {
254
-            return (bool)is_file($this->validSubModels[ $model ]);
254
+            return (bool)is_file($this->validSubModels[$model]);
255 255
         }
256 256
 
257 257
         return false;
Please login to merge, or discard this patch.
src/Http/Router/Datastructures/Page.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -60,12 +60,12 @@
 block discarded – undo
60 60
             $properties = file_get_contents($propertiesFilePath);
61 61
             $properties = json_decode($properties, true);
62 62
 
63
-            if (isset($properties[ 'vars' ])) {
64
-                $this->vars = $properties[ 'vars' ];
63
+            if (isset($properties['vars'])) {
64
+                $this->vars = $properties['vars'];
65 65
             }
66 66
 
67
-            if (isset($properties[ 'presets' ])) {
68
-                $this->presets = new SplArrayObject($properties[ 'presets' ]);
67
+            if (isset($properties['presets'])) {
68
+                $this->presets = new SplArrayObject($properties['presets']);
69 69
             }
70 70
         }
71 71
     }
Please login to merge, or discard this patch.
src/Http/Presenter/Assets.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
         if (count($subPackages)) {
135 135
 
136 136
             if (array_key_exists('libraries', $subPackages)) {
137
-                foreach ($subPackages[ 'libraries' ] as $subPackageFile) {
137
+                foreach ($subPackages['libraries'] as $subPackageFile) {
138 138
                     $pluginDir = $packageDir . 'libraries' . DIRECTORY_SEPARATOR;
139 139
                     $pluginName = $subPackageFile;
140 140
 
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
                     }
146 146
                 }
147 147
 
148
-                unset($subPackages[ 'libraries' ]);
148
+                unset($subPackages['libraries']);
149 149
             }
150 150
 
151 151
             $this->head->loadFile($packageDir . $package . '.css');
@@ -400,19 +400,19 @@  discard block
 block discarded – undo
400 400
         }
401 401
 
402 402
         // Valet path fixes
403
-        if (isset($_SERVER[ 'SCRIPT_FILENAME' ])) {
404
-            $valetPath = dirname($_SERVER[ 'SCRIPT_FILENAME' ]) . DIRECTORY_SEPARATOR;
403
+        if (isset($_SERVER['SCRIPT_FILENAME'])) {
404
+            $valetPath = dirname($_SERVER['SCRIPT_FILENAME']) . DIRECTORY_SEPARATOR;
405 405
         } else {
406
-            $PATH_ROOT = $_SERVER[ 'DOCUMENT_ROOT' ];
407
-
408
-            if (isset($_SERVER[ 'PHP_SELF' ])) {
409
-                $valetPath = $PATH_ROOT . dirname($_SERVER[ 'PHP_SELF' ]) . DIRECTORY_SEPARATOR;
410
-            } elseif (isset($_SERVER[ 'DOCUMENT_URI' ])) {
411
-                $valetPath = $PATH_ROOT . dirname($_SERVER[ 'DOCUMENT_URI' ]) . DIRECTORY_SEPARATOR;
412
-            } elseif (isset($_SERVER[ 'REQUEST_URI' ])) {
413
-                $valetPath = $PATH_ROOT . dirname($_SERVER[ 'REQUEST_URI' ]) . DIRECTORY_SEPARATOR;
414
-            } elseif (isset($_SERVER[ 'SCRIPT_NAME' ])) {
415
-                $valetPath = $PATH_ROOT . dirname($_SERVER[ 'SCRIPT_NAME' ]) . DIRECTORY_SEPARATOR;
406
+            $PATH_ROOT = $_SERVER['DOCUMENT_ROOT'];
407
+
408
+            if (isset($_SERVER['PHP_SELF'])) {
409
+                $valetPath = $PATH_ROOT . dirname($_SERVER['PHP_SELF']) . DIRECTORY_SEPARATOR;
410
+            } elseif (isset($_SERVER['DOCUMENT_URI'])) {
411
+                $valetPath = $PATH_ROOT . dirname($_SERVER['DOCUMENT_URI']) . DIRECTORY_SEPARATOR;
412
+            } elseif (isset($_SERVER['REQUEST_URI'])) {
413
+                $valetPath = $PATH_ROOT . dirname($_SERVER['REQUEST_URI']) . DIRECTORY_SEPARATOR;
414
+            } elseif (isset($_SERVER['SCRIPT_NAME'])) {
415
+                $valetPath = $PATH_ROOT . dirname($_SERVER['SCRIPT_NAME']) . DIRECTORY_SEPARATOR;
416 416
             }
417 417
         }
418 418
 
Please login to merge, or discard this patch.
src/Http/Controllers/Resources.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
 
47 47
         if (false !== ($key = array_search('download', $segments))) {
48 48
             $download = true;
49
-            unset($segments[ $key ]);
49
+            unset($segments[$key]);
50 50
             $segments = array_values($segments);
51 51
         }
52 52
 
Please login to merge, or discard this patch.
src/DataStructures/Commons/Money.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -32,16 +32,16 @@
 block discarded – undo
32 32
     {
33 33
         $money = [];
34 34
         if (is_numeric($amount)) {
35
-            $money[ 'amount' ] = (int)$amount;
35
+            $money['amount'] = (int)$amount;
36 36
         } elseif (is_array($amount)) {
37 37
             $money = $amount;
38 38
         }
39 39
 
40
-        (int)$storage[ 'amount' ] = 0;
41
-        $storage[ 'currency' ] = config()->getItem('units')->currency;
40
+        (int)$storage['amount'] = 0;
41
+        $storage['currency'] = config()->getItem('units')->currency;
42 42
 
43 43
         $storage = array_merge($storage, $money);
44
-        (int)$storage[ 'amount' ] = empty($storage[ 'amount' ]) ? 0 : abs($storage[ 'amount' ]);
44
+        (int)$storage['amount'] = empty($storage['amount']) ? 0 : abs($storage['amount']);
45 45
 
46 46
         $this->storage = $storage;
47 47
     }
Please login to merge, or discard this patch.
src/DataStructures/Commons/Name.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -36,23 +36,23 @@
 block discarded – undo
36 36
             $name = [];
37 37
 
38 38
             if (count($parts) == 1) {
39
-                $name[ 'first' ] = $parts[ 0 ];
40
-                $name[ 'middle' ] = null;
41
-                $name[ 'last' ] = null;
39
+                $name['first'] = $parts[0];
40
+                $name['middle'] = null;
41
+                $name['last'] = null;
42 42
             } elseif (count($parts) == 2) {
43
-                $name[ 'first' ] = $parts[ 0 ];
44
-                $name[ 'middle' ] = null;
45
-                $name[ 'last' ] = $parts[ 1 ];
43
+                $name['first'] = $parts[0];
44
+                $name['middle'] = null;
45
+                $name['last'] = $parts[1];
46 46
             } elseif (count($parts) == 3) {
47
-                $name[ 'first' ] = $parts[ 0 ];
48
-                $name[ 'middle' ] = $parts[ 1 ];
49
-                $name[ 'last' ] = $parts[ 2 ];
47
+                $name['first'] = $parts[0];
48
+                $name['middle'] = $parts[1];
49
+                $name['last'] = $parts[2];
50 50
             } else {
51
-                $name[ 'first' ] = $parts[ 0 ];
52
-                $name[ 'middle' ] = $parts[ 1 ];
51
+                $name['first'] = $parts[0];
52
+                $name['middle'] = $parts[1];
53 53
 
54 54
                 $parts = array_slice($parts, 2);
55
-                $name[ 'last' ] = implode(' ', $parts);
55
+                $name['last'] = implode(' ', $parts);
56 56
             }
57 57
         }
58 58
 
Please login to merge, or discard this patch.
src/Http/Presenter/Assets/Positions/Head.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
             if (is_file($bundleFontFilePath . '.map')) {
82 82
                 $bundleFontMap = json_decode(file_get_contents($bundleFontFilePath . '.map'), true);
83 83
                 // if the file version is changed delete it first
84
-                if ( ! hash_equals($bundleFontVersion, $bundleFontMap[ 'version' ])) {
84
+                if ( ! hash_equals($bundleFontVersion, $bundleFontMap['version'])) {
85 85
                     unlink($bundleFontFilePath);
86 86
                     unlink($bundleFontFilePath . '.map');
87 87
                 }
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
                     flock($bundleFileStream, LOCK_EX);
98 98
 
99 99
                     foreach ($this->font as $font) {
100
-                        $bundleFontMap[ 'sources' ][] = $font;
100
+                        $bundleFontMap['sources'][] = $font;
101 101
                         fwrite($bundleFileStream, file_get_contents($font));
102 102
                     }
103 103
 
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
             if (is_file($bundleCssFilePath . '.map')) {
148 148
                 $bundleCssMap = json_decode(file_get_contents($bundleCssFilePath . '.map'), true);
149 149
                 // if the file version is changed delete it first
150
-                if ( ! hash_equals($bundleCssVersion, $bundleCssMap[ 'version' ])) {
150
+                if ( ! hash_equals($bundleCssVersion, $bundleCssMap['version'])) {
151 151
                     unlink($bundleCssFilePath);
152 152
                     unlink($bundleCssFilePath . '.map');
153 153
                 }
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
 
165 165
                     foreach ($this->css as $css) {
166 166
                         if ( ! in_array(pathinfo($css, PATHINFO_FILENAME), $unbundledFilename)) {
167
-                            $bundleCssMap[ 'sources' ][] = $css;
167
+                            $bundleCssMap['sources'][] = $css;
168 168
                             fwrite($bundleFileStream, file_get_contents($css));
169 169
                         }
170 170
                     }
@@ -213,7 +213,7 @@  discard block
 block discarded – undo
213 213
             if (is_file($bundleJsFilePath . '.map')) {
214 214
                 $bundleJsMap = json_decode(file_get_contents($bundleJsFilePath . '.map'), true);
215 215
                 // if the file version is changed delete it first
216
-                if ( ! hash_equals($bundleJsVersion, $bundleJsMap[ 'version' ])) {
216
+                if ( ! hash_equals($bundleJsVersion, $bundleJsMap['version'])) {
217 217
                     unlink($bundleJsFilePath);
218 218
                     unlink($bundleJsFilePath . '.map');
219 219
                 }
@@ -230,7 +230,7 @@  discard block
 block discarded – undo
230 230
 
231 231
                     foreach ($this->css as $css) {
232 232
                         if ( ! in_array(pathinfo($css, PATHINFO_FILENAME), $unbundledFilename)) {
233
-                            $bundleJsMap[ 'sources' ][] = $css;
233
+                            $bundleJsMap['sources'][] = $css;
234 234
                             fwrite($bundleFileStream, file_get_contents($css));
235 235
                         }
236 236
                     }
Please login to merge, or discard this patch.
src/Http/Presenter/Assets/Positions/Body.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
             if (is_file($bundleJsFilePath . '.map')) {
73 73
                 $bundleJsMap = json_decode(file_get_contents($bundleJsFilePath . '.map'), true);
74 74
                 // if the file version is changed delete it first
75
-                if ( ! hash_equals($bundleJsVersion, $bundleJsMap[ 'version' ])) {
75
+                if ( ! hash_equals($bundleJsVersion, $bundleJsMap['version'])) {
76 76
                     unlink($bundleJsFilePath);
77 77
                     unlink($bundleJsFilePath . '.map');
78 78
                 }
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
 
90 90
                     foreach ($this->javascript as $javascript) {
91 91
                         if ( ! in_array(pathinfo($javascript, PATHINFO_FILENAME), $unbundledFilename)) {
92
-                            $bundleJsMap[ 'sources' ][] = $javascript;
92
+                            $bundleJsMap['sources'][] = $javascript;
93 93
                             fwrite($bundleFileStream, file_get_contents($javascript));
94 94
                         }
95 95
                     }
Please login to merge, or discard this patch.
src/Http/Presenter/Meta/Opengraph.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -76,8 +76,8 @@  discard block
 block discarded – undo
76 76
     {
77 77
         $element = new Element('meta');
78 78
 
79
-        $element->attributes[ 'name' ] = 'fb:app_id';
80
-        $element->attributes[ 'content' ] = $appId;
79
+        $element->attributes['name'] = 'fb:app_id';
80
+        $element->attributes['content'] = $appId;
81 81
 
82 82
         parent::offsetSet('fb:app_id', $element);
83 83
 
@@ -117,8 +117,8 @@  discard block
 block discarded – undo
117 117
         $property = 'og:' . $property;
118 118
         $element = new Element('meta');
119 119
 
120
-        $element->attributes[ 'name' ] = $property;
121
-        $element->attributes[ 'content' ] = (is_array($content) ? implode(', ', $content) : trim($content));
120
+        $element->attributes['name'] = $property;
121
+        $element->attributes['content'] = (is_array($content) ? implode(', ', $content) : trim($content));
122 122
 
123 123
         parent::offsetSet($property, $element);
124 124
 
Please login to merge, or discard this patch.