Passed
Push — master ( 8cb6a7...c430ff )
by Caen
03:30 queued 12s
created
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.
packages/framework/src/Markdown/Processing/BladeDownProcessor.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
 
35 35
     public static function preprocess(string $markdown): string
36 36
     {
37
-        return implode("\n", array_map(function (string $line): string {
37
+        return implode("\n", array_map(function(string $line): string {
38 38
             return str_starts_with(strtolower($line), strtolower('[Blade]:'))
39 39
                 ? '<!-- HYDE'.trim(e($line)).' -->'
40 40
                 : $line;
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
 
55 55
     public function run(): static
56 56
     {
57
-        $this->output = implode("\n", array_map(function (string $line): string {
57
+        $this->output = implode("\n", array_map(function(string $line): string {
58 58
             return $this->lineStartsWithDirective($line)
59 59
                 ? $this->processLine($line)
60 60
                 : $line;
Please login to merge, or discard this patch.
packages/framework/src/Framework/Features/Metadata/Elements/LinkElement.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
             return '';
36 36
         }
37 37
 
38
-        return sprintf(' %s', collect($this->attr)->map(function (string $value, string $key): string {
38
+        return sprintf(' %s', collect($this->attr)->map(function(string $value, string $key): string {
39 39
             return e($key).'="'.e($value).'"';
40 40
         })->implode(' '));
41 41
     }
Please login to merge, or discard this patch.
packages/framework/src/Framework/Factories/NavigationDataFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
         return $this->isInstanceOf(MarkdownPost::class)
94 94
             || $this->searchForHiddenInFrontMatter()
95 95
             || in_array($this->routeKey, config('hyde.navigation.exclude', ['404']))
96
-            || ! $this->isInstanceOf(DocumentationPage::class) && $this->pageIsInSubdirectory() && ($this->getSubdirectoryConfiguration() === 'hidden');
96
+            || !$this->isInstanceOf(DocumentationPage::class) && $this->pageIsInSubdirectory() && ($this->getSubdirectoryConfiguration() === 'hidden');
97 97
     }
98 98
 
99 99
     protected function makePriority(): int
@@ -194,7 +194,7 @@  discard block
 block discarded – undo
194 194
 
195 195
     protected function invert(?bool $value): ?bool
196 196
     {
197
-        return $value === null ? null : ! $value;
197
+        return $value === null ? null : !$value;
198 198
     }
199 199
 
200 200
     protected function offset(?int $value, int $offset): ?int
Please login to merge, or discard this patch.