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 ( 1a1e57...ace484 )
by
unknown
18:25
created
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/Presenter/Html/Tags/CSSFile.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
         $sorted = static::$sorter->sort(array_diff(array_keys($list), static::$unloaded));
68 68
 
69 69
         array_map(
70
-            function ($file) use ($list, &$output, $minified) {
70
+            function($file) use ($list, &$output, $minified) {
71 71
                 $fileObj = $list[$file];
72 72
                 $output .= $fileObj->render($file, $minified);
73 73
             },
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
         }
161 161
 
162 162
         $prev = null;
163
-        foreach ((array)$this->files as $file) {
163
+        foreach ((array) $this->files as $file) {
164 164
 
165 165
             static::$fileList[$file] = $this;
166 166
 
Please login to merge, or discard this patch.
core/src/Xpressengine/Presenter/Html/Tags/Rule.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
      */
61 61
     public static function output()
62 62
     {
63
-        $output = '<script type="text/javascript">' . PHP_EOL;
63
+        $output = '<script type="text/javascript">'.PHP_EOL;
64 64
 
65 65
         $list = static::$ruleList;
66 66
 
@@ -92,11 +92,11 @@  discard block
 block discarded – undo
92 92
      */
93 93
     public function __construct($ruleName, $rules)
94 94
     {
95
-        if (isset(self::$ruleList[$ruleName]) ===  true) {
95
+        if (isset(self::$ruleList[$ruleName]) === true) {
96 96
             $rules = array_merge($rules, self::$ruleList[$ruleName]->getRules());
97 97
         }
98
-        $this->ruleName       = $ruleName;
99
-        $this->rules       = $rules;
98
+        $this->ruleName = $ruleName;
99
+        $this->rules = $rules;
100 100
         self::$ruleList[$ruleName] = $this;
101 101
 
102 102
         // Rule 을 사용할 때 validator 를 사용하게 되므로 valiator 다국어 추가
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
             'System.import(\'xecore:/common/js/modules/validator\').then(function(validator) { validator.setRules("%s", %s); });',
131 131
             $this->ruleName,
132 132
             json_enc($this->rules)
133
-        ) . PHP_EOL;
133
+        ).PHP_EOL;
134 134
 
135 135
         return $rule;
136 136
     }
Please login to merge, or discard this patch.
core/src/Xpressengine/Presenter/Html/Tags/JSFile.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@
 block discarded – undo
72 72
         $sorted = static::$sorter->sort(array_diff(array_keys($list), static::$unloaded));
73 73
 
74 74
         array_map(
75
-            function ($file) use ($list, &$output, $minified) {
75
+            function($file) use ($list, &$output, $minified) {
76 76
                 $fileObj = $list[$file];
77 77
                 $output .= $fileObj->render($file, $minified);
78 78
             },
Please login to merge, or discard this patch.
core/src/Xpressengine/Captcha/GoogleRecaptcha.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -130,7 +130,7 @@
 block discarded – undo
130 130
     {
131 131
         $this->frontend->js('https://www.google.com/recaptcha/api.js')->appendTo('head')->load();
132 132
 
133
-        return '<div class="g-recaptcha" data-sitekey="' . $this->siteKey . '"></div>';
133
+        return '<div class="g-recaptcha" data-sitekey="'.$this->siteKey.'"></div>';
134 134
     }
135 135
 
136 136
     /**
Please login to merge, or discard this patch.
core/src/Xpressengine/Widget/helpers.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@
 block discarded – undo
69 69
         if (stripos($widgetId, 'widget/') !== false) {
70 70
             return $widgetId;
71 71
         } else {
72
-            return 'widget/' . $widgetId;
72
+            return 'widget/'.$widgetId;
73 73
         }
74 74
     }
75 75
 }
Please login to merge, or discard this patch.
core/src/Xpressengine/Tag/TagHandler.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -213,7 +213,7 @@  discard block
 block discarded – undo
213 213
     {
214 214
         $model = $this->createModel();
215 215
 
216
-        $query = $model->newQuery()->where('decomposed', 'like', $this->decomposer->execute($string) . '%')
216
+        $query = $model->newQuery()->where('decomposed', 'like', $this->decomposer->execute($string).'%')
217 217
             ->orderBy('count', 'desc')
218 218
             ->take($take);
219 219
 
@@ -267,7 +267,7 @@  discard block
 block discarded – undo
267 267
      */
268 268
     public function setModel($model)
269 269
     {
270
-        $this->model = '\\' . ltrim($model, '\\');
270
+        $this->model = '\\'.ltrim($model, '\\');
271 271
 
272 272
         return $this;
273 273
     }
Please login to merge, or discard this patch.
core/src/Xpressengine/Tag/Decomposer.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -50,12 +50,12 @@  discard block
 block discarded – undo
50 50
      */
51 51
     public function execute($string)
52 52
     {
53
-        $cho = ["ㄱ","ㄲ","ㄴ","ㄷ","ㄸ","ㄹ","ㅁ","ㅂ","ㅃ","ㅅ",
54
-            "ㅆ","ㅇ","ㅈ","ㅉ","ㅊ","ㅋ","ㅌ","ㅍ","ㅎ"];
55
-        $jung = ["ㅏ","ㅐ","ㅑ","ㅒ","ㅓ","ㅔ","ㅕ","ㅖ","ㅗ","ㅘ","ㅙ",
56
-            "ㅚ","ㅛ","ㅜ","ㅝ","ㅞ","ㅟ","ㅠ","ㅡ","ㅢ","ㅣ"];
57
-        $jong = ["","ㄱ","ㄲ","ㄳ","ㄴ","ㄵ","ㄶ","ㄷ","ㄹ","ㄺ","ㄻ","ㄼ","ㄽ","ㄾ",
58
-            "ㄿ","ㅀ","ㅁ","ㅂ","ㅄ","ㅅ","ㅆ","ㅇ","ㅈ","ㅊ","ㅋ"," ㅌ","ㅍ","ㅎ"];
53
+        $cho = ["ㄱ", "ㄲ", "ㄴ", "ㄷ", "ㄸ", "ㄹ", "ㅁ", "ㅂ", "ㅃ", "ㅅ",
54
+            "ㅆ", "ㅇ", "ㅈ", "ㅉ", "ㅊ", "ㅋ", "ㅌ", "ㅍ", "ㅎ"];
55
+        $jung = ["ㅏ", "ㅐ", "ㅑ", "ㅒ", "ㅓ", "ㅔ", "ㅕ", "ㅖ", "ㅗ", "ㅘ", "ㅙ",
56
+            "ㅚ", "ㅛ", "ㅜ", "ㅝ", "ㅞ", "ㅟ", "ㅠ", "ㅡ", "ㅢ", "ㅣ"];
57
+        $jong = ["", "ㄱ", "ㄲ", "ㄳ", "ㄴ", "ㄵ", "ㄶ", "ㄷ", "ㄹ", "ㄺ", "ㄻ", "ㄼ", "ㄽ", "ㄾ",
58
+            "ㄿ", "ㅀ", "ㅁ", "ㅂ", "ㅄ", "ㅅ", "ㅆ", "ㅇ", "ㅈ", "ㅊ", "ㅋ", " ㅌ", "ㅍ", "ㅎ"];
59 59
 
60 60
         $result = "";
61 61
         for ($i = 0; $i < $this->strlen($string); $i++) {
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
                 $choIdx = $code / 588;
66 66
                 $jungIdx = $code % 588 / 28;
67 67
                 $jongIdx = $code % 28;
68
-                $result .= $cho[$choIdx] . $jung[$jungIdx] . $jong[$jongIdx];
68
+                $result .= $cho[$choIdx].$jung[$jungIdx].$jong[$jongIdx];
69 69
             } else {
70 70
                 $result .= $char;
71 71
             }
@@ -119,13 +119,13 @@  discard block
 block discarded – undo
119 119
         if ($h < 0xC2) {
120 120
             return null;
121 121
         }
122
-        if ($h <= 0xDF && $len>1) {
123
-            return ($h & 0x1F) <<  6 | (ord($ch{1}) & 0x3F);
122
+        if ($h <= 0xDF && $len > 1) {
123
+            return ($h & 0x1F) << 6 | (ord($ch{1}) & 0x3F);
124 124
         }
125
-        if ($h <= 0xEF && $len>2) {
125
+        if ($h <= 0xEF && $len > 2) {
126 126
             return ($h & 0x0F) << 12 | (ord($ch{1}) & 0x3F) << 6 | (ord($ch{2}) & 0x3F);
127 127
         }
128
-        if ($h <= 0xF4 && $len>3) {
128
+        if ($h <= 0xF4 && $len > 3) {
129 129
             return ($h & 0x0F) << 18 | (ord($ch{1}) & 0x3F) << 12 | (ord($ch{2}) & 0x3F) << 6 | (ord($ch{3}) & 0x3F);
130 130
         }
131 131
     }
Please login to merge, or discard this patch.