@@ -137,7 +137,7 @@ |
||
| 137 | 137 | $string = trim($string); |
| 138 | 138 | |
| 139 | 139 | // Check if string is an array |
| 140 | - if (! static::isValueArrayString($string)) { |
|
| 140 | + if (!static::isValueArrayString($string)) { |
|
| 141 | 141 | throw new \RuntimeException('Failed parsing BladeMatter array. Input string must follow array syntax.'); |
| 142 | 142 | } |
| 143 | 143 | |
@@ -25,7 +25,7 @@ discard block |
||
| 25 | 25 | { |
| 26 | 26 | return [ |
| 27 | 27 | 'title' => $this->getNavigationMenuTitle(), |
| 28 | - 'hidden' => ! $this->getNavigationMenuVisible(), |
|
| 28 | + 'hidden' => !$this->getNavigationMenuVisible(), |
|
| 29 | 29 | 'priority' => $this->getNavigationMenuPriority(), |
| 30 | 30 | ]; |
| 31 | 31 | } |
@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | } |
| 61 | 61 | |
| 62 | 62 | if ($this->page instanceof DocumentationPage) { |
| 63 | - return $this->page->identifier === 'index' && ! in_array('docs', config('hyde.navigation.exclude', [])); |
|
| 63 | + return $this->page->identifier === 'index' && !in_array('docs', config('hyde.navigation.exclude', [])); |
|
| 64 | 64 | } |
| 65 | 65 | |
| 66 | 66 | if ($this->page instanceof AbstractMarkdownPage) { |
@@ -235,7 +235,7 @@ |
||
| 235 | 235 | |
| 236 | 236 | public function showInNavigation(): bool |
| 237 | 237 | { |
| 238 | - return ! $this->navigation['hidden']; |
|
| 238 | + return !$this->navigation['hidden']; |
|
| 239 | 239 | } |
| 240 | 240 | |
| 241 | 241 | public function navigationMenuPriority(): int |
@@ -12,8 +12,8 @@ discard block |
||
| 12 | 12 | /** @return $this */ |
| 13 | 13 | public function generate(): static |
| 14 | 14 | { |
| 15 | - RoutingService::getInstance()->getRoutesForModel(DocumentationPage::class)->each(function (Route $route) { |
|
| 16 | - if (! $route->getSourceModel()->get('hidden', false)) { |
|
| 15 | + RoutingService::getInstance()->getRoutesForModel(DocumentationPage::class)->each(function(Route $route) { |
|
| 16 | + if (!$route->getSourceModel()->get('hidden', false)) { |
|
| 17 | 17 | $this->items->push(NavItem::fromRoute($route)->setPriority($this->getPriorityForRoute($route))); |
| 18 | 18 | } |
| 19 | 19 | }); |
@@ -23,21 +23,21 @@ discard block |
||
| 23 | 23 | |
| 24 | 24 | public function hasGroups(): bool |
| 25 | 25 | { |
| 26 | - return $this->items->map(function (NavItem $item) { |
|
| 26 | + return $this->items->map(function(NavItem $item) { |
|
| 27 | 27 | return $item->getGroup() !== null; |
| 28 | 28 | })->contains(true); |
| 29 | 29 | } |
| 30 | 30 | |
| 31 | 31 | public function getGroups(): array |
| 32 | 32 | { |
| 33 | - return $this->items->map(function (NavItem $item) { |
|
| 33 | + return $this->items->map(function(NavItem $item) { |
|
| 34 | 34 | return $item->getGroup(); |
| 35 | 35 | })->unique()->toArray(); |
| 36 | 36 | } |
| 37 | 37 | |
| 38 | 38 | public function getItemsInGroup(?string $group): Collection |
| 39 | 39 | { |
| 40 | - return $this->items->filter(function ($item) use ($group) { |
|
| 40 | + return $this->items->filter(function($item) use ($group) { |
|
| 41 | 41 | return $item->getGroup() === $group || $item->getGroup() === Str::slug($group); |
| 42 | 42 | })->sortBy('priority')->values(); |
| 43 | 43 | } |
@@ -73,7 +73,7 @@ |
||
| 73 | 73 | */ |
| 74 | 74 | protected function parseFrontMatterMetadata(): void |
| 75 | 75 | { |
| 76 | - if (! empty($this->matter('description'))) { |
|
| 76 | + if (!empty($this->matter('description'))) { |
|
| 77 | 77 | $this->metadata['description'] = $this->matter('description'); |
| 78 | 78 | } |
| 79 | 79 | |
@@ -49,7 +49,7 @@ |
||
| 49 | 49 | { |
| 50 | 50 | $orderIndexArray = config('docs.sidebar_order', []); |
| 51 | 51 | |
| 52 | - if (! in_array($this->identifier, $orderIndexArray)) { |
|
| 52 | + if (!in_array($this->identifier, $orderIndexArray)) { |
|
| 53 | 53 | return 500; |
| 54 | 54 | } |
| 55 | 55 | |