Completed
Push — 1.5 ( 45d47d...375e4c )
by Colin
01:23
created
src/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/SmartPunct/QuoteParser.php 2 patches
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\Inline\Parser\InlineParserInterface;
19 18
 use League\CommonMark\InlineParserContext;
19
+use League\CommonMark\Inline\Parser\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.
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.
src/Inline/Parser/CloseBracketParser.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,11 +18,11 @@
 block discarded – undo
18 18
 use League\CommonMark\Delimiter\DelimiterInterface;
19 19
 use League\CommonMark\EnvironmentAwareInterface;
20 20
 use League\CommonMark\EnvironmentInterface;
21
+use League\CommonMark\InlineParserContext;
21 22
 use League\CommonMark\Inline\AdjacentTextMerger;
22 23
 use League\CommonMark\Inline\Element\AbstractWebResource;
23 24
 use League\CommonMark\Inline\Element\Image;
24 25
 use League\CommonMark\Inline\Element\Link;
25
-use League\CommonMark\InlineParserContext;
26 26
 use League\CommonMark\Reference\ReferenceInterface;
27 27
 use League\CommonMark\Reference\ReferenceMapInterface;
28 28
 use League\CommonMark\Util\LinkParserHelper;
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/Extension/TableOfContents/TableOfContentsGeneratorInterface.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -16,6 +16,9 @@
 block discarded – undo
16 16
 
17 17
 interface TableOfContentsGeneratorInterface
18 18
 {
19
+    /**
20
+     * @return null|TableOfContents
21
+     */
19 22
     public function generate(Document $document): ?TableOfContents;
20 23
 }
21 24
 
Please login to merge, or discard this patch.
src/Extension/Autolink/InlineMentionParser.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,9 +12,9 @@
 block discarded – undo
12 12
 namespace League\CommonMark\Extension\Autolink;
13 13
 
14 14
 use League\CommonMark\Extension\Mention\MentionParser;
15
+use League\CommonMark\InlineParserContext;
15 16
 use League\CommonMark\Inline\Element\Link;
16 17
 use League\CommonMark\Inline\Parser\InlineParserInterface;
17
-use League\CommonMark\InlineParserContext;
18 18
 
19 19
 @trigger_error(sprintf('%s is deprecated; use %s instead', InlineMentionParser::class, MentionParser::class), E_USER_DEPRECATED);
20 20
 
Please login to merge, or discard this patch.
src/Extension/Attributes/Event/AttributesListener.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -114,6 +114,9 @@  discard block
 block discarded – undo
114 114
         return [$target, $direction];
115 115
     }
116 116
 
117
+    /**
118
+     * @param Node $node
119
+     */
117 120
     private static function getPrevious(?Node $node = null): ?Node
118 121
     {
119 122
         $previous = $node instanceof Node ? $node->previous() : null;
@@ -125,6 +128,9 @@  discard block
 block discarded – undo
125 128
         return $previous;
126 129
     }
127 130
 
131
+    /**
132
+     * @param Node $node
133
+     */
128 134
     private static function getNext(?Node $node = null): ?Node
129 135
     {
130 136
         $next = $node instanceof Node ? $node->next() : null;
Please login to merge, or discard this patch.