@@ -46,7 +46,7 @@ |
||
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 |
@@ -41,13 +41,13 @@ |
||
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 |
@@ -75,7 +75,7 @@ |
||
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 |
@@ -102,7 +102,7 @@ |
||
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 |