@@ -140,7 +140,9 @@ discard block |
||
140 | 140 | 'body' => json_encode($payload ?: []) |
141 | 141 | ]; |
142 | 142 | |
143 | - if ($noauth) unset($args['auth']); |
|
143 | + if ($noauth) { |
|
144 | + unset($args['auth']); |
|
145 | + } |
|
144 | 146 | |
145 | 147 | // @codeCoverageIgnoreStart |
146 | 148 | try { |
@@ -174,7 +176,9 @@ discard block |
||
174 | 176 | */ |
175 | 177 | public function V2($url, $method, $payload = null, $headers = null, $noauth = false) |
176 | 178 | { |
177 | - if (!($token = session('lptoken', $this->bearer))) $this->login(); |
|
179 | + if (!($token = session('lptoken', $this->bearer))) { |
|
180 | + $this->login(); |
|
181 | + } |
|
178 | 182 | |
179 | 183 | $client = new Client(); |
180 | 184 | $args = [ |