| @@ -9,9 +9,8 @@ | ||
| 9 | 9 | class HandleSlackEvent |
| 10 | 10 | { |
| 11 | 11 | |
| 12 | 12 | /** |
| 13 | - * handleEvent method is responsible for handling slack events | |
| 14 | 13 | * @param string $token |
| 15 | 14 | * @return bool |
| 16 | 15 | * @throws Exception |
| 17 | 16 | */ |
| @@ -28,11 +27,10 @@ | ||
| 28 | 27 | |
| 29 | 28 | |
| 30 | 29 | |
| 31 | 30 | /** |
| 32 | - * verifyProVersion method will check if the pro version is installed or not | |
| 33 | 31 | * @throws Exception |
| 34 | - * @return boolean | Exception | |
| 32 | + * @return bool | |
| 35 | 33 | */ |
| 36 | 34 | private function verifyProVersion () |
| 37 | 35 | { |
| 38 | 36 | if (!defined('FLUENTSUPPORTPRO')) { |
| @@ -42,12 +40,11 @@ | ||
| 42 | 40 | return true; |
| 43 | 41 | } |
| 44 | 42 | |
| 45 | 43 | /** |
| 46 | - * validateToken method will check if the token is valid or not | |
| 47 | 44 | * @param string $token |
| 48 | 45 | * @throws Exception |
| 49 | - * @return boolean | Exception | |
| 46 | + * @return bool | |
| 50 | 47 | */ |
| 51 | 48 | private function validateToken ($token) |
| 52 | 49 | { |
| 53 | 50 | if (!hash_equals(\FluentSupportPro\App\Services\Integrations\Slack\SlackHelper::getWebhookToken(), $token)) { |