Completed
Push — master ( 18b606...1191a0 )
by yuuki
04:00
created
src/FixData.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Ytake\PrestoClient;
5 5
 
Please login to merge, or discard this patch.
src/QueryResult.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Ytake\PrestoClient;
5 5
 
Please login to merge, or discard this patch.
src/StatementClient.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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();
Please login to merge, or discard this patch.
src/Column.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Ytake\PrestoClient;
5 5
 
Please login to merge, or discard this patch.
src/PrestoHeaders.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Ytake\PrestoClient;
5 5
 
Please login to merge, or discard this patch.
src/Exception/QueryErrorException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Ytake\PrestoClient\Exception;
5 5
 
Please login to merge, or discard this patch.
src/Exception/RequestFailedException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Ytake\PrestoClient\Exception;
5 5
 
Please login to merge, or discard this patch.
src/ResultsSession.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Ytake\PrestoClient;
5 5
 
Please login to merge, or discard this patch.
src/QueryError.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Ytake\PrestoClient;
5 5
 
Please login to merge, or discard this patch.