Passed
Push — master ( 43e152...3c8c2e )
by Christopher
01:43
created
src/Model/SearchResult.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -32,12 +32,12 @@
 block discarded – undo
32 32
      */
33 33
     public function __construct(array $result)
34 34
     {
35
-        $this->took = (int)array_get($result, 'took');
36
-        $this->timedOut = (bool)array_get($result, 'timed_out');
37
-        $this->shards = (array)array_get($result, '_shards');
35
+        $this->took = (int) array_get($result, 'took');
36
+        $this->timedOut = (bool) array_get($result, 'timed_out');
37
+        $this->shards = (array) array_get($result, '_shards');
38 38
         $this->hits = new Collection(array_get($result, 'hits.hits'));
39
-        $this->totalHits = (int)array_get($result, 'hits.total');
40
-        $this->maxScore = (float)array_get($result, 'hits.max_score');
39
+        $this->totalHits = (int) array_get($result, 'hits.total');
40
+        $this->maxScore = (float) array_get($result, 'hits.max_score');
41 41
         $this->aggregation = array_get($result, 'aggregations', null);
42 42
     }
43 43
     
Please login to merge, or discard this patch.
src/Dsl/AbstractSearch.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -134,8 +134,7 @@
 block discarded – undo
134 134
     protected function initMetricStartTime(): ?float
135 135
     {
136 136
         return config('laravel-elasticsearch-dsl.metrics.enabled', false) ?
137
-            microtime(true) :
138
-            null;
137
+            microtime(true) : null;
139 138
     }
140 139
     
141 140
     /**
Please login to merge, or discard this patch.