Conditions | 5 |
Paths | 2 |
Total Lines | 8 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 5 |
Changes | 0 |
1 | <?php |
||
42 | 21 | private function handleFilter($switch, $filter, Filesystem $filesystem) |
|
43 | { |
||
44 | 21 | if ($filter === 'StopWords' && ! is_array($switch)) { |
|
45 | 21 | Filter::addStopWordFilter($switch === true ? 'en' : $switch, $filesystem); |
|
46 | 21 | } else { |
|
47 | 21 | Filter::addFilter($filter, $switch === true ? [] : [$switch]); |
|
48 | } |
||
49 | 21 | } |
|
50 | } |
||
51 |