Passed
Push — master ( 1517c6...e29574 )
by Caen
03:40
created
packages/framework/src/Commands/HydeBuildRssFeedCommand.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
         $actionTime = microtime(true);
38 38
 
39
-        if (! $this->runPreflightCheck()) {
39
+        if (!$this->runPreflightCheck()) {
40 40
             return 1;
41 41
         }
42 42
 
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
 
50 50
     protected function runPreflightCheck(): bool
51 51
     {
52
-        if (! RssFeedService::canGenerateFeed()) {
52
+        if (!RssFeedService::canGenerateFeed()) {
53 53
             $this->error('Cannot generate an RSS feed, please check your configuration.');
54 54
 
55 55
             return false;
Please login to merge, or discard this patch.
packages/framework/src/Commands/HydePublishHomepageCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@
 block discarded – undo
85 85
 
86 86
     protected function canExistingIndexFileBeOverwritten(): bool
87 87
     {
88
-        if (! file_exists(Hyde::getBladePagePath('index.blade.php')) || $this->option('force')) {
88
+        if (!file_exists(Hyde::getBladePagePath('index.blade.php')) || $this->option('force')) {
89 89
             return true;
90 90
         }
91 91
 
Please login to merge, or discard this patch.
packages/framework/src/Commands/HydeMakePostCommand.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
         $this->line("Date: $creator->date");
67 67
         $this->line("Slug: $creator->slug");
68 68
 
69
-        if (! $this->confirm('Do you wish to continue?', true)) {
69
+        if (!$this->confirm('Do you wish to continue?', true)) {
70 70
             $this->info('Aborting.');
71 71
 
72 72
             return 130;
Please login to merge, or discard this patch.
packages/framework/src/Application.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
         /*
18 18
          * Enable auto-discovery.
19 19
          */
20
-        $this->app->singleton(PackageManifest::class, function () {
20
+        $this->app->singleton(PackageManifest::class, function() {
21 21
             return new PackageManifest(
22 22
                 new Filesystem,
23 23
                 $this->basePath(),
Please login to merge, or discard this patch.
packages/framework/src/Models/NavigationMenu.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -38,11 +38,11 @@  discard block
 block discarded – undo
38 38
 
39 39
     public function generate(): self
40 40
     {
41
-        RoutingService::getInstance()->getRoutes()->each(function (Route $route) {
41
+        RoutingService::getInstance()->getRoutes()->each(function(Route $route) {
42 42
             $this->items->push(NavItem::fromRoute($route));
43 43
         });
44 44
 
45
-        collect(config('hyde.navigation.custom', []))->each(function (NavItem $item) {
45
+        collect(config('hyde.navigation.custom', []))->each(function(NavItem $item) {
46 46
             $this->items->push($item);
47 47
         });
48 48
 
@@ -52,12 +52,12 @@  discard block
 block discarded – undo
52 52
     public function filter(): self
53 53
     {
54 54
         // Remove hidden items
55
-        $this->items = $this->items->reject(function (NavItem $item) {
55
+        $this->items = $this->items->reject(function(NavItem $item) {
56 56
             return $item->hidden;
57 57
         })->values();
58 58
 
59 59
         // Remove duplicate items
60
-        $this->items = $this->items->unique(function (NavItem $item) {
60
+        $this->items = $this->items->unique(function(NavItem $item) {
61 61
             return $item->resolveLink();
62 62
         });
63 63
 
Please login to merge, or discard this patch.
packages/framework/src/Models/Route.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@
 block discarded – undo
98 98
     /** @inheritDoc */
99 99
     public static function getFromSource(string $sourceFilePath): static
100 100
     {
101
-        return RoutingService::getInstance()->getRoutes()->first(function (RouteContract $route) use ($sourceFilePath) {
101
+        return RoutingService::getInstance()->getRoutes()->first(function(RouteContract $route) use ($sourceFilePath) {
102 102
             return $route->getSourceFilePath() === $sourceFilePath;
103 103
         }) ?? throw new RouteNotFoundException($sourceFilePath);
104 104
     }
Please login to merge, or discard this patch.
packages/framework/src/Models/DocumentationSidebarItem.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
     {
34 34
         $orderIndexArray = config('docs.sidebar_order', []);
35 35
 
36
-        if (! in_array($slug, $orderIndexArray)) {
36
+        if (!in_array($slug, $orderIndexArray)) {
37 37
             return 500;
38 38
         }
39 39
 
Please login to merge, or discard this patch.
packages/framework/src/Models/NavItem.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
             $route,
52 52
             $route->getSourceModel()->navigationMenuTitle(),
53 53
             $route->getSourceModel()->navigationMenuPriority(),
54
-            ! $route->getSourceModel()->showInNavigation()
54
+            !$route->getSourceModel()->showInNavigation()
55 55
         );
56 56
     }
57 57
 
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
             $current = Hyde::currentRoute()->getSourceModel();
97 97
         }
98 98
 
99
-        if (! isset($this->route)) {
99
+        if (!isset($this->route)) {
100 100
             return ($current->getRoute()->getRouteKey() === $this->href)
101 101
             || ($current->getRoute()->getRouteKey().'.html' === $this->href);
102 102
         }
Please login to merge, or discard this patch.
packages/framework/src/Models/ValidationResult.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@
 block discarded – undo
73 73
 
74 74
     public function failed(): bool
75 75
     {
76
-        return ! $this->passed;
76
+        return !$this->passed;
77 77
     }
78 78
 
79 79
     public function statusCode(): int
Please login to merge, or discard this patch.