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 ( ca9c18...0a41a9 )
by Steeven
01:58
created
src/Cli/App.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -34,10 +34,10 @@
 block discarded – undo
34 34
     public function optionVersion()
35 35
     {
36 36
         if (property_exists($this, 'version')) {
37
-            if ( ! empty($this->version)) {
37
+            if (!empty($this->version)) {
38 38
                 output()->write(
39 39
                     (new Format())
40
-                        ->setString($this->name . ' v' . $this->version . ' Copyright (c) 2011 - ' . date('Y') . ' Steeve Andrian Salim')
40
+                        ->setString($this->name.' v'.$this->version.' Copyright (c) 2011 - '.date('Y').' Steeve Andrian Salim')
41 41
                         ->setNewLinesAfter(1)
42 42
                 );
43 43
 
Please login to merge, or discard this patch.
src/Cli/Commanders/Make/Library.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -50,12 +50,12 @@  discard block
 block discarded – undo
50 50
         }
51 51
 
52 52
         if (strpos($this->optionPath, 'Libraries') === false) {
53
-            $filePath = $this->optionPath . 'Libraries' . DIRECTORY_SEPARATOR . $this->optionFilename;
53
+            $filePath = $this->optionPath.'Libraries'.DIRECTORY_SEPARATOR.$this->optionFilename;
54 54
         } else {
55
-            $filePath = $this->optionPath . $this->optionFilename;
55
+            $filePath = $this->optionPath.$this->optionFilename;
56 56
         }
57 57
 
58
-        if ( ! is_dir(dirname($filePath))) {
58
+        if (!is_dir(dirname($filePath))) {
59 59
             mkdir(dirname($filePath), 0777, true);
60 60
         }
61 61
 
@@ -75,19 +75,19 @@  discard block
 block discarded – undo
75 75
 
76 76
         $classNamespace = loader()->getDirNamespace(
77 77
                 $namespaceDirectory
78
-            ) . 'Libraries' . (empty($subNamespace)
78
+            ).'Libraries'.(empty($subNamespace)
79 79
                 ? null
80 80
                 : str_replace(
81 81
                     '/',
82 82
                     '\\',
83 83
                     $subNamespace
84
-                )) . '\\';
84
+                )).'\\';
85 85
 
86
-        $vars[ 'CREATE_DATETIME' ] = date('d/m/Y H:m');
87
-        $vars[ 'NAMESPACE' ] = trim($classNamespace, '\\');
88
-        $vars[ 'PACKAGE' ] = '\\' . trim($classNamespace, '\\');
89
-        $vars[ 'CLASS' ] = $className;
90
-        $vars[ 'FILEPATH' ] = $filePath;
86
+        $vars['CREATE_DATETIME'] = date('d/m/Y H:m');
87
+        $vars['NAMESPACE'] = trim($classNamespace, '\\');
88
+        $vars['PACKAGE'] = '\\'.trim($classNamespace, '\\');
89
+        $vars['CLASS'] = $className;
90
+        $vars['FILEPATH'] = $filePath;
91 91
 
92 92
         $phpTemplate = <<<PHPTEMPLATE
93 93
 <?php
Please login to merge, or discard this patch.
src/Cli/Commanders/Make/Config.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -50,12 +50,12 @@  discard block
 block discarded – undo
50 50
         }
51 51
 
52 52
         if (strpos($this->optionPath, 'Config') === false) {
53
-            $filePath = $this->optionPath . 'Config' . DIRECTORY_SEPARATOR . $this->optionFilename;
53
+            $filePath = $this->optionPath.'Config'.DIRECTORY_SEPARATOR.$this->optionFilename;
54 54
         } else {
55
-            $filePath = $this->optionPath . $this->optionFilename;
55
+            $filePath = $this->optionPath.$this->optionFilename;
56 56
         }
57 57
 
58
-        if ( ! is_dir(dirname($filePath))) {
58
+        if (!is_dir(dirname($filePath))) {
59 59
             mkdir(dirname($filePath), 777, true);
60 60
         }
61 61
 
@@ -70,9 +70,9 @@  discard block
 block discarded – undo
70 70
             exit(EXIT_ERROR);
71 71
         }
72 72
 
73
-        $vars[ 'CREATE_DATETIME' ] = date('d/m/Y H:m');
74
-        $vars[ 'CONFIG' ] = '$' . camelcase(pathinfo($filePath, PATHINFO_FILENAME));
75
-        $vars[ 'FILEPATH' ] = $filePath;
73
+        $vars['CREATE_DATETIME'] = date('d/m/Y H:m');
74
+        $vars['CONFIG'] = '$'.camelcase(pathinfo($filePath, PATHINFO_FILENAME));
75
+        $vars['FILEPATH'] = $filePath;
76 76
 
77 77
         $phpTemplate = <<<PHPTEMPLATE
78 78
 <?php
Please login to merge, or discard this patch.
src/Cli/Commanders/Make/Helper.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -50,12 +50,12 @@  discard block
 block discarded – undo
50 50
         }
51 51
 
52 52
         if (strpos($this->optionPath, 'Helpers') === false) {
53
-            $filePath = $this->optionPath . 'Helpers' . DIRECTORY_SEPARATOR . $this->optionFilename;
53
+            $filePath = $this->optionPath.'Helpers'.DIRECTORY_SEPARATOR.$this->optionFilename;
54 54
         } else {
55
-            $filePath = $this->optionPath . $this->optionFilename;
55
+            $filePath = $this->optionPath.$this->optionFilename;
56 56
         }
57 57
 
58
-        if ( ! is_dir(dirname($filePath))) {
58
+        if (!is_dir(dirname($filePath))) {
59 59
             mkdir(dirname($filePath), 0777, true);
60 60
         }
61 61
 
@@ -70,13 +70,13 @@  discard block
 block discarded – undo
70 70
             exit(EXIT_ERROR);
71 71
         }
72 72
 
73
-        $vars[ 'CREATE_DATETIME' ] = date('d/m/Y H:m');
74
-        $vars[ 'HELPER' ] = underscore(
73
+        $vars['CREATE_DATETIME'] = date('d/m/Y H:m');
74
+        $vars['HELPER'] = underscore(
75 75
             snakecase(
76 76
                 pathinfo($filePath, PATHINFO_FILENAME)
77 77
             )
78 78
         );
79
-        $vars[ 'FILEPATH' ] = $filePath;
79
+        $vars['FILEPATH'] = $filePath;
80 80
 
81 81
         $phpTemplate = <<<PHPTEMPLATE
82 82
 <?php
Please login to merge, or discard this patch.
src/Cli/Commanders/Make/Model.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -55,12 +55,12 @@  discard block
 block discarded – undo
55 55
         }
56 56
 
57 57
         if (strpos($this->optionPath, 'Models') === false) {
58
-            $filePath = $this->optionPath . 'Models' . DIRECTORY_SEPARATOR . $this->optionFilename;
58
+            $filePath = $this->optionPath.'Models'.DIRECTORY_SEPARATOR.$this->optionFilename;
59 59
         } else {
60
-            $filePath = $this->optionPath . $this->optionFilename;
60
+            $filePath = $this->optionPath.$this->optionFilename;
61 61
         }
62 62
 
63
-        if ( ! is_dir(dirname($filePath))) {
63
+        if (!is_dir(dirname($filePath))) {
64 64
             mkdir(dirname($filePath), 0777, true);
65 65
         }
66 66
 
@@ -80,22 +80,22 @@  discard block
 block discarded – undo
80 80
 
81 81
         $classNamespace = loader()->getDirNamespace(
82 82
                 $namespaceDirectory
83
-            ) . 'Models' . (empty($subNamespace)
83
+            ).'Models'.(empty($subNamespace)
84 84
                 ? null
85 85
                 : str_replace(
86 86
                     '/',
87 87
                     '\\',
88 88
                     $subNamespace
89
-                )) . '\\';
89
+                )).'\\';
90 90
 
91 91
         $isUseORM = empty($this->isUseORM) ? false : true;
92 92
 
93
-        $vars[ 'CREATE_DATETIME' ] = date('d/m/Y H:m');
94
-        $vars[ 'NAMESPACE' ] = trim($classNamespace, '\\');
95
-        $vars[ 'PACKAGE' ] = '\\' . trim($classNamespace, '\\');
96
-        $vars[ 'CLASS' ] = $className;
97
-        $vars[ 'FILEPATH' ] = $filePath;
98
-        $vars[ 'EXTEND' ] = $isUseORM
93
+        $vars['CREATE_DATETIME'] = date('d/m/Y H:m');
94
+        $vars['NAMESPACE'] = trim($classNamespace, '\\');
95
+        $vars['PACKAGE'] = '\\'.trim($classNamespace, '\\');
96
+        $vars['CLASS'] = $className;
97
+        $vars['FILEPATH'] = $filePath;
98
+        $vars['EXTEND'] = $isUseORM
99 99
             ? 'Orm'
100 100
             : 'Reactor';
101 101
 
Please login to merge, or discard this patch.
src/Cli/Commanders/Make/Controller.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -50,12 +50,12 @@  discard block
 block discarded – undo
50 50
         }
51 51
 
52 52
         if (strpos($this->optionPath, 'Controllers') === false) {
53
-            $filePath = $this->optionPath . 'Controllers' . DIRECTORY_SEPARATOR . $this->optionFilename;
53
+            $filePath = $this->optionPath.'Controllers'.DIRECTORY_SEPARATOR.$this->optionFilename;
54 54
         } else {
55
-            $filePath = $this->optionPath . $this->optionFilename;
55
+            $filePath = $this->optionPath.$this->optionFilename;
56 56
         }
57 57
 
58
-        if ( ! is_dir(dirname($filePath))) {
58
+        if (!is_dir(dirname($filePath))) {
59 59
             mkdir(dirname($filePath), 777, true);
60 60
         }
61 61
 
@@ -75,19 +75,19 @@  discard block
 block discarded – undo
75 75
 
76 76
         $classNamespace = loader()->getDirNamespace(
77 77
                 $namespaceDirectory
78
-            ) . 'Controllers' . (empty($subNamespace)
78
+            ).'Controllers'.(empty($subNamespace)
79 79
                 ? null
80 80
                 : str_replace(
81 81
                     '/',
82 82
                     '\\',
83 83
                     $subNamespace
84
-                )) . '\\';
84
+                )).'\\';
85 85
 
86
-        $vars[ 'CREATE_DATETIME' ] = date('d/m/Y H:m');
87
-        $vars[ 'NAMESPACE' ] = trim($classNamespace, '\\');
88
-        $vars[ 'PACKAGE' ] = '\\' . trim($classNamespace, '\\');
89
-        $vars[ 'CLASS' ] = $className;
90
-        $vars[ 'FILEPATH' ] = $filePath;
86
+        $vars['CREATE_DATETIME'] = date('d/m/Y H:m');
87
+        $vars['NAMESPACE'] = trim($classNamespace, '\\');
88
+        $vars['PACKAGE'] = '\\'.trim($classNamespace, '\\');
89
+        $vars['CLASS'] = $className;
90
+        $vars['FILEPATH'] = $filePath;
91 91
 
92 92
         $phpTemplate = <<<PHPTEMPLATE
93 93
 <?php
Please login to merge, or discard this patch.
src/Cli/Commanders/Registry.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -142,11 +142,11 @@
 block discarded – undo
142 142
         if (in_array($type, ['modules', 'languages'])) {
143 143
             switch ($type) {
144 144
                 case 'modules':
145
-                    $line = PHP_EOL . print_r(modules()->getRegistry(), true);
145
+                    $line = PHP_EOL.print_r(modules()->getRegistry(), true);
146 146
                     break;
147 147
 
148 148
                 case 'languages':
149
-                    $line = PHP_EOL . print_r(language()->getRegistry(), true);
149
+                    $line = PHP_EOL.print_r(language()->getRegistry(), true);
150 150
                     break;
151 151
             }
152 152
 
Please login to merge, or discard this patch.
src/Services/Cache.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
     {
78 78
         $poolOffset = $this->poolOffset;
79 79
 
80
-        if ( ! $this->exists($poolOffset)) {
80
+        if (!$this->exists($poolOffset)) {
81 81
             $poolOffset = 'default';
82 82
         }
83 83
 
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
      */
155 155
     public function delete($key)
156 156
     {
157
-        return (bool)$this->deleteItem($key);
157
+        return (bool) $this->deleteItem($key);
158 158
     }
159 159
 
160 160
     // ------------------------------------------------------------------------
@@ -200,7 +200,7 @@  discard block
 block discarded – undo
200 200
 
201 201
         foreach ($keys as $key) {
202 202
             if ($this->exists($key)) {
203
-                $result[ $key ] = $this->get($key, $default);
203
+                $result[$key] = $this->get($key, $default);
204 204
             }
205 205
         }
206 206
 
@@ -308,11 +308,11 @@  discard block
 block discarded – undo
308 308
 
309 309
         foreach ($values as $key => $value) {
310 310
             if ($this->set($key, $value, $ttl)) {
311
-                $result[ $key ] = true;
311
+                $result[$key] = true;
312 312
             }
313 313
         }
314 314
 
315
-        return (bool)count($result) == count($values);
315
+        return (bool) count($result) == count($values);
316 316
     }
317 317
 
318 318
     // ------------------------------------------------------------------------
@@ -369,7 +369,7 @@  discard block
 block discarded – undo
369 369
      */
370 370
     public function deleteMultiple($keys)
371 371
     {
372
-        return (bool)$this->deleteItems($keys);
372
+        return (bool) $this->deleteItems($keys);
373 373
     }
374 374
 
375 375
     // ------------------------------------------------------------------------
Please login to merge, or discard this patch.
src/Http/Controllers/Restful.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -226,9 +226,9 @@  discard block
 block discarded – undo
226 226
             if (is_numeric(key($code))) {
227 227
                 $message = reset($code);
228 228
                 $code = key($code);
229
-            } elseif (isset($code[ 'code' ])) {
230
-                $code = $code[ 'code' ];
231
-                $message = $code[ 'message' ];
229
+            } elseif (isset($code['code'])) {
230
+                $code = $code['code'];
231
+                $message = $code['message'];
232 232
             }
233 233
         }
234 234
 
@@ -271,17 +271,17 @@  discard block
 block discarded – undo
271 271
             // set php runtime to unlimited
272 272
             set_time_limit(0);
273 273
 
274
-            $longPoolingCacheKey = 'long-pooling-' . session()->get('id');
274
+            $longPoolingCacheKey = 'long-pooling-'.session()->get('id');
275 275
             $longPoolingCacheData = null;
276 276
 
277
-            if ( ! cache()->hasItem($longPoolingCacheKey)) {
277
+            if (!cache()->hasItem($longPoolingCacheKey)) {
278 278
                 cache()->save(new Item($longPoolingCacheKey, $data));
279 279
             }
280 280
 
281 281
             // main loop
282 282
             while (true) {
283 283
                 // if ajax request has send a timestamp, then $lastCallTimestamp = timestamp, else $last_call = null
284
-                $lastCallTimestamp = (int)input()->getPost('last_call_timestamp');
284
+                $lastCallTimestamp = (int) input()->getPost('last_call_timestamp');
285 285
 
286 286
                 // PHP caches file data, like requesting the size of a file, by default. clearstatcache() clears that cache
287 287
                 clearstatcache();
@@ -294,7 +294,7 @@  discard block
 block discarded – undo
294 294
                 $longPoolingCacheMetadata = $longPoolingCacheData->getMetadata();
295 295
 
296 296
                 // if no timestamp delivered via ajax or data.txt has been changed SINCE last ajax timestamp
297
-                if ($lastCallTimestamp == null || $longPoolingCacheMetadata[ 'ctime' ] > $lastCallTimestamp) {
297
+                if ($lastCallTimestamp == null || $longPoolingCacheMetadata['ctime'] > $lastCallTimestamp) {
298 298
                     output()->send([
299 299
                         'timestamp' => $longPoolingCacheMetadata,
300 300
                         'data'      => $data,
Please login to merge, or discard this patch.