@@ -102,7 +102,7 @@ |
||
| 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 | |
@@ -102,7 +102,9 @@ |
||
| 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 | |