style updates
This commit is contained in:
@@ -75,7 +75,7 @@ final class GitWebhookController
|
||||
private function hasValidGitHubSignature(Request $request, string $secret, string $rawPayload): bool
|
||||
{
|
||||
$signature = (string) $request->header('X-Hub-Signature-256', '');
|
||||
$expected = 'sha256='.hash_hmac('sha256', $rawPayload, $secret);
|
||||
$expected = 'sha256=' . hash_hmac('sha256', $rawPayload, $secret);
|
||||
|
||||
return hash_equals($expected, $signature);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user