Completed
Push — master ( b75251...677fef )
by yuuki
12s queued 10s
created
src/StatementClient.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
         $this->headers = array_merge(
95 95
             [
96 96
                 PrestoHeaders::PRESTO_USER => $this->session->getUser(),
97
-                'User-Agent'               => $this->session->getSource() . '/' . PrestoHeaders::VERSION
97
+                'User-Agent'               => $this->session->getSource().'/'.PrestoHeaders::VERSION
98 98
             ],
99 99
             $this->session->getHeader()
100 100
         );
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
             $sessions = [];
119 119
             /** @var Property $property */
120 120
             foreach ($sessionProperty as $property) {
121
-                $sessions[] = $property->getKey() . '=' . $property->getValue();
121
+                $sessions[] = $property->getKey().'='.$property->getValue();
122 122
             }
123 123
             $request = $request->withAddedHeader(
124 124
                 PrestoHeaders::PRESTO_SESSION,
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
             $statements = [];
131 131
             foreach ($preparedStatements as $preparedStatement) {
132 132
                 $statements[] = urlencode($preparedStatement->getKey())
133
-                    . '=' . urlencode($preparedStatement->getValue());
133
+                    . '='.urlencode($preparedStatement->getValue());
134 134
             }
135 135
             $request = $request->withAddedHeader(
136 136
                 PrestoHeaders::PRESTO_PREPARED_STATEMENT,
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
     public function execute(int $timeout = 500000, bool $debug = false)
152 152
     {
153 153
         $normalize = UriNormalizer::normalize(
154
-            new Uri($this->session->getHost() . StatementClient::STATEMENT_URI),
154
+            new Uri($this->session->getHost().StatementClient::STATEMENT_URI),
155 155
             UriNormalizer::REMOVE_DUPLICATE_SLASHES
156 156
         );
157 157
         $request = new Request(RequestMethodInterface::METHOD_POST, $normalize, $this->headers);
@@ -211,9 +211,9 @@  discard block
 block discarded – undo
211 211
                 'timeout' => $timeout,
212 212
                 'debug'   => $debug,
213 213
             ]);
214
-            $promise->then(function (ResponseInterface $response) {
214
+            $promise->then(function(ResponseInterface $response) {
215 215
                 $this->fulfilled = (StatusCodeInterface::STATUS_NO_CONTENT === $response->getStatusCode());
216
-            }, function (RequestException $e) {
216
+            }, function(RequestException $e) {
217 217
                 throw new RequestFailedException($e->getMessage(), $e->getCode(), $e);
218 218
             });
219 219
             $promise->wait();
Please login to merge, or discard this patch.