Skip to content
This repository was archived by the owner on Sep 5, 2017. It is now read-only.

Commit 847bd76

Browse files
m1guelpfStyleCIBot
authored andcommitted
Apply fixes from StyleCI
1 parent 5013cdc commit 847bd76

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

app/Http/Controllers/AutoJoinerController.php

+7-6
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,18 @@ class AutoJoinerController extends Controller
88
{
99
public function index(Request $request)
1010
{
11-
abort_unless($this->requestSignatureIsValid(), 403);
12-
13-
//
14-
}
15-
16-
protected function requestSignatureIsValid() : bool
11+
abort_unless($this->requestSignatureIsValid(), 403);
12+
13+
//
14+
}
15+
16+
protected function requestSignatureIsValid() : bool
1717
{
1818
$gitHubSignature = request()->header('X-Hub-Signature');
1919
list($usedAlgorithm, $gitHubHash) = explode('=', $gitHubSignature, 2);
2020
$payload = file_get_contents('php://input');
2121
$calculatedHash = hash_hmac($usedAlgorithm, $payload, config('auth.github_secret'));
22+
2223
return $calculatedHash === $gitHubHash;
2324
}
2425
}

config/auth.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -104,12 +104,11 @@
104104
| GitHub Secret
105105
|--------------------------------------------------------------------------
106106
|
107-
| You may specify a secret so we can check the data comes from GitHub
107+
| You may specify a secret so we can check the data comes from GitHub
108108
| and prevent attacks.
109109
|
110110
*/
111111

112112
'github_secret' => env('GITHUB_AUTOJOINER_SECRET'),
113113

114-
115114
];

0 commit comments

Comments
 (0)