Skip to content

Commit ab4767b

Browse files
committed
Formatting.
1 parent 683568a commit ab4767b

File tree

5 files changed

+12
-8
lines changed

5 files changed

+12
-8
lines changed

src/GitHub/GetLatestRelease.php

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,18 @@
88

99
final class GetLatestRelease
1010
{
11-
public function __construct(private HttpClient $httpClient)
12-
{}
11+
public function __construct(
12+
private HttpClient $httpClient,
13+
) {
14+
}
1315

1416
public function __invoke(): ?string
1517
{
1618
// Default release to the currently running version of Tempest.
1719
$defaultRelease = sprintf('v%s', Kernel::VERSION);
1820

1921
try {
20-
$body = $this
21-
->httpClient
22+
$body = $this->httpClient
2223
->get('https://api.github.com/repos/tempestphp/tempest-framework/releases/latest')
2324
->body;
2425

@@ -28,4 +29,4 @@ public function __invoke(): ?string
2829
return Kernel::VERSION;
2930
}
3031
}
31-
}
32+
}

src/Migrations/FixDateTimeFieldsMigration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ public function __invoke()
2424

2525
$this->success('Done');
2626
}
27-
}
27+
}

src/Web/Documentation/ChapterView.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
use Tempest\Support\Arr\ImmutableArray;
88
use Tempest\View\IsView;
99
use Tempest\View\View;
10+
1011
use function Tempest\Support\Arr\map_iterable;
1112
use function Tempest\Support\str;
1213

src/Web/LatestReleaseViewProcessor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ public function process(View $view): View
1818
{
1919
return $view->data(latest_release: ($this->getLatestRelease)());
2020
}
21-
}
21+
}

src/Web/x-header.view.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,9 @@ class="transition hover:text-(--ui-text-highlighted) <?= is_current_uri([Chapter
4444
</a>
4545
<a
4646
:href="uri([BlogController::class, 'index'])"
47-
class="transition hover:text-(--ui-text-highlighted) <?= is_current_uri([BlogController::class, 'show']) || is_current_uri([BlogController::class, 'index']) ? 'md:text-(--ui-primary)' : '' ?>"
47+
class="transition hover:text-(--ui-text-highlighted) <?= is_current_uri([BlogController::class, 'show']) || is_current_uri([BlogController::class, 'index'])
48+
? 'md:text-(--ui-primary)'
49+
: '' ?>"
4850
>Blog</a>
4951
<a href="https://github.com/tempestphp/tempest-framework" class="transition hover:text-(--ui-text-highlighted) flex items-center gap-x-1.5 ml-4">
5052
<x-icon name="tabler:brand-github" class="size-6" />

0 commit comments

Comments
 (0)