Passed
Push — master ( 86764a...b84819 )
by Caen
03:33 queued 14s
created
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/Framework/HydeServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
 
40 40
         $this->app->singleton(AssetService::class, AssetService::class);
41 41
 
42
-        $this->app->singleton(MarkdownConverter::class, function (): MarkdownConverter {
42
+        $this->app->singleton(MarkdownConverter::class, function(): MarkdownConverter {
43 43
             return new MarkdownConverter();
44 44
         });
45 45
 
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.
packages/framework/src/Console/Commands/ChangeSourceDirectoryCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
             throw new InvalidArgumentException('A file already exists at this path!');
95 95
         }
96 96
 
97
-        if (Filesystem::isDirectory($name) && ! Filesystem::isEmptyDirectory($name)) {
97
+        if (Filesystem::isDirectory($name) && !Filesystem::isEmptyDirectory($name)) {
98 98
             // If any of the subdirectories we want to move already exist, we need to abort as we don't want to overwrite any existing files
99 99
             // The reason we check these individually is mainly so that the change can be reverted (by setting the $name to '/')
100 100
             foreach ($this->getPageDirectories() as $directory) {
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
 
114 114
     protected function directoryContainsFiles(string $subdirectory): bool
115 115
     {
116
-        return Filesystem::isDirectory($subdirectory) && ! Filesystem::isEmptyDirectory($subdirectory);
116
+        return Filesystem::isDirectory($subdirectory) && !Filesystem::isEmptyDirectory($subdirectory);
117 117
     }
118 118
 
119 119
     protected function updateConfigurationFile(string $newDirectoryName, string $currentDirectoryName): void
Please login to merge, or discard this patch.