Passed
Push — master ( 1a2e13...9a4f72 )
by Caen
03:32 queued 13s
created
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.
packages/framework/src/Foundation/Kernel/RouteCollection.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
 
62 62
     protected function runDiscovery(): void
63 63
     {
64
-        $this->kernel->pages()->each(function (HydePage $page): void {
64
+        $this->kernel->pages()->each(function(HydePage $page): void {
65 65
             $this->addRoute(new Route($page));
66 66
         });
67 67
     }
Please login to merge, or discard this patch.