Passed
Push — master ( 23879b...05dd78 )
by Caen
03:57 queued 14s
created
packages/framework/src/Foundation/Internal/LoadYamlConfiguration.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
             /** @var Repository $config */
39 39
             $config = $app->make('config');
40 40
 
41
-            tap($config, function (Repository $config): void {
41
+            tap($config, function(Repository $config): void {
42 42
                 $this->config = $config->all();
43 43
                 $this->mergeParsedConfiguration();
44 44
             })->set($this->config);
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
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
 
36 36
     protected function runDiscovery(): void
37 37
     {
38
-        $this->kernel->files()->each(function (SourceFile $file): void {
38
+        $this->kernel->files()->each(function(SourceFile $file): void {
39 39
             $this->addPage($this->parsePage($file->pageClass, $file->getPath()));
40 40
         });
41 41
     }
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
     /** @param  class-string<\Hyde\Pages\Concerns\HydePage>|null  $pageClass */
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/Foundation/Kernel/FileCollection.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
     {
61 61
         // Scan the source directory, and directories therein, for files that match the model's file extension.
62 62
         foreach (glob($this->kernel->path($pageClass::sourcePath('{*,**/*}')), GLOB_BRACE) as $path) {
63
-            if (! str_starts_with(basename((string) $path), '_')) {
63
+            if (!str_starts_with(basename((string) $path), '_')) {
64 64
                 $this->addFile(SourceFile::make($path, $pageClass));
65 65
             }
66 66
         }
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
     /** @param  class-string<\Hyde\Pages\Concerns\HydePage>|null  $pageClass */
75 75
     public function getFiles(?string $pageClass = null): FileCollection
76 76
     {
77
-        return $pageClass ? $this->filter(function (SourceFile $file) use ($pageClass): bool {
77
+        return $pageClass ? $this->filter(function(SourceFile $file) use ($pageClass) : bool {
78 78
             return $file->pageClass === $pageClass;
79 79
         }) : $this;
80 80
     }
Please login to merge, or discard this patch.
packages/framework/src/Foundation/Kernel/RouteCollection.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
 
37 37
     protected function runDiscovery(): void
38 38
     {
39
-        $this->kernel->pages()->each(function (HydePage $page): void {
39
+        $this->kernel->pages()->each(function(HydePage $page): void {
40 40
             $this->addRoute(new Route($page));
41 41
         });
42 42
     }
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
     /** @param  class-string<\Hyde\Pages\Concerns\HydePage>|null  $pageClass */
57 57
     public function getRoutes(?string $pageClass = null): RouteCollection
58 58
     {
59
-        return $pageClass ? $this->filter(function (Route $route) use ($pageClass): bool {
59
+        return $pageClass ? $this->filter(function(Route $route) use ($pageClass) : bool {
60 60
             return $route->getPage() instanceof $pageClass;
61 61
         }) : $this;
62 62
     }
Please login to merge, or discard this patch.