diff --git a/module/VuFindSearch/src/VuFindSearch/Backend/AbstractHandlerMap.php b/module/VuFindSearch/src/VuFindSearch/Backend/AbstractHandlerMap.php index 677b3c3a5f891039a6e976806cd3061970deff0b..417a22c05ae66210ad8dd3be5b622bb13135ac9e 100644 --- a/module/VuFindSearch/src/VuFindSearch/Backend/AbstractHandlerMap.php +++ b/module/VuFindSearch/src/VuFindSearch/Backend/AbstractHandlerMap.php @@ -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); diff --git a/module/VuFindSearch/src/VuFindSearch/Backend/Exception/HttpErrorException.php b/module/VuFindSearch/src/VuFindSearch/Backend/Exception/HttpErrorException.php index 821ce98fe2406cc38a2bcaae475bf776c1ac4fe0..6e03ffe92d81db97d0d2a7dee487172786d3926e 100644 --- a/module/VuFindSearch/src/VuFindSearch/Backend/Exception/HttpErrorException.php +++ b/module/VuFindSearch/src/VuFindSearch/Backend/Exception/HttpErrorException.php @@ -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; }