@@ -166,7 +166,7 @@ discard block |
||
| 166 | 166 | protected function anchors() |
| 167 | 167 | { |
| 168 | 168 | // Images. |
| 169 | - $this->markup = preg_replace_callback(static::RE_MD_IMG, function ($img) { |
|
| 169 | + $this->markup = preg_replace_callback(static::RE_MD_IMG, function($img) { |
|
| 170 | 170 | $title = isset($img[3]) ? " title={$img[3]} " : ''; |
| 171 | 171 | $alt = $img[1] ? " alt=\"{$img[1]}\" " : ''; |
| 172 | 172 | |
@@ -174,7 +174,7 @@ discard block |
||
| 174 | 174 | }, $this->markup); |
| 175 | 175 | |
| 176 | 176 | // Anchors. |
| 177 | - $this->markup = preg_replace_callback(static::RE_MD_URL, function ($a) { |
|
| 177 | + $this->markup = preg_replace_callback(static::RE_MD_URL, function($a) { |
|
| 178 | 178 | $title = isset($a[3]) ? " title={$a[3]} " : ''; |
| 179 | 179 | |
| 180 | 180 | return "<a href=\"{$a[2]}\"{$title}>{$a[1]}</a>"; |
@@ -185,7 +185,7 @@ discard block |
||
| 185 | 185 | protected function spans() |
| 186 | 186 | { |
| 187 | 187 | // em/code/strong/del |
| 188 | - $this->markup = preg_replace_callback(static::RE_MD_FONT, function ($em) { |
|
| 188 | + $this->markup = preg_replace_callback(static::RE_MD_FONT, function($em) { |
|
| 189 | 189 | switch (substr($em[1], 0, 2)) { |
| 190 | 190 | case '**': |
| 191 | 191 | case '__': |
@@ -286,7 +286,7 @@ discard block |
||
| 286 | 286 | $level = strlen($this->trimmedLine) - strlen(ltrim($this->trimmedLine, '#')); |
| 287 | 287 | |
| 288 | 288 | if ($level < 7) { |
| 289 | - $this->markup .= "\n<h{$level}>" . ltrim(ltrim($this->trimmedLine, '# ')) . "</h{$level}>"; |
|
| 289 | + $this->markup .= "\n<h{$level}>".ltrim(ltrim($this->trimmedLine, '# '))."</h{$level}>"; |
|
| 290 | 290 | |
| 291 | 291 | return true; |
| 292 | 292 | } |
@@ -312,7 +312,7 @@ discard block |
||
| 312 | 312 | |
| 313 | 313 | if ($codeBlock || (empty($this->inList) && empty($this->inQuote) && $this->indent >= 4)) { |
| 314 | 314 | $lang = isset($codeMatch[1]) |
| 315 | - ? ' class="language-' . $codeMatch[1] . '"' |
|
| 315 | + ? ' class="language-'.$codeMatch[1].'"' |
|
| 316 | 316 | : ''; |
| 317 | 317 | |
| 318 | 318 | $this->markup .= "\n<pre><code{$lang}>"; |
@@ -417,7 +417,7 @@ discard block |
||
| 417 | 417 | $this->trimmedLine = trim($this->trimmedLine, '|'); |
| 418 | 418 | |
| 419 | 419 | foreach (explode('|', $this->trimmedLine) as $hdr) { |
| 420 | - $this->markup .= '<th>' . trim($hdr) . "</th>\n"; |
|
| 420 | + $this->markup .= '<th>'.trim($hdr)."</th>\n"; |
|
| 421 | 421 | } |
| 422 | 422 | |
| 423 | 423 | $this->markup .= "</tr>\n</thead>\n<tbody>\n"; |