mirror of
https://github.com/rico-vz/HeimerdingerLoL.git
synced 2025-12-06 10:10:48 +01:00
style: update code style and phpcs rules
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -34,7 +34,8 @@ class StreamerPanelController extends Controller
|
||||
*/
|
||||
public function store(Request $request)
|
||||
{
|
||||
$request->validate(['champion_id' => 'required|exists:champions,champion_id',
|
||||
$request->validate([
|
||||
'champion_id' => 'required|exists:champions,champion_id',
|
||||
'platform' => 'required|in:twitch,youtube,kick,douyu,huya',
|
||||
'username' => 'required|string',
|
||||
'displayname' => 'required|string',
|
||||
|
||||
Reference in New Issue
Block a user