Completed
Branch master (fdb74b)
by Philippe
12:18
created
src/MisspellingFinder.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
src/Source/Directory.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
     }
26 26
 
27 27
     /**
28
-     * @return Text[]
28
+     * @return \Generator
29 29
      */
30 30
     public function getContents(): iterable
31 31
     {
Please login to merge, or discard this patch.
src/SpellChecker/LanguageTool.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/Utils/CommandLine.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
src/Utils/ProcessRunnerTest.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,8 +2,8 @@
 block discarded – undo
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
Please login to merge, or discard this patch.