Skip to content

Commit

Permalink
Minimize getCallbackMethod name.
Browse files Browse the repository at this point in the history
  • Loading branch information
RushCode committed Oct 17, 2017
1 parent f908c3f commit 668678b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Api.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public static function doCallback($name, \Closure $func)
*
* @return bool|CallbackMethods
*/
public function getApiCallbackMethod(string $data)
public function getCallbackMethod(string $data)
{
$data = \GuzzleHttp\json_decode($data);
if (empty($data->method)) {
Expand Down
2 changes: 1 addition & 1 deletion tests/Methods/Callback/MessageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class MessageTest extends TestCase

public function testMessage()
{
$result = $this->apiConn->getApiCallbackMethod(
$result = $this->apiConn->getCallbackMethod(
'{
"method": "message",
"params": {
Expand Down
4 changes: 2 additions & 2 deletions tests/Mock/MockApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ public static function doCallback($name, \Closure $func)
parent::doCallback($name, $func);
}

public function getApiCallbackMethod(string $data)
public function getCallbackMethod(string $data)
{
return parent::getApiCallbackMethod($data);
return parent::getCallbackMethod($data);
}

public function sendApiRequest(RequestMethods $method)
Expand Down

0 comments on commit 668678b

Please sign in to comment.