Passed
Push — master ( 49af47...03e7b0 )
by Caen
04:58 queued 01:56
created
packages/testing/src/ResetsApplication.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@
 block discarded – undo
66 66
             '.gitkeep',
67 67
         ];
68 68
 
69
-        if (! in_array(basename($filepath), $protected)) {
69
+        if (!in_array(basename($filepath), $protected)) {
70 70
             unlink($filepath);
71 71
         }
72 72
     }
Please login to merge, or discard this patch.
packages/testing/src/CreatesTemporaryFiles.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
         if (sizeof($this->fileMemory) > 0) {
52 52
             foreach ($this->fileMemory as $file) {
53 53
                 if (Filesystem::isDirectory($file)) {
54
-                    if (! in_array($file, ['_site', '_media', '_pages', '_posts', '_docs', 'app', 'config', 'storage', 'vendor', 'node_modules'])) {
54
+                    if (!in_array($file, ['_site', '_media', '_pages', '_posts', '_docs', 'app', 'config', 'storage', 'vendor', 'node_modules'])) {
55 55
                         Filesystem::deleteDirectory($file);
56 56
                     }
57 57
                 } else {
Please login to merge, or discard this patch.
rector.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@
 block discarded – undo
7 7
 use Rector\Set\ValueObject\SetList;
8 8
 use RectorLaravel\Set\LaravelSetList;
9 9
 
10
-return static function (RectorConfig $rectorConfig): void {
10
+return static function(RectorConfig $rectorConfig): void {
11 11
     $rectorConfig->paths([__DIR__.'/packages/framework/src']);
12 12
     $rectorConfig->sets([
13 13
         LaravelSetList::LARAVEL_90,
Please login to merge, or discard this patch.
packages/framework/src/Foundation/Concerns/BootsHydeKernel.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
 
21 21
     public function boot(): void
22 22
     {
23
-        if (! $this->readyToBoot || $this->booting) {
23
+        if (!$this->readyToBoot || $this->booting) {
24 24
             return;
25 25
         }
26 26
 
Please login to merge, or discard this patch.
packages/framework/src/Framework/Concerns/ValidatesExistence.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
         /** @var \Hyde\Pages\Concerns\HydePage $model */
25 25
         $filepath = $model::sourcePath($identifier);
26 26
 
27
-        if (! file_exists(Hyde::path($filepath))) {
27
+        if (!file_exists(Hyde::path($filepath))) {
28 28
             throw new FileNotFoundException($filepath);
29 29
         }
30 30
     }
Please login to merge, or discard this patch.
packages/framework/src/Foundation/Concerns/ManagesHydeKernel.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
             throw new BadMethodCallException('Cannot register a page class after the Kernel has been booted.');
74 74
         }
75 75
 
76
-        if (! is_subclass_of($pageClass, HydePage::class)) {
76
+        if (!is_subclass_of($pageClass, HydePage::class)) {
77 77
             throw new InvalidArgumentException('The specified class must be a subclass of HydePage.');
78 78
         }
79 79
 
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
             throw new InvalidArgumentException('The specified class must not be a subclass of DynamicPage.');
82 82
         }
83 83
 
84
-        if (! in_array($pageClass, $this->pageClasses, true)) {
84
+        if (!in_array($pageClass, $this->pageClasses, true)) {
85 85
             $this->pageClasses[] = $pageClass;
86 86
         }
87 87
     }
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
     /** @param class-string<\Hyde\Foundation\Concerns\HydeExtension>  $extension */
96 96
     public function registerExtension(string $extension): void
97 97
     {
98
-        if (! in_array($extension, $this->extensions, true)) {
98
+        if (!in_array($extension, $this->extensions, true)) {
99 99
             $this->extensions[] = $extension;
100 100
         }
101 101
     }
Please login to merge, or discard this patch.
packages/framework/src/Framework/Features/Paginator.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
 
131 131
     public function previousPageNumber(): false|int
132 132
     {
133
-        if (! $this->canNavigateBack()) {
133
+        if (!$this->canNavigateBack()) {
134 134
             return false;
135 135
         }
136 136
 
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
 
140 140
     public function nextPageNumber(): false|int
141 141
     {
142
-        if (! $this->canNavigateForward()) {
142
+        if (!$this->canNavigateForward()) {
143 143
             return false;
144 144
         }
145 145
 
@@ -148,11 +148,11 @@  discard block
 block discarded – undo
148 148
 
149 149
     public function previous(): false|string|Route
150 150
     {
151
-        if (! $this->canNavigateBack()) {
151
+        if (!$this->canNavigateBack()) {
152 152
             return false;
153 153
         }
154 154
 
155
-        if (! isset($this->routeBasename)) {
155
+        if (!isset($this->routeBasename)) {
156 156
             return $this->formatLink(-1);
157 157
         }
158 158
 
@@ -161,11 +161,11 @@  discard block
 block discarded – undo
161 161
 
162 162
     public function next(): false|string|Route
163 163
     {
164
-        if (! $this->canNavigateForward()) {
164
+        if (!$this->canNavigateForward()) {
165 165
             return false;
166 166
         }
167 167
 
168
-        if (! isset($this->routeBasename)) {
168
+        if (!isset($this->routeBasename)) {
169 169
             return $this->formatLink(+1);
170 170
         }
171 171
 
Please login to merge, or discard this patch.
packages/framework/src/Foundation/Application.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
         /*
23 23
          * Enable package auto-discovery.
24 24
          */
25
-        $this->app->singleton(PackageManifest::class, function (): PackageManifest {
25
+        $this->app->singleton(PackageManifest::class, function(): PackageManifest {
26 26
             return new PackageManifest(
27 27
                 new Filesystem,
28 28
                 $this->basePath(),
Please login to merge, or discard this patch.
packages/framework/src/Markdown/Processing/ShortcodeProcessor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
 
53 53
     public function processInput(): static
54 54
     {
55
-        $this->output = implode("\n", array_map(function (string $line): string {
55
+        $this->output = implode("\n", array_map(function(string $line): string {
56 56
             return $this->expandShortcode($line);
57 57
         }, explode("\n", $this->input)));
58 58
 
Please login to merge, or discard this patch.