@@ -94,8 +94,8 @@ discard block |
||
94 | 94 | $this->headers = array_merge( |
95 | 95 | [ |
96 | 96 | PrestoHeaders::PRESTO_USER => $this->session->getUser(), |
97 | - 'User-Agent' => $this->session->getSource() . '/' . PrestoHeaders::VERSION, |
|
98 | - 'Authorization' => 'Basic ' . base64_encode($this->session->getUsername() . ':' . $this->session->getPassword()), |
|
97 | + 'User-Agent' => $this->session->getSource().'/'.PrestoHeaders::VERSION, |
|
98 | + 'Authorization' => 'Basic '.base64_encode($this->session->getUsername().':'.$this->session->getPassword()), |
|
99 | 99 | ], |
100 | 100 | $this->session->getHeader() |
101 | 101 | ); |
@@ -119,7 +119,7 @@ discard block |
||
119 | 119 | $sessions = []; |
120 | 120 | /** @var Property $property */ |
121 | 121 | foreach ($sessionProperty as $property) { |
122 | - $sessions[] = $property->getKey() . '=' . $property->getValue(); |
|
122 | + $sessions[] = $property->getKey().'='.$property->getValue(); |
|
123 | 123 | } |
124 | 124 | $request = $request->withAddedHeader( |
125 | 125 | PrestoHeaders::PRESTO_SESSION, |
@@ -131,7 +131,7 @@ discard block |
||
131 | 131 | $statements = []; |
132 | 132 | foreach ($preparedStatements as $preparedStatement) { |
133 | 133 | $statements[] = urlencode($preparedStatement->getKey()) |
134 | - . '=' . urlencode($preparedStatement->getValue()); |
|
134 | + . '='.urlencode($preparedStatement->getValue()); |
|
135 | 135 | } |
136 | 136 | $request = $request->withAddedHeader( |
137 | 137 | PrestoHeaders::PRESTO_PREPARED_STATEMENT, |
@@ -152,7 +152,7 @@ discard block |
||
152 | 152 | public function execute(int $timeout = 500000, bool $debug = false) |
153 | 153 | { |
154 | 154 | $normalize = UriNormalizer::normalize( |
155 | - new Uri($this->session->getHost() . StatementClient::STATEMENT_URI), |
|
155 | + new Uri($this->session->getHost().StatementClient::STATEMENT_URI), |
|
156 | 156 | UriNormalizer::REMOVE_DUPLICATE_SLASHES |
157 | 157 | ); |
158 | 158 | $request = new Request(RequestMethodInterface::METHOD_POST, $normalize, $this->headers); |
@@ -212,9 +212,9 @@ discard block |
||
212 | 212 | 'timeout' => $timeout, |
213 | 213 | 'debug' => $debug, |
214 | 214 | ]); |
215 | - $promise->then(function (ResponseInterface $response) { |
|
215 | + $promise->then(function(ResponseInterface $response) { |
|
216 | 216 | $this->fulfilled = (StatusCodeInterface::STATUS_NO_CONTENT === $response->getStatusCode()); |
217 | - }, function (RequestException $e) { |
|
217 | + }, function(RequestException $e) { |
|
218 | 218 | throw new RequestFailedException($e->getMessage(), $e->getCode(), $e); |
219 | 219 | }); |
220 | 220 | $promise->wait(); |