1
0
mirror of https://github.com/flarum/core.git synced 2025-08-03 23:17:43 +02:00

Fix tests and CS

This commit is contained in:
Toby Zerner
2015-12-05 22:31:33 +10:30
parent f3e0fd5903
commit 94a1bbf9ef
10 changed files with 100 additions and 41 deletions

View File

@@ -33,7 +33,7 @@ class ModelNotFoundExceptionHandler implements ExceptionHandlerInterface
{
$status = 404;
$error = [
'status' => '404',
'status' => (string) $status,
'code' => 'resource_not_found'
];

View File

@@ -30,7 +30,7 @@ class AuthenticateWithSession implements MiddlewareInterface
$request = $request->withAttribute('actor', $actor);
return $out ? $out($request, $response) : $response;;
return $out ? $out($request, $response) : $response;
}
private function getActor(SessionInterface $session)