Passed
Push — master ( b6f457...706a45 )
by Caen
03:44 queued 17s
created
packages/framework/src/Markdown/Processing/ShortcodeProcessor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -119,7 +119,7 @@
 block discarded – undo
119 119
 
120 120
     protected function processInput(): static
121 121
     {
122
-        $this->output = implode("\n", array_map(function (string $line): string {
122
+        $this->output = implode("\n", array_map(function(string $line): string {
123 123
             return $this->expandShortcode($line);
124 124
         }, explode("\n", $this->input)));
125 125
 
Please login to merge, or discard this patch.
packages/framework/src/Support/Filesystem/MediaFile.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
 
56 56
     public function getContentLength(): int
57 57
     {
58
-        if (! is_file($this->getAbsolutePath())) {
58
+        if (!is_file($this->getAbsolutePath())) {
59 59
             throw new FileNotFoundException($this->path);
60 60
         }
61 61
 
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
 
97 97
     protected static function discoverMediaAssetFiles(): array
98 98
     {
99
-        return collect(static::getMediaAssetFiles())->mapWithKeys(function (string $path): array {
99
+        return collect(static::getMediaAssetFiles())->mapWithKeys(function(string $path): array {
100 100
             $file = static::make($path);
101 101
 
102 102
             return [$file->getIdentifier() => $file];
Please login to merge, or discard this patch.
framework/src/Framework/Actions/GeneratesDocumentationSearchIndex.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -48,8 +48,8 @@
 block discarded – undo
48 48
 
49 49
     protected function run(): void
50 50
     {
51
-        DocumentationPage::all()->each(function (DocumentationPage $page): void {
52
-            if (! in_array($page->identifier, Config::getArray('docs.exclude_from_search', []))) {
51
+        DocumentationPage::all()->each(function(DocumentationPage $page): void {
52
+            if (!in_array($page->identifier, Config::getArray('docs.exclude_from_search', []))) {
53 53
                 $this->index->push($this->generatePageEntry($page));
54 54
             }
55 55
         });
Please login to merge, or discard this patch.
packages/framework/src/Framework/Services/BuildService.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
 
44 44
     public function compileStaticPages(): void
45 45
     {
46
-        collect($this->getPageTypes())->each(function (string $pageClass): void {
46
+        collect($this->getPageTypes())->each(function(string $pageClass): void {
47 47
             $this->compilePagesForClass($pageClass);
48 48
         });
49 49
     }
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
         $this->needsDirectory(Hyde::siteMediaPath());
54 54
 
55 55
         $this->comment('Transferring Media Assets...');
56
-        $this->withProgressBar(MediaFile::files(), function (string $identifier): void {
56
+        $this->withProgressBar(MediaFile::files(), function(string $identifier): void {
57 57
             $sitePath = Hyde::siteMediaPath($identifier);
58 58
             $this->needsParentDirectory($sitePath);
59 59
             copy(Hyde::mediaPath($identifier), $sitePath);
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
 
72 72
         $collection = Routes::getRoutes($pageClass);
73 73
 
74
-        $this->withProgressBar($collection, function (Route $route): void {
74
+        $this->withProgressBar($collection, function(Route $route): void {
75 75
             StaticPageBuilder::handle($route->getPage());
76 76
         });
77 77
 
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
     /** @return array<class-string<\Hyde\Pages\Concerns\HydePage>> */
87 87
     protected function getPageTypes(): array
88 88
     {
89
-        return Hyde::pages()->map(function (HydePage $page): string {
89
+        return Hyde::pages()->map(function(HydePage $page): string {
90 90
             return $page::class;
91 91
         })->unique()->values()->toArray();
92 92
     }
Please login to merge, or discard this patch.
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/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.