Passed
Push — dependabot/npm_and_yarn/tailwi... ( 592882...e868f0 )
by
unknown
07:03 queued 03:02
created
Category
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.
packages/publications/src/Views/Components/RelatedPublicationsComponent.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,14 +42,14 @@
 block discarded – undo
42 42
         $currentHydePage = Hyde::currentRoute()->getPage();
43 43
 
44 44
         // If not a publication page, exit early
45
-        if (! $currentHydePage instanceof PublicationPage) {
45
+        if (!$currentHydePage instanceof PublicationPage) {
46 46
             return [];
47 47
         }
48 48
 
49 49
         $publicationType = $currentHydePage->getType();
50 50
 
51 51
         // Get the tag fields for the current publicationType or exit early if there aren't any
52
-        $publicationTypeTagFields = $publicationType->getFields()->filter(function (PublicationFieldDefinition $field): bool {
52
+        $publicationTypeTagFields = $publicationType->getFields()->filter(function(PublicationFieldDefinition $field): bool {
53 53
             return $field->type === PublicationFieldTypes::Tag;
54 54
         });
55 55
         if ($publicationTypeTagFields->isEmpty()) {
Please login to merge, or discard this patch.
packages/publications/src/Providers/TranslationServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
     {
17 17
         parent::register();
18 18
 
19
-        if (! is_dir(lang_path())) {
19
+        if (!is_dir(lang_path())) {
20 20
             $this->app->useLangPath(__DIR__.'/../../resources/lang');
21 21
         }
22 22
 
Please login to merge, or discard this patch.
packages/publications/src/PublicationsExtension.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
     /** @return \Illuminate\Support\Collection<string, \Hyde\Publications\Models\PublicationType> */
34 34
     public function getTypes(): Collection
35 35
     {
36
-        if (! isset($this->types)) {
36
+        if (!isset($this->types)) {
37 37
             $this->types = $this->parsePublicationTypes();
38 38
         }
39 39
 
@@ -53,8 +53,8 @@  discard block
 block discarded – undo
53 53
     {
54 54
         $this->types = $this->parsePublicationTypes();
55 55
 
56
-        $this->types->each(function (PublicationType $type) use ($collection): void {
57
-            Collection::make($this->getPublicationFilesForType($type))->map(function (string $filepath) use ($collection): void {
56
+        $this->types->each(function(PublicationType $type) use ($collection): void {
57
+            Collection::make($this->getPublicationFilesForType($type))->map(function(string $filepath) use ($collection): void {
58 58
                 $collection->put(Hyde::pathToRelative($filepath), SourceFile::make($filepath, PublicationPage::class));
59 59
             });
60 60
         });
@@ -71,11 +71,11 @@  discard block
 block discarded – undo
71 71
 
72 72
     protected function discoverPublicationPages(PageCollection $instance): void
73 73
     {
74
-        Files::getFiles(PublicationPage::class)->each(function (SourceFile $file) use ($instance): void {
74
+        Files::getFiles(PublicationPage::class)->each(function(SourceFile $file) use ($instance): void {
75 75
             $instance->addPage(PublicationPage::parse(Str::before($file->getPath(), PublicationPage::fileExtension())));
76 76
         });
77 77
 
78
-        $this->types->each(function (PublicationType $type) use ($instance): void {
78
+        $this->types->each(function(PublicationType $type) use ($instance): void {
79 79
             $this->generatePublicationListingPageForType($type, $instance);
80 80
         });
81 81
     }
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
     /** @return Collection<string, \Hyde\Publications\Pages\PublicationPage> */
117 117
     protected function parsePublicationTypes(): Collection
118 118
     {
119
-        return Collection::make($this->getSchemaFiles())->mapWithKeys(function (string $schemaFile): array {
119
+        return Collection::make($this->getSchemaFiles())->mapWithKeys(function(string $schemaFile): array {
120 120
             $type = PublicationType::fromFile(Hyde::pathToRelative($schemaFile));
121 121
 
122 122
             return [$type->getDirectory() => $type];
Please login to merge, or discard this patch.