mirror of
https://github.com/flarum/framework.git
synced 2025-01-20 21:06:14 +08:00
Clean up some method arguments
This commit is contained in:
parent
c97b01a445
commit
3efd5fbcb0
|
@ -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');
|
||||
|
||||
|
|
|
@ -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');
|
||||
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user