Passed
Branch refactor-markdown-helper (02b3eb)
by Caen
04:15
created
packages/framework/src/Facades/Includes.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
     {
26 26
         $path = static::path($filename);
27 27
 
28
-        if (! file_exists($path)) {
28
+        if (!file_exists($path)) {
29 29
             return $default;
30 30
         }
31 31
 
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
     {
38 38
         $path = static::path(basename($filename, '.md').'.md');
39 39
 
40
-        if (! file_exists($path)) {
40
+        if (!file_exists($path)) {
41 41
             return $default === null ? null : Markdown::parse($default);
42 42
         }
43 43
 
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
     {
50 50
         $path = static::path(basename($filename, '.blade.php').'.blade.php');
51 51
 
52
-        if (! file_exists($path)) {
52
+        if (!file_exists($path)) {
53 53
             return $default === null ? null : Blade::render($default);
54 54
         }
55 55
 
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
 
59 59
     protected static function needsDirectory(string $directory): void
60 60
     {
61
-        if (! file_exists($directory)) {
61
+        if (!file_exists($directory)) {
62 62
             mkdir($directory, recursive: true);
63 63
         }
64 64
     }
Please login to merge, or discard this patch.
packages/framework/src/Modules/Markdown/MarkdownServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
 {
9 9
     public function register(): void
10 10
     {
11
-        $this->app->singleton(MarkdownConverter::class, function () {
11
+        $this->app->singleton(MarkdownConverter::class, function() {
12 12
             return new MarkdownConverter();
13 13
         });
14 14
     }
Please login to merge, or discard this patch.
packages/framework/src/Modules/Markdown/ShortcodeProcessor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
 
50 50
     public function processInput(): static
51 51
     {
52
-        $this->output = implode("\n", array_map(function ($line) {
52
+        $this->output = implode("\n", array_map(function($line) {
53 53
             return $this->expandShortcode($line);
54 54
         }, explode("\n", $this->input)));
55 55
 
Please login to merge, or discard this patch.