@@ -148,8 +148,8 @@ |
||
| 148 | 148 | $xpath = new \DOMXpath($doc); |
| 149 | 149 | if ($xpath->query('//*[@id="form:j_idt123_input"]/option[2]')->item(0)) { |
| 150 | 150 | $this->payer = $xpath->query('//*[@id="form:j_idt123_input"]/option[2]') |
| 151 | - ->item(0) |
|
| 152 | - ->getAttribute('value'); |
|
| 151 | + ->item(0) |
|
| 152 | + ->getAttribute('value'); |
|
| 153 | 153 | } |
| 154 | 154 | |
| 155 | 155 | $this->setOriginAirport(); |
@@ -25,8 +25,8 @@ |
||
| 25 | 25 | try { |
| 26 | 26 | $this->setQuoteWeight(); |
| 27 | 27 | $promise = $client->requestAsync('GET', 'http://201.48.198.97/calculador/CalcPrecoPrazo.aspx?' . http_build_query($this->buildRequest()))->then(function ($response) { |
| 28 | - $this->parseResult($response); |
|
| 29 | - }); |
|
| 28 | + $this->parseResult($response); |
|
| 29 | + }); |
|
| 30 | 30 | $promise->wait(); |
| 31 | 31 | } catch (RequestException $e) { |
| 32 | 32 | $this->result->status = 'ERROR'; |