@@ -4,7 +4,7 @@ discard block |
||
| 4 | 4 | * For the full copyright and license information, please view the LICENSE |
| 5 | 5 | * file that was distributed with this source code. |
| 6 | 6 | */ |
| 7 | -declare(strict_types=1); |
|
| 7 | +declare(strict_types = 1); |
|
| 8 | 8 | |
| 9 | 9 | namespace App\Services\ContentRenderer\Support; |
| 10 | 10 | |
@@ -30,15 +30,15 @@ discard block |
||
| 30 | 30 | */ |
| 31 | 31 | protected function normalizeHeaders(): \Closure |
| 32 | 32 | { |
| 33 | - return function (string $body) { |
|
| 34 | - return preg_replace_callback('/^(#+)\s+(.*?)\s*$/mius', function (array $matches) { |
|
| 33 | + return function(string $body) { |
|
| 34 | + return preg_replace_callback('/^(#+)\s+(.*?)\s*$/mius', function(array $matches) { |
|
| 35 | 35 | [$body, $level, $title] = $matches; |
| 36 | 36 | |
| 37 | 37 | $size = $this->tags[ |
| 38 | 38 | max(1, min(6, strlen($level))) |
| 39 | 39 | ]; |
| 40 | 40 | |
| 41 | - return str_repeat('#', $size) . ' ' . $title; |
|
| 41 | + return str_repeat('#', $size).' '.$title; |
|
| 42 | 42 | }, $body); |
| 43 | 43 | }; |
| 44 | 44 | } |