Skip to content

Commit

Permalink
Fixed CS
Browse files Browse the repository at this point in the history
  • Loading branch information
lyrixx committed Mar 6, 2017
1 parent 2e09b2e commit 62c6e43
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions Consul/Client.php
Expand Up @@ -68,7 +68,7 @@ private function doRequest($method, $url, $options)
}

$this->logger->info(sprintf('%s "%s"', $method, $url));
$this->logger->debug(sprintf("Requesting %s %s", $method, $url), array('options' => $options));
$this->logger->debug(sprintf('Requesting %s %s', $method, $url), array('options' => $options));

try {
$response = $this->client->request($method, $url, $options);
Expand All @@ -87,15 +87,15 @@ private function doRequest($method, $url, $options)

$this->logger->error($message);

$message .= "\n" . (string)$response->getBody();
$message .= "\n".(string) $response->getBody();
if (500 <= $response->getStatusCode()) {
throw new ServerException($message, $response->getStatusCode());
}

throw new ClientException($message, $response->getStatusCode());
}

return new ConsulResponse($response->getHeaders(), (string)$response->getBody(), $response->getStatusCode());
return new ConsulResponse($response->getHeaders(), (string) $response->getBody(), $response->getStatusCode());
}

private function formatResponse(Response $response)
Expand Down
4 changes: 2 additions & 2 deletions Consul/Tests/OptionsResolverTest.php
Expand Up @@ -15,7 +15,7 @@ public function testResolve()
);

$availableOptions = array(
'foo', 'baz'
'foo', 'baz',
);

$result = OptionsResolver::resolve($options, $availableOptions);
Expand All @@ -35,7 +35,7 @@ public function testResolveWithoutMatchingOptions()
);

$availableOptions = array(
'foo', 'baz'
'foo', 'baz',
);

$result = OptionsResolver::resolve($options, $availableOptions);
Expand Down

0 comments on commit 62c6e43

Please sign in to comment.