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 ( 28d14f...c253f8 )
by
unknown
03:01
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/Cli/Commanders/Serve.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -94,8 +94,8 @@  discard block
 block discarded – undo
94 94
         $options = input()->get();
95 95
 
96 96
         if (empty($options)) {
97
-            $_GET[ 'host' ] = 'localhost';
98
-            $_GET[ 'port' ] = 8000;
97
+            $_GET['host'] = 'localhost';
98
+            $_GET['port'] = 8000;
99 99
         }
100 100
 
101 101
         parent::execute();
@@ -107,12 +107,12 @@  discard block
 block discarded – undo
107 107
                 ->setNewLinesAfter(1)
108 108
         );
109 109
 
110
-        $_SERVER[ 'DOCUMENT_ROOT' ] = PATH_PUBLIC;
110
+        $_SERVER['DOCUMENT_ROOT'] = PATH_PUBLIC;
111 111
 
112 112
         output()->write(
113 113
             (new Format())
114 114
                 ->setContextualClass(Format::INFO)
115
-                ->setString(language()->getLine('CLI_SERVE_DOC_ROOT', [$_SERVER[ 'DOCUMENT_ROOT' ]]))
115
+                ->setString(language()->getLine('CLI_SERVE_DOC_ROOT', [$_SERVER['DOCUMENT_ROOT']]))
116 116
                 ->setNewLinesAfter(1)
117 117
         );
118 118
 
@@ -128,12 +128,12 @@  discard block
 block discarded – undo
128 128
          * base path to the public folder, and to use the rewrite file
129 129
          * to ensure our environment is set and it simulates basic mod_rewrite.
130 130
          */
131
-        passthru('php -S ' .
132
-            $this->optionHost .
133
-            ':' .
134
-            $this->optionPort .
135
-            ' -t ' .
136
-            str_replace('\\', DIRECTORY_SEPARATOR, DIR_PUBLIC) . ' ' . PATH_ROOT . 'server.php'
131
+        passthru('php -S '.
132
+            $this->optionHost.
133
+            ':'.
134
+            $this->optionPort.
135
+            ' -t '.
136
+            str_replace('\\', DIRECTORY_SEPARATOR, DIR_PUBLIC).' '.PATH_ROOT.'server.php'
137 137
         );
138 138
     }
139 139
 }
140 140
\ No newline at end of file
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.