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 ( eb7034...336670 )
by
unknown
10:15
created
core/src/Xpressengine/Storage/File.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@
 block discarded – undo
84 84
      */
85 85
     public function getPathname()
86 86
     {
87
-        return rtrim($this->getAttribute('path'), '/') . '/' . $this->getAttribute('filename');
87
+        return rtrim($this->getAttribute('path'), '/').'/'.$this->getAttribute('filename');
88 88
     }
89 89
 
90 90
     /**
Please login to merge, or discard this patch.
core/src/Xpressengine/Storage/UrlMaker.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
         $config = $this->getConfig($file->disk);
102 102
 
103 103
         if (isset($config['url']) === true) {
104
-            return rtrim($config['url'], '/') . '/' . ltrim($file->getPathname(), '/');
104
+            return rtrim($config['url'], '/').'/'.ltrim($file->getPathname(), '/');
105 105
         }
106 106
 
107 107
         return null;
Please login to merge, or discard this patch.
core/src/Xpressengine/Storage/Storage.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -206,7 +206,7 @@  discard block
 block discarded – undo
206 206
         $disk = $disk ?: $this->distributor->allot($uploaded);
207 207
         $user = $user ?: $this->auth->user();
208 208
 
209
-        if (!$this->files->store(file_get_contents($uploaded->getPathname()), $path . '/' . $name, $disk)) {
209
+        if (!$this->files->store(file_get_contents($uploaded->getPathname()), $path.'/'.$name, $disk)) {
210 210
             throw new WritingFailException;
211 211
         }
212 212
 
@@ -245,7 +245,7 @@  discard block
 block discarded – undo
245 245
         $disk = $disk ?: $this->distributor->allot($tempFile);
246 246
         $user = $user ?: $this->auth->user();
247 247
 
248
-        if (!$this->files->store($content, $path . '/' . $name, $disk)) {
248
+        if (!$this->files->store($content, $path.'/'.$name, $disk)) {
249 249
             throw new WritingFailException;
250 250
         }
251 251
 
@@ -294,7 +294,7 @@  discard block
 block discarded – undo
294 294
         header('Expires: 0');
295 295
         header('Cache-Control: must-revalidate');
296 296
         header('Pragma: public');
297
-        header('Content-Length: ' . $file->size);
297
+        header('Content-Length: '.$file->size);
298 298
 
299 299
         file_put_contents('php://output', $file->getContent());
300 300
     }
@@ -404,9 +404,9 @@  discard block
 block discarded – undo
404 404
 
405 405
         $path = trim($path, '/');
406 406
         if (empty($path) !== true) {
407
-            $path = $path . '/';
407
+            $path = $path.'/';
408 408
         }
409
-        return $path . $dividePath;
409
+        return $path.$dividePath;
410 410
     }
411 411
 
412 412
     /**
@@ -417,7 +417,7 @@  discard block
 block discarded – undo
417 417
      */
418 418
     private function makeFilename($clientname)
419 419
     {
420
-        return date('YmdHis') . hash('sha1', $clientname);
420
+        return date('YmdHis').hash('sha1', $clientname);
421 421
     }
422 422
 
423 423
     /**
@@ -441,7 +441,7 @@  discard block
 block discarded – undo
441 441
 
442 442
         $array = [];
443 443
         foreach ($rows as $row) {
444
-            $row = (array)$row;
444
+            $row = (array) $row;
445 445
             $array[$row['mime']] = $row['amount'];
446 446
         }
447 447
 
@@ -469,7 +469,7 @@  discard block
 block discarded – undo
469 469
 
470 470
         $array = [];
471 471
         foreach ($rows as $row) {
472
-            $row = (array)$row;
472
+            $row = (array) $row;
473 473
             $array[$row['mime']] = $row['cnt'];
474 474
         }
475 475
 
Please login to merge, or discard this patch.
core/src/Xpressengine/Routing/helpers.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
             $module = $instanceRoute->module;
49 49
         }
50 50
 
51
-        $name = $module . '.' . $name;
51
+        $name = $module.'.'.$name;
52 52
 
53 53
         array_unshift($parameters, $url);
54 54
 
Please login to merge, or discard this patch.
core/src/Xpressengine/Routing/UriValidator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
      */
44 44
     public function matches(Route $route, Request $request)
45 45
     {
46
-        $path = $request->path() == '/' ? '/' : '/' . $request->path();
46
+        $path = $request->path() == '/' ? '/' : '/'.$request->path();
47 47
         $firstSegment = $request->segment(1);
48 48
         if ($firstSegment === null) {
49 49
             return true;
Please login to merge, or discard this patch.
core/src/Xpressengine/Routing/RouteCollection.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
 
56 56
         if (isset($action['as'])) {
57 57
             if (isset($action['module'])) {
58
-                $this->nameList[$action['module'] . "." . $action['as']] = $route;
58
+                $this->nameList[$action['module'].".".$action['as']] = $route;
59 59
             } else {
60 60
                 $this->nameList[$action['as']] = $route;
61 61
             }
Please login to merge, or discard this patch.
core/src/Xpressengine/Routing/Repositories/CacheDecorator.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
     {
72 72
         $key = $this->getCacheKey('all');
73 73
 
74
-        $routes = $this->cache->has($key) ? $this->cache->get($key) : call_user_func(function () use ($key) {
74
+        $routes = $this->cache->has($key) ? $this->cache->get($key) : call_user_func(function() use ($key) {
75 75
             $routes = $this->repo->all();
76 76
             if (count($routes) > 1) {
77 77
                 $this->cache->put($key, $routes);
@@ -92,9 +92,9 @@  discard block
 block discarded – undo
92 92
      */
93 93
     public function findByUrlAndSiteKey($url, $siteKey)
94 94
     {
95
-        $key = $this->getCacheKey($siteKey . '_' . $url);
95
+        $key = $this->getCacheKey($siteKey.'_'.$url);
96 96
 
97
-        $route = $this->cache->has($key) ? $this->cache->get($key) : call_user_func(function () use ($url, $siteKey) {
97
+        $route = $this->cache->has($key) ? $this->cache->get($key) : call_user_func(function() use ($url, $siteKey) {
98 98
             if ($route = $this->repo->findByUrlAndSiteKey($url, $siteKey)) {
99 99
                 $this->cachingItem($route);
100 100
             }
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
      */
114 114
     protected function cachingItem(InstanceRoute $route)
115 115
     {
116
-        $this->cache->put($this->getCacheKey($route->siteKey . '_' . $route->url), $route);
116
+        $this->cache->put($this->getCacheKey($route->siteKey.'_'.$route->url), $route);
117 117
         $this->cache->put($this->getCacheKey($route->instanceId), $route);
118 118
     }
119 119
 
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
     {
128 128
         $key = $this->getCacheKey($instanceId);
129 129
 
130
-        $route = $this->cache->has($key) ? $this->cache->get($key) : call_user_func(function () use ($instanceId) {
130
+        $route = $this->cache->has($key) ? $this->cache->get($key) : call_user_func(function() use ($instanceId) {
131 131
             if ($route = $this->repo->findByInstanceId($instanceId)) {
132 132
                 $this->cachingItem($route);
133 133
             }
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
     {
149 149
         $key = $this->getCacheKey($siteKey);
150 150
 
151
-        $routes = $this->cache->has($key) ? $this->cache->get($key) : call_user_func(function () use ($siteKey, $key) {
151
+        $routes = $this->cache->has($key) ? $this->cache->get($key) : call_user_func(function() use ($siteKey, $key) {
152 152
             $routes = $this->repo->fetchBySiteKey($siteKey);
153 153
             if (count($routes) > 0) {
154 154
                 $this->cache->put($key, $routes);
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
     {
171 171
         $key = $this->getCacheKey($module);
172 172
 
173
-        $routes = $this->cache->has($key) ? $this->cache->get($key) : call_user_func(function () use ($module, $key) {
173
+        $routes = $this->cache->has($key) ? $this->cache->get($key) : call_user_func(function() use ($module, $key) {
174 174
             $routes = $this->repo->fetchByModule($module);
175 175
             if (count($routes) > 0) {
176 176
                 $this->cache->put($key, $routes);
@@ -218,7 +218,7 @@  discard block
 block discarded – undo
218 218
      */
219 219
     public function delete(InstanceRoute $route)
220 220
     {
221
-        $this->cache->forget($this->getCacheKey($route->siteKey . '_' . $route->url));
221
+        $this->cache->forget($this->getCacheKey($route->siteKey.'_'.$route->url));
222 222
         $this->cache->forget($this->getCacheKey($route->instanceId));
223 223
 
224 224
         return $this->repo->delete($route);
@@ -232,6 +232,6 @@  discard block
 block discarded – undo
232 232
      */
233 233
     protected function getCacheKey($keyword)
234 234
     {
235
-        return $this->prefix . '@' . $keyword;
235
+        return $this->prefix.'@'.$keyword;
236 236
     }
237 237
 }
Please login to merge, or discard this patch.
core/src/Xpressengine/Config/ConfigManager.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -376,7 +376,7 @@  discard block
 block discarded – undo
376 376
      * @param ConfigEntity $config config instance
377 377
      * @return void
378 378
      */
379
-    protected function bindClosure(ConfigEntity &$config)
379
+    protected function bindClosure(ConfigEntity & $config)
380 380
     {
381 381
         if (isset($this->closures[$config->siteKey])
382 382
             && isset($this->closures[$config->siteKey][$config->name])) {
@@ -534,7 +534,7 @@  discard block
 block discarded – undo
534 534
      */
535 535
     private function sort(array $configs, $flag = 'asc')
536 536
     {
537
-        uasort($configs, function (ConfigEntity $front, ConfigEntity $rear) use ($flag) {
537
+        uasort($configs, function(ConfigEntity $front, ConfigEntity $rear) use ($flag) {
538 538
             $frontLevel = $front->getDepth();
539 539
             $rearLevel = $rear->getDepth();
540 540
 
@@ -582,7 +582,7 @@  discard block
 block discarded – undo
582 582
         $arrName = explode('.', $config->name);
583 583
         $key = array_pop($arrName);
584 584
         if ($to !== null) {
585
-            $key = $to . '.' . $key;
585
+            $key = $to.'.'.$key;
586 586
         }
587 587
 
588 588
         return $this->get($key, false, $config->siteKey);
Please login to merge, or discard this patch.
core/src/Xpressengine/Config/Validator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
      */
89 89
     private function extending()
90 90
     {
91
-        $this->factory->extend('has_parent', function ($attribute, $value) {
91
+        $this->factory->extend('has_parent', function($attribute, $value) {
92 92
             if ($attribute == 'object' && $value->getDepth() > 1 && $value->getParent() === null) {
93 93
                 return false;
94 94
             }
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
     protected function getRules()
129 129
     {
130 130
         return [
131
-            'name' => 'required|min:' . $this->minNameLength . '|max:' . $this->maxNameLength,
131
+            'name' => 'required|min:'.$this->minNameLength.'|max:'.$this->maxNameLength,
132 132
             'object' => 'has_parent'
133 133
         ];
134 134
     }
Please login to merge, or discard this patch.