Skip to content

Commit

Permalink
Run php-cs-fixer
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanzweifel committed Nov 21, 2023
1 parent 9db3169 commit dfe0cfb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Renderer/Block/IndentedCodeRenderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@ public function render(Node $node, ChildNodeRendererInterface $childRenderer): s

$content = [];
foreach (explode("\n", $node->getLiteral()) as $line) {
if ($line === '') {
$content[] = null;
if ($line === '') {
$content[] = null;

continue;
}

Expand Down
1 change: 1 addition & 0 deletions src/Renderer/Block/ListItemRenderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ private function addBulletChar(ListData $listData, string $content): string
// The one character represents the bullet character.
$padding = $listData->padding > 0 ? $listData->padding - 1 : 1;
$padding = str_repeat(' ', $padding);

return "{$listData->bulletChar}{$padding}{$content}";
case ListBlock::TYPE_ORDERED:
switch ($listData->delimiter) {
Expand Down

0 comments on commit dfe0cfb

Please sign in to comment.