Completed
Pull Request — master (#12)
by Adam
03:38
created
src/BestServedCold/LaravelZendSearch/Laravel/Index.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
     {
32 32
         foreach ($filters as $filter => $switch) {
33 33
             if ($switch !== false) {
34
-                if ($filter === 'StopWords' && ! is_array($switch)) {
34
+                if ($filter === 'StopWords' && !is_array($switch)) {
35 35
                     Filter::addStopWordFilter($switch === true ? 'en' : $switch, $filesystem);
36 36
                 } else {
37 37
                     Filter::addFilter($filter, $switch === true ? [] : [$switch]);
Please login to merge, or discard this patch.
src/BestServedCold/LaravelZendSearch/Laravel/Filter.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -22,13 +22,13 @@
 block discarded – undo
22 22
         self::addFilter(
23 23
             'StopWords',
24 24
             $filesystem->getRequire(
25
-                __DIR__ .
26
-                DIRECTORY_SEPARATOR .
27
-                'Filter' .
28
-                DIRECTORY_SEPARATOR .
29
-                'StopWord' .
30
-                DIRECTORY_SEPARATOR .
31
-                $language .
25
+                __DIR__.
26
+                DIRECTORY_SEPARATOR.
27
+                'Filter'.
28
+                DIRECTORY_SEPARATOR.
29
+                'StopWord'.
30
+                DIRECTORY_SEPARATOR.
31
+                $language.
32 32
                 '.php'
33 33
             )
34 34
         );
Please login to merge, or discard this patch.
src/BestServedCold/LaravelZendSearch/Lucene/Filter/Factory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -35,9 +35,9 @@
 block discarded – undo
35 35
      */
36 36
     private static function supportedException($filter, array $supportedFilters)
37 37
     {
38
-        if ( ! array_key_exists($filter, $supportedFilters)) {
38
+        if (!array_key_exists($filter, $supportedFilters)) {
39 39
             throw new \InvalidArgumentException(
40
-                'Filter [' . $filter . '] is not supported by [' . self::class . ']'
40
+                'Filter ['.$filter.'] is not supported by ['.self::class.']'
41 41
             );
42 42
         }
43 43
     }
Please login to merge, or discard this patch.
src/BestServedCold/LaravelZendSearch/Lucene/Filter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
             self::$analyzer = new CaseInsensitive;
61 61
         }
62 62
 
63
-        if (! in_array($filter, self::$filters )) {
63
+        if (!in_array($filter, self::$filters)) {
64 64
             self::$analyzer->addFilter(Factory::getFilter($filter, $option));
65 65
             self::$filters[] = $filter;
66 66
         }
Please login to merge, or discard this patch.