Completed
Pull Request — master (#455)
by Graham
02:19
created
src/Extension/SmartPunct/QuoteParser.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@
 block discarded – undo
80 80
      * @param string $charBefore
81 81
      * @param string $charAfter
82 82
      *
83
-     * @return bool[]
83
+     * @return boolean[]
84 84
      */
85 85
     private function determineFlanking(string $charBefore, string $charAfter)
86 86
     {
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,8 +15,8 @@
 block discarded – undo
15 15
 namespace League\CommonMark\Extension\SmartPunct;
16 16
 
17 17
 use League\CommonMark\Delimiter\Delimiter;
18
-use League\CommonMark\Parser\Inline\InlineParserInterface;
19 18
 use League\CommonMark\Parser\InlineParserContext;
19
+use League\CommonMark\Parser\Inline\InlineParserInterface;
20 20
 use League\CommonMark\Util\RegexHelper;
21 21
 
22 22
 final class QuoteParser implements InlineParserInterface
Please login to merge, or discard this patch.
src/Util/ArrayCollection.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
     }
45 45
 
46 46
     /**
47
-     * @return mixed|false
47
+     * @return string
48 48
      *
49 49
      * @phpstan-return TValue|false
50 50
      */
Please login to merge, or discard this patch.
src/Input/MarkdownInputInterface.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
     public function getContent(): string;
17 17
 
18 18
     /**
19
-     * @return iterable<int, string>
19
+     * @return \Generator string>
20 20
      */
21 21
     public function getLines(): iterable;
22 22
 
Please login to merge, or discard this patch.
src/Environment/EnvironmentInterface.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
     public function getConfig($key = null, $default = null);
34 34
 
35 35
     /**
36
-     * @return iterable<BlockParserInterface>
36
+     * @return \ArrayIterator|null
37 37
      */
38 38
     public function getBlockParsers(): iterable;
39 39
 
Please login to merge, or discard this patch.
src/Extension/CommonMark/Parser/Inline/CloseBracketParser.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,8 +22,8 @@
 block discarded – undo
22 22
 use League\CommonMark\Extension\CommonMark\Node\Inline\Link;
23 23
 use League\CommonMark\Node\Inline\AdjacentTextMerger;
24 24
 use League\CommonMark\Parser\Cursor;
25
-use League\CommonMark\Parser\Inline\InlineParserInterface;
26 25
 use League\CommonMark\Parser\InlineParserContext;
26
+use League\CommonMark\Parser\Inline\InlineParserInterface;
27 27
 use League\CommonMark\Reference\ReferenceInterface;
28 28
 use League\CommonMark\Reference\ReferenceMapInterface;
29 29
 use League\CommonMark\Util\LinkParserHelper;
Please login to merge, or discard this patch.
src/Extension/TableOfContents/TableOfContentsBuilder.php 1 patch
Unused Use Statements   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -13,20 +13,20 @@
 block discarded – undo
13 13
 
14 14
 use League\CommonMark\Configuration\ConfigurationAwareInterface;
15 15
 use League\CommonMark\Configuration\ConfigurationInterface;
16
+use League\CommonMark\Event\DocumentParsedEvent;
17
+use League\CommonMark\Exception\InvalidOptionException;
16 18
 use League\CommonMark\Extension\CommonMark\Node\Block\Heading;
17 19
 use League\CommonMark\Extension\CommonMark\Node\Block\ListBlock;
18 20
 use League\CommonMark\Extension\CommonMark\Node\Block\ListData;
19 21
 use League\CommonMark\Extension\CommonMark\Node\Block\ListItem;
20 22
 use League\CommonMark\Extension\CommonMark\Node\Inline\Link;
21
-use League\CommonMark\Node\Block\Document;
22
-use League\CommonMark\Node\Block\Paragraph;
23
-use League\CommonMark\Event\DocumentParsedEvent;
24
-use League\CommonMark\Exception\InvalidOptionException;
25 23
 use League\CommonMark\Extension\HeadingPermalink\HeadingPermalink;
26 24
 use League\CommonMark\Extension\TableOfContents\Normalizer\AsIsNormalizerStrategy;
27 25
 use League\CommonMark\Extension\TableOfContents\Normalizer\FlatNormalizerStrategy;
28 26
 use League\CommonMark\Extension\TableOfContents\Normalizer\NormalizerStrategyInterface;
29 27
 use League\CommonMark\Extension\TableOfContents\Normalizer\RelativeNormalizerStrategy;
28
+use League\CommonMark\Node\Block\Document;
29
+use League\CommonMark\Node\Block\Paragraph;
30 30
 
31 31
 final class TableOfContentsBuilder implements ConfigurationAwareInterface
32 32
 {
Please login to merge, or discard this patch.
src/Parser/InlineParserEngine.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -149,7 +149,7 @@
 block discarded – undo
149 149
      * @param string                      $character
150 150
      * @param DelimiterProcessorInterface $delimiterProcessor
151 151
      *
152
-     * @return bool[]
152
+     * @return boolean[]
153 153
      */
154 154
     private static function determineCanOpenOrClose(string $charBefore, string $charAfter, string $character, DelimiterProcessorInterface $delimiterProcessor)
155 155
     {
Please login to merge, or discard this patch.