1
0
mirror of https://github.com/flarum/core.git synced 2025-08-08 01:16:52 +02:00

More indentation cleanup

This commit is contained in:
Franz Liedke
2016-02-26 12:31:59 +09:00
parent 445517ee84
commit 594a2ba8cc
11 changed files with 34 additions and 22 deletions

View File

@@ -12,6 +12,7 @@ namespace Flarum\Http;
use Flarum\Http\Controller\ControllerInterface;
use Illuminate\Contracts\Container\Container;
use InvalidArgumentException;
use Psr\Http\Message\ServerRequestInterface;
trait GenerateRouteHandlerTrait
@@ -26,8 +27,9 @@ trait GenerateRouteHandlerTrait
$controller = $container->make($class);
if (! ($controller instanceof ControllerInterface)) {
throw new \InvalidArgumentException('Route handler must be an instance of '
.ControllerInterface::class);
throw new InvalidArgumentException(
'Route handler must be an instance of '.ControllerInterface::class
);
}
$request = $request->withQueryParams(array_merge($request->getQueryParams(), $routeParams));