Passed
Push — master ( 1afa4d...c3dc3d )
by Caen
02:58 queued 13s
created
framework/src/Concerns/FrontMatter/Schemas/DocumentationPageSchema.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
     {
50 50
         $orderIndexArray = config('docs.sidebar_order', []);
51 51
 
52
-        if (! in_array($this->identifier, $orderIndexArray)) {
52
+        if (!in_array($this->identifier, $orderIndexArray)) {
53 53
             return 500;
54 54
         }
55 55
 
Please login to merge, or discard this patch.
packages/framework/src/Concerns/FrontMatter/Schemas/PageSchema.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,11 +38,11 @@
 block discarded – undo
38 38
 
39 39
     protected function makeCanonicalUrl(): ?string
40 40
     {
41
-        if (! empty($this->matter('canonicalUrl'))) {
41
+        if (!empty($this->matter('canonicalUrl'))) {
42 42
             return $this->matter('canonicalUrl');
43 43
         }
44 44
 
45
-        if (Hyde::hasSiteUrl() && ! empty($this->identifier)) {
45
+        if (Hyde::hasSiteUrl() && !empty($this->identifier)) {
46 46
             return $this->getRoute()->getQualifiedUrl();
47 47
         }
48 48
 
Please login to merge, or discard this patch.
packages/framework/src/Models/Image.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -138,7 +138,7 @@
 block discarded – undo
138 138
 
139 139
     public function getLink(): string
140 140
     {
141
-        if (! $this->getSource()) {
141
+        if (!$this->getSource()) {
142 142
             return '';
143 143
         }
144 144
 
Please login to merge, or discard this patch.
packages/framework/src/Actions/FindsContentLengthForImageObject.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
     {
68 68
         $path = Hyde::path('_media/'.$this->image->getSource());
69 69
 
70
-        if (! file_exists($path)) {
70
+        if (!file_exists($path)) {
71 71
             $this->write(' > <comment>Warning:</comment> Could not find image file at '.$path.'!');
72 72
             $this->write('         <fg=gray>   Using default content length of 0. '.'</>');
73 73
 
Please login to merge, or discard this patch.
packages/framework/src/Contracts/AbstractPage.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
             return property_exists($this, $key) || $this->matter->has($key);
129 129
         }
130 130
 
131
-        return ! blank($this->get($key));
131
+        return !blank($this->get($key));
132 132
     }
133 133
 
134 134
     /** @inheritDoc */
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
 
184 184
     public function showInNavigation(): bool
185 185
     {
186
-        return ! $this->navigation['hidden'];
186
+        return !$this->navigation['hidden'];
187 187
     }
188 188
 
189 189
     public function navigationMenuPriority(): int
Please login to merge, or discard this patch.
packages/framework/src/Models/Metadata/LinkItem.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
             return '<link rel="'.e($this->rel).'" href="'.e($this->href).'">';
17 17
         }
18 18
 
19
-        $attributes = collect($this->attr)->map(function ($value, $key) {
19
+        $attributes = collect($this->attr)->map(function($value, $key) {
20 20
             return e($key).'="'.e($value).'"';
21 21
         })->implode(' ');
22 22
 
Please login to merge, or discard this patch.
packages/framework/src/Actions/Constructors/FindsNavigationDataForPage.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
     {
28 28
         return [
29 29
             'title' => $this->getNavigationMenuTitle(),
30
-            'hidden' => ! $this->getNavigationMenuVisible(),
30
+            'hidden' => !$this->getNavigationMenuVisible(),
31 31
             'priority' => $this->getNavigationMenuPriority(),
32 32
         ];
33 33
     }
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
         }
61 61
 
62 62
         if ($this->page instanceof DocumentationPage) {
63
-            return $this->page->identifier === 'index' && ! in_array($this->page->routeKey, config('hyde.navigation.exclude', []));
63
+            return $this->page->identifier === 'index' && !in_array($this->page->routeKey, config('hyde.navigation.exclude', []));
64 64
         }
65 65
 
66 66
         if ($this->page->matter('navigation.hidden', false)) {
Please login to merge, or discard this patch.
packages/framework/src/Services/BuildService.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
 
35 35
     public function compileStaticPages(): void
36 36
     {
37
-        $this->getDiscoveredModels()->each(function (string $pageClass) {
37
+        $this->getDiscoveredModels()->each(function(string $pageClass) {
38 38
             $this->compilePagesForClass($pageClass);
39 39
         });
40 40
     }
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
 
61 61
         $this->withProgressBar(
62 62
             $collection,
63
-            function ($filepath) {
63
+            function($filepath) {
64 64
                 copy($filepath, Hyde::getSiteOutputPath('media/'.basename($filepath)));
65 65
             }
66 66
         );
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
      */
73 73
     protected function getDiscoveredModels(): RouteCollection
74 74
     {
75
-        return $this->router->getRoutes()->map(function (Route $route) {
75
+        return $this->router->getRoutes()->map(function(Route $route) {
76 76
             return $route->getPageType();
77 77
         })->unique();
78 78
     }
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
     /** @psalm-return \Closure(Route):string */
95 95
     protected function compileRoute(): \Closure
96 96
     {
97
-        return function (Route $route) {
97
+        return function(Route $route) {
98 98
             return (new StaticPageBuilder($route->getSourceModel()))->__invoke();
99 99
         };
100 100
     }
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
 
107 107
     protected function isItSafeToCleanOutputDirectory(): bool
108 108
     {
109
-        if (! $this->isOutputDirectoryWhitelisted() && ! $this->askIfUnsafeDirectoryShouldBeEmptied()) {
109
+        if (!$this->isOutputDirectoryWhitelisted() && !$this->askIfUnsafeDirectoryShouldBeEmptied()) {
110 110
             $this->info('Output directory will not be emptied.');
111 111
 
112 112
             return false;
Please login to merge, or discard this patch.
packages/framework/src/Models/DocumentationSidebar.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -15,9 +15,9 @@  discard block
 block discarded – undo
15 15
     /** @return $this */
16 16
     public function generate(): static
17 17
     {
18
-        Hyde::routes()->getRoutes(DocumentationPage::class)->each(function (Route $route) {
19
-            if (! $route->getSourceModel()->get('hidden', false)) {
20
-                $this->items->push(tap(NavItem::fromRoute($route)->setPriority($this->getPriorityForRoute($route)), function (NavItem $item) {
18
+        Hyde::routes()->getRoutes(DocumentationPage::class)->each(function(Route $route) {
19
+            if (!$route->getSourceModel()->get('hidden', false)) {
20
+                $this->items->push(tap(NavItem::fromRoute($route)->setPriority($this->getPriorityForRoute($route)), function(NavItem $item) {
21 21
                     $item->title = $item->route->getSourceModel()->get('label');
22 22
                 }));
23 23
             }
@@ -33,14 +33,14 @@  discard block
 block discarded – undo
33 33
 
34 34
     public function getGroups(): array
35 35
     {
36
-        return $this->items->map(function (NavItem $item) {
36
+        return $this->items->map(function(NavItem $item) {
37 37
             return $item->getGroup();
38 38
         })->unique()->toArray();
39 39
     }
40 40
 
41 41
     public function getItemsInGroup(?string $group): Collection
42 42
     {
43
-        return $this->items->filter(function ($item) use ($group) {
43
+        return $this->items->filter(function($item) use ($group) {
44 44
             return $item->getGroup() === $group || $item->getGroup() === Str::slug($group);
45 45
         })->sortBy('priority')->values();
46 46
     }
Please login to merge, or discard this patch.