|
@@ -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.