@@ -280,10 +280,10 @@ |
||
280 | 280 | /** |
281 | 281 | * chat function |
282 | 282 | * |
283 | - * @codeCoverageIgnore |
|
284 | - * |
|
285 | - * @todo connect this to the server chat api - this function currently does nothing. |
|
286 | - */ |
|
283 | + * @codeCoverageIgnore |
|
284 | + * |
|
285 | + * @todo connect this to the server chat api - this function currently does nothing. |
|
286 | + */ |
|
287 | 287 | public function chat() |
288 | 288 | { |
289 | 289 | $this->domain('conversationVep'); |
@@ -50,6 +50,6 @@ |
||
50 | 50 | { |
51 | 51 | $info = $this->info->attributes; |
52 | 52 | $info['transcript'] = $this->textTranscript; |
53 | - return ((object)$info); |
|
53 | + return ((object) $info); |
|
54 | 54 | } |
55 | 55 | } |
@@ -136,7 +136,9 @@ discard block |
||
136 | 136 | 'body' => json_encode($payload ?: []) |
137 | 137 | ]; |
138 | 138 | |
139 | - if ($noauth) unset($args['auth']); |
|
139 | + if ($noauth) { |
|
140 | + unset($args['auth']); |
|
141 | + } |
|
140 | 142 | |
141 | 143 | // @codeCoverageIgnoreStart |
142 | 144 | try { |
@@ -170,7 +172,9 @@ discard block |
||
170 | 172 | */ |
171 | 173 | public function V2($url, $method, $payload = null, $headers = null, $noauth = false) |
172 | 174 | { |
173 | - if (!$this->bearer) $this->login(); |
|
175 | + if (!$this->bearer) { |
|
176 | + $this->login(); |
|
177 | + } |
|
174 | 178 | |
175 | 179 | $client = new Client(); |
176 | 180 | $args = [ |