Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
Co-Authored-By: StyleCI Bot <[email protected]>
  • Loading branch information
caendesilva and StyleCIBot committed Dec 1, 2024
1 parent 3328e41 commit a2c420d
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ protected function parseHeadings(): array

foreach ($matches[0] as $index => $heading) {
$headingData = $this->parseHeadingData($heading, $matches, $index);

if ($headingData === null) {
continue;
}
Expand Down Expand Up @@ -76,7 +76,7 @@ protected function parseHeadingData(string $heading, array $matches, int $index)
if (str_starts_with($heading, '#')) {
return $this->parseAtxHeading($heading, $matches[1][$index]);
}

return $this->parseSetextHeading($matches[2][$index], $matches[3][$index]);
}

Expand All @@ -97,7 +97,7 @@ protected function parseAtxHeading(string $heading, string $title): array
protected function parseSetextHeading(string $title, string $marker): ?array
{
$level = $marker === '=' ? 1 : 2;

if ($level < $this->minHeadingLevel) {
return null;
}
Expand Down

0 comments on commit a2c420d

Please sign in to comment.