Completed
Pull Request — master (#38)
by
unknown
08:30
created
src/TNTSearchScoutServiceProvider.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -36,6 +36,9 @@
 block discarded – undo
36 36
         }
37 37
     }
38 38
 
39
+    /**
40
+     * @param TNTSearch $tnt
41
+     */
39 42
     private function setFuzziness($tnt)
40 43
     {
41 44
         $prefix_length = config('scout.tntsearch.fuzzy.prefix_length');
Please login to merge, or discard this patch.
src/Engines/TNTSearchEngine.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -154,13 +154,13 @@
 block discarded – undo
154 154
             $model->getKeyName(), $keys
155 155
         )->get()->keyBy($model->getKeyName());
156 156
 
157
-	    return collect($results['ids'])->map(function ($hit) use ($models) {
158
-		    if ($models->has($hit)) {
159
-			    return $models[$hit];
160
-		    }
161
-	    })->filter(function ($value) {
162
-		    return (!is_null($value));
163
-	    });
157
+        return collect($results['ids'])->map(function ($hit) use ($models) {
158
+            if ($models->has($hit)) {
159
+                return $models[$hit];
160
+            }
161
+        })->filter(function ($value) {
162
+            return (!is_null($value));
163
+        });
164 164
     }
165 165
 
166 166
     /**
Please login to merge, or discard this patch.