Skip to content
Snippets Groups Projects
Commit cdea2785 authored by Demian Katz's avatar Demian Katz
Browse files

Style fixes (shortened long lines).

parent 0ec989b8
No related merge requests found
...@@ -109,8 +109,9 @@ abstract class AbstractHandlerMap ...@@ -109,8 +109,9 @@ abstract class AbstractHandlerMap
* *
* @return void * @return void
*/ */
protected function apply(ParamBag $params, array $defaults, array $appends, array $invariants) protected function apply(ParamBag $params, array $defaults, array $appends,
{ array $invariants
) {
$final = $params->getArrayCopy(); $final = $params->getArrayCopy();
$final = array_replace($defaults, $final); $final = array_replace($defaults, $final);
$final = array_merge_recursive($final, $appends); $final = array_merge_recursive($final, $appends);
......
...@@ -66,9 +66,13 @@ abstract class HttpErrorException extends BackendException ...@@ -66,9 +66,13 @@ abstract class HttpErrorException extends BackendException
$status = $response->getStatusCode(); $status = $response->getStatusCode();
$phrase = $response->getReasonPhrase(); $phrase = $response->getReasonPhrase();
if ($status >= 500) { if ($status >= 500) {
return new RemoteErrorException($status . ' ' . $phrase, $status, $response); return new RemoteErrorException(
$status . ' ' . $phrase, $status, $response
);
} else { } else {
return new RequestErrorException($status . ' ' . $phrase, $status, $response); return new RequestErrorException(
$status . ' ' . $phrase, $status, $response
);
} }
} }
...@@ -82,8 +86,9 @@ abstract class HttpErrorException extends BackendException ...@@ -82,8 +86,9 @@ abstract class HttpErrorException extends BackendException
* *
* @return void * @return void
*/ */
public function __construct($message, $code, Response $response, Exception $prev = null) public function __construct($message, $code, Response $response,
{ Exception $prev = null
) {
parent::__construct($message, $code, $prev); parent::__construct($message, $code, $prev);
$this->response = $response; $this->response = $response;
} }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment