Commit be04c437 authored by Fabien Potencier's avatar Fabien Potencier

fixed CS

parent 1320b7ae
......@@ -29,4 +29,4 @@ class GetResponseForErrorEvent extends GetResponseForExceptionEvent
$converter = new StringResponseConverter();
$this->setResponse($converter->convert($response));
}
}
\ No newline at end of file
}
......@@ -23,15 +23,16 @@ class StringResponseConverter
/**
* Does the conversion
*
* @param $response The response string
* @param $response The response string
*
* @return A response object
*/
public function convert($response)
{
if ( ! $response instanceof Response) {
if (!$response instanceof Response) {
return new Response((string) $response);
} else {
return $response;
}
return $response;
}
}
Markdown is supported
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