| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 24 | public function checkString(string $input): array |
||
| 25 | { |
||
| 26 | $misspelledWords = []; |
||
| 27 | $results = $this->aspell->checkText(new StringSource($input), ['en_GB', 'en']); |
||
| 28 | // TODO: Something functional |
||
| 29 | foreach ($results as $result) { |
||
| 30 | $misspelledWords[] = $result->word; |
||
| 31 | } |
||
| 32 | return $misspelledWords; |
||
| 33 | } |
||
| 35 |