Passed
Branch kernel-refactor-experiment (803797)
by Caen
03:29
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/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(): self
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.
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/Markdown/BladeDownProcessor.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
 
31 31
     public static function preprocess(string $markdown): string
32 32
     {
33
-        return implode("\n", array_map(function ($line) {
33
+        return implode("\n", array_map(function($line) {
34 34
             return str_starts_with(strtolower($line), strtolower('[Blade]:'))
35 35
                 ? '<!-- HYDE'.trim(htmlentities($line)).' -->'
36 36
                 : $line;
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
 
51 51
     public function run(): self
52 52
     {
53
-        $this->output = implode("\n", array_map(function ($line) {
53
+        $this->output = implode("\n", array_map(function($line) {
54 54
             return $this->lineStartsWithDirective($line)
55 55
                 ? $this->processLine($line)
56 56
                 : $line;
Please login to merge, or discard this patch.