Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions src/Web/Analytics/Chart.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,9 @@

final readonly class Chart
{

public function __construct(
public ImmutableArray $labels,
public ImmutableArray $values,
public ?int $min = null,
) {
}
) {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
use PDOException;
use Tempest\Database\Builder\QueryBuilders\QueryBuilder;
use Tempest\EventBus\EventHandler;

use function Tempest\Database\query;

final readonly class PackageDownloadsPerDayProjector implements Projector
Expand Down Expand Up @@ -42,7 +43,7 @@ public function onPackageDownloadsListed(PackageDownloadsListed $event): void
->where('date = ? AND package = ?', $date, $event->package)
->first();

if (!$packageDownloadsPerDay) {
if (! $packageDownloadsPerDay) {
$packageDownloadsPerDay = new PackageDownloadsPerDay(
date: $date,
package: $event->package,
Expand Down
1 change: 1 addition & 0 deletions src/Web/Documentation/ChapterController.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
{
#[Get('/docs/{path:.*}')]
#[Get('/current/{path:.*}')]
#[Get('/main/{path:.*}')]
public function docsRedirect(string $path): Redirect
{
return new Redirect(sprintf('/%s/%s', Version::default()->value, $path));
Expand Down
Loading