Fix namespace orderings

(Thanks, StyleCI!)
This commit is contained in:
Franz Liedke 2017-06-24 15:48:20 +02:00
parent 2e87441f0e
commit f33de84540
65 changed files with 95 additions and 102 deletions

View File

@ -13,10 +13,10 @@ namespace Flarum\Admin;
use Flarum\Extension\Event\Disabled; use Flarum\Extension\Event\Disabled;
use Flarum\Extension\Event\Enabled; use Flarum\Extension\Event\Enabled;
use Flarum\Settings\Event\Saved;
use Flarum\Foundation\AbstractServiceProvider; use Flarum\Foundation\AbstractServiceProvider;
use Flarum\Http\RouteHandlerFactory;
use Flarum\Http\RouteCollection; use Flarum\Http\RouteCollection;
use Flarum\Http\RouteHandlerFactory;
use Flarum\Settings\Event\Saved;
class AdminServiceProvider extends AbstractServiceProvider class AdminServiceProvider extends AbstractServiceProvider
{ {

View File

@ -12,10 +12,10 @@
namespace Flarum\Admin\Controller; namespace Flarum\Admin\Controller;
use Flarum\Admin\Frontend; use Flarum\Admin\Frontend;
use Flarum\Group\Permission;
use Flarum\Settings\Event\Deserializing;
use Flarum\Extension\ExtensionManager; use Flarum\Extension\ExtensionManager;
use Flarum\Frontend\AbstractFrontendController; use Flarum\Frontend\AbstractFrontendController;
use Flarum\Group\Permission;
use Flarum\Settings\Event\Deserializing;
use Flarum\Settings\SettingsRepositoryInterface; use Flarum\Settings\SettingsRepositoryInterface;
use Illuminate\Contracts\Events\Dispatcher; use Illuminate\Contracts\Events\Dispatcher;
use Psr\Http\Message\ServerRequestInterface; use Psr\Http\Message\ServerRequestInterface;

View File

@ -10,8 +10,8 @@
*/ */
use Flarum\Admin\Controller; use Flarum\Admin\Controller;
use Flarum\Http\RouteHandlerFactory;
use Flarum\Http\RouteCollection; use Flarum\Http\RouteCollection;
use Flarum\Http\RouteHandlerFactory;
return function (RouteCollection $map, RouteHandlerFactory $route) { return function (RouteCollection $map, RouteHandlerFactory $route) {
$map->get( $map->get(

View File

@ -17,8 +17,8 @@ use Flarum\Api\Serializer\NotificationSerializer;
use Flarum\Event\ConfigureApiRoutes; use Flarum\Event\ConfigureApiRoutes;
use Flarum\Event\ConfigureNotificationTypes; use Flarum\Event\ConfigureNotificationTypes;
use Flarum\Foundation\AbstractServiceProvider; use Flarum\Foundation\AbstractServiceProvider;
use Flarum\Http\RouteHandlerFactory;
use Flarum\Http\RouteCollection; use Flarum\Http\RouteCollection;
use Flarum\Http\RouteHandlerFactory;
use Tobscure\JsonApi\ErrorHandler; use Tobscure\JsonApi\ErrorHandler;
use Tobscure\JsonApi\Exception\Handler\FallbackExceptionHandler; use Tobscure\JsonApi\Exception\Handler\FallbackExceptionHandler;
use Tobscure\JsonApi\Exception\Handler\InvalidParameterExceptionHandler; use Tobscure\JsonApi\Exception\Handler\InvalidParameterExceptionHandler;

View File

@ -11,9 +11,9 @@
namespace Flarum\Api\Controller; namespace Flarum\Api\Controller;
use Flarum\User\AssertPermissionTrait;
use Flarum\Foundation\Application; use Flarum\Foundation\Application;
use Flarum\Settings\SettingsRepositoryInterface; use Flarum\Settings\SettingsRepositoryInterface;
use Flarum\User\AssertPermissionTrait;
use League\Flysystem\Adapter\Local; use League\Flysystem\Adapter\Local;
use League\Flysystem\Filesystem; use League\Flysystem\Filesystem;
use Psr\Http\Message\ServerRequestInterface; use Psr\Http\Message\ServerRequestInterface;

View File

@ -11,9 +11,9 @@
namespace Flarum\Api\Controller; namespace Flarum\Api\Controller;
use Flarum\User\AssertPermissionTrait;
use Flarum\Foundation\Application; use Flarum\Foundation\Application;
use Flarum\Settings\SettingsRepositoryInterface; use Flarum\Settings\SettingsRepositoryInterface;
use Flarum\User\AssertPermissionTrait;
use League\Flysystem\Adapter\Local; use League\Flysystem\Adapter\Local;
use League\Flysystem\Filesystem; use League\Flysystem\Filesystem;
use Psr\Http\Message\ServerRequestInterface; use Psr\Http\Message\ServerRequestInterface;

View File

@ -11,9 +11,9 @@
namespace Flarum\Api\Controller; namespace Flarum\Api\Controller;
use Flarum\Http\Controller\ControllerInterface;
use Flarum\User\Command\RequestPasswordReset; use Flarum\User\Command\RequestPasswordReset;
use Flarum\User\UserRepository; use Flarum\User\UserRepository;
use Flarum\Http\Controller\ControllerInterface;
use Illuminate\Contracts\Bus\Dispatcher; use Illuminate\Contracts\Bus\Dispatcher;
use Psr\Http\Message\ServerRequestInterface; use Psr\Http\Message\ServerRequestInterface;
use Zend\Diactoros\Response\EmptyResponse; use Zend\Diactoros\Response\EmptyResponse;

View File

@ -12,8 +12,8 @@
namespace Flarum\Api\Controller; namespace Flarum\Api\Controller;
use Flarum\Discussion\Discussion; use Flarum\Discussion\Discussion;
use Flarum\User\Exception\PermissionDeniedException;
use Flarum\Notification\NotificationRepository; use Flarum\Notification\NotificationRepository;
use Flarum\User\Exception\PermissionDeniedException;
use Psr\Http\Message\ServerRequestInterface; use Psr\Http\Message\ServerRequestInterface;
use Tobscure\JsonApi\Document; use Tobscure\JsonApi\Document;

View File

@ -11,8 +11,8 @@
namespace Flarum\Api\Controller; namespace Flarum\Api\Controller;
use Flarum\Post\PostRepository;
use Flarum\Event\ConfigurePostsQuery; use Flarum\Event\ConfigurePostsQuery;
use Flarum\Post\PostRepository;
use Illuminate\Database\Eloquent\Builder; use Illuminate\Database\Eloquent\Builder;
use Psr\Http\Message\ServerRequestInterface; use Psr\Http\Message\ServerRequestInterface;
use Tobscure\JsonApi\Document; use Tobscure\JsonApi\Document;

View File

@ -12,8 +12,8 @@
namespace Flarum\Api\Controller; namespace Flarum\Api\Controller;
use Flarum\Api\UrlGenerator; use Flarum\Api\UrlGenerator;
use Flarum\User\Exception\PermissionDeniedException;
use Flarum\Search\SearchCriteria; use Flarum\Search\SearchCriteria;
use Flarum\User\Exception\PermissionDeniedException;
use Flarum\User\Search\UserSearcher; use Flarum\User\Search\UserSearcher;
use Psr\Http\Message\ServerRequestInterface; use Psr\Http\Message\ServerRequestInterface;
use Tobscure\JsonApi\Document; use Tobscure\JsonApi\Document;

View File

@ -11,12 +11,12 @@
namespace Flarum\Api\Controller; namespace Flarum\Api\Controller;
use Flarum\User\AssertPermissionTrait;
use Flarum\User\EmailToken;
use Flarum\User\Exception\PermissionDeniedException;
use Flarum\Forum\UrlGenerator; use Flarum\Forum\UrlGenerator;
use Flarum\Http\Controller\ControllerInterface; use Flarum\Http\Controller\ControllerInterface;
use Flarum\Settings\SettingsRepositoryInterface; use Flarum\Settings\SettingsRepositoryInterface;
use Flarum\User\AssertPermissionTrait;
use Flarum\User\EmailToken;
use Flarum\User\Exception\PermissionDeniedException;
use Illuminate\Contracts\Mail\Mailer; use Illuminate\Contracts\Mail\Mailer;
use Illuminate\Mail\Message; use Illuminate\Mail\Message;
use Psr\Http\Message\ServerRequestInterface; use Psr\Http\Message\ServerRequestInterface;

View File

@ -11,9 +11,9 @@
namespace Flarum\Api\Controller; namespace Flarum\Api\Controller;
use Flarum\User\AssertPermissionTrait;
use Flarum\Group\Permission; use Flarum\Group\Permission;
use Flarum\Http\Controller\ControllerInterface; use Flarum\Http\Controller\ControllerInterface;
use Flarum\User\AssertPermissionTrait;
use Psr\Http\Message\ServerRequestInterface; use Psr\Http\Message\ServerRequestInterface;
use Zend\Diactoros\Response\EmptyResponse; use Zend\Diactoros\Response\EmptyResponse;

View File

@ -11,11 +11,11 @@
namespace Flarum\Api\Controller; namespace Flarum\Api\Controller;
use Flarum\User\AssertPermissionTrait;
use Flarum\Settings\Event\Serializing;
use Flarum\Settings\Event\Saved;
use Flarum\Http\Controller\ControllerInterface; use Flarum\Http\Controller\ControllerInterface;
use Flarum\Settings\Event\Saved;
use Flarum\Settings\Event\Serializing;
use Flarum\Settings\SettingsRepositoryInterface; use Flarum\Settings\SettingsRepositoryInterface;
use Flarum\User\AssertPermissionTrait;
use Illuminate\Contracts\Events\Dispatcher; use Illuminate\Contracts\Events\Dispatcher;
use Psr\Http\Message\ServerRequestInterface; use Psr\Http\Message\ServerRequestInterface;
use Zend\Diactoros\Response\EmptyResponse; use Zend\Diactoros\Response\EmptyResponse;

View File

@ -11,10 +11,10 @@
namespace Flarum\Api\Controller; namespace Flarum\Api\Controller;
use Flarum\User\Exception\PermissionDeniedException;
use Flarum\User\UserRepository;
use Flarum\Http\AccessToken; use Flarum\Http\AccessToken;
use Flarum\Http\Controller\ControllerInterface; use Flarum\Http\Controller\ControllerInterface;
use Flarum\User\Exception\PermissionDeniedException;
use Flarum\User\UserRepository;
use Illuminate\Contracts\Bus\Dispatcher as BusDispatcher; use Illuminate\Contracts\Bus\Dispatcher as BusDispatcher;
use Illuminate\Contracts\Events\Dispatcher as EventDispatcher; use Illuminate\Contracts\Events\Dispatcher as EventDispatcher;
use Psr\Http\Message\ServerRequestInterface; use Psr\Http\Message\ServerRequestInterface;

View File

@ -11,8 +11,8 @@
namespace Flarum\Api\Controller; namespace Flarum\Api\Controller;
use Flarum\User\AssertPermissionTrait;
use Flarum\Extension\ExtensionManager; use Flarum\Extension\ExtensionManager;
use Flarum\User\AssertPermissionTrait;
use Psr\Http\Message\ServerRequestInterface; use Psr\Http\Message\ServerRequestInterface;
class UninstallExtensionController extends AbstractDeleteController class UninstallExtensionController extends AbstractDeleteController

View File

@ -11,9 +11,9 @@
namespace Flarum\Api\Controller; namespace Flarum\Api\Controller;
use Flarum\User\AssertPermissionTrait;
use Flarum\Extension\ExtensionManager; use Flarum\Extension\ExtensionManager;
use Flarum\Http\Controller\ControllerInterface; use Flarum\Http\Controller\ControllerInterface;
use Flarum\User\AssertPermissionTrait;
use Psr\Http\Message\ServerRequestInterface; use Psr\Http\Message\ServerRequestInterface;
class UpdateExtensionController implements ControllerInterface class UpdateExtensionController implements ControllerInterface

View File

@ -11,9 +11,9 @@
namespace Flarum\Api\Controller; namespace Flarum\Api\Controller;
use Flarum\User\AssertPermissionTrait;
use Flarum\Foundation\Application; use Flarum\Foundation\Application;
use Flarum\Settings\SettingsRepositoryInterface; use Flarum\Settings\SettingsRepositoryInterface;
use Flarum\User\AssertPermissionTrait;
use Illuminate\Support\Str; use Illuminate\Support\Str;
use Intervention\Image\ImageManager; use Intervention\Image\ImageManager;
use League\Flysystem\Adapter\Local; use League\Flysystem\Adapter\Local;

View File

@ -11,9 +11,9 @@
namespace Flarum\Api\Controller; namespace Flarum\Api\Controller;
use Flarum\User\AssertPermissionTrait;
use Flarum\Foundation\Application; use Flarum\Foundation\Application;
use Flarum\Settings\SettingsRepositoryInterface; use Flarum\Settings\SettingsRepositoryInterface;
use Flarum\User\AssertPermissionTrait;
use Illuminate\Support\Str; use Illuminate\Support\Str;
use Intervention\Image\ImageManager; use Intervention\Image\ImageManager;
use League\Flysystem\Adapter\Local; use League\Flysystem\Adapter\Local;

View File

@ -11,8 +11,8 @@
namespace Flarum\Api\Serializer; namespace Flarum\Api\Serializer;
use Flarum\Post\Post;
use Flarum\Post\CommentPost; use Flarum\Post\CommentPost;
use Flarum\Post\Post;
use InvalidArgumentException; use InvalidArgumentException;
class BasicPostSerializer extends AbstractSerializer class BasicPostSerializer extends AbstractSerializer

View File

@ -11,8 +11,8 @@
namespace Flarum\Api\Serializer; namespace Flarum\Api\Serializer;
use Flarum\User\Gate;
use Flarum\Discussion\Discussion; use Flarum\Discussion\Discussion;
use Flarum\User\Gate;
class DiscussionSerializer extends BasicDiscussionSerializer class DiscussionSerializer extends BasicDiscussionSerializer
{ {

View File

@ -11,8 +11,8 @@
namespace Flarum\Api\Serializer; namespace Flarum\Api\Serializer;
use Flarum\User\Gate;
use Flarum\Post\CommentPost; use Flarum\Post\CommentPost;
use Flarum\User\Gate;
class PostSerializer extends BasicPostSerializer class PostSerializer extends BasicPostSerializer
{ {

View File

@ -10,8 +10,8 @@
*/ */
use Flarum\Api\Controller; use Flarum\Api\Controller;
use Flarum\Http\RouteHandlerFactory;
use Flarum\Http\RouteCollection; use Flarum\Http\RouteCollection;
use Flarum\Http\RouteHandlerFactory;
return function (RouteCollection $map, RouteHandlerFactory $route) { return function (RouteCollection $map, RouteHandlerFactory $route) {
// Get forum information // Get forum information

View File

@ -12,11 +12,11 @@
namespace Flarum\Console; namespace Flarum\Console;
use Flarum\Database\Console\GenerateMigrationCommand; use Flarum\Database\Console\GenerateMigrationCommand;
use Flarum\Database\Console\MigrateCommand;
use Flarum\Foundation\AbstractServer;
use Flarum\Foundation\Console\CacheClearCommand; use Flarum\Foundation\Console\CacheClearCommand;
use Flarum\Foundation\Console\InfoCommand; use Flarum\Foundation\Console\InfoCommand;
use Flarum\Foundation\AbstractServer;
use Flarum\Install\Console\InstallCommand; use Flarum\Install\Console\InstallCommand;
use Flarum\Database\Console\MigrateCommand;
use Symfony\Component\Console\Application; use Symfony\Component\Console\Application;
class Server extends AbstractServer class Server extends AbstractServer

View File

@ -11,8 +11,8 @@
namespace Flarum\Database; namespace Flarum\Database;
use Flarum\User\User;
use Flarum\Event\ScopeModelVisibility; use Flarum\Event\ScopeModelVisibility;
use Flarum\User\User;
use Illuminate\Database\Eloquent\Builder; use Illuminate\Database\Eloquent\Builder;
trait ScopeVisibilityTrait trait ScopeVisibilityTrait

View File

@ -11,18 +11,17 @@
namespace Flarum\Discussion; namespace Flarum\Discussion;
use Flarum\Discussion\UserState;
use Flarum\Post\MergeableInterface;
use Flarum\Foundation\EventGeneratorTrait;
use Flarum\Database\ScopeVisibilityTrait;
use Flarum\Database\AbstractModel; use Flarum\Database\AbstractModel;
use Flarum\Database\ScopeVisibilityTrait;
use Flarum\Discussion\Event\Deleted; use Flarum\Discussion\Event\Deleted;
use Flarum\Discussion\Event\Hidden; use Flarum\Discussion\Event\Hidden;
use Flarum\Discussion\Event\Renamed; use Flarum\Discussion\Event\Renamed;
use Flarum\Discussion\Event\Restored; use Flarum\Discussion\Event\Restored;
use Flarum\Discussion\Event\Started; use Flarum\Discussion\Event\Started;
use Flarum\Post\Event\Deleted as PostDeleted;
use Flarum\Event\ScopePostVisibility; use Flarum\Event\ScopePostVisibility;
use Flarum\Foundation\EventGeneratorTrait;
use Flarum\Post\Event\Deleted as PostDeleted;
use Flarum\Post\MergeableInterface;
use Flarum\Post\Post; use Flarum\Post\Post;
use Flarum\User\Guest; use Flarum\User\Guest;
use Flarum\User\User; use Flarum\User\User;

View File

@ -11,11 +11,11 @@
namespace Flarum\Discussion; namespace Flarum\Discussion;
use Flarum\Post\Post;
use Flarum\Post\Event\Deleted; use Flarum\Post\Event\Deleted;
use Flarum\Post\Event\Hidden; use Flarum\Post\Event\Hidden;
use Flarum\Post\Event\Posted; use Flarum\Post\Event\Posted;
use Flarum\Post\Event\Restored; use Flarum\Post\Event\Restored;
use Flarum\Post\Post;
use Illuminate\Contracts\Events\Dispatcher; use Illuminate\Contracts\Events\Dispatcher;
class DiscussionMetadataUpdater class DiscussionMetadataUpdater

View File

@ -12,7 +12,6 @@
namespace Flarum\Discussion; namespace Flarum\Discussion;
use Carbon\Carbon; use Carbon\Carbon;
use Flarum\Discussion\Discussion;
use Flarum\Event\ScopeHiddenDiscussionVisibility; use Flarum\Event\ScopeHiddenDiscussionVisibility;
use Flarum\Event\ScopePrivateDiscussionVisibility; use Flarum\Event\ScopePrivateDiscussionVisibility;
use Flarum\Settings\SettingsRepositoryInterface; use Flarum\Settings\SettingsRepositoryInterface;

View File

@ -11,10 +11,10 @@
namespace Flarum\Discussion; namespace Flarum\Discussion;
use Flarum\Discussion\Event\Renamed;
use Flarum\Notification\Blueprint\DiscussionRenamedBlueprint; use Flarum\Notification\Blueprint\DiscussionRenamedBlueprint;
use Flarum\Notification\NotificationSyncer; use Flarum\Notification\NotificationSyncer;
use Flarum\Post\DiscussionRenamedPost; use Flarum\Post\DiscussionRenamedPost;
use Flarum\Discussion\Event\Renamed;
use Illuminate\Contracts\Events\Dispatcher; use Illuminate\Contracts\Events\Dispatcher;
class DiscussionRenamedLogger class DiscussionRenamedLogger

View File

@ -13,13 +13,10 @@ namespace Flarum\Discussion\Search;
use Flarum\Discussion\Discussion; use Flarum\Discussion\Discussion;
use Flarum\Discussion\DiscussionRepository; use Flarum\Discussion\DiscussionRepository;
use Flarum\Discussion\Search\DiscussionSearch; use Flarum\Event\ConfigureDiscussionSearch;
use Flarum\Post\PostRepository; use Flarum\Post\PostRepository;
use Flarum\Search\ApplySearchParametersTrait; use Flarum\Search\ApplySearchParametersTrait;
use Flarum\Search\GambitManager; use Flarum\Search\GambitManager;
use Flarum\Search\SearchCriteria;
use Flarum\Search\SearchResults;
use Flarum\Event\ConfigureDiscussionSearch;
use Illuminate\Database\Eloquent\Collection; use Illuminate\Database\Eloquent\Collection;
/** /**

View File

@ -11,10 +11,10 @@
namespace Flarum\Discussion\Search\Gambit; namespace Flarum\Discussion\Search\Gambit;
use Flarum\User\UserRepository; use Flarum\Discussion\Search\DiscussionSearch;
use Flarum\Search\AbstractRegexGambit; use Flarum\Search\AbstractRegexGambit;
use Flarum\Search\AbstractSearch; use Flarum\Search\AbstractSearch;
use Flarum\Discussion\Search\DiscussionSearch; use Flarum\User\UserRepository;
use LogicException; use LogicException;
class AuthorGambit extends AbstractRegexGambit class AuthorGambit extends AbstractRegexGambit

View File

@ -11,9 +11,9 @@
namespace Flarum\Discussion\Search\Gambit; namespace Flarum\Discussion\Search\Gambit;
use Flarum\Discussion\Search\DiscussionSearch;
use Flarum\Search\AbstractRegexGambit; use Flarum\Search\AbstractRegexGambit;
use Flarum\Search\AbstractSearch; use Flarum\Search\AbstractSearch;
use Flarum\Discussion\Search\DiscussionSearch;
use LogicException; use LogicException;
class CreatedGambit extends AbstractRegexGambit class CreatedGambit extends AbstractRegexGambit

View File

@ -11,9 +11,9 @@
namespace Flarum\Discussion\Search\Gambit; namespace Flarum\Discussion\Search\Gambit;
use Flarum\Search\AbstractSearch;
use Flarum\Discussion\Search\DiscussionSearch; use Flarum\Discussion\Search\DiscussionSearch;
use Flarum\Discussion\Search\Fulltext\DriverInterface; use Flarum\Discussion\Search\Fulltext\DriverInterface;
use Flarum\Search\AbstractSearch;
use Flarum\Search\GambitInterface; use Flarum\Search\GambitInterface;
use LogicException; use LogicException;

View File

@ -11,9 +11,9 @@
namespace Flarum\Discussion\Search\Gambit; namespace Flarum\Discussion\Search\Gambit;
use Flarum\Discussion\Search\DiscussionSearch;
use Flarum\Search\AbstractRegexGambit; use Flarum\Search\AbstractRegexGambit;
use Flarum\Search\AbstractSearch; use Flarum\Search\AbstractSearch;
use Flarum\Discussion\Search\DiscussionSearch;
use LogicException; use LogicException;
class HiddenGambit extends AbstractRegexGambit class HiddenGambit extends AbstractRegexGambit

View File

@ -12,9 +12,9 @@
namespace Flarum\Discussion\Search\Gambit; namespace Flarum\Discussion\Search\Gambit;
use Flarum\Discussion\DiscussionRepository; use Flarum\Discussion\DiscussionRepository;
use Flarum\Discussion\Search\DiscussionSearch;
use Flarum\Search\AbstractRegexGambit; use Flarum\Search\AbstractRegexGambit;
use Flarum\Search\AbstractSearch; use Flarum\Search\AbstractSearch;
use Flarum\Discussion\Search\DiscussionSearch;
use LogicException; use LogicException;
class UnreadGambit extends AbstractRegexGambit class UnreadGambit extends AbstractRegexGambit

View File

@ -11,10 +11,9 @@
namespace Flarum\Discussion; namespace Flarum\Discussion;
use Flarum\Discussion\Discussion;
use Flarum\Foundation\EventGeneratorTrait;
use Flarum\Database\AbstractModel; use Flarum\Database\AbstractModel;
use Flarum\Discussion\Event\UserRead; use Flarum\Discussion\Event\UserRead;
use Flarum\Foundation\EventGeneratorTrait;
use Illuminate\Database\Eloquent\Builder; use Illuminate\Database\Eloquent\Builder;
/** /**

View File

@ -11,8 +11,8 @@
namespace Flarum\Event; namespace Flarum\Event;
use Flarum\Http\RouteHandlerFactory;
use Flarum\Http\RouteCollection; use Flarum\Http\RouteCollection;
use Flarum\Http\RouteHandlerFactory;
abstract class AbstractConfigureRoutes abstract class AbstractConfigureRoutes
{ {

View File

@ -13,10 +13,10 @@ namespace Flarum\Extension;
use Flarum\Database\Migrator; use Flarum\Database\Migrator;
use Flarum\Extension\Event\Disabled; use Flarum\Extension\Event\Disabled;
use Flarum\Extension\Event\Enabled;
use Flarum\Extension\Event\Uninstalled;
use Flarum\Extension\Event\Disabling; use Flarum\Extension\Event\Disabling;
use Flarum\Extension\Event\Enabled;
use Flarum\Extension\Event\Enabling; use Flarum\Extension\Event\Enabling;
use Flarum\Extension\Event\Uninstalled;
use Flarum\Foundation\Application; use Flarum\Foundation\Application;
use Flarum\Settings\SettingsRepositoryInterface; use Flarum\Settings\SettingsRepositoryInterface;
use Illuminate\Contracts\Events\Dispatcher; use Illuminate\Contracts\Events\Dispatcher;

View File

@ -12,8 +12,8 @@
namespace Flarum\Forum\Controller; namespace Flarum\Forum\Controller;
use Flarum\Api\Client; use Flarum\Api\Client;
use Flarum\Forum\UrlGenerator;
use Flarum\Forum\Frontend; use Flarum\Forum\Frontend;
use Flarum\Forum\UrlGenerator;
use Flarum\Http\Exception\RouteNotFoundException; use Flarum\Http\Exception\RouteNotFoundException;
use Flarum\User\User; use Flarum\User\User;
use Illuminate\Contracts\Events\Dispatcher; use Illuminate\Contracts\Events\Dispatcher;

View File

@ -12,8 +12,8 @@
namespace Flarum\Forum\Controller; namespace Flarum\Forum\Controller;
use Flarum\Api\Client as ApiClient; use Flarum\Api\Client as ApiClient;
use Flarum\User\User;
use Flarum\Forum\Frontend; use Flarum\Forum\Frontend;
use Flarum\User\User;
use Illuminate\Contracts\Events\Dispatcher; use Illuminate\Contracts\Events\Dispatcher;
use Psr\Http\Message\ServerRequestInterface as Request; use Psr\Http\Message\ServerRequestInterface as Request;

View File

@ -13,12 +13,12 @@ namespace Flarum\Forum\Controller;
use Flarum\Api\Client; use Flarum\Api\Client;
use Flarum\Api\Controller\TokenController; use Flarum\Api\Controller\TokenController;
use Flarum\User\UserRepository;
use Flarum\User\Event\LoggedIn;
use Flarum\Http\AccessToken; use Flarum\Http\AccessToken;
use Flarum\Http\Controller\ControllerInterface; use Flarum\Http\Controller\ControllerInterface;
use Flarum\Http\Rememberer; use Flarum\Http\Rememberer;
use Flarum\Http\SessionAuthenticator; use Flarum\Http\SessionAuthenticator;
use Flarum\User\Event\LoggedIn;
use Flarum\User\UserRepository;
use Psr\Http\Message\ServerRequestInterface as Request; use Psr\Http\Message\ServerRequestInterface as Request;
use Zend\Diactoros\Response\EmptyResponse; use Zend\Diactoros\Response\EmptyResponse;
use Zend\Diactoros\Response\JsonResponse; use Zend\Diactoros\Response\JsonResponse;

View File

@ -11,13 +11,13 @@
namespace Flarum\Forum\Controller; namespace Flarum\Forum\Controller;
use Flarum\User\AssertPermissionTrait;
use Flarum\User\Event\LoggedOut;
use Flarum\Foundation\Application; use Flarum\Foundation\Application;
use Flarum\Http\Controller\ControllerInterface; 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\User\AssertPermissionTrait;
use Flarum\User\Event\LoggedOut;
use Illuminate\Contracts\Events\Dispatcher; use Illuminate\Contracts\Events\Dispatcher;
use Psr\Http\Message\ServerRequestInterface as Request; use Psr\Http\Message\ServerRequestInterface as Request;
use Zend\Diactoros\Response\RedirectResponse; use Zend\Diactoros\Response\RedirectResponse;

View File

@ -12,9 +12,9 @@
namespace Flarum\Forum\Controller; namespace Flarum\Forum\Controller;
use DateTime; use DateTime;
use Flarum\Http\Controller\AbstractHtmlController;
use Flarum\User\Exception\InvalidConfirmationTokenException; use Flarum\User\Exception\InvalidConfirmationTokenException;
use Flarum\User\PasswordToken; use Flarum\User\PasswordToken;
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; use Symfony\Component\Translation\TranslatorInterface;

View File

@ -11,11 +11,11 @@
namespace Flarum\Forum\Controller; namespace Flarum\Forum\Controller;
use Flarum\User\PasswordToken;
use Flarum\User\UserValidator;
use Flarum\Forum\UrlGenerator; use Flarum\Forum\UrlGenerator;
use Flarum\Http\Controller\ControllerInterface; use Flarum\Http\Controller\ControllerInterface;
use Flarum\Http\SessionAuthenticator; use Flarum\Http\SessionAuthenticator;
use Flarum\User\PasswordToken;
use Flarum\User\UserValidator;
use Illuminate\Contracts\Validation\Factory; use Illuminate\Contracts\Validation\Factory;
use Illuminate\Contracts\Validation\ValidationException; use Illuminate\Contracts\Validation\ValidationException;
use Psr\Http\Message\ServerRequestInterface as Request; use Psr\Http\Message\ServerRequestInterface as Request;

View File

@ -14,10 +14,10 @@ namespace Flarum\Forum;
use Flarum\Event\ConfigureForumRoutes; use Flarum\Event\ConfigureForumRoutes;
use Flarum\Extension\Event\Disabled; use Flarum\Extension\Event\Disabled;
use Flarum\Extension\Event\Enabled; use Flarum\Extension\Event\Enabled;
use Flarum\Settings\Event\Saved;
use Flarum\Foundation\AbstractServiceProvider; use Flarum\Foundation\AbstractServiceProvider;
use Flarum\Http\RouteHandlerFactory;
use Flarum\Http\RouteCollection; use Flarum\Http\RouteCollection;
use Flarum\Http\RouteHandlerFactory;
use Flarum\Settings\Event\Saved;
class ForumServiceProvider extends AbstractServiceProvider class ForumServiceProvider extends AbstractServiceProvider
{ {

View File

@ -10,8 +10,8 @@
*/ */
use Flarum\Forum\Controller; use Flarum\Forum\Controller;
use Flarum\Http\RouteHandlerFactory;
use Flarum\Http\RouteCollection; use Flarum\Http\RouteCollection;
use Flarum\Http\RouteHandlerFactory;
return function (RouteCollection $map, RouteHandlerFactory $route) { return function (RouteCollection $map, RouteHandlerFactory $route) {
$map->get( $map->get(

View File

@ -11,9 +11,9 @@
namespace Flarum\Frontend; namespace Flarum\Frontend;
use Flarum\Foundation\Application;
use Flarum\Frontend\Asset\JsCompiler; use Flarum\Frontend\Asset\JsCompiler;
use Flarum\Frontend\Asset\LessCompiler; use Flarum\Frontend\Asset\LessCompiler;
use Flarum\Foundation\Application;
use Flarum\Frontend\Asset\LocaleJsCompiler as LocaleJsCompiler; use Flarum\Frontend\Asset\LocaleJsCompiler as LocaleJsCompiler;
use Flarum\Locale\LocaleManager; use Flarum\Locale\LocaleManager;
use Illuminate\Contracts\Cache\Repository; use Illuminate\Contracts\Cache\Repository;

View File

@ -13,8 +13,8 @@ namespace Flarum\Frontend;
use Flarum\Api\Client; use Flarum\Api\Client;
use Flarum\Api\Serializer\AbstractSerializer; use Flarum\Api\Serializer\AbstractSerializer;
use Flarum\Frontend\Asset\CompilerInterface;
use Flarum\Foundation\Application; use Flarum\Foundation\Application;
use Flarum\Frontend\Asset\CompilerInterface;
use Flarum\Frontend\Asset\LocaleJsCompiler; use Flarum\Frontend\Asset\LocaleJsCompiler;
use Flarum\Locale\LocaleManager; use Flarum\Locale\LocaleManager;
use Illuminate\View\Factory; use Illuminate\View\Factory;

View File

@ -11,9 +11,9 @@
namespace Flarum\Group; namespace Flarum\Group;
use Flarum\Foundation\EventGeneratorTrait;
use Flarum\Database\ScopeVisibilityTrait;
use Flarum\Database\AbstractModel; use Flarum\Database\AbstractModel;
use Flarum\Database\ScopeVisibilityTrait;
use Flarum\Foundation\EventGeneratorTrait;
use Flarum\Group\Event\Created; use Flarum\Group\Event\Created;
use Flarum\Group\Event\Deleting; use Flarum\Group\Event\Deleting;
use Flarum\Group\Event\Renamed; use Flarum\Group\Event\Renamed;

View File

@ -11,11 +11,11 @@
namespace Flarum\Http; namespace Flarum\Http;
use Flarum\Foundation\AbstractServer as BaseAbstractServer;
use Flarum\Foundation\Application;
use Flarum\User\AuthToken; use Flarum\User\AuthToken;
use Flarum\User\EmailToken; use Flarum\User\EmailToken;
use Flarum\User\PasswordToken; use Flarum\User\PasswordToken;
use Flarum\Foundation\AbstractServer as BaseAbstractServer;
use Flarum\Foundation\Application;
use Psr\Http\Message\ResponseInterface; use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface; use Psr\Http\Message\ServerRequestInterface;
use Zend\Diactoros\Server; use Zend\Diactoros\Server;

View File

@ -12,8 +12,8 @@
namespace Flarum\Http\Middleware; namespace Flarum\Http\Middleware;
use Flarum\Api\ApiKey; use Flarum\Api\ApiKey;
use Flarum\User\User;
use Flarum\Http\AccessToken; use Flarum\Http\AccessToken;
use Flarum\User\User;
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;

View File

@ -13,10 +13,10 @@ namespace Flarum\Install\Console;
use Exception; use Exception;
use Flarum\Console\AbstractCommand; use Flarum\Console\AbstractCommand;
use Flarum\Database\AbstractModel;
use Flarum\Group\Group; use Flarum\Group\Group;
use Flarum\Group\Permission; use Flarum\Group\Permission;
use Flarum\User\User; use Flarum\User\User;
use Flarum\Database\AbstractModel;
use Illuminate\Contracts\Foundation\Application; use Illuminate\Contracts\Foundation\Application;
use Illuminate\Filesystem\Filesystem; use Illuminate\Filesystem\Filesystem;
use Illuminate\Validation\Factory; use Illuminate\Validation\Factory;

View File

@ -12,8 +12,8 @@
namespace Flarum\Install; namespace Flarum\Install;
use Flarum\Foundation\AbstractServiceProvider; use Flarum\Foundation\AbstractServiceProvider;
use Flarum\Http\RouteHandlerFactory;
use Flarum\Http\RouteCollection; use Flarum\Http\RouteCollection;
use Flarum\Http\RouteHandlerFactory;
use Flarum\Install\Prerequisite\Composite; use Flarum\Install\Prerequisite\Composite;
use Flarum\Install\Prerequisite\PhpExtensions; use Flarum\Install\Prerequisite\PhpExtensions;
use Flarum\Install\Prerequisite\PhpVersion; use Flarum\Install\Prerequisite\PhpVersion;

View File

@ -12,8 +12,8 @@
namespace Flarum\Notification; namespace Flarum\Notification;
use Carbon\Carbon; use Carbon\Carbon;
use Flarum\Notification\Event\Sending;
use Flarum\Notification\Blueprint\BlueprintInterface; use Flarum\Notification\Blueprint\BlueprintInterface;
use Flarum\Notification\Event\Sending;
use Flarum\User\User; use Flarum\User\User;
/** /**

View File

@ -11,11 +11,11 @@
namespace Flarum\Post; namespace Flarum\Post;
use Flarum\Formatter\Formatter;
use Flarum\Post\Event\Hidden; use Flarum\Post\Event\Hidden;
use Flarum\Post\Event\Posted; use Flarum\Post\Event\Posted;
use Flarum\Post\Event\Restored; use Flarum\Post\Event\Restored;
use Flarum\Post\Event\Revised; use Flarum\Post\Event\Revised;
use Flarum\Formatter\Formatter;
use Flarum\User\User; use Flarum\User\User;
/** /**

View File

@ -11,9 +11,9 @@
namespace Flarum\Post; namespace Flarum\Post;
use Flarum\Foundation\EventGeneratorTrait;
use Flarum\Database\ScopeVisibilityTrait;
use Flarum\Database\AbstractModel; use Flarum\Database\AbstractModel;
use Flarum\Database\ScopeVisibilityTrait;
use Flarum\Foundation\EventGeneratorTrait;
use Flarum\Post\Event\Deleted; use Flarum\Post\Event\Deleted;
use Flarum\User\User; use Flarum\User\User;
use Illuminate\Database\Eloquent\Builder; use Illuminate\Database\Eloquent\Builder;

View File

@ -12,9 +12,9 @@
namespace Flarum\Update\Controller; namespace Flarum\Update\Controller;
use Exception; use Exception;
use Flarum\Database\Console\MigrateCommand;
use Flarum\Foundation\Application; use Flarum\Foundation\Application;
use Flarum\Http\Controller\ControllerInterface; use Flarum\Http\Controller\ControllerInterface;
use Flarum\Database\Console\MigrateCommand;
use Psr\Http\Message\ServerRequestInterface as Request; use Psr\Http\Message\ServerRequestInterface as Request;
use Symfony\Component\Console\Input\StringInput; use Symfony\Component\Console\Input\StringInput;
use Symfony\Component\Console\Output\StreamOutput; use Symfony\Component\Console\Output\StreamOutput;

View File

@ -12,8 +12,8 @@
namespace Flarum\Update; namespace Flarum\Update;
use Flarum\Foundation\AbstractServiceProvider; use Flarum\Foundation\AbstractServiceProvider;
use Flarum\Http\RouteHandlerFactory;
use Flarum\Http\RouteCollection; use Flarum\Http\RouteCollection;
use Flarum\Http\RouteHandlerFactory;
class UpdateServiceProvider extends AbstractServiceProvider class UpdateServiceProvider extends AbstractServiceProvider
{ {

View File

@ -12,8 +12,8 @@
namespace Flarum\User; namespace Flarum\User;
use DateTime; use DateTime;
use Flarum\User\Exception\InvalidConfirmationTokenException;
use Flarum\Database\AbstractModel; use Flarum\Database\AbstractModel;
use Flarum\User\Exception\InvalidConfirmationTokenException;
/** /**
* @todo document database columns with @property * @todo document database columns with @property

View File

@ -16,8 +16,8 @@ use Flarum\Event\AvatarWillBeSaved;
use Flarum\Foundation\Application; use Flarum\Foundation\Application;
use Flarum\Foundation\DispatchEventsTrait; use Flarum\Foundation\DispatchEventsTrait;
use Flarum\User\AssertPermissionTrait; use Flarum\User\AssertPermissionTrait;
use Flarum\User\UserRepository;
use Flarum\User\AvatarValidator; use Flarum\User\AvatarValidator;
use Flarum\User\UserRepository;
use Illuminate\Contracts\Events\Dispatcher; use Illuminate\Contracts\Events\Dispatcher;
use Illuminate\Support\Str; use Illuminate\Support\Str;
use Intervention\Image\ImageManager; use Intervention\Image\ImageManager;

View File

@ -11,10 +11,10 @@
namespace Flarum\User; namespace Flarum\User;
use Flarum\User\Event\EmailChangeRequested;
use Flarum\User\Event\Registered;
use Flarum\Forum\UrlGenerator; use Flarum\Forum\UrlGenerator;
use Flarum\Settings\SettingsRepositoryInterface; use Flarum\Settings\SettingsRepositoryInterface;
use Flarum\User\Event\EmailChangeRequested;
use Flarum\User\Event\Registered;
use Illuminate\Contracts\Events\Dispatcher; use Illuminate\Contracts\Events\Dispatcher;
use Illuminate\Contracts\Mail\Mailer; use Illuminate\Contracts\Mail\Mailer;
use Illuminate\Mail\Message; use Illuminate\Mail\Message;

View File

@ -12,8 +12,8 @@
namespace Flarum\User; namespace Flarum\User;
use DateTime; use DateTime;
use Flarum\User\Exception\InvalidConfirmationTokenException;
use Flarum\Database\AbstractModel; use Flarum\Database\AbstractModel;
use Flarum\User\Exception\InvalidConfirmationTokenException;
/** /**
* @todo document database columns with @property * @todo document database columns with @property

View File

@ -11,8 +11,8 @@
namespace Flarum\User\Event; namespace Flarum\User\Event;
use Flarum\User\User;
use Flarum\Http\AccessToken; use Flarum\Http\AccessToken;
use Flarum\User\User;
class LoggedIn class LoggedIn
{ {

View File

@ -11,12 +11,12 @@
namespace Flarum\User\Search; namespace Flarum\User\Search;
use Flarum\User\UserRepository; use Flarum\Event\ConfigureUserSearch;
use Flarum\Search\ApplySearchParametersTrait; use Flarum\Search\ApplySearchParametersTrait;
use Flarum\Search\GambitManager; use Flarum\Search\GambitManager;
use Flarum\Search\SearchCriteria; use Flarum\Search\SearchCriteria;
use Flarum\Search\SearchResults; use Flarum\Search\SearchResults;
use Flarum\Event\ConfigureUserSearch; use Flarum\User\UserRepository;
/** /**
* Takes a UserSearchCriteria object, performs a search using gambits, * Takes a UserSearchCriteria object, performs a search using gambits,

View File

@ -12,26 +12,26 @@
namespace Flarum\User; namespace Flarum\User;
use DomainException; use DomainException;
use Flarum\Group\Group;
use Flarum\Notification\Notification;
use Flarum\Group\Permission;
use Flarum\Foundation\EventGeneratorTrait;
use Flarum\Database\ScopeVisibilityTrait;
use Flarum\Database\AbstractModel; use Flarum\Database\AbstractModel;
use Flarum\Database\ScopeVisibilityTrait;
use Flarum\Event\CheckUserPassword; use Flarum\Event\CheckUserPassword;
use Flarum\Event\ConfigureUserPreferences; use Flarum\Event\ConfigureUserPreferences;
use Flarum\Post\Event\Deleted as PostDeleted;
use Flarum\Event\PrepareUserGroups; use Flarum\Event\PrepareUserGroups;
use Flarum\Foundation\Application;
use Flarum\Foundation\EventGeneratorTrait;
use Flarum\Group\Group;
use Flarum\Group\Permission;
use Flarum\Notification\Notification;
use Flarum\Post\Event\Deleted as PostDeleted;
use Flarum\User\Event\Activated;
use Flarum\User\Event\AvatarChanged; use Flarum\User\Event\AvatarChanged;
use Flarum\User\Event\BioChanged; use Flarum\User\Event\BioChanged;
use Flarum\User\Event\EmailChangeRequested;
use Flarum\User\Event\EmailChanged;
use Flarum\User\Event\PasswordChanged;
use Flarum\User\Event\Activated;
use Flarum\User\Event\Deleted; use Flarum\User\Event\Deleted;
use Flarum\User\Event\EmailChanged;
use Flarum\User\Event\EmailChangeRequested;
use Flarum\User\Event\PasswordChanged;
use Flarum\User\Event\Registered; use Flarum\User\Event\Registered;
use Flarum\User\Event\Renamed; use Flarum\User\Event\Renamed;
use Flarum\Foundation\Application;
use Illuminate\Contracts\Hashing\Hasher; use Illuminate\Contracts\Hashing\Hasher;
use Symfony\Component\HttpFoundation\Session\SessionInterface; use Symfony\Component\HttpFoundation\Session\SessionInterface;

View File

@ -11,7 +11,6 @@
namespace Flarum\User; namespace Flarum\User;
use Flarum\User\AbstractPolicy;
use Illuminate\Database\Eloquent\Builder; use Illuminate\Database\Eloquent\Builder;
class UserPolicy extends AbstractPolicy class UserPolicy extends AbstractPolicy