Completed
Pull Request — master (#12)
by Adam
03:18
created
src/BestServedCold/LaravelZendSearch/Lucene/Search.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -187,7 +187,7 @@  discard block
 block discarded – undo
187 187
      * Provides an exact pattern match.
188 188
      *
189 189
      * @param  $string
190
-     * @param  null $field
190
+     * @param  string $field
191 191
      * @return $this
192 192
      */
193 193
     public function match($string, $field = null)
@@ -277,7 +277,7 @@  discard block
 block discarded – undo
277 277
     }
278 278
 
279 279
     /**
280
-     * @return mixed
280
+     * @return boolean
281 281
      */
282 282
     public static function getLastQuery()
283 283
     {
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace BestServedCold\LaravelZendSearch\Lucene;
4 4
 
5
-use ZendSearch\Lucene\Analysis\TokenFilter\StopWords;
6 5
 use ZendSearch\Lucene\Index\Term;
7 6
 use ZendSearch\Lucene\Search\Query\Fuzzy;
8 7
 use ZendSearch\Lucene\Search\Query\MultiTerm;
Please login to merge, or discard this patch.
src/BestServedCold/LaravelZendSearch/Laravel/Index.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
      */
42 42
     private function handleFilter($switch, $filter, Filesystem $filesystem)
43 43
     {
44
-        if ($filter === 'StopWords' && ! is_array($switch)) {
44
+        if ($filter === 'StopWords' && !is_array($switch)) {
45 45
             Filter::addStopWordFilter($switch === true ? 'en' : $switch, $filesystem);
46 46
         } else {
47 47
             Filter::addFilter($filter, $switch === true ? [] : [$switch]);
Please login to merge, or discard this patch.