Code Duplication    Length = 8-8 lines in 2 locations

tests/Stub/SpellProviderStub.php 2 locations

@@ 10-17 (lines=8) @@
7
8
class SpellProviderStub implements SpellProvider, TestOnly
9
{
10
    public function checkWords($locale, $words)
11
    {
12
        if ($locale === 'en_NZ') {
13
            return ['collor', 'color', 'onee'];
14
        }
15
16
        return ['collor', 'colour', 'onee'];
17
    }
18
19
    public function getSuggestions($locale, $word)
20
    {
@@ 19-26 (lines=8) @@
16
        return ['collor', 'colour', 'onee'];
17
    }
18
19
    public function getSuggestions($locale, $word)
20
    {
21
        if ($locale === 'en_NZ') {
22
            return ['collar', 'colour'];
23
        }
24
25
        return ['collar', 'color'];
26
    }
27
}
28