@@ -25,7 +25,7 @@ |
||
| 25 | 25 | /** |
| 26 | 26 | * Returns a list of inline parsers to add to the existing list. |
| 27 | 27 | * |
| 28 | - * @return \League\CommonMark\Inline\Parser\InlineParserInterface |
|
| 28 | + * @return EmojiParser[] |
|
| 29 | 29 | */ |
| 30 | 30 | public function getInlineParsers() |
| 31 | 31 | { |
@@ -42,7 +42,7 @@ |
||
| 42 | 42 | /** |
| 43 | 43 | * Get the characters that must be matched. |
| 44 | 44 | * |
| 45 | - * @return array |
|
| 45 | + * @return string[] |
|
| 46 | 46 | */ |
| 47 | 47 | public function getCharacters() |
| 48 | 48 | { |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | /** |
| 14 | 14 | * Returns a list of block parsers to add to the existing list. |
| 15 | 15 | * |
| 16 | - * @return \League\CommonMark\Block\Parser\AbstractBlockParser |
|
| 16 | + * @return TableParser[] |
|
| 17 | 17 | */ |
| 18 | 18 | public function getBlockParsers() |
| 19 | 19 | { |
@@ -37,7 +37,7 @@ |
||
| 37 | 37 | /** |
| 38 | 38 | * Returns a list of inline parsers to add to the existing list. |
| 39 | 39 | * |
| 40 | - * @return \League\CommonMark\Inline\Parser\InlineParserInterface |
|
| 40 | + * @return TaskListsParser[] |
|
| 41 | 41 | */ |
| 42 | 42 | public function getInlineParsers() |
| 43 | 43 | { |
@@ -10,7 +10,7 @@ |
||
| 10 | 10 | /** |
| 11 | 11 | * Get the characters that must be matched. |
| 12 | 12 | * |
| 13 | - * @return array |
|
| 13 | + * @return string[] |
|
| 14 | 14 | */ |
| 15 | 15 | public function getCharacters() |
| 16 | 16 | { |
@@ -21,7 +21,7 @@ discard block |
||
| 21 | 21 | public function render(AbstractBlock $block, ElementRendererInterface $htmlRenderer, $inTightList = false) |
| 22 | 22 | { |
| 23 | 23 | if (!($block instanceof Table)) { |
| 24 | - throw new \InvalidArgumentException('Incompatible block type: '.get_class($block)); |
|
| 24 | + throw new \InvalidArgumentException('Incompatible block type: ' . get_class($block)); |
|
| 25 | 25 | } |
| 26 | 26 | |
| 27 | 27 | $attrs = []; |
@@ -33,6 +33,6 @@ discard block |
||
| 33 | 33 | |
| 34 | 34 | $separator = $htmlRenderer->getOption('inner_separator', "\n"); |
| 35 | 35 | |
| 36 | - return new HtmlElement('table', $attrs, $separator.$htmlRenderer->renderBlocks($block->children()).$separator); |
|
| 36 | + return new HtmlElement('table', $attrs, $separator . $htmlRenderer->renderBlocks($block->children()) . $separator); |
|
| 37 | 37 | } |
| 38 | 38 | } |