Passed
Push — master ( ab8784...529dea )
by Caen
03:55 queued 12s
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 : MarkdownConverter::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/Actions/CreatesNewPageSourceFile.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
 
35 35
     public function canSaveFile(string $path): void
36 36
     {
37
-        if (file_exists($path) && ! $this->force) {
37
+        if (file_exists($path) && !$this->force) {
38 38
             throw new FileConflictException($path);
39 39
         }
40 40
     }
Please login to merge, or discard this patch.
packages/framework/src/Actions/PublishesHydeViews.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
 
44 44
     public function execute(): bool|int
45 45
     {
46
-        if (! array_key_exists($this->selected, static::$options)) {
46
+        if (!array_key_exists($this->selected, static::$options)) {
47 47
             return 404;
48 48
         }
49 49
 
Please login to merge, or discard this patch.
packages/framework/src/Actions/PublishesHomepageView.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
 
42 42
     public function execute(): bool|int
43 43
     {
44
-        if (! array_key_exists($this->selected, static::$homePages)) {
44
+        if (!array_key_exists($this->selected, static::$homePages)) {
45 45
             return 404;
46 46
         }
47 47
 
Please login to merge, or discard this patch.
packages/framework/src/Actions/FindsContentLengthForImageObject.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
 
65 65
     protected function fetchLocalImageInformation(): int
66 66
     {
67
-        if (! file_exists($this->image->getSource())) {
67
+        if (!file_exists($this->image->getSource())) {
68 68
             $this->write(' > <comment>Warning:</comment> Could not find image file at '.$this->image->getSource().'!');
69 69
             $this->write('         <fg=gray>   Using default content length of 0. '.'</>');
70 70
 
Please login to merge, or discard this patch.
framework/src/Modules/DataCollections/DataCollectionServiceProvider.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
         if (Features::hasDataCollections()) {
27 27
             // Create the _data directory if it doesn't exist
28
-            if (! is_dir(Hyde::path('_data'))) {
28
+            if (!is_dir(Hyde::path('_data'))) {
29 29
                 mkdir(Hyde::path('_data'));
30 30
             }
31 31
         }
Please login to merge, or discard this patch.
packages/framework/src/Services/Markdown/CodeblockFilepathProcessor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
         $lines = explode("\n", $markdown);
13 13
 
14 14
         foreach ($lines as $index => $line) {
15
-            if (static::lineMatchesPattern($line) && ! str_contains($line, '{"shortcodes": false}')) {
15
+            if (static::lineMatchesPattern($line) && !str_contains($line, '{"shortcodes": false}')) {
16 16
                 // Add the meta-block two lines before the pattern, placing it just above the code block.
17 17
                 // This prevents the meta-block from interfering with other processes.
18 18
                 $lines[$index - 2] .= sprintf(
Please login to merge, or discard this patch.
packages/framework/src/Services/BuildService.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
 
35 35
     public function compileStaticPages(): void
36 36
     {
37
-        $this->getDiscoveredModels()->each(function (string $pageClass) {
37
+        $this->getDiscoveredModels()->each(function(string $pageClass) {
38 38
             $this->compilePagesForClass($pageClass);
39 39
         });
40 40
     }
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
         $this->comment('Transferring Media Assets...');
60 60
 
61 61
         $this->withProgressBar($collection,
62
-            function ($filepath) {
62
+            function($filepath) {
63 63
                 copy($filepath, Hyde::getSiteOutputPath('media/'.basename($filepath)));
64 64
             }
65 65
         );
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
 
69 69
     protected function getDiscoveredModels(): Collection
70 70
     {
71
-        return $this->router->getRoutes()->map(function (Route $route) {
71
+        return $this->router->getRoutes()->map(function(Route $route) {
72 72
             return $route->getPageType();
73 73
         })->unique();
74 74
     }
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
 
89 89
     protected function compileRoute(): \Closure
90 90
     {
91
-        return function (Route $route) {
91
+        return function(Route $route) {
92 92
             return (new StaticPageBuilder($route->getSourceModel()))->__invoke();
93 93
         };
94 94
     }
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
 
101 101
     protected function isItSafeToCleanOutputDirectory(): bool
102 102
     {
103
-        if (! $this->isOutputDirectoryWhitelisted() && ! $this->askIfUnsafeDirectoryShouldBeEmptied()) {
103
+        if (!$this->isOutputDirectoryWhitelisted() && !$this->askIfUnsafeDirectoryShouldBeEmptied()) {
104 104
             $this->info('Output directory will not be emptied.');
105 105
 
106 106
             return false;
Please login to merge, or discard this patch.
packages/framework/src/Services/ValidationService.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -107,7 +107,7 @@
 block discarded – undo
107 107
     {
108 108
         if (! Features::enabled(Features::torchlight())) {
109 109
             return $result->skip('Check a Torchlight API token is set')
110
-               ->withTip('Torchlight is an API for code syntax highlighting. You can enable it in the Hyde config.');
110
+                ->withTip('Torchlight is an API for code syntax highlighting. You can enable it in the Hyde config.');
111 111
         }
112 112
 
113 113
         if (config('torchlight.token') !== null) {
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
 
63 63
     public function check_documentation_site_has_an_index_page(Result $result): Result
64 64
     {
65
-        if (! Features::hasDocumentationPages()) {
65
+        if (!Features::hasDocumentationPages()) {
66 66
             return $result->skip('The documentation page feature is disabled in config');
67 67
         }
68 68
 
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
 
106 106
     public function check_a_torchlight_api_token_is_set(Result $result): Result
107 107
     {
108
-        if (! Features::enabled(Features::torchlight())) {
108
+        if (!Features::enabled(Features::torchlight())) {
109 109
             return $result->skip('Check a Torchlight API token is set')
110 110
                ->withTip('Torchlight is an API for code syntax highlighting. You can enable it in the Hyde config.');
111 111
         }
Please login to merge, or discard this patch.