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 ( 82ecd6...cdc3d3 )
by Steeven
04:11 queued 01:51
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/Services/Logger.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
     public function __construct()
27 27
     {
28 28
         $config = config()->get('logger');
29
-        $config[ 'path' ] = PATH_CACHE . 'log' . DIRECTORY_SEPARATOR;
29
+        $config['path'] = PATH_CACHE.'log'.DIRECTORY_SEPARATOR;
30 30
 
31 31
         parent::__construct(new Config($config));
32 32
     }
Please login to merge, or discard this patch.