Skip to content

Commit

Permalink
Merge pull request #3 from hedeqiang/analysis-vQMYrd
Browse files Browse the repository at this point in the history
Apply fixes from StyleCI
  • Loading branch information
hedeqiang authored Aug 14, 2020
2 parents 49a1aa2 + 2ecc5c5 commit 4695f86
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 21 deletions.
13 changes: 1 addition & 12 deletions src/IM.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ public function __construct(array $config)
/**
* @param string $servername
* @param string $command
* @param array $params
*
* @return array
*
Expand All @@ -67,11 +66,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
Expand All @@ -90,11 +84,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
Expand All @@ -115,7 +104,7 @@ protected function generateSign(string $identifier, int $expires = 15552000): st
/**
* Finds an entry of the container by its identifier and returns it.
*
* @param null|mixed $id
* @param mixed|null $id
*
* @return mixed|\Psr\Container\ContainerInterface
*/
Expand Down
2 changes: 0 additions & 2 deletions src/Support/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ class Config implements ArrayAccess

/**
* Config constructor.
*
* @param array $config
*/
public function __construct(array $config)
{
Expand Down
7 changes: 0 additions & 7 deletions src/Traits/HasHttpRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,6 @@ protected function getBaseOptions()
/**
* Return http client.
*
* @param array $options
*
* @return \GuzzleHttp\Client
*
* @codeCoverageIgnore
Expand All @@ -118,9 +116,6 @@ protected function getHttpClient(array $options = [])
return make(Client::class, $options);
}

/**
* @return HandlerStack
*/
protected function getHandlerStack(): HandlerStack
{
if ($this->stack instanceof HandlerStack) {
Expand All @@ -133,8 +128,6 @@ protected function getHandlerStack(): HandlerStack
/**
* Convert response contents to json.
*
* @param \Psr\Http\Message\ResponseInterface $response
*
* @return ResponseInterface|array|string
*/
protected function unwrapResponse(ResponseInterface $response)
Expand Down

0 comments on commit 4695f86

Please sign in to comment.