Passed
Push — master ( a9db05...32ab90 )
by Caen
03:20 queued 13s
created
packages/framework/src/Framework/Services/BuildTaskService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -105,7 +105,7 @@
 block discarded – undo
105 105
 
106 106
     protected function findTasksInAppDirectory(): array
107 107
     {
108
-        return Filesystem::smartGlob('app/Actions/*BuildTask.php')->map(function (string $file): string {
108
+        return Filesystem::smartGlob('app/Actions/*BuildTask.php')->map(function(string $file): string {
109 109
             return static::pathToClassName($file);
110 110
         })->toArray();
111 111
     }
Please login to merge, or discard this patch.
packages/framework/src/Framework/Features/BuildTasks/BuildTask.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
     {
40 40
         $this->startClock();
41 41
 
42
-        if ($output && ! $this->output) {
42
+        if ($output && !$this->output) {
43 43
             $this->setOutput($output);
44 44
         }
45 45
 
Please login to merge, or discard this patch.
framework/src/Framework/Actions/PreBuildTasks/CleanSiteDirectory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
 
33 33
     protected function isItSafeToCleanOutputDirectory(): bool
34 34
     {
35
-        if (! $this->isOutputDirectoryWhitelisted() && ! $this->askIfUnsafeDirectoryShouldBeEmptied()) {
35
+        if (!$this->isOutputDirectoryWhitelisted() && !$this->askIfUnsafeDirectoryShouldBeEmptied()) {
36 36
             $this->info('Output directory will not be emptied.');
37 37
 
38 38
             return false;
Please login to merge, or discard this patch.
packages/framework/src/Support/DataCollection.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
     {
49 49
         static::needsDirectory(static::$sourceDirectory);
50 50
 
51
-        return new static(DataCollection::findFiles($name, 'md')->mapWithKeys(function (string $file): array {
51
+        return new static(DataCollection::findFiles($name, 'md')->mapWithKeys(function(string $file): array {
52 52
             return [static::makeIdentifier($file) => (new MarkdownFileParser($file))->get()];
53 53
         }));
54 54
     }
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
     {
65 65
         static::needsDirectory(static::$sourceDirectory);
66 66
 
67
-        return new static(DataCollection::findFiles($name, ['yaml', 'yml'])->mapWithKeys(function (string $file): array {
67
+        return new static(DataCollection::findFiles($name, ['yaml', 'yml'])->mapWithKeys(function(string $file): array {
68 68
             return [static::makeIdentifier($file) => (new MarkdownFileParser($file))->get()->matter()];
69 69
         }));
70 70
     }
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
     {
81 81
         static::needsDirectory(static::$sourceDirectory);
82 82
 
83
-        return new static(DataCollection::findFiles($name, 'json')->mapWithKeys(function (string $file) use ($asArray): array {
83
+        return new static(DataCollection::findFiles($name, 'json')->mapWithKeys(function(string $file) use ($asArray): array {
84 84
             return [static::makeIdentifier($file) => json_decode(Filesystem::get($file), $asArray)];
85 85
         }));
86 86
     }
Please login to merge, or discard this patch.
framework/src/Framework/Features/XmlGenerators/SitemapGenerator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
 
30 30
     public function generate(): static
31 31
     {
32
-        \Hyde\Facades\Route::all()->each(function (Route $route): void {
32
+        \Hyde\Facades\Route::all()->each(function(Route $route): void {
33 33
             $this->addRoute($route);
34 34
         });
35 35
 
Please login to merge, or discard this patch.
packages/framework/src/Foundation/Facades/Pages.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
 
23 23
     public static function getPages(?string $pageClass = null): PageCollection
24 24
     {
25
-        return $pageClass ? static::getFacadeRoot()->filter(function (HydePage $page) use ($pageClass): bool {
25
+        return $pageClass ? static::getFacadeRoot()->filter(function(HydePage $page) use ($pageClass) : bool {
26 26
             return $page instanceof $pageClass;
27 27
         }) : static::getFacadeRoot();
28 28
     }
Please login to merge, or discard this patch.
packages/framework/src/Foundation/Facades/Routes.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
 
23 23
     public static function getRoutes(?string $pageClass = null): RouteCollection
24 24
     {
25
-        return $pageClass ? static::getFacadeRoot()->filter(function (Route $route) use ($pageClass): bool {
25
+        return $pageClass ? static::getFacadeRoot()->filter(function(Route $route) use ($pageClass) : bool {
26 26
             return $route->getPage() instanceof $pageClass;
27 27
         }) : static::getFacadeRoot();
28 28
     }
Please login to merge, or discard this patch.
packages/framework/src/Foundation/Kernel/PageCollection.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
 
45 45
     protected function runDiscovery(): void
46 46
     {
47
-        $this->kernel->files()->each(function (ProjectFile $file): void {
47
+        $this->kernel->files()->each(function(ProjectFile $file): void {
48 48
             if ($file instanceof SourceFile) {
49 49
                 $this->addPage($file->model::parse(
50 50
                     DiscoveryService::pathToIdentifier($file->model, $file->getPath())
Please login to merge, or discard this patch.
packages/framework/src/Foundation/Kernel/FileCollection.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
65 65
     {
66 66
         // Scan the source directory, and directories therein, for files that match the model's file extension.
67 67
         foreach (glob($this->kernel->path($pageClass::sourcePath('{*,**/*}')), GLOB_BRACE) as $filepath) {
68
-            if (! str_starts_with(basename((string) $filepath), '_')) {
68
+            if (!str_starts_with(basename((string) $filepath), '_')) {
69 69
                 $this->addFile(SourceFile::make($filepath, $pageClass));
70 70
             }
71 71
         }
Please login to merge, or discard this patch.