Apply suggestions from StyleCI

This commit is contained in:
Franz Liedke 2017-12-13 23:08:35 +01:00
parent d2f187716e
commit c6ce172caa
No known key found for this signature in database
GPG Key ID: 9A0231A879B055F4
5 changed files with 2 additions and 6 deletions

View File

@ -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

View File

@ -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;

View File

@ -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
{ {

View File

@ -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
*/ */

View File

@ -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
{ {