@@ -127,7 +127,7 @@ discard block |
||
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 |
||
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 |
||
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 |
@@ -66,13 +66,13 @@ discard block |
||
66 | 66 | protected function getEnvironmentVariables(): array |
67 | 67 | { |
68 | 68 | return [ |
69 | - 'HYDE_RC_REQUEST_OUTPUT' => ! $this->option('no-ansi'), |
|
69 | + 'HYDE_RC_REQUEST_OUTPUT' => !$this->option('no-ansi'), |
|
70 | 70 | ]; |
71 | 71 | } |
72 | 72 | |
73 | 73 | protected function configureOutput(): void |
74 | 74 | { |
75 | - if (! $this->useBasicOutput()) { |
|
75 | + if (!$this->useBasicOutput()) { |
|
76 | 76 | $this->console = new ConsoleOutput($this->output->isVerbose()); |
77 | 77 | } |
78 | 78 | } |
@@ -86,13 +86,13 @@ discard block |
||
86 | 86 | |
87 | 87 | protected function getOutputHandler(): Closure |
88 | 88 | { |
89 | - return $this->useBasicOutput() ? function (string $type, string $line): void { |
|
89 | + return $this->useBasicOutput() ? function(string $type, string $line): void { |
|
90 | 90 | $this->output->write($line); |
91 | 91 | } : $this->console->getFormatter(); |
92 | 92 | } |
93 | 93 | |
94 | 94 | protected function useBasicOutput(): bool |
95 | 95 | { |
96 | - return $this->option('no-ansi') || ! class_exists(ConsoleOutput::class); |
|
96 | + return $this->option('no-ansi') || !class_exists(ConsoleOutput::class); |
|
97 | 97 | } |
98 | 98 | } |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | |
54 | 54 | public function getFormatter(): Closure |
55 | 55 | { |
56 | - return function (string $type, string $line): void { |
|
56 | + return function(string $type, string $line): void { |
|
57 | 57 | $this->handleOutput($line); |
58 | 58 | }; |
59 | 59 | } |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | |
67 | 67 | protected function handleOutput(string $buffer): void |
68 | 68 | { |
69 | - str($buffer)->trim()->explode("\n")->each(function (string $line): void { |
|
69 | + str($buffer)->trim()->explode("\n")->each(function(string $line): void { |
|
70 | 70 | $this->renderLine($this->formatLineForOutput($line)); |
71 | 71 | }); |
72 | 72 | } |