Completed
Push — master ( 1191a0...cc27d1 )
by yuuki
12s
created
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
 /**
5 5
  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
Please login to merge, or discard this patch.
src/StatementStats.php 1 patch
Spacing   +2 added lines, -2 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
 /**
5 5
  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
      */
91 91
     public function __construct(\stdClass $jsonContent)
92 92
     {
93
-        $arrayContent = (array)$jsonContent;
93
+        $arrayContent = (array) $jsonContent;
94 94
         foreach ($arrayContent as $element => $value) {
95 95
             if (property_exists($this, $element)) {
96 96
                 if (isset($this->primitiveCasts[$element])) {
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
 /**
5 5
  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
     {
94 94
         $this->headers = [
95 95
             PrestoHeaders::PRESTO_USER => $this->session->getUser(),
96
-            'User-Agent'               => $this->session->getSource() . '/' . PrestoHeaders::VERSION,
96
+            'User-Agent'               => $this->session->getSource().'/'.PrestoHeaders::VERSION,
97 97
         ];
98 98
     }
99 99
 
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
             $sessions = [];
116 116
             /** @var Property $property */
117 117
             foreach ($sessionProperty as $property) {
118
-                $sessions[] = $property->getKey() . '=' . $property->getValue();
118
+                $sessions[] = $property->getKey().'='.$property->getValue();
119 119
             }
120 120
             $request = $request->withAddedHeader(
121 121
                 PrestoHeaders::PRESTO_SESSION,
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
             $statements = [];
128 128
             foreach ($preparedStatements as $preparedStatement) {
129 129
                 $statements[] = urlencode($preparedStatement->getKey())
130
-                    . '=' . urlencode($preparedStatement->getValue());
130
+                    . '='.urlencode($preparedStatement->getValue());
131 131
             }
132 132
             $request = $request->withAddedHeader(
133 133
                 PrestoHeaders::PRESTO_PREPARED_STATEMENT,
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
     public function execute(int $timeout = 500000, bool $debug = false)
149 149
     {
150 150
         $normalize = UriNormalizer::normalize(
151
-            new Uri($this->session->getHost() . StatementClient::STATEMENT_URI),
151
+            new Uri($this->session->getHost().StatementClient::STATEMENT_URI),
152 152
             UriNormalizer::REMOVE_DUPLICATE_SLASHES
153 153
         );
154 154
         $request = new Request(RequestInterface::POST, $normalize, $this->headers);
@@ -231,9 +231,9 @@  discard block
 block discarded – undo
231 231
                 'timeout' => $timeout,
232 232
                 'debug'   => $debug,
233 233
             ]);
234
-            $promise->then(function (ResponseInterface $response) {
234
+            $promise->then(function(ResponseInterface $response) {
235 235
                 $this->fulfilled = (StatusCodeInterface::STATUS_NO_CONTENT === $response->getStatusCode());
236
-            }, function (RequestException $e) {
236
+            }, function(RequestException $e) {
237 237
                 throw new RequestFailedException($e->getMessage(), $e->getCode(), $e);
238 238
             });
239 239
             $promise->wait();
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
 /**
5 5
  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
Please login to merge, or discard this patch.
src/LoggerClient.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
 /**
5 5
  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
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
 /**
5 5
  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
Please login to merge, or discard this patch.
src/ClientSession.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
 /**
5 5
  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
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
 /**
5 5
  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
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
 /**
5 5
  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
Please login to merge, or discard this patch.