Completed
Push — master ( 014ef2...b75251 )
by yuuki
05:01
created
src/StatementStats.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@
 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   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -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(RequestMethodInterface::METHOD_POST, $normalize, $this->headers);
@@ -208,9 +208,9 @@  discard block
 block discarded – undo
208 208
                 'timeout' => $timeout,
209 209
                 'debug'   => $debug,
210 210
             ]);
211
-            $promise->then(function (ResponseInterface $response) {
211
+            $promise->then(function(ResponseInterface $response) {
212 212
                 $this->fulfilled = (StatusCodeInterface::STATUS_NO_CONTENT === $response->getStatusCode());
213
-            }, function (RequestException $e) {
213
+            }, function(RequestException $e) {
214 214
                 throw new RequestFailedException($e->getMessage(), $e->getCode(), $e);
215 215
             });
216 216
             $promise->wait();
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
@@ -136,7 +136,7 @@
 block discarded – undo
136 136
         if (!count($this->data)) {
137 137
             yield;
138 138
         }
139
-        $columns = array_map(function (Column $item) {
139
+        $columns = array_map(function(Column $item) {
140 140
             return $item->getName();
141 141
         }, $this->getColumns());
142 142
         foreach ($this->data as $data) {
Please login to merge, or discard this patch.