Passed
Branch discover-filesystem (2a4c10)
by Caen
03:39
created
packages/framework/src/Foundation/RouteCollection.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
 {
34 34
     public function getRoutes(?string $pageClass = null): self
35 35
     {
36
-        return ! $pageClass ? $this : $this->filter(function (RouteContract $route) use ($pageClass) {
36
+        return !$pageClass ? $this : $this->filter(function(RouteContract $route) use ($pageClass) {
37 37
             return $route->getSourceModel() instanceof $pageClass;
38 38
         });
39 39
     }
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
 
60 60
     protected function runDiscovery(): self
61 61
     {
62
-        $this->kernel->pages()->each(function (PageContract $page) {
62
+        $this->kernel->pages()->each(function(PageContract $page) {
63 63
             $this->discover($page);
64 64
         });
65 65
 
Please login to merge, or discard this patch.
packages/framework/src/Services/DiscoveryService.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,12 +36,12 @@
 block discarded – undo
36 36
      */
37 37
     public static function getSourceFileListForModel(string $model): array
38 38
     {
39
-        if (! class_exists($model) || ! is_subclass_of($model, AbstractPage::class)) {
39
+        if (!class_exists($model) || !is_subclass_of($model, AbstractPage::class)) {
40 40
             throw new UnsupportedPageTypeException($model);
41 41
         }
42 42
 
43 43
         $files = [];
44
-        Hyde::files()->getSourceFiles($model)->each(function (File $file) use (&$files, $model) {
44
+        Hyde::files()->getSourceFiles($model)->each(function(File $file) use (&$files, $model) {
45 45
             $files[] = self::formatSlugForModel($model, $file->withoutDirectoryPrefix());
46 46
         });
47 47
 
Please login to merge, or discard this patch.