Passed
Push — master ( cbd434...8df946 )
by Marco
05:49
created
src/Comodojo/Dispatcher/Output/Processor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@
 block discarded – undo
75 75
 
76 76
         $status = $response->getStatus()->get();
77 77
 
78
-        if (!$this->codes->exists($status)) throw new Exception("Invalid HTTP status code in response");
78
+        if ( !$this->codes->exists($status) ) throw new Exception("Invalid HTTP status code in response");
79 79
 
80 80
         $message = $this->codes->getMessage($status);
81 81
 
Please login to merge, or discard this patch.
src/Comodojo/Dispatcher/Components/HttpStatusCodes.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@
 block discarded – undo
102 102
 
103 103
     public function getMessage($code) {
104 104
 
105
-        if ($this->exists($code)) return $this->codes[$code];
105
+        if ( $this->exists($code) ) return $this->codes[$code];
106 106
 
107 107
         throw new Exception("Invalid HTTP status code $code");
108 108
 
Please login to merge, or discard this patch.
src/Comodojo/Dispatcher/Response/Preprocessor/Status200.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
         $type = $this->response->getContent()->type();
34 34
         $charset = $this->response->getContent()->charset();
35 35
 
36
-        if (empty($charset)) {
36
+        if ( empty($charset) ) {
37 37
             $this->response->getHeaders()->set("Content-type", strtolower($type));
38 38
         } else {
39 39
             $this->response->getHeaders()->set("Content-type", strtolower($type)."; charset=".$charset);
Please login to merge, or discard this patch.
src/Comodojo/Dispatcher/Response/Preprocessor/Status304.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
 
31 31
         $cleanup = ['Allow', 'Content-Encoding', 'Content-Language', 'Content-Length', 'Content-MD5', 'Content-Type', 'Last-Modified'];
32 32
 
33
-        foreach ($cleanup as $header) {
33
+        foreach ( $cleanup as $header ) {
34 34
             $this->response->getHeaders()->delete($header);
35 35
         }
36 36
 
Please login to merge, or discard this patch.
src/Comodojo/Dispatcher/Components/CommandsLoader.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -29,9 +29,9 @@
 block discarded – undo
29 29
 
30 30
         $classes = [];
31 31
 
32
-        foreach ($config as $package) {
33
-            foreach ($package as $command) {
34
-                if ( $command['scope'] === 'dispatcher') {
32
+        foreach ( $config as $package ) {
33
+            foreach ( $package as $command ) {
34
+                if ( $command['scope'] === 'dispatcher' ) {
35 35
                     $classes[] = $command['class'];
36 36
                 }
37 37
             }
Please login to merge, or discard this patch.
src/Comodojo/Dispatcher/Components/Version.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -24,13 +24,13 @@
 block discarded – undo
24 24
     protected $description = 'Hackable PHP REST framework';
25 25
     protected $version = '4.0-dev';
26 26
     protected $ascii = "\r\n   ___  _               __      __          \r\n".
27
-                       "  / _ \(_)__ ___  ___ _/ /_____/ /  ___ ____\r\n".
28
-                       " / // / (_-</ _ \/ _ `/ __/ __/ _ \/ -_) __/\r\n".
29
-                       "/____/_/___/ .__/\_,_/\__/\__/_//_/\__/_/   \r\n".
30
-                       "          /_/                               \r\n";
27
+                        "  / _ \(_)__ ___  ___ _/ /_____/ /  ___ ____\r\n".
28
+                        " / // / (_-</ _ \/ _ `/ __/ __/ _ \/ -_) __/\r\n".
29
+                        "/____/_/___/ .__/\_,_/\__/\__/_//_/\__/_/   \r\n".
30
+                        "          /_/                               \r\n";
31 31
     protected $template = "\n\n{ascii}\r\n".
32
-                          "---------------------------------------------\r\n".
33
-                          "{name} (ver {version})\r\n{description}\r\n";
32
+                            "---------------------------------------------\r\n".
33
+                            "{name} (ver {version})\r\n{description}\r\n";
34 34
     protected $prefix = 'dispatcher-';
35 35
 
36 36
 }
Please login to merge, or discard this patch.
src/Comodojo/Dispatcher/Components/PluginsLoader.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,8 +28,8 @@
 block discarded – undo
28 28
 
29 29
         $plain_plugins = [];
30 30
 
31
-        foreach ($config as $package => $plugins) {
32
-            foreach ($plugins as $plugin) {
31
+        foreach ( $config as $package => $plugins ) {
32
+            foreach ( $plugins as $plugin ) {
33 33
                 $plain_plugins[] = $plugin;
34 34
             }
35 35
         }
Please login to merge, or discard this patch.