From b62a5dd1c2beb4d2d0e38a41f12c402a2ca7cee4 Mon Sep 17 00:00:00 2001 From: hedeqiang Date: Sat, 5 Sep 2020 15:10:39 +0000 Subject: [PATCH] Apply fixes from StyleCI --- src/Config.php | 2 -- src/Config/im.php | 15 ++++++++++++--- src/Facades/IM.php | 2 +- src/IM.php | 11 ----------- src/Traits/HasHttpRequest.php | 4 ---- 5 files changed, 13 insertions(+), 21 deletions(-) diff --git a/src/Config.php b/src/Config.php index 387a105..1aa80af 100644 --- a/src/Config.php +++ b/src/Config.php @@ -26,8 +26,6 @@ class Config implements ArrayAccess /** * Config constructor. - * - * @param array $config */ public function __construct(array $config) { diff --git a/src/Config/im.php b/src/Config/im.php index 23d7a78..4aa31f1 100644 --- a/src/Config/im.php +++ b/src/Config/im.php @@ -1,7 +1,16 @@ + * + * This source file is subject to the MIT license that is bundled + * with this source code in the file LICENSE. + */ + return [ - 'sdk_app_id' => env('SDK_APP_ID',''), - 'identifier' => env('IDENTIFIER',''), - 'secret_key' => env('SECRET_KEY',''), + 'sdk_app_id' => env('SDK_APP_ID', ''), + 'identifier' => env('IDENTIFIER', ''), + 'secret_key' => env('SECRET_KEY', ''), ]; diff --git a/src/Facades/IM.php b/src/Facades/IM.php index 5a36ac3..119c784 100644 --- a/src/Facades/IM.php +++ b/src/Facades/IM.php @@ -1,7 +1,7 @@ * diff --git a/src/IM.php b/src/IM.php index bc08447..fcdc523 100644 --- a/src/IM.php +++ b/src/IM.php @@ -36,7 +36,6 @@ public function __construct(array $config) /** * @param string $servername * @param string $command - * @param array $params * * @return array * @@ -61,11 +60,6 @@ public function send($servername, $command, array $params = []) /** * Build endpoint url. * - * @param string $servername - * @param string $command - * - * @return string - * * @throws \Exception */ protected function buildEndpoint(string $servername, string $command): string @@ -84,11 +78,6 @@ protected function buildEndpoint(string $servername, string $command): string /** * Generate Sign. * - * @param string $identifier - * @param int $expires - * - * @return string - * * @throws \Exception */ protected function generateSign(string $identifier, int $expires = 15552000): string diff --git a/src/Traits/HasHttpRequest.php b/src/Traits/HasHttpRequest.php index d58a4bf..f429b23 100644 --- a/src/Traits/HasHttpRequest.php +++ b/src/Traits/HasHttpRequest.php @@ -102,8 +102,6 @@ protected function getBaseOptions() /** * Return http client. * - * @param array $options - * * @return \GuzzleHttp\Client * * @codeCoverageIgnore @@ -116,8 +114,6 @@ protected function getHttpClient(array $options = []) /** * Convert response contents to json. * - * @param \Psr\Http\Message\ResponseInterface $response - * * @return ResponseInterface|array|string */ protected function unwrapResponse(ResponseInterface $response)