Clean up some method arguments

This commit is contained in:
Toby Zerner 2015-12-05 15:22:42 +10:30
parent c97b01a445
commit 3efd5fbcb0
4 changed files with 3 additions and 8 deletions

View File

@ -39,10 +39,9 @@ class IndexController extends AbstractHtmlController
/**
* @param Request $request
* @param array $routeParams
* @return \Psr\Http\Message\ResponseInterface
*/
public function render(Request $request, array $routeParams = [])
public function render(Request $request)
{
$view = $this->view->make('flarum.install::app')->with('title', 'Install Flarum');

View File

@ -31,10 +31,9 @@ class IndexController extends AbstractHtmlController
/**
* @param Request $request
* @param array $routeParams
* @return \Psr\Http\Message\ResponseInterface
*/
public function render(Request $request, array $routeParams = [])
public function render(Request $request)
{
$view = $this->view->make('flarum.update::app')->with('title', 'Update Flarum');

View File

@ -14,7 +14,6 @@ use Exception;
use Flarum\Foundation\Application;
use Flarum\Http\Controller\ControllerInterface;
use Flarum\Update\Console\MigrateCommand;
use Illuminate\Contracts\Bus\Dispatcher;
use Psr\Http\Message\ServerRequestInterface as Request;
use Symfony\Component\Console\Input\StringInput;
use Symfony\Component\Console\Output\StreamOutput;
@ -42,10 +41,9 @@ class UpdateController implements ControllerInterface
/**
* @param Request $request
* @param array $routeParams
* @return \Psr\Http\Message\ResponseInterface
*/
public function handle(Request $request, array $routeParams = [])
public function handle(Request $request)
{
$input = $request->getParsedBody();

View File

@ -13,7 +13,6 @@ namespace Flarum\Update;
use Flarum\Http\GenerateRouteHandlerTrait;
use Flarum\Http\RouteCollection;
use Flarum\Foundation\AbstractServiceProvider;
use Psr\Http\Message\ServerRequestInterface;
class UpdateServiceProvider extends AbstractServiceProvider
{