@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | /** |
69 | 69 | * Generates a base64-encoded signature for webhook request. |
70 | 70 | * @param string $webhook_key the webhook's authentication key |
71 | - * @param array $request the request's POST parameters |
|
71 | + * @param Request $request the request's POST parameters |
|
72 | 72 | */ |
73 | 73 | public function generateSignature($webhook_key, $request) |
74 | 74 | { |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | /** |
86 | 86 | * Pull the Mandrill payload from the json. |
87 | 87 | * |
88 | - * @param $request |
|
88 | + * @param Request $request |
|
89 | 89 | * @return array |
90 | 90 | */ |
91 | 91 | private function getJsonPayloadFromRequest($request) |
@@ -99,7 +99,6 @@ discard block |
||
99 | 99 | * Validates the signature of a mandrill request if key is set. |
100 | 100 | * |
101 | 101 | * @param Request $request |
102 | - * @param string $webhook_key |
|
103 | 102 | * @return bool |
104 | 103 | */ |
105 | 104 | private function validateSignature(Request $request) |
@@ -4,8 +4,8 @@ |
||
4 | 4 | |
5 | 5 | use Http\Client\Common\Exception\ClientErrorException; |
6 | 6 | use Http\Client\Common\HttpMethodsClient; |
7 | -use Http\Client\Common\Plugin\BaseUriPlugin; |
|
8 | 7 | use Http\Client\Common\PluginClient; |
8 | +use Http\Client\Common\Plugin\BaseUriPlugin; |
|
9 | 9 | use Http\Client\HttpClient; |
10 | 10 | use Http\Discovery\HttpClientDiscovery; |
11 | 11 | use Http\Discovery\MessageFactoryDiscovery; |