Skip to content

Commit

Permalink
fix cs
Browse files Browse the repository at this point in the history
  • Loading branch information
garak committed Apr 26, 2024
1 parent 7796731 commit 8991475
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/Badge/Model/Package.php
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ public function getDescription(): string
return $this->getOriginalObject()->getDescription();
}

public function getDownloads(): ApiPackage\Downloads|null
public function getDownloads(): ?ApiPackage\Downloads
{
return $this->getOriginalObject()->getDownloads();
}
Expand Down
2 changes: 1 addition & 1 deletion src/Badge/Model/UseCase/BaseCreatePackagistImage.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ protected function createBadgeFromRepository(
string $color,
string $format = Badge::DEFAULT_FORMAT,
string $style = Badge::DEFAULT_STYLE,
string $context = null,
?string $context = null,
int $maxage = self::TTL_DEFAULT_MAXAGE,
int $smaxage = self::TTL_DEFAULT_SMAXAGE
): CacheableBadge {
Expand Down
2 changes: 1 addition & 1 deletion src/Badge/Model/UseCase/CreateDependentsBadge.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ final class CreateDependentsBadge extends BaseCreatePackagistImage

public function __construct(
PackageRepositoryInterface $packageRepository,
NormalizerInterface $textNormalizer = null
?NormalizerInterface $textNormalizer = null
) {
parent::__construct($packageRepository);
$this->normalizer = $textNormalizer ?? new TextNormalizer();
Expand Down
2 changes: 1 addition & 1 deletion src/Badge/Model/UseCase/CreateDownloadsBadge.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ final class CreateDownloadsBadge extends BaseCreatePackagistImage

private NormalizerInterface $normalizer;

public function __construct(PackageRepositoryInterface $packageRepository, NormalizerInterface $textNormalizer = null)
public function __construct(PackageRepositoryInterface $packageRepository, ?NormalizerInterface $textNormalizer = null)
{
parent::__construct($packageRepository);
$this->normalizer = $textNormalizer ?? new TextNormalizer();
Expand Down
2 changes: 1 addition & 1 deletion src/Badge/Model/UseCase/CreateSuggestersBadge.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ final class CreateSuggestersBadge extends BaseCreatePackagistImage

public function __construct(
PackageRepositoryInterface $packageRepository,
NormalizerInterface $textNormalizer = null
?NormalizerInterface $textNormalizer = null
) {
parent::__construct($packageRepository);
$this->normalizer = $textNormalizer ?? new TextNormalizer();
Expand Down
2 changes: 1 addition & 1 deletion src/Badge/ValueObject/Repository.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
private function __construct(
private string $source,
private string $username,
private string $name,
private string $name,
) {
}

Expand Down

0 comments on commit 8991475

Please sign in to comment.