@@ -107,7 +107,7 @@ |
||
| 107 | 107 | $key = $h[0]; |
| 108 | 108 | } else { |
| 109 | 109 | if (substr($h[0], 0, 1) == "\t") { |
| 110 | - $headers[$key] .= "\r\n\t".trim($h[0]); |
|
| 110 | + $headers[$key] .= "\r\n\t" . trim($h[0]); |
|
| 111 | 111 | } elseif (!$key) { |
| 112 | 112 | $headers[0] = trim($h[0]); |
| 113 | 113 | } |
@@ -57,7 +57,7 @@ |
||
| 57 | 57 | /** |
| 58 | 58 | * Useragent string sent to the API when making requests. |
| 59 | 59 | */ |
| 60 | - const USERAGENT = 'Content API SDK '. self::API_VERSION; |
|
| 60 | + const USERAGENT = 'Content API SDK ' . self::API_VERSION; |
|
| 61 | 61 | |
| 62 | 62 | /** |
| 63 | 63 | * A list of parameters the Content API accepts. |
@@ -110,7 +110,7 @@ discard block |
||
| 110 | 110 | |
| 111 | 111 | try { |
| 112 | 112 | $responseObj = ContentApiSdk::getValidJsonObj($response['body']); |
| 113 | - } catch(InvalidDataException $e) { |
|
| 113 | + } catch (InvalidDataException $e) { |
|
| 114 | 114 | throw new AuthenticationException('Authentication response body is not (valid) json.', $e->getCode(), $e); |
| 115 | 115 | } |
| 116 | 116 | |
@@ -148,7 +148,7 @@ discard block |
||
| 148 | 148 | |
| 149 | 149 | try { |
| 150 | 150 | $responseObj = ContentApiSdk::getValidJsonObj($response['body']); |
| 151 | - } catch(InvalidDataException $e) { |
|
| 151 | + } catch (InvalidDataException $e) { |
|
| 152 | 152 | throw new AuthenticationException('Authentication response body is not (valid) json.', $e->getCode(), $e); |
| 153 | 153 | } |
| 154 | 154 | |