Skip to content

Commit

Permalink
Merge pull request #5 from hedeqiang/analysis-M19ywK
Browse files Browse the repository at this point in the history
Apply fixes from StyleCI
  • Loading branch information
hedeqiang authored Sep 5, 2020
2 parents 5c8d930 + b62a5dd commit 6acd9b5
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 21 deletions.
2 changes: 0 additions & 2 deletions src/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
15 changes: 12 additions & 3 deletions src/Config/im.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
<?php

/*
* This file is part of the hedeqiang/ten-im.
*
* (c) hedeqiang<[email protected]>
*
* 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', ''),
];
2 changes: 1 addition & 1 deletion src/Facades/IM.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

/*
* This file is part of the hedeqiang/green.
* This file is part of the hedeqiang/ten-im.
*
* (c) hedeqiang<[email protected]>
*
Expand Down
11 changes: 0 additions & 11 deletions src/IM.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ public function __construct(array $config)
/**
* @param string $servername
* @param string $command
* @param array $params
*
* @return array
*
Expand All @@ -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
Expand All @@ -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
Expand Down
4 changes: 0 additions & 4 deletions src/Traits/HasHttpRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,6 @@ protected function getBaseOptions()
/**
* Return http client.
*
* @param array $options
*
* @return \GuzzleHttp\Client
*
* @codeCoverageIgnore
Expand All @@ -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)
Expand Down

0 comments on commit 6acd9b5

Please sign in to comment.