Passed
Pull Request — master (#65)
by Teye
10:34 queued 06:15
created
src/Metadata/MetadataBuilder.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -85,11 +85,11 @@  discard block
 block discarded – undo
85 85
      * @throws \Exception
86 86
      */
87 87
     public function timeBoundary(
88
-        string|DataSourceInterface $dataSource,
89
-        null|string|TimeBound $bound = TimeBound::BOTH,
88
+        string | DataSourceInterface $dataSource,
89
+        null | string | TimeBound $bound = TimeBound::BOTH,
90 90
         ?Closure $filterBuilder = null,
91 91
         ?ContextInterface $context = null
92
-    ): DateTime|array {
92
+    ): DateTime | array {
93 93
 
94 94
         $query = [
95 95
             'queryType'  => 'timeBoundary',
@@ -301,8 +301,8 @@  discard block
 block discarded – undo
301 301
      */
302 302
     protected function getColumnsForInterval(
303 303
         string $dataSource,
304
-        DateTimeInterface|int|string $start,
305
-        DateTimeInterface|int|string|null $stop = null
304
+        DateTimeInterface | int | string $start,
305
+        DateTimeInterface | int | string | null $stop = null
306 306
     ): array {
307 307
         $response = $this->client->query($dataSource)
308 308
             ->interval($start, $stop)
@@ -343,8 +343,8 @@  discard block
 block discarded – undo
343 343
      */
344 344
     public function rowCount(
345 345
         string $dataSource,
346
-        DateTimeInterface|int|string $start,
347
-        DateTimeInterface|int|string|null $stop = null
346
+        DateTimeInterface | int | string $start,
347
+        DateTimeInterface | int | string | null $stop = null
348 348
     ): int {
349 349
         $response = $this->client->query($dataSource)
350 350
             ->interval($start, $stop)
@@ -439,7 +439,7 @@  discard block
 block discarded – undo
439 439
             $key = array_shift($keys);
440 440
             $dimensions = $structureData[$key]['metadata']['dimensions'] ?? '';
441 441
             $metrics    = $structureData[$key]['metadata']['metrics'] ?? '';
442
-        } while( (empty($dimensions) || empty($metrics)) && sizeof($keys) > 0 );
442
+        } while ((empty($dimensions) || empty($metrics)) && sizeof($keys) > 0);
443 443
 
444 444
         $dimensionFields = explode(',', $dimensions);
445 445
         $metricFields    = explode(',', $metrics);
Please login to merge, or discard this patch.