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