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
*
* @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 = array_replace($defaults, $final);
$final = array_merge_recursive($final, $appends);
......
......@@ -66,9 +66,13 @@ abstract class HttpErrorException extends BackendException
$status = $response->getStatusCode();
$phrase = $response->getReasonPhrase();
if ($status >= 500) {
return new RemoteErrorException($status . ' ' . $phrase, $status, $response);
return new RemoteErrorException(
$status . ' ' . $phrase, $status, $response
);
} else {
return new RequestErrorException($status . ' ' . $phrase, $status, $response);
return new RequestErrorException(
$status . ' ' . $phrase, $status, $response
);
}
}
......@@ -82,8 +86,9 @@ abstract class HttpErrorException extends BackendException
*
* @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);
$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