Passed
Push — dependabot/npm_and_yarn/tailwi... ( 592882...e868f0 )
by
unknown
07:03 queued 03:02
created
Category
packages/framework/src/Framework/Services/MarkdownService.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
 
88 88
     public function addExtension(string $extensionClassName): void
89 89
     {
90
-        if (! in_array($extensionClassName, $this->extensions)) {
90
+        if (!in_array($extensionClassName, $this->extensions)) {
91 91
             $this->extensions[] = $extensionClassName;
92 92
         }
93 93
     }
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
 
129 129
     public function addFeature(string $feature): static
130 130
     {
131
-        if (! in_array($feature, $this->features)) {
131
+        if (!in_array($feature, $this->features)) {
132 132
             $this->features[] = $feature;
133 133
         }
134 134
 
@@ -180,7 +180,7 @@  discard block
 block discarded – undo
180 180
 
181 181
     protected function determineIfTorchlightAttributionShouldBeInjected(): bool
182 182
     {
183
-        return ! $this->isDocumentationPage()
183
+        return !$this->isDocumentationPage()
184 184
             && Config::getBool('torchlight.attribution.enabled', true)
185 185
             && str_contains($this->html, 'Syntax highlighted by torchlight.dev');
186 186
     }
Please login to merge, or discard this patch.
packages/framework/src/Console/Commands/RebuildPageCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -93,11 +93,11 @@
 block discarded – undo
93 93
                     Hyde::pathToRelative(DocumentationPage::path()),
94 94
                 ];
95 95
 
96
-                if (! in_array($directory, $directories)) {
96
+                if (!in_array($directory, $directories)) {
97 97
                     throw new Exception("Path [$this->path] is not in a valid source directory.", 400);
98 98
                 }
99 99
 
100
-                if (! file_exists(Hyde::path($this->path))) {
100
+                if (!file_exists(Hyde::path($this->path))) {
101 101
                     throw new Exception("File [$this->path] not found.", 404);
102 102
                 }
103 103
             }
Please login to merge, or discard this patch.
packages/framework/src/Foundation/Kernel/PageCollection.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
 
33 33
     protected function runDiscovery(): void
34 34
     {
35
-        $this->kernel->files()->each(function (SourceFile $file): void {
35
+        $this->kernel->files()->each(function(SourceFile $file): void {
36 36
             $this->addPage($this->parsePage($file->pageClass, $file->getPath()));
37 37
         });
38 38
     }
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
      */
63 63
     public function getPages(?string $pageClass = null): PageCollection
64 64
     {
65
-        return $pageClass ? $this->filter(function (HydePage $page) use ($pageClass): bool {
65
+        return $pageClass ? $this->filter(function(HydePage $page) use ($pageClass) : bool {
66 66
             return $page instanceof $pageClass;
67 67
         }) : $this;
68 68
     }
Please login to merge, or discard this patch.
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.
packages/framework/src/Foundation/Kernel/FileCollection.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
         // Scan the source directory, and directories therein, for files that match the model's file extension.
57 57
         foreach (glob($this->kernel->path($pageClass::sourcePath('{*,**/*}')), GLOB_BRACE) as $path) {
58
-            if (! str_starts_with(basename((string) $path), '_')) {
58
+            if (!str_starts_with(basename((string) $path), '_')) {
59 59
                 $this->addFile(SourceFile::make($path, $pageClass));
60 60
             }
61 61
         }
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
      */
73 73
     public function getFiles(?string $pageClass = null): FileCollection
74 74
     {
75
-        return $pageClass ? $this->filter(function (SourceFile $file) use ($pageClass): bool {
75
+        return $pageClass ? $this->filter(function(SourceFile $file) use ($pageClass) : bool {
76 76
             return $file->pageClass === $pageClass;
77 77
         }) : $this;
78 78
     }
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.