@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | * |
| 38 | 38 | * @param array $jwt_options array of options |
| 39 | 39 | */ |
| 40 | - public function __construct($jwt_options=null) |
|
| 40 | + public function __construct($jwt_options = null) |
|
| 41 | 41 | { |
| 42 | 42 | parent::__construct($this->get_http_raw_post_data(), $jwt_options); |
| 43 | 43 | } |
@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | */ |
| 58 | 58 | protected function get_http_raw_post_data() |
| 59 | 59 | { |
| 60 | - Log::instance()->add('callback request from ' . $_SERVER['REMOTE_ADDR']); |
|
| 60 | + Log::instance()->add('callback request from '.$_SERVER['REMOTE_ADDR']); |
|
| 61 | 61 | |
| 62 | 62 | $raw_request = file_get_contents('php://input'); |
| 63 | 63 | |
@@ -82,7 +82,7 @@ discard block |
||
| 82 | 82 | |
| 83 | 83 | if ($this->jwt['using'] === true) |
| 84 | 84 | { |
| 85 | - if ( ! isset($this->json['token'])) |
|
| 85 | + if (!isset($this->json['token'])) |
|
| 86 | 86 | { |
| 87 | 87 | throw new Exception\JSON('json does not contain the token field!'); |
| 88 | 88 | } |