Skip to content

Commit

Permalink
style(php-cs-fixer): lint php files and fix coding standards
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions authored and github-actions[bot] committed Aug 2, 2024
1 parent 606856d commit 4243a03
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Module/Repository/Internal/GitHub/GitHubRelease.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public static function fromApiResponse(GitHubRepository $repository, HttpClientI
);

$name = self::getTagName($data);
$version = $data['tag_name'] ?? (string)$data['name'];
$version = $data['tag_name'] ?? (string) $data['name'];
$result = new self($client, $repository, $name, $version);

$result->assets = AssetsCollection::from(static function () use ($client, $result, $data): \Generator {
Expand Down Expand Up @@ -99,7 +99,7 @@ private static function getTagName(array $data): string
return $parser->normalize($data['tag_name']);
} catch (\Throwable $e) {
try {
return $parser->normalize((string)$data['name']);
return $parser->normalize((string) $data['name']);
} catch (\Throwable $e) {
return 'dev-' . $data['tag_name'];
}
Expand Down

0 comments on commit 4243a03

Please sign in to comment.