@@ -112,7 +112,7 @@ |
||
| 112 | 112 | $this->trimmedLine = \trim($this->trimmedLine, '|'); |
| 113 | 113 | |
| 114 | 114 | foreach (\explode('|', $this->trimmedLine) as $hdr) { |
| 115 | - $this->markup .= '<th>' . \trim($hdr) . "</th>\n"; |
|
| 115 | + $this->markup .= '<th>'.\trim($hdr)."</th>\n"; |
|
| 116 | 116 | } |
| 117 | 117 | |
| 118 | 118 | $this->markup .= "</tr>\n</thead>\n<tbody>\n"; |
@@ -191,7 +191,7 @@ discard block |
||
| 191 | 191 | $level = \strlen($this->trimmedLine) - \strlen(\ltrim($this->trimmedLine, '#')); |
| 192 | 192 | |
| 193 | 193 | if ($level < 7) { |
| 194 | - $this->markup .= "\n<h{$level}>" . \ltrim(\ltrim($this->trimmedLine, '# ')) . "</h{$level}>"; |
|
| 194 | + $this->markup .= "\n<h{$level}>".\ltrim(\ltrim($this->trimmedLine, '# '))."</h{$level}>"; |
|
| 195 | 195 | |
| 196 | 196 | return \true; |
| 197 | 197 | } |
@@ -218,7 +218,7 @@ discard block |
||
| 218 | 218 | |
| 219 | 219 | if ($codeBlock || (!$this->inList && !$this->inQuote && $isShifted)) { |
| 220 | 220 | $lang = isset($codeMatch[1]) |
| 221 | - ? ' class="language-' . $codeMatch[1] . '"' |
|
| 221 | + ? ' class="language-'.$codeMatch[1].'"' |
|
| 222 | 222 | : ''; |
| 223 | 223 | |
| 224 | 224 | $this->markup .= "\n<pre><code{$lang}>"; |
@@ -263,7 +263,7 @@ discard block |
||
| 263 | 263 | $this->listLevel++; |
| 264 | 264 | } |
| 265 | 265 | |
| 266 | - $this->markup .= '<li>' . \ltrim($this->trimmedLine, '+-*0123456789. '); |
|
| 266 | + $this->markup .= '<li>'.\ltrim($this->trimmedLine, '+-*0123456789. '); |
|
| 267 | 267 | |
| 268 | 268 | $this->listInternal(); |
| 269 | 269 | |
@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | { |
| 55 | 55 | $markup = $this->images($markup); |
| 56 | 56 | |
| 57 | - return \preg_replace_callback(static::RE_MD_URL, function ($a) { |
|
| 57 | + return \preg_replace_callback(static::RE_MD_URL, function($a) { |
|
| 58 | 58 | $title = isset($a[3]) ? " title={$a[3]} " : ''; |
| 59 | 59 | |
| 60 | 60 | return "<a href=\"{$a[2]}\"{$title}>{$a[1]}</a>"; |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | |
| 64 | 64 | protected function images($markup) |
| 65 | 65 | { |
| 66 | - return \preg_replace_callback(static::RE_MD_IMG, function ($img) { |
|
| 66 | + return \preg_replace_callback(static::RE_MD_IMG, function($img) { |
|
| 67 | 67 | $title = isset($img[3]) ? " title={$img[3]} " : ''; |
| 68 | 68 | $alt = $img[1] ? " alt=\"{$img[1]}\" " : ''; |
| 69 | 69 | |
@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | protected function spans($markup) |
| 75 | 75 | { |
| 76 | 76 | // em/code/strong/del |
| 77 | - return \preg_replace_callback(static::RE_MD_FONT, function ($em) { |
|
| 77 | + return \preg_replace_callback(static::RE_MD_FONT, function($em) { |
|
| 78 | 78 | switch (\substr($em[1], 0, 2)) { |
| 79 | 79 | case '**': |
| 80 | 80 | case '__': |