fix indention

This commit is contained in:
Bernhard Posselt 2014-06-11 00:57:00 +02:00
parent 1002281dae
commit 0252d39bb6
1 changed files with 6 additions and 6 deletions

View File

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