pleasing the angry god Circle

This commit is contained in:
Daniel Klabbers 2017-11-27 11:05:15 +01:00
parent 642332ffe2
commit 4d9e2335c7
12 changed files with 19 additions and 12 deletions

View File

@ -18,9 +18,9 @@ use Flarum\User\AssertPermissionTrait;
use Flarum\User\EmailToken;
use Flarum\User\Exception\PermissionDeniedException;
use Illuminate\Contracts\Mail\Mailer;
use Illuminate\Contracts\Translation\Translator;
use Illuminate\Mail\Message;
use Psr\Http\Message\ServerRequestInterface;
use Illuminate\Contracts\Translation\Translator;
use Zend\Diactoros\Response\EmptyResponse;
class SendConfirmationEmailController implements ControllerInterface

View File

@ -12,8 +12,8 @@
namespace Flarum\Api\Serializer;
use Flarum\Group\Group;
use InvalidArgumentException;
use Illuminate\Contracts\Translation\Translator;
use InvalidArgumentException;
class GroupSerializer extends AbstractSerializer
{

View File

@ -1,5 +1,14 @@
<?php
/*
* This file is part of Flarum.
*
* (c) Toby Zerner <toby.zerner@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Flarum\Bus;
use Illuminate\Bus\Dispatcher as BaseDispatcher;
@ -8,7 +17,7 @@ class Dispatcher extends BaseDispatcher
{
public function getCommandHandler($command)
{
$handler = get_class($command) . 'Handler';
$handler = get_class($command).'Handler';
if (class_exists($handler)) {
return $this->container->make($handler);

View File

@ -14,7 +14,6 @@ namespace Flarum\Database;
use Flarum\Foundation\AbstractServiceProvider;
use Illuminate\Database\ConnectionResolver;
use Illuminate\Database\Connectors\ConnectionFactory;
use PDO;
class DatabaseServiceProvider extends AbstractServiceProvider
{

View File

@ -15,9 +15,9 @@ use DateTime;
use Flarum\Http\Controller\AbstractHtmlController;
use Flarum\User\Exception\InvalidConfirmationTokenException;
use Flarum\User\PasswordToken;
use Illuminate\Contracts\Translation\Translator;
use Illuminate\Contracts\View\Factory;
use Psr\Http\Message\ServerRequestInterface as Request;
use Illuminate\Contracts\Translation\Translator;
class ResetPasswordController extends AbstractHtmlController
{

View File

@ -13,9 +13,9 @@ namespace Flarum\Foundation;
use Flarum\Foundation\Event\Validating;
use Illuminate\Contracts\Events\Dispatcher;
use Illuminate\Contracts\Translation\Translator;
use Illuminate\Contracts\Validation\ValidationException;
use Illuminate\Validation\Factory;
use Illuminate\Contracts\Translation\Translator;
abstract class AbstractValidator
{

View File

@ -29,6 +29,7 @@ use Flarum\Settings\SettingsRepositoryInterface;
use Flarum\User\User;
use Flarum\User\UserServiceProvider;
use Illuminate\Contracts\Foundation\Application;
use Illuminate\Contracts\Translation\Translator;
use Illuminate\Database\ConnectionInterface;
use Illuminate\Database\ConnectionResolverInterface;
use Illuminate\Database\Schema\Builder;
@ -36,7 +37,6 @@ use Illuminate\Filesystem\Filesystem;
use Illuminate\Validation\Factory;
use PDO;
use Symfony\Component\Console\Input\InputOption;
use Illuminate\Contracts\Translation\Translator;
class InstallCommand extends AbstractCommand
{

View File

@ -11,7 +11,6 @@
namespace Flarum\Locale;
use Illuminate\Contracts\Translation\Translator;
class LocaleManager

View File

@ -11,9 +11,9 @@
namespace Flarum\Locale;
use Illuminate\Contracts\Translation\Translator as TranslatorContract;
use Symfony\Component\Translation\MessageCatalogueInterface;
use Symfony\Component\Translation\Translator as BaseTranslator;
use Illuminate\Contracts\Translation\Translator as TranslatorContract;
class Translator extends BaseTranslator implements TranslatorContract
{

View File

@ -16,11 +16,11 @@ use Flarum\Settings\SettingsRepositoryInterface;
use Flarum\User\PasswordToken;
use Flarum\User\UserRepository;
use Illuminate\Contracts\Mail\Mailer;
use Illuminate\Contracts\Translation\Translator;
use Illuminate\Contracts\Validation\Factory;
use Illuminate\Contracts\Validation\ValidationException;
use Illuminate\Database\Eloquent\ModelNotFoundException;
use Illuminate\Mail\Message;
use Illuminate\Contracts\Translation\Translator;
class RequestPasswordResetHandler
{

View File

@ -17,8 +17,8 @@ use Flarum\User\Event\EmailChangeRequested;
use Flarum\User\Event\Registered;
use Illuminate\Contracts\Events\Dispatcher;
use Illuminate\Contracts\Mail\Mailer;
use Illuminate\Mail\Message;
use Illuminate\Contracts\Translation\Translator;
use Illuminate\Mail\Message;
class EmailConfirmationMailer
{

View File

@ -15,8 +15,8 @@ use Exception;
use Flarum\Api\ExceptionHandler\IlluminateValidationExceptionHandler;
use Illuminate\Translation\ArrayLoader;
use Illuminate\Translation\Translator;
use Illuminate\Validation\ValidationException;
use Illuminate\Validation\Factory;
use Illuminate\Validation\ValidationException;
use Tests\Test\TestCase;
class IlluminateValidationExceptionHandlerTest extends TestCase