Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
StyleCIBot committed Jul 10, 2024
1 parent 09db9f1 commit fb69b00
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,10 @@ protected function generate(): void
}
} else {
collect(Config::getArray('hyde.navigation.custom', []))->each(
/** @param array{destination: string, label: ?string, priority: ?int, attributes: array<string, scalar>} $item */ function (array $item): void {
// Since these were added explicitly by the user, we can assume they should always be shown
$this->items->push(NavigationItem::create($item['destination'], $item['label'] ?? null, $item['priority'] ?? null, $item['attributes'] ?? []));
});
/** @param array{destination: string, label: ?string, priority: ?int, attributes: array<string, scalar>} $item */ function (array $item): void {
// Since these were added explicitly by the user, we can assume they should always be shown
$this->items->push(NavigationItem::create($item['destination'], $item['label'] ?? null, $item['priority'] ?? null, $item['attributes'] ?? []));
});
}
}

Expand Down

0 comments on commit fb69b00

Please sign in to comment.