Skip to content

Commit

Permalink
Fix code style (wasn't fixed)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey Kasatkin committed May 9, 2018
1 parent 19d4f34 commit 47d022f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ public function cleanVehicle($vehicle)
public function getBalance()
{
$response = $this->query($this->prepareUri('profile/balance'), [], self::METHOD_GET);
return (double) $response;
return (float) $response;
}

/**
Expand All @@ -253,9 +253,9 @@ public function getBalance()
protected function query($uri, array $params = [], $method = self::METHOD_POST)
{
$request = new Request($method, $uri, [
'Content-Type' => 'application/json',
'Content-Type' => 'application/json',
'Authorization' => 'Token ' . $this->token,
'X-Secret' => $this->secret,
'X-Secret' => $this->secret,
], 0 < count($params) ? json_encode($params) : null);

$response = $this->httpClient->send($request, $this->httpOptions);
Expand Down Expand Up @@ -316,7 +316,7 @@ protected function populate(AbstractResponse $object, array $data)
* @return Party\Party
* @throws \ReflectionException
*/
protected function populateParty (array $response)
protected function populateParty(array $response)
{
$management = null;
$managementData = $response['data']['management'];
Expand Down Expand Up @@ -395,7 +395,7 @@ protected function getValueByAnnotatedType(\ReflectionProperty $property, $value
public function detectAddressByIp($ip)
{
$request = new Request('get', $this->baseSuggestionsUrl . 'detectAddressByIp' . '?ip=' . $ip, [
'Accept' => 'application/json',
'Accept' => 'application/json',
'Authorization' => 'Token ' . $this->token,
]);

Expand Down

0 comments on commit 47d022f

Please sign in to comment.