Passed
Push — master ( 32ab90...349214 )
by Caen
03:22 queued 14s
created
packages/framework/src/Foundation/Kernel/FileCollection.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
     {
54 54
         // Scan the source directory, and directories therein, for files that match the model's file extension.
55 55
         foreach (glob($this->kernel->path($pageClass::sourcePath('{*,**/*}')), GLOB_BRACE) as $filepath) {
56
-            if (! str_starts_with(basename((string) $filepath), '_')) {
56
+            if (!str_starts_with(basename((string) $filepath), '_')) {
57 57
                 $this->addFile(SourceFile::make($filepath, $pageClass));
58 58
             }
59 59
         }
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
      */
71 71
     public function getFiles(?string $pageClass = null): FileCollection
72 72
     {
73
-        return $pageClass ? $this->filter(function (SourceFile $file) use ($pageClass): bool {
73
+        return $pageClass ? $this->filter(function(SourceFile $file) use ($pageClass) : bool {
74 74
             return $file->model === $pageClass;
75 75
         }) : $this;
76 76
     }
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
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
 
33 33
     protected function runDiscovery(): void
34 34
     {
35
-        $this->kernel->pages()->each(function (HydePage $page): void {
35
+        $this->kernel->pages()->each(function(HydePage $page): void {
36 36
             $this->addRoute(new Route($page));
37 37
         });
38 38
     }
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
      */
56 56
     public function getRoutes(?string $pageClass = null): RouteCollection
57 57
     {
58
-        return $pageClass ? $this->filter(function (Route $route) use ($pageClass): bool {
58
+        return $pageClass ? $this->filter(function(Route $route) use ($pageClass) : bool {
59 59
             return $route->getPage() instanceof $pageClass;
60 60
         }) : $this;
61 61
     }
Please login to merge, or discard this patch.