@@ -117,11 +117,11 @@ discard block |
||
117 | 117 | |
118 | 118 | /** |
119 | 119 | * @param $method |
120 | - * @param $requestBody |
|
120 | + * @param string $requestBody |
|
121 | 121 | * |
122 | 122 | * @throws \Exception |
123 | 123 | * |
124 | - * @return mixed|\Psr\Http\Message\ResponseInterface |
|
124 | + * @return ResponseInterface |
|
125 | 125 | */ |
126 | 126 | private function sendRequest(string $method, $requestBody) |
127 | 127 | { |
@@ -371,7 +371,7 @@ discard block |
||
371 | 371 | } |
372 | 372 | |
373 | 373 | /** |
374 | - * @param null $method |
|
374 | + * @param string $method |
|
375 | 375 | * |
376 | 376 | * @throws \Exception |
377 | 377 | * |
@@ -86,7 +86,7 @@ |
||
86 | 86 | */ |
87 | 87 | public function sortArrayByLength(array $array) |
88 | 88 | { |
89 | - usort($array, function ($array1, $array2) { |
|
89 | + usort($array, function($array1, $array2) { |
|
90 | 90 | return strlen($array2) <=> strlen($array1); |
91 | 91 | }); |
92 | 92 |
@@ -232,7 +232,7 @@ |
||
232 | 232 | * Return message based on the listener |
233 | 233 | * If listener is event and event text is empty, fall back to request text. |
234 | 234 | * |
235 | - * @return mixed|string |
|
235 | + * @return string|null |
|
236 | 236 | * @throws \Exception |
237 | 237 | */ |
238 | 238 | public function getMessage() |
@@ -133,7 +133,7 @@ |
||
133 | 133 | * Specify the response type |
134 | 134 | * If response in config is set to empty, it will be considered based on listener. |
135 | 135 | * |
136 | - * @return mixed|string |
|
136 | + * @return string |
|
137 | 137 | * @throws \Exception |
138 | 138 | */ |
139 | 139 | private function getResponseType() |