@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | /** |
43 | 43 | * @param string|SourceInterface $source |
44 | 44 | * |
45 | - * @return MisspellingInterface[] |
|
45 | + * @return \Generator |
|
46 | 46 | */ |
47 | 47 | public function find( |
48 | 48 | $source, |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | /** |
63 | 63 | * @param string|SourceInterface $source |
64 | 64 | * |
65 | - * @return MisspellingInterface[] |
|
65 | + * @return \Generator |
|
66 | 66 | */ |
67 | 67 | private function doSpellCheck($source, array $languages, array $context, string $spellCheckEncoding): iterable |
68 | 68 | { |
@@ -25,7 +25,7 @@ |
||
25 | 25 | } |
26 | 26 | |
27 | 27 | /** |
28 | - * @return Text[] |
|
28 | + * @return \Generator |
|
29 | 29 | */ |
30 | 30 | public function getContents(): iterable |
31 | 31 | { |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | } |
24 | 24 | |
25 | 25 | /** |
26 | - * @return Misspelling[] |
|
26 | + * @return \Generator |
|
27 | 27 | */ |
28 | 28 | public function check( |
29 | 29 | string $text, |
@@ -91,6 +91,9 @@ discard block |
||
91 | 91 | return [$offsetFromLine, $line]; |
92 | 92 | } |
93 | 93 | |
94 | + /** |
|
95 | + * @param string $encoding |
|
96 | + */ |
|
94 | 97 | private function getLineBreaksOffset(string $text, ?string $encoding): array |
95 | 98 | { |
96 | 99 | $start = 0; |
@@ -43,7 +43,7 @@ |
||
43 | 43 | } |
44 | 44 | |
45 | 45 | /** |
46 | - * @param string[] $args |
|
46 | + * @param string[] $argsToAdd |
|
47 | 47 | */ |
48 | 48 | public function addArgs(iterable $argsToAdd): self |
49 | 49 | { |
@@ -2,8 +2,8 @@ |
||
2 | 2 | |
3 | 3 | namespace PhpSpellCheck\Utils; |
4 | 4 | |
5 | -use PhpSpellCheck\Exception\ProcessFailedException; |
|
6 | 5 | use PHPUnit\Framework\TestCase; |
6 | +use PhpSpellCheck\Exception\ProcessFailedException; |
|
7 | 7 | use Symfony\Component\Process\Process; |
8 | 8 | |
9 | 9 | class ProcessRunnerTest extends TestCase |