Completed
Push — 4.0 ( a1234e...3b08f9 )
by Marco
03:21
created
src/Comodojo/Dispatcher/Components/HttpStatusCodes.php 2 patches
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->code[$code];
105
+        if ($this->exists($code)) return $this->code[$code];
106 106
         
107 107
         throw new Exception("Invalid HTTP status code $code");
108 108
         
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -102,7 +102,9 @@
 block discarded – undo
102 102
     
103 103
     public function getMessage($code) {
104 104
         
105
-        if ( $this->exists($code) ) return $this->code[$code];
105
+        if ( $this->exists($code) ) {
106
+            return $this->code[$code];
107
+        }
106 108
         
107 109
         throw new Exception("Invalid HTTP status code $code");
108 110
         
Please login to merge, or discard this patch.