Passed
Push — master ( 00b783...b7fb13 )
by Caen
03:02 queued 11s
created
packages/framework/src/Actions/Constructors/FindsNavigationDataForPage.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
     {
26 26
         return [
27 27
             'title' => $this->getNavigationMenuTitle(),
28
-            'hidden' => ! $this->getNavigationMenuVisible(),
28
+            'hidden' => !$this->getNavigationMenuVisible(),
29 29
             'priority' => $this->getNavigationMenuPriority(),
30 30
         ];
31 31
     }
@@ -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('docs', config('hyde.navigation.exclude', []));
63
+            return $this->page->identifier === 'index' && !in_array('docs', config('hyde.navigation.exclude', []));
64 64
         }
65 65
 
66 66
         if ($this->page instanceof AbstractMarkdownPage) {
Please login to merge, or discard this patch.
packages/framework/src/Contracts/AbstractPage.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -235,7 +235,7 @@
 block discarded – undo
235 235
 
236 236
     public function showInNavigation(): bool
237 237
     {
238
-        return ! $this->navigation['hidden'];
238
+        return !$this->navigation['hidden'];
239 239
     }
240 240
 
241 241
     public function navigationMenuPriority(): int
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
@@ -12,8 +12,8 @@  discard block
 block discarded – undo
12 12
     /** @return $this */
13 13
     public function generate(): static
14 14
     {
15
-        RoutingService::getInstance()->getRoutesForModel(DocumentationPage::class)->each(function (Route $route) {
16
-            if (! $route->getSourceModel()->get('hidden', false)) {
15
+        RoutingService::getInstance()->getRoutesForModel(DocumentationPage::class)->each(function(Route $route) {
16
+            if (!$route->getSourceModel()->get('hidden', false)) {
17 17
                 $this->items->push(NavItem::fromRoute($route)->setPriority($this->getPriorityForRoute($route)));
18 18
             }
19 19
         });
@@ -23,21 +23,21 @@  discard block
 block discarded – undo
23 23
 
24 24
     public function hasGroups(): bool
25 25
     {
26
-        return $this->items->map(function (NavItem $item) {
26
+        return $this->items->map(function(NavItem $item) {
27 27
             return $item->getGroup() !== null;
28 28
         })->contains(true);
29 29
     }
30 30
 
31 31
     public function getGroups(): array
32 32
     {
33
-        return $this->items->map(function (NavItem $item) {
33
+        return $this->items->map(function(NavItem $item) {
34 34
             return $item->getGroup();
35 35
         })->unique()->toArray();
36 36
     }
37 37
 
38 38
     public function getItemsInGroup(?string $group): Collection
39 39
     {
40
-        return $this->items->filter(function ($item) use ($group) {
40
+        return $this->items->filter(function($item) use ($group) {
41 41
             return $item->getGroup() === $group || $item->getGroup() === Str::slug($group);
42 42
         })->sortBy('priority')->values();
43 43
     }
Please login to merge, or discard this patch.
packages/framework/src/Models/Pages/MarkdownPost.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
     protected function parseFrontMatterMetadata(): void
75 75
     {
76
-        if (! empty($this->matter('description'))) {
76
+        if (!empty($this->matter('description'))) {
77 77
             $this->metadata['description'] = $this->matter('description');
78 78
         }
79 79
 
Please login to merge, or discard this patch.
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.