style: update code style and phpcs rules

This commit is contained in:
Rico van Zelst
2025-05-05 18:47:12 +02:00
parent fe5fe93efb
commit 7f77efde29
3 changed files with 149 additions and 59 deletions

View File

@@ -15,7 +15,7 @@ function getRoleIcon($roleName): string
'Support' => 'gm-support.png',
];
return asset('img/'.$roleIcons[$roleName]);
return asset('img/' . $roleIcons[$roleName]);
}
function getAverageColorFromImageUrl($imageUrl): string
@@ -89,8 +89,10 @@ function getChampionImage($full_id, $type): string
*/
function getCommitHash(): string
{
/** @var string $commit */
$commit = Cache::remember('commit_hash', 60 * 72, fn () => trim(exec('git log --pretty="%h" -n1 HEAD')));
/**
* @var string $commit
*/
$commit = Cache::remember('commit_hash', 60 * 72, fn() => trim(exec('git log --pretty="%h" -n1 HEAD')));
return $commit;
}