@@ -85,7 +85,7 @@ |
||
85 | 85 | { |
86 | 86 | Hyde::touch(('_pages/foo.md')); |
87 | 87 | $this->assertEquals( |
88 | - collect([tap(new MarkdownPage('foo'), function ($page) { |
|
88 | + collect([tap(new MarkdownPage('foo'), function($page) { |
|
89 | 89 | $page->title = 'Foo'; |
90 | 90 | })]), |
91 | 91 | MarkdownPage::all() |
@@ -24,7 +24,7 @@ discard block |
||
24 | 24 | { |
25 | 25 | $path = static::path($filename); |
26 | 26 | |
27 | - if (! file_exists($path)) { |
|
27 | + if (!file_exists($path)) { |
|
28 | 28 | return $default; |
29 | 29 | } |
30 | 30 | |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | { |
37 | 37 | $path = static::path(basename($filename, '.md').'.md'); |
38 | 38 | |
39 | - if (! file_exists($path)) { |
|
39 | + if (!file_exists($path)) { |
|
40 | 40 | return $default === null ? null : Markdown::render($default); |
41 | 41 | } |
42 | 42 | |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | { |
49 | 49 | $path = static::path(basename($filename, '.blade.php').'.blade.php'); |
50 | 50 | |
51 | - if (! file_exists($path)) { |
|
51 | + if (!file_exists($path)) { |
|
52 | 52 | return $default === null ? null : Blade::render($default); |
53 | 53 | } |
54 | 54 | |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | |
58 | 58 | protected static function needsDirectory(string $directory): void |
59 | 59 | { |
60 | - if (! file_exists($directory)) { |
|
60 | + if (!file_exists($directory)) { |
|
61 | 61 | mkdir($directory, recursive: true); |
62 | 62 | } |
63 | 63 | } |
@@ -25,7 +25,7 @@ |
||
25 | 25 | } |
26 | 26 | |
27 | 27 | if ($this instanceof DocumentationPage) { |
28 | - return $this->identifier === 'index' && ! in_array('docs', config('hyde.navigation.exclude', [])); |
|
28 | + return $this->identifier === 'index' && !in_array('docs', config('hyde.navigation.exclude', [])); |
|
29 | 29 | } |
30 | 30 | |
31 | 31 | if ($this instanceof AbstractMarkdownPage) { |
@@ -37,7 +37,7 @@ |
||
37 | 37 | /** @interitDoc */ |
38 | 38 | public static function make(string $identifier = '', array $matter = [], string $body = ''): static |
39 | 39 | { |
40 | - return tap(new static($identifier, new FrontMatter($matter), new Markdown($body)), function (self $page) { |
|
40 | + return tap(new static($identifier, new FrontMatter($matter), new Markdown($body)), function(self $page) { |
|
41 | 41 | return PageModelConstructor::run($page); |
42 | 42 | }); |
43 | 43 | } |