Passed
Pull Request — master (#115)
by Nuno
26:16 queued 21:41
created
src/Builder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
      */
103 103
     public function whereIn($field, array $values): self
104 104
     {
105
-        $wheres = array_map(function ($value) use ($field) {
105
+        $wheres = array_map(function($value) use ($field) {
106 106
             return "$field={$this->transform($value)}";
107 107
         }, array_values($values));
108 108
 
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
     {
125 125
         $callback = $this->callback;
126 126
 
127
-        $this->callback = function ($algolia, $query, $baseParameters) use ($parameters, $callback) {
127
+        $this->callback = function($algolia, $query, $baseParameters) use ($parameters, $callback) {
128 128
             $parameters = array_merge($parameters, $baseParameters);
129 129
 
130 130
             if (is_callable($callback)) {
Please login to merge, or discard this patch.
src/Engines/AlgoliaEngine.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -108,8 +108,8 @@
 block discarded – undo
108 108
     {
109 109
         $operators = ['<', '<=', '=', '!=', '>=', '>', ':'];
110 110
 
111
-        return collect($builder->wheres)->map(function ($value, $key) use ($operators) {
112
-            if (! is_array($value)) {
111
+        return collect($builder->wheres)->map(function($value, $key) use ($operators) {
112
+            if ( ! is_array($value)) {
113 113
                 if (ends_with($key, $operators) || starts_with($value, $operators)) {
114 114
                     return $key.' '.$value;
115 115
                 }
Please login to merge, or discard this patch.