Passed
Branch 4.0 (110233)
by Marco
03:23
created
src/Comodojo/Dispatcher/Request/Post.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
 
47 47
     private static function getParameters() {
48 48
 
49
-        switch ($_SERVER['REQUEST_METHOD']) {
49
+        switch ( $_SERVER['REQUEST_METHOD'] ) {
50 50
 
51 51
             case 'POST':
52 52
 
Please login to merge, or discard this patch.
src/Comodojo/Dispatcher/Request/Headers.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -41,13 +41,13 @@
 block discarded – undo
41 41
      */
42 42
     private static function getHeaders() {
43 43
 
44
-        if (function_exists('getallheaders')) return getallheaders();
44
+        if ( function_exists('getallheaders') ) return getallheaders();
45 45
 
46 46
         $headers = array();
47 47
 
48
-        foreach ($_SERVER as $name => $value) {
48
+        foreach ( $_SERVER as $name => $value ) {
49 49
 
50
-            if (substr($name, 0, 5) == 'HTTP_') {
50
+            if ( substr($name, 0, 5) == 'HTTP_' ) {
51 51
 
52 52
                 $headers[str_replace(' ', '-', ucwords(strtolower(str_replace('_', ' ', substr($name, 5)))))] = $value;
53 53
 
Please login to merge, or discard this patch.
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.