Passed
Push — master ( 20e830...0a10dc )
by Caen
04:06 queued 12s
created
packages/framework/src/Support/Filesystem/MediaFile.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
 
27 27
     public function getContentLength(): int
28 28
     {
29
-        if (! is_file($this->path)) {
29
+        if (!is_file($this->path)) {
30 30
             throw new FileNotFoundException(message: "Could not get the content length of file '$this->path'");
31 31
         }
32 32
 
Please login to merge, or discard this patch.
packages/framework/src/Foundation/FileCollection.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
      */
35 35
     public function getSourceFiles(?string $pageClass = null): self
36 36
     {
37
-        return ! $pageClass ? $this->getAllSourceFiles() : $this->getSourceFilesFor($pageClass);
37
+        return !$pageClass ? $this->getAllSourceFiles() : $this->getSourceFilesFor($pageClass);
38 38
     }
39 39
 
40 40
     /**
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
     {
93 93
         // Scan the source directory, and directories therein, for files that match the model's file extension.
94 94
         foreach (glob($this->kernel->path($pageClass::sourcePath('{*,**/*}')), GLOB_BRACE) as $filepath) {
95
-            if (! str_starts_with(basename((string) $filepath), '_')) {
95
+            if (!str_starts_with(basename((string) $filepath), '_')) {
96 96
                 $this->put($this->kernel->pathToRelative($filepath), SourceFile::make($filepath, $pageClass));
97 97
             }
98 98
         }
Please login to merge, or discard this patch.
packages/framework/src/Framework/Services/DiscoveryService.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -70,11 +70,11 @@
 block discarded – undo
70 70
      */
71 71
     public static function getSourceFileListForModel(string $model): array
72 72
     {
73
-        if (! class_exists($model) || ! is_subclass_of($model, HydePage::class)) {
73
+        if (!class_exists($model) || !is_subclass_of($model, HydePage::class)) {
74 74
             throw new UnsupportedPageTypeException($model);
75 75
         }
76 76
 
77
-        return FileCollection::getSourceFiles($model)->flatten()->map(function (SourceFile $file) use ($model): string {
77
+        return FileCollection::getSourceFiles($model)->flatten()->map(function(SourceFile $file) use ($model): string {
78 78
             return static::pathToIdentifier($model, $file->withoutDirectoryPrefix());
79 79
         })->toArray();
80 80
     }
Please login to merge, or discard this patch.
packages/testing/src/ResetsApplication.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@
 block discarded – undo
66 66
             '.gitkeep',
67 67
         ];
68 68
 
69
-        if (! in_array(basename($filepath), $protected)) {
69
+        if (!in_array(basename($filepath), $protected)) {
70 70
             unlink($filepath);
71 71
         }
72 72
     }
Please login to merge, or discard this patch.
packages/testing/src/CreatesTemporaryFiles.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
         if (sizeof($this->fileMemory) > 0) {
52 52
             foreach ($this->fileMemory as $file) {
53 53
                 if (Filesystem::isDirectory($file)) {
54
-                    if (! in_array($file, ['_site', '_media', '_pages', '_posts', '_docs', 'app', 'config', 'storage', 'vendor', 'node_modules'])) {
54
+                    if (!in_array($file, ['_site', '_media', '_pages', '_posts', '_docs', 'app', 'config', 'storage', 'vendor', 'node_modules'])) {
55 55
                         Filesystem::deleteDirectory($file);
56 56
                     }
57 57
                 } else {
Please login to merge, or discard this patch.
packages/framework/src/Foundation/RouteCollection.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
 {
39 39
     public function getRoutes(?string $pageClass = null): self
40 40
     {
41
-        return ! $pageClass ? $this : $this->filter(function (Route $route) use ($pageClass): bool {
41
+        return !$pageClass ? $this : $this->filter(function(Route $route) use ($pageClass) : bool {
42 42
             return $route->getPage() instanceof $pageClass;
43 43
         });
44 44
     }
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
 
66 66
     protected function runDiscovery(): self
67 67
     {
68
-        $this->kernel->pages()->each(function (HydePage $page): void {
68
+        $this->kernel->pages()->each(function(HydePage $page): void {
69 69
             $this->discover($page);
70 70
         });
71 71
 
Please login to merge, or discard this patch.
rector.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@
 block discarded – undo
7 7
 use Rector\Set\ValueObject\SetList;
8 8
 use RectorLaravel\Set\LaravelSetList;
9 9
 
10
-return static function (RectorConfig $rectorConfig): void {
10
+return static function(RectorConfig $rectorConfig): void {
11 11
     $rectorConfig->paths([__DIR__.'/packages/framework/src']);
12 12
     $rectorConfig->sets([
13 13
         LaravelSetList::LARAVEL_90,
Please login to merge, or discard this patch.
packages/framework/src/Foundation/PageCollection.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
     public function getPages(?string $pageClass = null): self
38 38
     {
39
-        return ! $pageClass ? $this : $this->filter(function (HydePage $page) use ($pageClass): bool {
39
+        return !$pageClass ? $this : $this->filter(function(HydePage $page) use ($pageClass) : bool {
40 40
             return $page instanceof $pageClass;
41 41
         });
42 42
     }
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
 
94 94
     protected function discoverPagesFor(string $pageClass): void
95 95
     {
96
-        $this->parsePagesFor($pageClass)->each(function (HydePage $page): void {
96
+        $this->parsePagesFor($pageClass)->each(function(HydePage $page): void {
97 97
             $this->addPage($page);
98 98
         });
99 99
     }
Please login to merge, or discard this patch.
packages/framework/src/Foundation/Concerns/BootsHydeKernel.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
 
21 21
     public function boot(): void
22 22
     {
23
-        if (! $this->readyToBoot || $this->booting) {
23
+        if (!$this->readyToBoot || $this->booting) {
24 24
             return;
25 25
         }
26 26
 
Please login to merge, or discard this patch.