Passed
Push — master ( 85c0fe...1fafeb )
by Caen
03:50 queued 14s
created
packages/framework/src/Framework/Factories/NavigationDataFactory.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
 
128 128
     private function isNonDocumentationPageInHiddenSubdirectory(): bool
129 129
     {
130
-        return ! $this->isInstanceOf(DocumentationPage::class)
130
+        return !$this->isInstanceOf(DocumentationPage::class)
131 131
             && $this->pageIsInSubdirectory()
132 132
             && $this->getSubdirectoryConfiguration() === 'hidden'
133 133
             && basename($this->identifier) !== 'index';
@@ -188,7 +188,7 @@  discard block
 block discarded – undo
188 188
         $pageKey = $this->{$pageKeyName};
189 189
 
190 190
         // Check if the config entry is a flat array or a keyed array.
191
-        if (! array_key_exists($pageKey, $config)) {
191
+        if (!array_key_exists($pageKey, $config)) {
192 192
             // Adding an offset makes so that pages with a front matter priority, or
193 193
             // explicit keyed priority selection that is lower can be shown first.
194 194
             // This is all to make it easier to mix ways of adding priorities.
@@ -236,7 +236,7 @@  discard block
 block discarded – undo
236 236
 
237 237
     protected function invert(?bool $value): ?bool
238 238
     {
239
-        return $value === null ? null : ! $value;
239
+        return $value === null ? null : !$value;
240 240
     }
241 241
 
242 242
     protected function offset(?int $value, int $offset): ?int
Please login to merge, or discard this patch.
packages/framework/src/Console/Commands/ServeCommand.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
     protected function getEnvironmentVariables(): array
64 64
     {
65 65
         return [
66
-            'HYDE_RC_REQUEST_OUTPUT' => ! $this->option('no-ansi'),
66
+            'HYDE_RC_REQUEST_OUTPUT' => !$this->option('no-ansi'),
67 67
         ];
68 68
     }
69 69
 
@@ -76,13 +76,13 @@  discard block
 block discarded – undo
76 76
 
77 77
     protected function getOutputHandler(): Closure
78 78
     {
79
-        return $this->useBasicOutput() ? function (string $type, string $line): void {
79
+        return $this->useBasicOutput() ? function(string $type, string $line): void {
80 80
             $this->output->write($line);
81 81
         } : ConsoleOutput::getFormatter($this->output->isVerbose());
82 82
     }
83 83
 
84 84
     protected function useBasicOutput(): bool
85 85
     {
86
-        return $this->option('no-ansi') || ! class_exists(ConsoleOutput::class);
86
+        return $this->option('no-ansi') || !class_exists(ConsoleOutput::class);
87 87
     }
88 88
 }
Please login to merge, or discard this patch.
packages/realtime-compiler/src/ConsoleOutput.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
     {
56 56
         $console = (new static($verbose));
57 57
 
58
-        return function (string $type, string $line) use ($console): void {
58
+        return function(string $type, string $line) use ($console): void {
59 59
             $console->handleOutput($line);
60 60
         };
61 61
     }
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
 
68 68
     protected function handleOutput(string $buffer): void
69 69
     {
70
-        str($buffer)->trim()->explode("\n")->each(function (string $line): void {
70
+        str($buffer)->trim()->explode("\n")->each(function(string $line): void {
71 71
             $line = $this->formatLineForOutput($line);
72 72
 
73 73
             if ($line !== null) {
Please login to merge, or discard this patch.