Passed
Push — master ( 1cc50b...f09c40 )
by Caen
04:13 queued 31s
created
framework/src/Framework/Features/Documentation/DocumentationSearchPage.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
 
49 49
     public static function enabled(): bool
50 50
     {
51
-        return Config::getBool('docs.create_search_page', true) && ! Hyde::routes()->has(self::routeKey());
51
+        return Config::getBool('docs.create_search_page', true) && !Hyde::routes()->has(self::routeKey());
52 52
     }
53 53
 
54 54
     public static function routeKey(): string
Please login to merge, or discard this patch.
packages/framework/src/Framework/Features/Navigation/NavigationMenu.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -31,11 +31,11 @@  discard block
 block discarded – undo
31 31
     /** @return array<string, DropdownNavItem> */
32 32
     public function getDropdowns(): array
33 33
     {
34
-        if (! $this->dropdownsEnabled()) {
34
+        if (!$this->dropdownsEnabled()) {
35 35
             throw new BadMethodCallException('Dropdowns are not enabled. Enable it by setting `hyde.navigation.subdirectories` to `dropdown`.');
36 36
         }
37 37
 
38
-        return $this->items->filter(function (NavItem $item): bool {
38
+        return $this->items->filter(function(NavItem $item): bool {
39 39
             return $item instanceof DropdownNavItem;
40 40
         })->values()->all();
41 41
     }
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
 
63 63
     protected function canAddRoute(Route $route): bool
64 64
     {
65
-        return parent::canAddRoute($route) && (! $route->getPage() instanceof DocumentationPage || $route->is(DocumentationPage::homeRouteName()));
65
+        return parent::canAddRoute($route) && (!$route->getPage() instanceof DocumentationPage || $route->is(DocumentationPage::homeRouteName()));
66 66
     }
67 67
 
68 68
     protected function canAddItemToDropdown(NavItem $item): bool
Please login to merge, or discard this patch.
packages/framework/src/Pages/MarkdownPost.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
     /** @return \Hyde\Foundation\Kernel\PageCollection<\Hyde\Pages\MarkdownPost> */
36 36
     public static function getLatestPosts(): PageCollection
37 37
     {
38
-        return static::all()->sortByDesc(function (self $post): int {
38
+        return static::all()->sortByDesc(function(self $post): int {
39 39
             return $post->date?->dateTimeObject->getTimestamp() ?? 0;
40 40
         });
41 41
     }
Please login to merge, or discard this patch.
packages/framework/src/Support/BuildWarnings.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
     {
26 26
         $app = Container::getInstance();
27 27
 
28
-        if (! $app->bound(self::class)) {
28
+        if (!$app->bound(self::class)) {
29 29
             $app->singleton(self::class);
30 30
         }
31 31
 
Please login to merge, or discard this patch.
packages/framework/src/Framework/Features/Blogging/Models/PostAuthor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@
 block discarded – undo
75 75
     /** @return \Illuminate\Support\Collection<string, \Hyde\Framework\Features\Blogging\Models\PostAuthor> */
76 76
     public static function all(): Collection
77 77
     {
78
-        return (new Collection(Config::getArray('hyde.authors', [])))->mapWithKeys(function (self $author): array {
78
+        return (new Collection(Config::getArray('hyde.authors', [])))->mapWithKeys(function(self $author): array {
79 79
             return [strtolower($author->username) => $author];
80 80
         });
81 81
     }
Please login to merge, or discard this patch.
packages/framework/src/Framework/Features/Metadata/GlobalMetadataBag.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
         // Reject any metadata from the global metadata bag that is already present in the page metadata bag.
53 53
 
54 54
         foreach (['links', 'metadata', 'properties', 'generics'] as $type) {
55
-            $global->$type = array_filter((array) $global->$type, fn (Element $element): bool => ! in_array($element->uniqueKey(),
55
+            $global->$type = array_filter((array) $global->$type, fn (Element $element): bool => !in_array($element->uniqueKey(),
56 56
                 array_map(fn (Element $element): string => $element->uniqueKey(), (array) $page->metadata->$type)
57 57
             ));
58 58
         }
Please login to merge, or discard this patch.
packages/framework/src/Foundation/ConsoleKernel.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
         // the default LoadConfiguration bootstrapper class with our implementation.
29 29
         // We do this by swapping out the LoadConfiguration class with our own.
30 30
 
31
-        return array_values((array) tap(array_combine($bootstrappers, $bootstrappers), function (array &$array): void {
31
+        return array_values((array) tap(array_combine($bootstrappers, $bootstrappers), function(array &$array): void {
32 32
             $array[\LaravelZero\Framework\Bootstrap\LoadConfiguration::class] = \Hyde\Foundation\Internal\LoadConfiguration::class;
33 33
         }));
34 34
     }
Please login to merge, or discard this patch.
packages/framework/src/Framework/Services/AssetService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
 
68 68
     public function injectTailwindConfig(): string
69 69
     {
70
-        if (! file_exists(Hyde::path('tailwind.config.js'))) {
70
+        if (!file_exists(Hyde::path('tailwind.config.js'))) {
71 71
             return '';
72 72
         }
73 73
 
Please login to merge, or discard this patch.
packages/publications/src/Models/PublicationType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -233,14 +233,14 @@
 block discarded – undo
233 233
 
234 234
     protected function parseFieldData(array $fields): Collection
235 235
     {
236
-        return Collection::make($fields)->map(function (array $data): PublicationFieldDefinition {
236
+        return Collection::make($fields)->map(function(array $data): PublicationFieldDefinition {
237 237
             return new PublicationFieldDefinition(...$data);
238 238
         });
239 239
     }
240 240
 
241 241
     protected function withoutNullValues(array $array): array
242 242
     {
243
-        return array_filter($array, fn (mixed $value): bool => ! is_null($value));
243
+        return array_filter($array, fn (mixed $value): bool => !is_null($value));
244 244
     }
245 245
 
246 246
     /**
Please login to merge, or discard this patch.