Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
19 | 39 | protected function getCleanStringValue($key) |
|
20 | { |
||
21 | 39 | $d = new Decorator(); |
|
22 | 39 | $value = $this->get($key); |
|
23 | 39 | $string = $d->stripIgnoredCharacters($value); |
|
24 | |||
25 | 39 | if ($this->getStopwords()) { |
|
26 | 6 | return $d->stripStopwords($string, $this->getStopwords()); |
|
27 | } |
||
28 | |||
29 | 33 | return $string; |
|
30 | } |
||
31 | |||
47 |