diff --git a/src/Module/Repository/Internal/GitHub/GitHubRelease.php b/src/Module/Repository/Internal/GitHub/GitHubRelease.php index 459e20b..a23539f 100644 --- a/src/Module/Repository/Internal/GitHub/GitHubRelease.php +++ b/src/Module/Repository/Internal/GitHub/GitHubRelease.php @@ -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 { @@ -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']; }