Passed
Push — master ( 3a6cbe...28e8ac )
by Caen
03:01 queued 12s
created
packages/framework/src/Framework/Concerns/InteractsWithFrontMatter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,6 +42,6 @@
 block discarded – undo
42 42
      */
43 43
     public function has(string $key): bool
44 44
     {
45
-        return ! blank($this->data($key));
45
+        return !blank($this->data($key));
46 46
     }
47 47
 }
Please login to merge, or discard this patch.
framework/src/Framework/Features/Navigation/DocumentationSidebar.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -18,8 +18,8 @@  discard block
 block discarded – undo
18 18
     /** @return $this */
19 19
     public function generate(): static
20 20
     {
21
-        Router::getRoutes(DocumentationPage::class)->each(function (Route $route) {
22
-            $this->items->push(tap(NavItem::fromRoute($route)->setPriority($this->getPriorityForRoute($route)), function (NavItem $item) {
21
+        Router::getRoutes(DocumentationPage::class)->each(function(Route $route) {
22
+            $this->items->push(tap(NavItem::fromRoute($route)->setPriority($this->getPriorityForRoute($route)), function(NavItem $item) {
23 23
                 $item->label = $item->route->getPage()->data('navigation.label');
24 24
             }));
25 25
         });
@@ -34,14 +34,14 @@  discard block
 block discarded – undo
34 34
 
35 35
     public function getGroups(): array
36 36
     {
37
-        return $this->items->map(function (NavItem $item) {
37
+        return $this->items->map(function(NavItem $item) {
38 38
             return $item->getGroup();
39 39
         })->unique()->toArray();
40 40
     }
41 41
 
42 42
     public function getItemsInGroup(?string $group): Collection
43 43
     {
44
-        return $this->items->filter(function ($item) use ($group) {
44
+        return $this->items->filter(function($item) use ($group) {
45 45
             return $item->getGroup() === $group || $item->getGroup() === Str::slug($group);
46 46
         })->sortBy('navigation.priority')->values();
47 47
     }
@@ -53,6 +53,6 @@  discard block
 block discarded – undo
53 53
 
54 54
     protected function filterDocumentationPage(NavItem $item): bool
55 55
     {
56
-        return ! parent::filterDocumentationPage($item);
56
+        return !parent::filterDocumentationPage($item);
57 57
     }
58 58
 }
Please login to merge, or discard this patch.