Skip to content

Commit 1daf9e9

Browse files
committed
Apply fixes from StyleCI
1 parent f58a07b commit 1daf9e9

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

packages/framework/src/Foundation/Internal/LoadYamlConfiguration.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
namespace Hyde\Foundation\Internal;
66

7-
use Throwable;
87
use Illuminate\Support\Arr;
98
use Hyde\Foundation\Application;
109
use Illuminate\Config\Repository;
@@ -68,7 +67,8 @@ protected function parseAuthors(array $authors): array
6867
{
6968
return Arr::mapWithKeys($authors, function (array $author, string $username): array {
7069
$message = 'Invalid author configuration detected in the YAML config file. Please double check the syntax.';
71-
return InvalidConfigurationException::try(fn ()=> [$username => PostAuthor::create($author)], $message);
70+
71+
return InvalidConfigurationException::try(fn () => [$username => PostAuthor::create($author)], $message);
7272
});
7373
}
7474
}

packages/framework/src/Framework/Exceptions/InvalidConfigurationException.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ protected function findConfigLine(string $namespace, string $key): array
4848

4949
/**
5050
* @internal
51+
*
5152
* @experimental
5253
*/
5354
public static function try(callable $callback, ?string $message = null): mixed

packages/framework/src/Framework/Features/Navigation/NavigationMenuGenerator.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
namespace Hyde\Framework\Features\Navigation;
66

77
use Hyde\Hyde;
8-
use Throwable;
98
use Hyde\Facades\Config;
109
use Hyde\Support\Models\Route;
1110
use Hyde\Pages\DocumentationPage;
@@ -85,7 +84,6 @@ protected function generate(): void
8584
} else {
8685
collect(Config::getArray('hyde.navigation.custom', []))->each(function (array $data): void {
8786
/** @var array{destination: string, label: ?string, priority: ?int, attributes: array<string, scalar>} $data */
88-
8987
$message = 'Invalid navigation item configuration detected the configuration file. Please double check the syntax.';
9088
$item = InvalidConfigurationException::try(fn () => NavigationItem::create(...$data), $message);
9189

0 commit comments

Comments
 (0)