mirror of
https://github.com/flarum/framework.git
synced 2025-01-21 08:41:19 +08:00
Apply suggestions from StyleCI
This commit is contained in:
parent
d2f187716e
commit
c6ce172caa
|
@ -14,7 +14,6 @@ namespace Flarum\Admin;
|
||||||
use Flarum\Event\ConfigureMiddleware;
|
use Flarum\Event\ConfigureMiddleware;
|
||||||
use Flarum\Foundation\Application;
|
use Flarum\Foundation\Application;
|
||||||
use Flarum\Http\AbstractServer;
|
use Flarum\Http\AbstractServer;
|
||||||
use Flarum\Http\Middleware\HandleErrors;
|
|
||||||
use Zend\Stratigility\MiddlewarePipe;
|
use Zend\Stratigility\MiddlewarePipe;
|
||||||
|
|
||||||
class Server extends AbstractServer
|
class Server extends AbstractServer
|
||||||
|
|
|
@ -19,7 +19,6 @@ use Flarum\Http\Controller\ControllerInterface;
|
||||||
use Flarum\Http\Exception\TokenMismatchException;
|
use Flarum\Http\Exception\TokenMismatchException;
|
||||||
use Flarum\Http\Rememberer;
|
use Flarum\Http\Rememberer;
|
||||||
use Flarum\Http\SessionAuthenticator;
|
use Flarum\Http\SessionAuthenticator;
|
||||||
use Flarum\Settings\SettingsRepositoryInterface;
|
|
||||||
use Illuminate\Contracts\Events\Dispatcher;
|
use Illuminate\Contracts\Events\Dispatcher;
|
||||||
use Illuminate\Contracts\View\Factory;
|
use Illuminate\Contracts\View\Factory;
|
||||||
use Psr\Http\Message\ServerRequestInterface as Request;
|
use Psr\Http\Message\ServerRequestInterface as Request;
|
||||||
|
|
|
@ -17,7 +17,6 @@ use Flarum\Core\PasswordToken;
|
||||||
use Flarum\Http\Controller\AbstractHtmlController;
|
use Flarum\Http\Controller\AbstractHtmlController;
|
||||||
use Illuminate\Contracts\View\Factory;
|
use Illuminate\Contracts\View\Factory;
|
||||||
use Psr\Http\Message\ServerRequestInterface as Request;
|
use Psr\Http\Message\ServerRequestInterface as Request;
|
||||||
use Symfony\Component\Translation\TranslatorInterface;
|
|
||||||
|
|
||||||
class ResetPasswordController extends AbstractHtmlController
|
class ResetPasswordController extends AbstractHtmlController
|
||||||
{
|
{
|
||||||
|
|
|
@ -10,14 +10,14 @@
|
||||||
|
|
||||||
namespace Flarum\Http\Middleware;
|
namespace Flarum\Http\Middleware;
|
||||||
|
|
||||||
use Illuminate\Support\ViewErrorBag;
|
|
||||||
use Illuminate\Contracts\View\Factory as ViewFactory;
|
use Illuminate\Contracts\View\Factory as ViewFactory;
|
||||||
|
use Illuminate\Support\ViewErrorBag;
|
||||||
use Psr\Http\Message\ResponseInterface as Response;
|
use Psr\Http\Message\ResponseInterface as Response;
|
||||||
use Psr\Http\Message\ServerRequestInterface as Request;
|
use Psr\Http\Message\ServerRequestInterface as Request;
|
||||||
use Zend\Stratigility\MiddlewareInterface;
|
use Zend\Stratigility\MiddlewareInterface;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Inspired by Illuminate\View\Middleware\ShareErrorsFromSession
|
* Inspired by Illuminate\View\Middleware\ShareErrorsFromSession.
|
||||||
*
|
*
|
||||||
* @author Taylor Otwell
|
* @author Taylor Otwell
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -14,7 +14,6 @@ namespace Flarum\Locale;
|
||||||
use Flarum\Event\ConfigureLocales;
|
use Flarum\Event\ConfigureLocales;
|
||||||
use Flarum\Foundation\AbstractServiceProvider;
|
use Flarum\Foundation\AbstractServiceProvider;
|
||||||
use Illuminate\Contracts\Events\Dispatcher;
|
use Illuminate\Contracts\Events\Dispatcher;
|
||||||
use Symfony\Component\Translation\MessageSelector;
|
|
||||||
|
|
||||||
class LocaleServiceProvider extends AbstractServiceProvider
|
class LocaleServiceProvider extends AbstractServiceProvider
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user