@@ -173,7 +173,7 @@ discard block |
||
173 | 173 | protected function anchors() |
174 | 174 | { |
175 | 175 | // Images. |
176 | - $this->markup = preg_replace_callback(static::RE_MD_IMG, function ($img) { |
|
176 | + $this->markup = preg_replace_callback(static::RE_MD_IMG, function($img) { |
|
177 | 177 | $title = isset($img[3]) ? " title={$img[3]} " : ''; |
178 | 178 | $alt = $img[1] ? " alt=\"{$img[1]}\" " : ''; |
179 | 179 | |
@@ -181,7 +181,7 @@ discard block |
||
181 | 181 | }, $this->markup); |
182 | 182 | |
183 | 183 | // Anchors. |
184 | - $this->markup = preg_replace_callback(static::RE_MD_URL, function ($a) { |
|
184 | + $this->markup = preg_replace_callback(static::RE_MD_URL, function($a) { |
|
185 | 185 | $title = isset($a[3]) ? " title={$a[3]} " : ''; |
186 | 186 | |
187 | 187 | return "<a href=\"{$a[2]}\"{$title}>{$a[1]}</a>"; |
@@ -191,7 +191,7 @@ discard block |
||
191 | 191 | protected function spans() |
192 | 192 | { |
193 | 193 | // em/code/strong/del |
194 | - $this->markup = preg_replace_callback(static::RE_MD_FONT, function ($em) { |
|
194 | + $this->markup = preg_replace_callback(static::RE_MD_FONT, function($em) { |
|
195 | 195 | switch (substr($em[1], 0, 2)) { |
196 | 196 | case '**': |
197 | 197 | case '__': |
@@ -292,7 +292,7 @@ discard block |
||
292 | 292 | $level = strlen($this->trimmedLine) - strlen(ltrim($this->trimmedLine, '#')); |
293 | 293 | |
294 | 294 | if ($level < 7) { |
295 | - $this->markup .= "\n<h{$level}>" . ltrim(ltrim($this->trimmedLine, '# ')) . "</h{$level}>"; |
|
295 | + $this->markup .= "\n<h{$level}>".ltrim(ltrim($this->trimmedLine, '# '))."</h{$level}>"; |
|
296 | 296 | |
297 | 297 | return true; |
298 | 298 | } |
@@ -319,7 +319,7 @@ discard block |
||
319 | 319 | |
320 | 320 | if ($codeBlock || (!$this->inList && !$this->inQuote && $isShifted)) { |
321 | 321 | $lang = isset($codeMatch[1]) |
322 | - ? ' class="language-' . $codeMatch[1] . '"' |
|
322 | + ? ' class="language-'.$codeMatch[1].'"' |
|
323 | 323 | : ''; |
324 | 324 | |
325 | 325 | $this->markup .= "\n<pre><code{$lang}>"; |
@@ -382,7 +382,7 @@ discard block |
||
382 | 382 | ++$this->listLevel; |
383 | 383 | } |
384 | 384 | |
385 | - $this->markup .= '<li>' . ltrim($this->trimmedLine, '+-*0123456789. '); |
|
385 | + $this->markup .= '<li>'.ltrim($this->trimmedLine, '+-*0123456789. '); |
|
386 | 386 | |
387 | 387 | $this->listInternal(); |
388 | 388 | |
@@ -468,7 +468,7 @@ discard block |
||
468 | 468 | $this->trimmedLine = trim($this->trimmedLine, '|'); |
469 | 469 | |
470 | 470 | foreach (explode('|', $this->trimmedLine) as $hdr) { |
471 | - $this->markup .= '<th>' . trim($hdr) . "</th>\n"; |
|
471 | + $this->markup .= '<th>'.trim($hdr)."</th>\n"; |
|
472 | 472 | } |
473 | 473 | |
474 | 474 | $this->markup .= "</tr>\n</thead>\n<tbody>\n"; |