fix indention

This commit is contained in:
Bernhard Posselt 2014-06-11 00:57:00 +02:00
parent 1002281dae
commit 0252d39bb6

View file

@ -52,9 +52,9 @@ class Dispatcher {
* @param IRequest $request the incoming request * @param IRequest $request the incoming request
*/ */
public function __construct(Http $protocol, public function __construct(Http $protocol,
MiddlewareDispatcher $middlewareDispatcher, MiddlewareDispatcher $middlewareDispatcher,
ControllerMethodReflector $reflector, ControllerMethodReflector $reflector,
IRequest $request) { IRequest $request) {
$this->protocol = $protocol; $this->protocol = $protocol;
$this->middlewareDispatcher = $middlewareDispatcher; $this->middlewareDispatcher = $middlewareDispatcher;
$this->reflector = $reflector; $this->reflector = $reflector;
@ -162,9 +162,9 @@ class Dispatcher {
// if none is given try the first Accept header // if none is given try the first Accept header
if($format === null) { if($format === null) {
$headers = $this->request->getHeader('Accept'); $headers = $this->request->getHeader('Accept');
$format = $controller->getResponderByHTTPHeader($headers); $format = $controller->getResponderByHTTPHeader($headers);
} }
$response = $controller->buildResponse($response, $format); $response = $controller->buildResponse($response, $format);
} }