Passed
Push — master ( cedd92...c053ab )
by Caen
05:50 queued 02:47
created
packages/framework/src/Foundation/PageCollection.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 getPages(?string $pageClass = null): self
35 35
     {
36
-        return ! $pageClass ? $this : $this->filter(function (HydePage $page) use ($pageClass): bool {
36
+        return !$pageClass ? $this : $this->filter(function(HydePage $page) use ($pageClass) : bool {
37 37
             return $page instanceof $pageClass;
38 38
         });
39 39
     }
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
 
66 66
     protected function discoverPagesFor(string $pageClass): void
67 67
     {
68
-        $this->parsePagesFor($pageClass)->each(function ($page): void {
68
+        $this->parsePagesFor($pageClass)->each(function($page): void {
69 69
             $this->discover($page);
70 70
         });
71 71
     }
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.
packages/framework/src/Foundation/Application.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
          * Enable auto-discovery.
24 24
          */
25
-        $this->app->singleton(PackageManifest::class, function (): \Illuminate\Foundation\PackageManifest {
25
+        $this->app->singleton(PackageManifest::class, function(): \Illuminate\Foundation\PackageManifest {
26 26
             return new PackageManifest(
27 27
                 new Filesystem,
28 28
                 $this->basePath(),
Please login to merge, or discard this patch.
packages/framework/src/Framework/HydeServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
 
39 39
         $this->app->singleton(AssetService::class, AssetService::class);
40 40
 
41
-        $this->app->singleton(MarkdownConverter::class, function (): \Hyde\Markdown\MarkdownConverter {
41
+        $this->app->singleton(MarkdownConverter::class, function(): \Hyde\Markdown\MarkdownConverter {
42 42
             return new MarkdownConverter();
43 43
         });
44 44
 
Please login to merge, or discard this patch.
packages/framework/src/Framework/Services/BuildService.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
 
41 41
     public function compileStaticPages(): void
42 42
     {
43
-        collect(Hyde::getDiscoveredPageTypes())->each(function (string $pageClass): void {
43
+        collect(Hyde::getDiscoveredPageTypes())->each(function(string $pageClass): void {
44 44
             $this->compilePagesForClass($pageClass);
45 45
         });
46 46
     }
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
         $this->needsDirectory(Hyde::sitePath('media'));
63 63
 
64 64
         $this->comment('Transferring Media Assets...');
65
-        $this->withProgressBar(DiscoveryService::getMediaAssetFiles(), function (string $filepath): void {
65
+        $this->withProgressBar(DiscoveryService::getMediaAssetFiles(), function(string $filepath): void {
66 66
             $sitePath = Hyde::sitePath('media/'.unslash(Str::after($filepath, Hyde::path('_media'))));
67 67
             $this->needsParentDirectory($sitePath);
68 68
             copy($filepath, $sitePath);
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
 
81 81
         $collection = $this->router->getRoutes($pageClass);
82 82
 
83
-        $this->withProgressBar($collection, function (Route $route): void {
83
+        $this->withProgressBar($collection, function(Route $route): void {
84 84
             (new StaticPageBuilder($route->getPage()))->__invoke();
85 85
         });
86 86
 
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
 
95 95
     protected function isItSafeToCleanOutputDirectory(): bool
96 96
     {
97
-        if (! $this->isOutputDirectoryWhitelisted() && ! $this->askIfUnsafeDirectoryShouldBeEmptied()) {
97
+        if (!$this->isOutputDirectoryWhitelisted() && !$this->askIfUnsafeDirectoryShouldBeEmptied()) {
98 98
             $this->info('Output directory will not be emptied.');
99 99
 
100 100
             return false;
Please login to merge, or discard this patch.
packages/framework/src/Framework/Features/Metadata/Elements/LinkElement.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
             return '';
36 36
         }
37 37
 
38
-        return sprintf(' %s', collect($this->attr)->map(function ($value, $key): string {
38
+        return sprintf(' %s', collect($this->attr)->map(function($value, $key): string {
39 39
             return e($key).'="'.e($value).'"';
40 40
         })->implode(' '));
41 41
     }
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.