@@ -16,7 +16,7 @@ discard block |
||
16 | 16 | /** |
17 | 17 | * @var array |
18 | 18 | */ |
19 | - protected $jwt=array( |
|
19 | + protected $jwt = array( |
|
20 | 20 | 'using' => false, |
21 | 21 | 'UAPAY_pubkey' => '', |
22 | 22 | 'our_privkey' => '', |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | * @param string $json_string JSON string |
34 | 34 | * @param array $jwt_options array of options |
35 | 35 | */ |
36 | - public function __construct($json_string, $jwt_options=null) |
|
36 | + public function __construct($json_string, $jwt_options = null) |
|
37 | 37 | { |
38 | 38 | if (isset($jwt_options) && is_array($jwt_options)) |
39 | 39 | { |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | |
78 | 78 | if ($this->jwt['using'] === true) |
79 | 79 | { |
80 | - if ( ! isset($this->json['data']['token'])) |
|
80 | + if (!isset($this->json['data']['token'])) |
|
81 | 81 | { |
82 | 82 | throw new Exception\JSON('data does not contain the token field!'); |
83 | 83 | } |
@@ -106,7 +106,7 @@ discard block |
||
106 | 106 | */ |
107 | 107 | protected function get_status() |
108 | 108 | { |
109 | - if ( ! isset($this->json['status'])) |
|
109 | + if (!isset($this->json['status'])) |
|
110 | 110 | { |
111 | 111 | throw new Exception\JSON('invalid json response!'); |
112 | 112 | } |
@@ -124,7 +124,7 @@ discard block |
||
124 | 124 | */ |
125 | 125 | protected function check_if_data() |
126 | 126 | { |
127 | - if ( ! isset($this->json['data']) || !is_array($this->json['data'])) |
|
127 | + if (!isset($this->json['data']) || !is_array($this->json['data'])) |
|
128 | 128 | { |
129 | 129 | throw new Exception\JSON('json does not contain the data field!'); |
130 | 130 | } |