Passed
Push — master ( 245fab...d610e1 )
by Caen
03:25 queued 14s
created
packages/framework/src/Pages/InMemoryPage.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
             return $this->__call('compile', []);
93 93
         }
94 94
 
95
-        if (! $this->getContents() && $this->getBladeView()) {
95
+        if (!$this->getContents() && $this->getBladeView()) {
96 96
             if (str_ends_with($this->getBladeView(), '.blade.php')) {
97 97
                 // If the view key is for a Blade file path, we'll use the anonymous view compiler to compile it.
98 98
                 // This allows you to use any arbitrary file, without needing to register its namespace or directory.
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
      */
120 120
     public function __call(string $method, array $parameters): mixed
121 121
     {
122
-        if (! isset($this->macros[$method])) {
122
+        if (!isset($this->macros[$method])) {
123 123
             throw new BadMethodCallException(sprintf(
124 124
                 'Method %s::%s does not exist.', static::class, $method
125 125
             ));
Please login to merge, or discard this patch.
framework/src/Framework/Features/Navigation/DocumentationSidebar.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
     /** @return $this */
20 20
     public function generate(): static
21 21
     {
22
-        Routes::getRoutes(DocumentationPage::class)->each(function (Route $route): void {
22
+        Routes::getRoutes(DocumentationPage::class)->each(function(Route $route): void {
23 23
             $this->items->put($route->getRouteKey(), NavItem::fromRoute($route));
24 24
         });
25 25
 
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
     /** @return array<string> */
35 35
     public function getGroups(): array
36 36
     {
37
-        return $this->items->map(function (NavItem $item): string {
37
+        return $this->items->map(function(NavItem $item): string {
38 38
             return $item->getGroup();
39 39
         })->unique()->toArray();
40 40
     }
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
     /** @return Collection<\Hyde\Framework\Features\Navigation\NavItem> */
43 43
     public function getItemsInGroup(?string $group): Collection
44 44
     {
45
-        return $this->items->filter(function (NavItem $item) use ($group): bool {
45
+        return $this->items->filter(function(NavItem $item) use ($group) : bool {
46 46
             return ($item->getGroup() === $group) || ($item->getGroup() === Str::slug($group));
47 47
         })->sortBy('navigation.priority')->values();
48 48
     }
Please login to merge, or discard this patch.