Passed
Push — master ( b9dd51...a77e6b )
by Caen
03:22 queued 13s
created
packages/framework/src/Foundation/Kernel/PageCollection.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->files()->each(function (SourceFile $file): void {
35
+        $this->kernel->files()->each(function(SourceFile $file): void {
36 36
             $this->addPage($file->model::parse(
37 37
                 $file->model::pathToIdentifier($file->getPath())
38 38
             ));
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
      */
59 59
     public function getPages(?string $pageClass = null): PageCollection
60 60
     {
61
-        return $pageClass ? $this->filter(function (HydePage $page) use ($pageClass): bool {
61
+        return $pageClass ? $this->filter(function(HydePage $page) use ($pageClass) : bool {
62 62
             return $page instanceof $pageClass;
63 63
         }) : $this;
64 64
     }
Please login to merge, or discard this patch.
packages/framework/src/Console/Commands/RebuildPageCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -89,11 +89,11 @@
 block discarded – undo
89 89
                     Hyde::pathToRelative(Hyde::getDocumentationPagePath()),
90 90
                 ];
91 91
 
92
-                if (! in_array($directory, $directories)) {
92
+                if (!in_array($directory, $directories)) {
93 93
                     throw new Exception("Path [$this->path] is not in a valid source directory.", 400);
94 94
                 }
95 95
 
96
-                if (! file_exists(Hyde::path($this->path))) {
96
+                if (!file_exists(Hyde::path($this->path))) {
97 97
                     throw new Exception("File [$this->path] not found.", 404);
98 98
                 }
99 99
             }
Please login to merge, or discard this patch.