Passed
Push — master ( 25f483...9f52d4 )
by Caen
02:56
created
packages/framework/src/Facades/Includes.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
packages/framework/src/Contracts/AbstractMarkdownPage.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
packages/framework/src/Actions/SourceFileParser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
 
45 45
     protected function parseBladePage(): BladePage
46 46
     {
47
-        return tap(new BladePage($this->slug), function (BladePage $page) {
47
+        return tap(new BladePage($this->slug), function(BladePage $page) {
48 48
             $page->matter = FrontMatter::fromArray(
49 49
                 $this->parseBladeMatter(file_get_contents($page->getSourcePath()))
50 50
             );
Please login to merge, or discard this patch.
packages/framework/src/Actions/BladeMatterParser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -137,7 +137,7 @@
 block discarded – undo
137 137
         $string = trim($string);
138 138
 
139 139
         // Check if string is an array
140
-        if (! static::isValueArrayString($string)) {
140
+        if (!static::isValueArrayString($string)) {
141 141
             throw new \RuntimeException('Failed parsing BladeMatter array. Input string must follow array syntax.');
142 142
         }
143 143
 
Please login to merge, or discard this patch.
packages/framework/src/Contracts/AbstractPage.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
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) {
Please login to merge, or discard this patch.