@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Ytake\PrestoClient; |
5 | 5 |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Ytake\PrestoClient; |
5 | 5 |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Ytake\PrestoClient; |
5 | 5 | |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | { |
78 | 78 | $this->headers = [ |
79 | 79 | PrestoHeaders::PRESTO_USER => $this->session->getUser(), |
80 | - 'User-Agent' => $this->session->getSource() . '/' . PrestoHeaders::VERSION, |
|
80 | + 'User-Agent' => $this->session->getSource().'/'.PrestoHeaders::VERSION, |
|
81 | 81 | ]; |
82 | 82 | } |
83 | 83 | |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | $sessions = []; |
99 | 99 | /** @var Property $property */ |
100 | 100 | foreach ($sessionProperty as $property) { |
101 | - $sessions[] = $property->getKey() . '=' . $property->getValue(); |
|
101 | + $sessions[] = $property->getKey().'='.$property->getValue(); |
|
102 | 102 | } |
103 | 103 | $request = $request->withAddedHeader( |
104 | 104 | PrestoHeaders::PRESTO_SESSION, |
@@ -109,7 +109,7 @@ discard block |
||
109 | 109 | if (count($preparedStatements)) { |
110 | 110 | $statements = []; |
111 | 111 | foreach ($preparedStatements as $preparedStatement) { |
112 | - $statements[] = urlencode($preparedStatement->getKey()) . '=' . urlencode($preparedStatement->getValue()); |
|
112 | + $statements[] = urlencode($preparedStatement->getKey()).'='.urlencode($preparedStatement->getValue()); |
|
113 | 113 | } |
114 | 114 | $request = $request->withAddedHeader( |
115 | 115 | PrestoHeaders::PRESTO_PREPARED_STATEMENT, |
@@ -130,7 +130,7 @@ discard block |
||
130 | 130 | public function execute(int $timeout = 500000, bool $debug = false) |
131 | 131 | { |
132 | 132 | $normalize = UriNormalizer::normalize( |
133 | - new Uri($this->session->getHost() . StatementClient::STATEMENT_URI), |
|
133 | + new Uri($this->session->getHost().StatementClient::STATEMENT_URI), |
|
134 | 134 | UriNormalizer::REMOVE_DUPLICATE_SLASHES |
135 | 135 | ); |
136 | 136 | $request = new Request(RequestInterface::POST, $normalize, $this->headers); |
@@ -213,9 +213,9 @@ discard block |
||
213 | 213 | 'timeout' => $timeout, |
214 | 214 | 'debug' => $debug, |
215 | 215 | ]); |
216 | - $promise->then(function (ResponseInterface $response) { |
|
216 | + $promise->then(function(ResponseInterface $response) { |
|
217 | 217 | $this->fulfilled = (StatusCodeInterface::STATUS_NO_CONTENT === $response->getStatusCode()); |
218 | - }, function (RequestException $e) { |
|
218 | + }, function(RequestException $e) { |
|
219 | 219 | throw new RequestFailedException($e->getMessage(), $e->getCode(), $e); |
220 | 220 | }); |
221 | 221 | $promise->wait(); |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Ytake\PrestoClient; |
5 | 5 |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Ytake\PrestoClient; |
5 | 5 |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Ytake\PrestoClient\Exception; |
5 | 5 |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Ytake\PrestoClient\Exception; |
5 | 5 |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Ytake\PrestoClient; |
5 | 5 |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Ytake\PrestoClient; |
5 | 5 |