@@ -31,7 +31,7 @@ |
||
| 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]); |
@@ -22,13 +22,13 @@ |
||
| 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 | ); |
@@ -35,9 +35,9 @@ |
||
| 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 | } |
@@ -60,7 +60,7 @@ |
||
| 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 | } |