From 0b8aa5c12450f9a53454d905a97e726f7ab2e9b4 Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Wed, 26 Aug 2015 16:18:58 +0930 Subject: [PATCH] Add header comment; PSR-2 fixes; remove seeders --- .php_cs | 26 ++++ .travis.yml | 3 +- less/lib/App.less | 6 +- locale/en.php | 9 ++ ...2_24_000000_create_access_tokens_table.php | 9 ++ .../2015_02_24_000000_create_config_table.php | 10 +- ..._02_24_000000_create_discussions_table.php | 10 +- ...02_24_000000_create_email_tokens_table.php | 9 ++ .../2015_02_24_000000_create_groups_table.php | 9 ++ ...2_24_000000_create_notifications_table.php | 10 +- ...24_000000_create_password_tokens_table.php | 9 ++ ..._02_24_000000_create_permissions_table.php | 10 +- .../2015_02_24_000000_create_posts_table.php | 10 +- ..._000000_create_users_discussions_table.php | 10 +- ...02_24_000000_create_users_groups_table.php | 10 +- .../2015_02_24_000000_create_users_table.php | 10 +- .../MemoryCacheSettingsRepositorySpec.php | 19 ++- src/Admin/Actions/ClientAction.php | 12 +- src/Admin/AdminServiceProvider.php | 12 +- .../LoginWithCookieAndCheckAdmin.php | 12 +- src/Api/AccessToken.php | 12 +- src/Api/Actions/Action.php | 12 +- src/Api/Actions/ConfigAction.php | 12 +- src/Api/Actions/CreateAction.php | 12 +- src/Api/Actions/DeleteAction.php | 12 +- src/Api/Actions/Discussions/CreateAction.php | 12 +- src/Api/Actions/Discussions/DeleteAction.php | 12 +- src/Api/Actions/Discussions/IndexAction.php | 12 +- src/Api/Actions/Discussions/ShowAction.php | 12 +- src/Api/Actions/Discussions/UpdateAction.php | 12 +- src/Api/Actions/Extensions/DeleteAction.php | 12 +- src/Api/Actions/Extensions/UpdateAction.php | 12 +- src/Api/Actions/ForgotAction.php | 12 +- src/Api/Actions/Forum/ShowAction.php | 12 +- src/Api/Actions/Forum/UpdateAction.php | 12 +- src/Api/Actions/Groups/CreateAction.php | 12 +- src/Api/Actions/Groups/DeleteAction.php | 12 +- src/Api/Actions/Groups/IndexAction.php | 12 +- src/Api/Actions/Groups/UpdateAction.php | 12 +- src/Api/Actions/JsonApiAction.php | 12 +- src/Api/Actions/Notifications/IndexAction.php | 12 +- .../Actions/Notifications/UpdateAction.php | 12 +- src/Api/Actions/PermissionAction.php | 12 +- src/Api/Actions/Posts/CreateAction.php | 12 +- src/Api/Actions/Posts/DeleteAction.php | 12 +- src/Api/Actions/Posts/GetsPosts.php | 12 +- src/Api/Actions/Posts/IndexAction.php | 12 +- src/Api/Actions/Posts/ShowAction.php | 12 +- src/Api/Actions/Posts/UpdateAction.php | 12 +- src/Api/Actions/SerializeAction.php | 12 +- src/Api/Actions/SerializeCollectionAction.php | 12 +- src/Api/Actions/SerializeResourceAction.php | 12 +- src/Api/Actions/TokenAction.php | 12 +- src/Api/Actions/Users/CreateAction.php | 12 +- src/Api/Actions/Users/DeleteAction.php | 12 +- src/Api/Actions/Users/DeleteAvatarAction.php | 12 +- src/Api/Actions/Users/IndexAction.php | 12 +- src/Api/Actions/Users/ShowAction.php | 12 +- src/Api/Actions/Users/UpdateAction.php | 12 +- src/Api/Actions/Users/UploadAvatarAction.php | 12 +- src/Api/ApiServiceProvider.php | 12 +- src/Api/Client.php | 12 +- src/Api/Commands/GenerateAccessToken.php | 12 +- .../Commands/GenerateAccessTokenHandler.php | 12 +- src/Api/JsonApiRequest.php | 12 +- src/Api/Middleware/JsonApiErrors.php | 12 +- src/Api/Middleware/LoginWithHeader.php | 12 +- src/Api/Middleware/ReadJsonParameters.php | 12 +- src/Api/Request.php | 12 +- src/Api/Response.php | 12 +- src/Api/Serializers/ActivitySerializer.php | 12 +- src/Api/Serializers/CurrentUserSerializer.php | 12 +- .../Serializers/DiscussionBasicSerializer.php | 12 +- src/Api/Serializers/DiscussionSerializer.php | 12 +- src/Api/Serializers/ForumSerializer.php | 12 +- src/Api/Serializers/GroupSerializer.php | 12 +- .../Serializers/NotificationSerializer.php | 12 +- src/Api/Serializers/PostBasicSerializer.php | 12 +- src/Api/Serializers/PostSerializer.php | 12 +- src/Api/Serializers/Serializer.php | 12 +- src/Api/Serializers/UserBasicSerializer.php | 12 +- src/Api/Serializers/UserSerializer.php | 12 +- src/Assets/AssetManager.php | 12 +- src/Assets/Compiler.php | 12 +- src/Assets/JsCompiler.php | 12 +- src/Assets/LessCompiler.php | 12 +- src/Assets/RevisionCompiler.php | 12 +- src/Console/Command.php | 12 +- src/Console/GenerateExtensionCommand.php | 12 +- src/Console/ImportCommand.php | 13 +- src/Console/UpgradeCommand.php | 14 +- src/Core.php | 12 +- src/Core/Application.php | 12 +- src/Core/CoreServiceProvider.php | 12 +- src/Core/DatabaseServiceProvider.php | 12 +- .../Discussions/Commands/DeleteDiscussion.php | 12 +- .../Commands/DeleteDiscussionHandler.php | 12 +- .../Discussions/Commands/EditDiscussion.php | 12 +- .../Commands/EditDiscussionHandler.php | 12 +- .../Discussions/Commands/ReadDiscussion.php | 12 +- .../Commands/ReadDiscussionHandler.php | 12 +- .../Discussions/Commands/StartDiscussion.php | 12 +- .../Commands/StartDiscussionHandler.php | 12 +- src/Core/Discussions/Discussion.php | 12 +- src/Core/Discussions/DiscussionRepository.php | 12 +- src/Core/Discussions/DiscussionState.php | 12 +- .../DiscussionsServiceProvider.php | 12 +- .../Listeners/DiscussionMetadataUpdater.php | 12 +- .../Discussions/Search/DiscussionSearch.php | 12 +- .../Discussions/Search/DiscussionSearcher.php | 12 +- .../Discussions/Search/Fulltext/Driver.php | 12 +- .../Search/Fulltext/MySqlFulltextDriver.php | 12 +- .../Search/Gambits/AuthorGambit.php | 12 +- .../Search/Gambits/FulltextGambit.php | 12 +- .../Search/Gambits/UnreadGambit.php | 12 +- .../InvalidConfirmationTokenException.php | 12 +- .../Exceptions/PermissionDeniedException.php | 12 +- src/Core/Exceptions/ValidationException.php | 12 +- src/Core/Formatter/Formatter.php | 12 +- .../Formatter/FormatterServiceProvider.php | 12 +- src/Core/Forum.php | 12 +- src/Core/Groups/Commands/CreateGroup.php | 12 +- .../Groups/Commands/CreateGroupHandler.php | 12 +- src/Core/Groups/Commands/DeleteGroup.php | 12 +- .../Groups/Commands/DeleteGroupHandler.php | 12 +- src/Core/Groups/Commands/EditGroup.php | 12 +- src/Core/Groups/Commands/EditGroupHandler.php | 12 +- src/Core/Groups/Group.php | 12 +- src/Core/Groups/GroupRepository.php | 12 +- src/Core/Groups/GroupsServiceProvider.php | 12 +- src/Core/Groups/Permission.php | 12 +- src/Core/Model.php | 12 +- src/Core/Notifications/Blueprint.php | 12 +- .../Commands/ReadNotification.php | 12 +- .../Commands/ReadNotificationHandler.php | 12 +- .../DiscussionRenamedBlueprint.php | 12 +- .../Listeners/DiscussionRenamedNotifier.php | 12 +- src/Core/Notifications/MailableBlueprint.php | 12 +- src/Core/Notifications/Notification.php | 12 +- src/Core/Notifications/NotificationMailer.php | 12 +- .../Notifications/NotificationRepository.php | 12 +- src/Core/Notifications/NotificationSyncer.php | 12 +- .../NotificationsServiceProvider.php | 12 +- src/Core/Posts/Commands/DeletePost.php | 12 +- src/Core/Posts/Commands/DeletePostHandler.php | 12 +- src/Core/Posts/Commands/EditPost.php | 12 +- src/Core/Posts/Commands/EditPostHandler.php | 12 +- src/Core/Posts/Commands/PostReply.php | 12 +- src/Core/Posts/Commands/PostReplyHandler.php | 12 +- src/Core/Posts/CommentPost.php | 12 +- src/Core/Posts/DiscussionRenamedPost.php | 12 +- src/Core/Posts/EventPost.php | 12 +- src/Core/Posts/MergeablePost.php | 12 +- src/Core/Posts/Post.php | 12 +- src/Core/Posts/PostRepository.php | 12 +- src/Core/Posts/PostsServiceProvider.php | 12 +- src/Core/Posts/RegisteredTypesScope.php | 12 +- src/Core/Search/AppliesParametersToSearch.php | 12 +- src/Core/Search/Gambit.php | 12 +- src/Core/Search/GambitManager.php | 12 +- src/Core/Search/RegexGambit.php | 12 +- src/Core/Search/Search.php | 12 +- src/Core/Search/SearchCriteria.php | 12 +- src/Core/Search/SearchResults.php | 12 +- .../Settings/DatabaseSettingsRepository.php | 9 ++ .../MemoryCacheSettingsRepository.php | 11 +- src/Core/Settings/SettingsRepository.php | 9 ++ src/Core/Settings/SettingsServiceProvider.php | 12 +- src/Core/Support/DispatchesEvents.php | 12 +- src/Core/Support/EventGenerator.php | 12 +- src/Core/Support/Locked.php | 12 +- src/Core/Support/ValidatesBeforeSave.php | 12 +- src/Core/Support/VisibleScope.php | 12 +- src/Core/Users/Commands/ConfirmEmail.php | 12 +- .../Users/Commands/ConfirmEmailHandler.php | 12 +- src/Core/Users/Commands/DeleteAvatar.php | 12 +- .../Users/Commands/DeleteAvatarHandler.php | 12 +- src/Core/Users/Commands/DeleteUser.php | 12 +- src/Core/Users/Commands/DeleteUserHandler.php | 12 +- src/Core/Users/Commands/EditUser.php | 12 +- src/Core/Users/Commands/EditUserHandler.php | 12 +- src/Core/Users/Commands/RegisterUser.php | 12 +- .../Users/Commands/RegisterUserHandler.php | 12 +- .../Users/Commands/RequestPasswordReset.php | 12 +- .../Commands/RequestPasswordResetHandler.php | 12 +- src/Core/Users/Commands/UploadAvatar.php | 12 +- .../Users/Commands/UploadAvatarHandler.php | 12 +- src/Core/Users/EmailToken.php | 12 +- src/Core/Users/Guest.php | 12 +- .../Listeners/EmailConfirmationMailer.php | 12 +- .../Users/Listeners/UserMetadataUpdater.php | 12 +- src/Core/Users/PasswordToken.php | 12 +- src/Core/Users/Permission.php | 12 +- .../Users/Search/Gambits/FulltextGambit.php | 12 +- src/Core/Users/Search/UserSearch.php | 12 +- src/Core/Users/Search/UserSearcher.php | 12 +- src/Core/Users/User.php | 12 +- src/Core/Users/UserRepository.php | 12 +- src/Core/Users/UsersServiceProvider.php | 12 +- src/Events/ApiAttributes.php | 12 +- src/Events/ApiRelationship.php | 12 +- src/Events/AvatarWillBeDeleted.php | 12 +- src/Events/AvatarWillBeSaved.php | 12 +- src/Events/BuildApiAction.php | 12 +- src/Events/BuildClientView.php | 12 +- .../DiscussionSearchWillBePerformed.php | 12 +- src/Events/DiscussionStateWillBeSaved.php | 12 +- src/Events/DiscussionWasDeleted.php | 12 +- src/Events/DiscussionWasRead.php | 12 +- src/Events/DiscussionWasRenamed.php | 12 +- src/Events/DiscussionWasStarted.php | 12 +- src/Events/DiscussionWillBeDeleted.php | 12 +- src/Events/DiscussionWillBeSaved.php | 12 +- src/Events/FormatterConfigurator.php | 12 +- src/Events/FormatterParser.php | 12 +- src/Events/FormatterRenderer.php | 12 +- src/Events/GetUserGroups.php | 12 +- src/Events/GroupWasCreated.php | 12 +- src/Events/GroupWasDeleted.php | 12 +- src/Events/GroupWasRenamed.php | 12 +- src/Events/GroupWillBeDeleted.php | 12 +- src/Events/GroupWillBeSaved.php | 12 +- src/Events/ModelAllow.php | 12 +- src/Events/ModelDates.php | 12 +- src/Events/ModelRelationship.php | 12 +- src/Events/ModelValidator.php | 12 +- src/Events/NotificationWillBeSent.php | 12 +- src/Events/PostWasDeleted.php | 12 +- src/Events/PostWasHidden.php | 12 +- src/Events/PostWasPosted.php | 12 +- src/Events/PostWasRestored.php | 12 +- src/Events/PostWasRevised.php | 12 +- src/Events/PostWillBeDeleted.php | 12 +- src/Events/PostWillBeSaved.php | 12 +- src/Events/RegisterApiRoutes.php | 12 +- src/Events/RegisterDiscussionGambits.php | 12 +- src/Events/RegisterForumRoutes.php | 12 +- src/Events/RegisterLocales.php | 12 +- src/Events/RegisterNotificationTypes.php | 12 +- src/Events/RegisterPostTypes.php | 12 +- src/Events/RegisterUserGambits.php | 12 +- src/Events/RegisterUserPreferences.php | 12 +- src/Events/ScopeModelVisibility.php | 12 +- src/Events/ScopePostVisibility.php | 12 +- src/Events/UserAvatarWasChanged.php | 12 +- src/Events/UserBioWasChanged.php | 12 +- src/Events/UserEmailChangeWasRequested.php | 12 +- src/Events/UserEmailWasChanged.php | 12 +- src/Events/UserGroupsWereChanged.php | 12 +- src/Events/UserLoggedIn.php | 12 +- src/Events/UserLoggedOut.php | 12 +- src/Events/UserPasswordWasChanged.php | 12 +- src/Events/UserSearchWillBePerformed.php | 12 +- src/Events/UserWasActivated.php | 12 +- src/Events/UserWasDeleted.php | 12 +- src/Events/UserWasRegistered.php | 12 +- src/Events/UserWasRenamed.php | 12 +- src/Events/UserWillBeDeleted.php | 12 +- src/Events/UserWillBeSaved.php | 12 +- src/Events/WillSerializeData.php | 12 +- src/Forum/Actions/ClientAction.php | 12 +- src/Forum/Actions/ConfirmEmailAction.php | 12 +- src/Forum/Actions/DiscussionAction.php | 12 +- src/Forum/Actions/IndexAction.php | 12 +- src/Forum/Actions/LoginAction.php | 12 +- src/Forum/Actions/LogoutAction.php | 12 +- src/Forum/Actions/ResetPasswordAction.php | 12 +- src/Forum/Actions/SavePasswordAction.php | 12 +- src/Forum/Actions/WritesRememberCookie.php | 12 +- src/Forum/ForumServiceProvider.php | 12 +- src/Forum/Middleware/HandleErrors.php | 12 +- src/Forum/Middleware/LoginWithCookie.php | 12 +- src/Http/RouteCollection.php | 9 ++ src/Http/RouteNotFoundException.php | 9 ++ src/Http/RouterMiddleware.php | 9 ++ src/Http/UrlGenerator.php | 9 ++ src/Http/UrlGeneratorInterface.php | 9 ++ src/Install/Actions/IndexAction.php | 12 +- src/Install/Actions/InstallAction.php | 12 +- src/Install/Console/DataFromUser.php | 12 +- src/Install/Console/DefaultData.php | 12 +- src/Install/Console/InstallCommand.php | 14 +- src/Install/Console/ProvidesData.php | 12 +- src/Install/InstallServiceProvider.php | 12 +- src/Locale/JsCompiler.php | 12 +- src/Locale/LocaleManager.php | 12 +- src/Locale/LocaleServiceProvider.php | 12 +- src/Locale/TranslationCompiler.php | 12 +- src/Locale/Translator.php | 12 +- .../DatabaseMigrationRepository.php | 9 ++ src/Migrations/Migration.php | 12 +- .../MigrationRepositoryInterface.php | 9 ++ src/Migrations/Migrator.php | 9 ++ src/Seeders/ConfigTableSeeder.php | 33 ----- src/Seeders/DiscussionsTableSeeder.php | 134 ------------------ src/Seeders/GroupsTableSeeder.php | 34 ----- src/Seeders/PermissionsTableSeeder.php | 43 ------ src/Seeders/UsersTableSeeder.php | 41 ------ src/Support/Action.php | 12 +- src/Support/ClientAction.php | 12 +- src/Support/ClientView.php | 12 +- src/Support/Extension.php | 12 +- src/Support/ExtensionManager.php | 14 +- src/Support/ExtensionsServiceProvider.php | 12 +- src/Support/HtmlAction.php | 12 +- src/Support/ServiceProvider.php | 12 +- src/helpers.php | 9 ++ 307 files changed, 3277 insertions(+), 580 deletions(-) create mode 100755 .php_cs delete mode 100644 src/Seeders/ConfigTableSeeder.php delete mode 100644 src/Seeders/DiscussionsTableSeeder.php delete mode 100644 src/Seeders/GroupsTableSeeder.php delete mode 100644 src/Seeders/PermissionsTableSeeder.php delete mode 100644 src/Seeders/UsersTableSeeder.php diff --git a/.php_cs b/.php_cs new file mode 100755 index 000000000..1922619b9 --- /dev/null +++ b/.php_cs @@ -0,0 +1,26 @@ + + +For the full copyright and license information, please view the LICENSE +file that was distributed with this source code. +EOF; + +Symfony\CS\Fixer\Contrib\HeaderCommentFixer::setHeader($header); + +$finder = Symfony\CS\Finder\DefaultFinder::create() + ->exclude('stubs') + ->in(__DIR__); + +return Symfony\CS\Config\Config::create() + ->setUsingCache(true) + ->level(Symfony\CS\FixerInterface::PSR2_LEVEL) + ->fixers([ + 'short_array_syntax', + 'header_comment', + '-psr0' + ]) + ->finder($finder); diff --git a/.travis.yml b/.travis.yml index 89340f880..ed5f2c4a4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,8 @@ language: php php: - - 5.4 + - 5.5 + - 5.6 matrix: allow_failures: diff --git a/less/lib/App.less b/less/lib/App.less index 8061b71d2..f49cb630c 100755 --- a/less/lib/App.less +++ b/less/lib/App.less @@ -29,9 +29,9 @@ } } -// PHONES: Somewhere on the page there will be a .back-button, a .primary- -// control, and a .App-titleControl. We will position these on the left, right, -// and center of the header respectively. +// PHONES: Somewhere on the page there will be a .App-backControl, a +// .App-primaryControl, and a .App-titleControl. We will position these on the +// left, right, and center of the header respectively. @media @phone { .App-primaryControl, .App-titleControl, .App-backControl { position: absolute !important; diff --git a/locale/en.php b/locale/en.php index 3ca0f9cf2..77956f176 100644 --- a/locale/en.php +++ b/locale/en.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + return [ 'plural' => function ($count) { return $count == 1 ? 'one' : 'other'; diff --git a/migrations/2015_02_24_000000_create_access_tokens_table.php b/migrations/2015_02_24_000000_create_access_tokens_table.php index 6eb3ddd1f..8a50abf60 100644 --- a/migrations/2015_02_24_000000_create_access_tokens_table.php +++ b/migrations/2015_02_24_000000_create_access_tokens_table.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + use Flarum\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; diff --git a/migrations/2015_02_24_000000_create_config_table.php b/migrations/2015_02_24_000000_create_config_table.php index 71af72ace..9c500dd19 100644 --- a/migrations/2015_02_24_000000_create_config_table.php +++ b/migrations/2015_02_24_000000_create_config_table.php @@ -1,11 +1,19 @@ + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + use Flarum\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; class CreateConfigTable extends Migration { - /** * Run the migrations. * diff --git a/migrations/2015_02_24_000000_create_discussions_table.php b/migrations/2015_02_24_000000_create_discussions_table.php index 76ba86f42..b1cc68773 100644 --- a/migrations/2015_02_24_000000_create_discussions_table.php +++ b/migrations/2015_02_24_000000_create_discussions_table.php @@ -1,11 +1,19 @@ + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + use Flarum\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; class CreateDiscussionsTable extends Migration { - /** * Run the migrations. * diff --git a/migrations/2015_02_24_000000_create_email_tokens_table.php b/migrations/2015_02_24_000000_create_email_tokens_table.php index 4963883e8..e14bff848 100644 --- a/migrations/2015_02_24_000000_create_email_tokens_table.php +++ b/migrations/2015_02_24_000000_create_email_tokens_table.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + use Flarum\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; diff --git a/migrations/2015_02_24_000000_create_groups_table.php b/migrations/2015_02_24_000000_create_groups_table.php index de1effc32..d82e0cc7b 100644 --- a/migrations/2015_02_24_000000_create_groups_table.php +++ b/migrations/2015_02_24_000000_create_groups_table.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + use Flarum\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; diff --git a/migrations/2015_02_24_000000_create_notifications_table.php b/migrations/2015_02_24_000000_create_notifications_table.php index 60f61d376..e613aca7c 100644 --- a/migrations/2015_02_24_000000_create_notifications_table.php +++ b/migrations/2015_02_24_000000_create_notifications_table.php @@ -1,11 +1,19 @@ + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + use Flarum\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; class CreateNotificationsTable extends Migration { - /** * Run the migrations. * diff --git a/migrations/2015_02_24_000000_create_password_tokens_table.php b/migrations/2015_02_24_000000_create_password_tokens_table.php index a79ffe1e7..c9c281a83 100644 --- a/migrations/2015_02_24_000000_create_password_tokens_table.php +++ b/migrations/2015_02_24_000000_create_password_tokens_table.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + use Flarum\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; diff --git a/migrations/2015_02_24_000000_create_permissions_table.php b/migrations/2015_02_24_000000_create_permissions_table.php index c3abf7923..ed93a77f1 100644 --- a/migrations/2015_02_24_000000_create_permissions_table.php +++ b/migrations/2015_02_24_000000_create_permissions_table.php @@ -1,11 +1,19 @@ + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + use Flarum\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; class CreatePermissionsTable extends Migration { - /** * Run the migrations. * diff --git a/migrations/2015_02_24_000000_create_posts_table.php b/migrations/2015_02_24_000000_create_posts_table.php index c3d879b96..67d8e6946 100644 --- a/migrations/2015_02_24_000000_create_posts_table.php +++ b/migrations/2015_02_24_000000_create_posts_table.php @@ -1,11 +1,19 @@ + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + use Flarum\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; class CreatePostsTable extends Migration { - /** * Run the migrations. * diff --git a/migrations/2015_02_24_000000_create_users_discussions_table.php b/migrations/2015_02_24_000000_create_users_discussions_table.php index 8f923ef7f..b5c341fc0 100644 --- a/migrations/2015_02_24_000000_create_users_discussions_table.php +++ b/migrations/2015_02_24_000000_create_users_discussions_table.php @@ -1,11 +1,19 @@ + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + use Flarum\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; class CreateUsersDiscussionsTable extends Migration { - /** * Run the migrations. * diff --git a/migrations/2015_02_24_000000_create_users_groups_table.php b/migrations/2015_02_24_000000_create_users_groups_table.php index b7eb78ed0..02fe6e5d2 100644 --- a/migrations/2015_02_24_000000_create_users_groups_table.php +++ b/migrations/2015_02_24_000000_create_users_groups_table.php @@ -1,11 +1,19 @@ + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + use Flarum\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; class CreateUsersGroupsTable extends Migration { - /** * Run the migrations. * diff --git a/migrations/2015_02_24_000000_create_users_table.php b/migrations/2015_02_24_000000_create_users_table.php index 04ae5e4f4..4e5add5e2 100644 --- a/migrations/2015_02_24_000000_create_users_table.php +++ b/migrations/2015_02_24_000000_create_users_table.php @@ -1,11 +1,19 @@ + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + use Flarum\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; class CreateUsersTable extends Migration { - /** * Run the migrations. * diff --git a/spec/Flarum/Core/Settings/MemoryCacheSettingsRepositorySpec.php b/spec/Flarum/Core/Settings/MemoryCacheSettingsRepositorySpec.php index 7459b9e33..0662d3bc5 100644 --- a/spec/Flarum/Core/Settings/MemoryCacheSettingsRepositorySpec.php +++ b/spec/Flarum/Core/Settings/MemoryCacheSettingsRepositorySpec.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + namespace spec\Flarum\Core\Settings; use Flarum\Core\Settings\SettingsRepository; @@ -8,17 +17,17 @@ use Prophecy\Argument; class MemoryCacheSettingsRepositorySpec extends ObjectBehavior { - function let(SettingsRepository $inner) + public function let(SettingsRepository $inner) { $this->beConstructedWith($inner); } - function it_is_initializable() + public function it_is_initializable() { $this->shouldHaveType('Flarum\Core\Settings\MemoryCacheSettingsRepository'); } - function it_retrieves_data_from_inner(SettingsRepository $inner) + public function it_retrieves_data_from_inner(SettingsRepository $inner) { $settings = ['a' => 1, 'b' => 2]; $inner->all()->willReturn($settings); @@ -38,13 +47,13 @@ class MemoryCacheSettingsRepositorySpec extends ObjectBehavior $this->get('d', 'foobar')->shouldReturn('foobar'); } - function it_passes_new_data_to_inner(SettingsRepository $inner) + public function it_passes_new_data_to_inner(SettingsRepository $inner) { $this->set('a', 1); $inner->set('a', 1)->shouldHaveBeenCalled(); } - function it_caches_new_data(SettingsRepository $inner) + public function it_caches_new_data(SettingsRepository $inner) { $this->set('b', 2); $this->get('b')->shouldReturn(2); diff --git a/src/Admin/Actions/ClientAction.php b/src/Admin/Actions/ClientAction.php index ebdd22e49..e0834468b 100644 --- a/src/Admin/Actions/ClientAction.php +++ b/src/Admin/Actions/ClientAction.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Admin\Actions; use Flarum\Support\ClientAction as BaseClientAction; use Psr\Http\Message\ServerRequestInterface as Request; diff --git a/src/Admin/AdminServiceProvider.php b/src/Admin/AdminServiceProvider.php index be60a09d3..a9a041a99 100644 --- a/src/Admin/AdminServiceProvider.php +++ b/src/Admin/AdminServiceProvider.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Admin; use Flarum\Http\RouteCollection; use Flarum\Http\UrlGenerator; diff --git a/src/Admin/Middleware/LoginWithCookieAndCheckAdmin.php b/src/Admin/Middleware/LoginWithCookieAndCheckAdmin.php index 691725c41..4013d49b5 100644 --- a/src/Admin/Middleware/LoginWithCookieAndCheckAdmin.php +++ b/src/Admin/Middleware/LoginWithCookieAndCheckAdmin.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Admin\Middleware; use Flarum\Api\AccessToken; use Illuminate\Contracts\Container\Container; diff --git a/src/Api/AccessToken.php b/src/Api/AccessToken.php index 6f39d277d..65e6d7d90 100644 --- a/src/Api/AccessToken.php +++ b/src/Api/AccessToken.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Api; use Flarum\Core\Model; use DateTime; diff --git a/src/Api/Actions/Action.php b/src/Api/Actions/Action.php index 602e45376..41d4ff6a4 100644 --- a/src/Api/Actions/Action.php +++ b/src/Api/Actions/Action.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Api\Actions; use Flarum\Api\Request; diff --git a/src/Api/Actions/ConfigAction.php b/src/Api/Actions/ConfigAction.php index 011bd9874..31f2b1d13 100644 --- a/src/Api/Actions/ConfigAction.php +++ b/src/Api/Actions/ConfigAction.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Api\Actions; use Flarum\Api\Request; use Flarum\Core\Settings\SettingsRepository; diff --git a/src/Api/Actions/CreateAction.php b/src/Api/Actions/CreateAction.php index 7f8eb42f8..3b087f296 100644 --- a/src/Api/Actions/CreateAction.php +++ b/src/Api/Actions/CreateAction.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Api\Actions; use Flarum\Api\JsonApiRequest; use Flarum\Api\Request; diff --git a/src/Api/Actions/DeleteAction.php b/src/Api/Actions/DeleteAction.php index a09456966..7b8c09c2a 100644 --- a/src/Api/Actions/DeleteAction.php +++ b/src/Api/Actions/DeleteAction.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Api\Actions; use Flarum\Api\Request; use Zend\Diactoros\Response\EmptyResponse; diff --git a/src/Api/Actions/Discussions/CreateAction.php b/src/Api/Actions/Discussions/CreateAction.php index 10178b51e..44d7bed7f 100644 --- a/src/Api/Actions/Discussions/CreateAction.php +++ b/src/Api/Actions/Discussions/CreateAction.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Api\Actions\Discussions; use Flarum\Core\Discussions\Commands\StartDiscussion; use Flarum\Core\Discussions\Commands\ReadDiscussion; diff --git a/src/Api/Actions/Discussions/DeleteAction.php b/src/Api/Actions/Discussions/DeleteAction.php index 1d6ff0948..2fc2b1be1 100644 --- a/src/Api/Actions/Discussions/DeleteAction.php +++ b/src/Api/Actions/Discussions/DeleteAction.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Api\Actions\Discussions; use Flarum\Core\Discussions\Commands\DeleteDiscussion; use Flarum\Api\Actions\DeleteAction as BaseDeleteAction; diff --git a/src/Api/Actions/Discussions/IndexAction.php b/src/Api/Actions/Discussions/IndexAction.php index c48f728fa..6b7418550 100644 --- a/src/Api/Actions/Discussions/IndexAction.php +++ b/src/Api/Actions/Discussions/IndexAction.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Api\Actions\Discussions; use Flarum\Core\Search\SearchCriteria; use Flarum\Core\Discussions\Search\DiscussionSearcher; diff --git a/src/Api/Actions/Discussions/ShowAction.php b/src/Api/Actions/Discussions/ShowAction.php index ddbda9305..99863ea3c 100644 --- a/src/Api/Actions/Discussions/ShowAction.php +++ b/src/Api/Actions/Discussions/ShowAction.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Api\Actions\Discussions; use Flarum\Core\Discussions\DiscussionRepository; use Flarum\Core\Posts\PostRepository; diff --git a/src/Api/Actions/Discussions/UpdateAction.php b/src/Api/Actions/Discussions/UpdateAction.php index cbfb60420..e65bfc363 100644 --- a/src/Api/Actions/Discussions/UpdateAction.php +++ b/src/Api/Actions/Discussions/UpdateAction.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Api\Actions\Discussions; use Flarum\Core\Discussions\Commands\EditDiscussion; use Flarum\Core\Discussions\Commands\ReadDiscussion; diff --git a/src/Api/Actions/Extensions/DeleteAction.php b/src/Api/Actions/Extensions/DeleteAction.php index 72c06e33a..83c78ab87 100644 --- a/src/Api/Actions/Extensions/DeleteAction.php +++ b/src/Api/Actions/Extensions/DeleteAction.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Api\Actions\Extensions; use Flarum\Api\Actions\DeleteAction as BaseDeleteAction; use Flarum\Api\Request; diff --git a/src/Api/Actions/Extensions/UpdateAction.php b/src/Api/Actions/Extensions/UpdateAction.php index c110eda12..8b6cbb4e8 100644 --- a/src/Api/Actions/Extensions/UpdateAction.php +++ b/src/Api/Actions/Extensions/UpdateAction.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Api\Actions\Extensions; use Flarum\Api\Actions\JsonApiAction; use Flarum\Api\Request; diff --git a/src/Api/Actions/ForgotAction.php b/src/Api/Actions/ForgotAction.php index 141b37b30..bebd11ef2 100644 --- a/src/Api/Actions/ForgotAction.php +++ b/src/Api/Actions/ForgotAction.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Api\Actions; use Flarum\Api\Request; use Flarum\Core\Users\UserRepository; diff --git a/src/Api/Actions/Forum/ShowAction.php b/src/Api/Actions/Forum/ShowAction.php index a6b03a358..aa791b05e 100644 --- a/src/Api/Actions/Forum/ShowAction.php +++ b/src/Api/Actions/Forum/ShowAction.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Api\Actions\Forum; use Flarum\Api\Actions\SerializeResourceAction; use Flarum\Api\JsonApiRequest; diff --git a/src/Api/Actions/Forum/UpdateAction.php b/src/Api/Actions/Forum/UpdateAction.php index 0ad33cf04..8fd302797 100644 --- a/src/Api/Actions/Forum/UpdateAction.php +++ b/src/Api/Actions/Forum/UpdateAction.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Api\Actions\Forum; use Flarum\Core\Exceptions\PermissionDeniedException; use Flarum\Core\Settings\SettingsRepository; diff --git a/src/Api/Actions/Groups/CreateAction.php b/src/Api/Actions/Groups/CreateAction.php index 9580d94aa..f848571c3 100644 --- a/src/Api/Actions/Groups/CreateAction.php +++ b/src/Api/Actions/Groups/CreateAction.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Api\Actions\Groups; use Flarum\Core\Groups\Commands\CreateGroup; use Flarum\Api\Actions\CreateAction as BaseCreateAction; diff --git a/src/Api/Actions/Groups/DeleteAction.php b/src/Api/Actions/Groups/DeleteAction.php index 65ce085fe..16f2ebe24 100644 --- a/src/Api/Actions/Groups/DeleteAction.php +++ b/src/Api/Actions/Groups/DeleteAction.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Api\Actions\Groups; use Flarum\Core\Groups\Commands\DeleteGroup; use Flarum\Api\Actions\DeleteAction as BaseDeleteAction; diff --git a/src/Api/Actions/Groups/IndexAction.php b/src/Api/Actions/Groups/IndexAction.php index 05850d057..d5d232674 100644 --- a/src/Api/Actions/Groups/IndexAction.php +++ b/src/Api/Actions/Groups/IndexAction.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Api\Actions\Groups; use Flarum\Core\Groups\Group; use Flarum\Api\Actions\SerializeCollectionAction; diff --git a/src/Api/Actions/Groups/UpdateAction.php b/src/Api/Actions/Groups/UpdateAction.php index ea56e7674..817674367 100644 --- a/src/Api/Actions/Groups/UpdateAction.php +++ b/src/Api/Actions/Groups/UpdateAction.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Api\Actions\Groups; use Flarum\Core\Groups\Commands\EditGroup; use Flarum\Api\Actions\SerializeResourceAction; diff --git a/src/Api/Actions/JsonApiAction.php b/src/Api/Actions/JsonApiAction.php index b81b057ce..581686521 100644 --- a/src/Api/Actions/JsonApiAction.php +++ b/src/Api/Actions/JsonApiAction.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Api\Actions; use Flarum\Api\Request; use Illuminate\Contracts\Validation\ValidationException; diff --git a/src/Api/Actions/Notifications/IndexAction.php b/src/Api/Actions/Notifications/IndexAction.php index c7a1371b1..1180e4ef7 100644 --- a/src/Api/Actions/Notifications/IndexAction.php +++ b/src/Api/Actions/Notifications/IndexAction.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Api\Actions\Notifications; use Flarum\Core\Notifications\NotificationRepository; use Flarum\Core\Exceptions\PermissionDeniedException; diff --git a/src/Api/Actions/Notifications/UpdateAction.php b/src/Api/Actions/Notifications/UpdateAction.php index 54316a02c..03330b945 100644 --- a/src/Api/Actions/Notifications/UpdateAction.php +++ b/src/Api/Actions/Notifications/UpdateAction.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Api\Actions\Notifications; use Flarum\Core\Notifications\Commands\ReadNotification; use Flarum\Api\Actions\SerializeResourceAction; diff --git a/src/Api/Actions/PermissionAction.php b/src/Api/Actions/PermissionAction.php index 806b9e13e..c4cf4258b 100644 --- a/src/Api/Actions/PermissionAction.php +++ b/src/Api/Actions/PermissionAction.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Api\Actions; use Flarum\Api\Request; use Flarum\Core\Groups\Permission; diff --git a/src/Api/Actions/Posts/CreateAction.php b/src/Api/Actions/Posts/CreateAction.php index f02443c60..8790e1d3b 100644 --- a/src/Api/Actions/Posts/CreateAction.php +++ b/src/Api/Actions/Posts/CreateAction.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Api\Actions\Posts; use Flarum\Core\Posts\Commands\PostReply; use Flarum\Core\Discussions\Commands\ReadDiscussion; diff --git a/src/Api/Actions/Posts/DeleteAction.php b/src/Api/Actions/Posts/DeleteAction.php index 60bddd766..c5dcf8d0e 100644 --- a/src/Api/Actions/Posts/DeleteAction.php +++ b/src/Api/Actions/Posts/DeleteAction.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Api\Actions\Posts; use Flarum\Core\Posts\Commands\DeletePost; use Flarum\Api\Actions\DeleteAction as BaseDeleteAction; diff --git a/src/Api/Actions/Posts/GetsPosts.php b/src/Api/Actions/Posts/GetsPosts.php index ae503eaa7..4e69793f5 100644 --- a/src/Api/Actions/Posts/GetsPosts.php +++ b/src/Api/Actions/Posts/GetsPosts.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Api\Actions\Posts; use Flarum\Api\JsonApiRequest; diff --git a/src/Api/Actions/Posts/IndexAction.php b/src/Api/Actions/Posts/IndexAction.php index 7221f3c13..bee68c1a0 100644 --- a/src/Api/Actions/Posts/IndexAction.php +++ b/src/Api/Actions/Posts/IndexAction.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Api\Actions\Posts; use Flarum\Core\Posts\PostRepository; use Flarum\Api\Actions\SerializeCollectionAction; diff --git a/src/Api/Actions/Posts/ShowAction.php b/src/Api/Actions/Posts/ShowAction.php index b2ef190a8..7dd6c5f84 100644 --- a/src/Api/Actions/Posts/ShowAction.php +++ b/src/Api/Actions/Posts/ShowAction.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Api\Actions\Posts; use Illuminate\Database\Eloquent\ModelNotFoundException; use Flarum\Core\Posts\PostRepository; diff --git a/src/Api/Actions/Posts/UpdateAction.php b/src/Api/Actions/Posts/UpdateAction.php index 6c937e98d..f5444d6a1 100644 --- a/src/Api/Actions/Posts/UpdateAction.php +++ b/src/Api/Actions/Posts/UpdateAction.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Api\Actions\Posts; use Flarum\Core\Posts\Commands\EditPost; use Flarum\Api\Actions\SerializeResourceAction; diff --git a/src/Api/Actions/SerializeAction.php b/src/Api/Actions/SerializeAction.php index 6cef0e892..bc36aa47f 100644 --- a/src/Api/Actions/SerializeAction.php +++ b/src/Api/Actions/SerializeAction.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Api\Actions; use Flarum\Events\BuildApiAction; use Flarum\Events\WillSerializeData; diff --git a/src/Api/Actions/SerializeCollectionAction.php b/src/Api/Actions/SerializeCollectionAction.php index c8f6e5d44..df0deda98 100644 --- a/src/Api/Actions/SerializeCollectionAction.php +++ b/src/Api/Actions/SerializeCollectionAction.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Api\Actions; use Tobscure\JsonApi\SerializerInterface; diff --git a/src/Api/Actions/SerializeResourceAction.php b/src/Api/Actions/SerializeResourceAction.php index 9cd7adac3..9eecad74f 100644 --- a/src/Api/Actions/SerializeResourceAction.php +++ b/src/Api/Actions/SerializeResourceAction.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Api\Actions; use Tobscure\JsonApi\SerializerInterface; diff --git a/src/Api/Actions/TokenAction.php b/src/Api/Actions/TokenAction.php index 1ccff5dba..4fe3c308b 100644 --- a/src/Api/Actions/TokenAction.php +++ b/src/Api/Actions/TokenAction.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Api\Actions; use Flarum\Api\Commands\GenerateAccessToken; use Flarum\Api\Request; diff --git a/src/Api/Actions/Users/CreateAction.php b/src/Api/Actions/Users/CreateAction.php index 8f26cb860..3725d5b20 100644 --- a/src/Api/Actions/Users/CreateAction.php +++ b/src/Api/Actions/Users/CreateAction.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Api\Actions\Users; use Flarum\Core\Users\Commands\RegisterUser; use Flarum\Api\Actions\CreateAction as BaseCreateAction; diff --git a/src/Api/Actions/Users/DeleteAction.php b/src/Api/Actions/Users/DeleteAction.php index 81061f180..0fe2ceddb 100644 --- a/src/Api/Actions/Users/DeleteAction.php +++ b/src/Api/Actions/Users/DeleteAction.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Api\Actions\Users; use Flarum\Core\Users\Commands\DeleteUser; use Flarum\Api\Actions\DeleteAction as BaseDeleteAction; diff --git a/src/Api/Actions/Users/DeleteAvatarAction.php b/src/Api/Actions/Users/DeleteAvatarAction.php index 8d843845d..2f7ac5d20 100644 --- a/src/Api/Actions/Users/DeleteAvatarAction.php +++ b/src/Api/Actions/Users/DeleteAvatarAction.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Api\Actions\Users; use Flarum\Core\Users\Commands\DeleteAvatar; use Flarum\Api\Actions\SerializeResourceAction; diff --git a/src/Api/Actions/Users/IndexAction.php b/src/Api/Actions/Users/IndexAction.php index bb7543efb..9d9d59a93 100644 --- a/src/Api/Actions/Users/IndexAction.php +++ b/src/Api/Actions/Users/IndexAction.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Api\Actions\Users; use Flarum\Core\Search\SearchCriteria; use Flarum\Core\Users\Search\UserSearcher; diff --git a/src/Api/Actions/Users/ShowAction.php b/src/Api/Actions/Users/ShowAction.php index 371fff19e..4e675079b 100644 --- a/src/Api/Actions/Users/ShowAction.php +++ b/src/Api/Actions/Users/ShowAction.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Api\Actions\Users; use Flarum\Core\Users\UserRepository; use Flarum\Api\Actions\SerializeResourceAction; diff --git a/src/Api/Actions/Users/UpdateAction.php b/src/Api/Actions/Users/UpdateAction.php index da49858e2..9c707702c 100644 --- a/src/Api/Actions/Users/UpdateAction.php +++ b/src/Api/Actions/Users/UpdateAction.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Api\Actions\Users; use Flarum\Core\Users\Commands\EditUser; use Flarum\Api\Actions\SerializeResourceAction; diff --git a/src/Api/Actions/Users/UploadAvatarAction.php b/src/Api/Actions/Users/UploadAvatarAction.php index 545bfd855..696957430 100644 --- a/src/Api/Actions/Users/UploadAvatarAction.php +++ b/src/Api/Actions/Users/UploadAvatarAction.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Api\Actions\Users; use Flarum\Core\Users\Commands\UploadAvatar; use Flarum\Api\Actions\SerializeResourceAction; diff --git a/src/Api/ApiServiceProvider.php b/src/Api/ApiServiceProvider.php index 7e3576000..f985abb0d 100644 --- a/src/Api/ApiServiceProvider.php +++ b/src/Api/ApiServiceProvider.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Api; use Flarum\Api\Serializers\ActivitySerializer; use Flarum\Api\Serializers\NotificationSerializer; diff --git a/src/Api/Client.php b/src/Api/Client.php index 564921830..c8e855a6f 100644 --- a/src/Api/Client.php +++ b/src/Api/Client.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Api; use Flarum\Core\Users\User; use Illuminate\Contracts\Container\Container; diff --git a/src/Api/Commands/GenerateAccessToken.php b/src/Api/Commands/GenerateAccessToken.php index 839e9d370..bbc092f4a 100644 --- a/src/Api/Commands/GenerateAccessToken.php +++ b/src/Api/Commands/GenerateAccessToken.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Api\Commands; class GenerateAccessToken { diff --git a/src/Api/Commands/GenerateAccessTokenHandler.php b/src/Api/Commands/GenerateAccessTokenHandler.php index 21447afd3..3b0e9b736 100644 --- a/src/Api/Commands/GenerateAccessTokenHandler.php +++ b/src/Api/Commands/GenerateAccessTokenHandler.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Api\Commands; use Flarum\Api\AccessToken; diff --git a/src/Api/JsonApiRequest.php b/src/Api/JsonApiRequest.php index 8322a86f3..1f22712ff 100644 --- a/src/Api/JsonApiRequest.php +++ b/src/Api/JsonApiRequest.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Api; class JsonApiRequest extends Request { diff --git a/src/Api/Middleware/JsonApiErrors.php b/src/Api/Middleware/JsonApiErrors.php index 769ad1c43..94bb70b21 100644 --- a/src/Api/Middleware/JsonApiErrors.php +++ b/src/Api/Middleware/JsonApiErrors.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Api\Middleware; use Psr\Http\Message\ResponseInterface as Response; use Psr\Http\Message\ServerRequestInterface as Request; diff --git a/src/Api/Middleware/LoginWithHeader.php b/src/Api/Middleware/LoginWithHeader.php index 702ab2db6..f3d11562f 100644 --- a/src/Api/Middleware/LoginWithHeader.php +++ b/src/Api/Middleware/LoginWithHeader.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Api\Middleware; use Flarum\Api\AccessToken; use Illuminate\Contracts\Container\Container; diff --git a/src/Api/Middleware/ReadJsonParameters.php b/src/Api/Middleware/ReadJsonParameters.php index ab1b7b950..9f16835ca 100644 --- a/src/Api/Middleware/ReadJsonParameters.php +++ b/src/Api/Middleware/ReadJsonParameters.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Api\Middleware; use Psr\Http\Message\ResponseInterface as Response; use Psr\Http\Message\ServerRequestInterface as Request; diff --git a/src/Api/Request.php b/src/Api/Request.php index fef99fb67..6c5ac7378 100644 --- a/src/Api/Request.php +++ b/src/Api/Request.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Api; use Flarum\Core\Users\Guest; use Flarum\Core\Users\User; diff --git a/src/Api/Response.php b/src/Api/Response.php index 27c97af4f..45b5b8ff3 100644 --- a/src/Api/Response.php +++ b/src/Api/Response.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Api; use Psr\Http\Message\ResponseInterface; diff --git a/src/Api/Serializers/ActivitySerializer.php b/src/Api/Serializers/ActivitySerializer.php index c64661cb8..e13e2e881 100644 --- a/src/Api/Serializers/ActivitySerializer.php +++ b/src/Api/Serializers/ActivitySerializer.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Api\Serializers; class ActivitySerializer extends Serializer { diff --git a/src/Api/Serializers/CurrentUserSerializer.php b/src/Api/Serializers/CurrentUserSerializer.php index f9dbc86a6..c542874b7 100644 --- a/src/Api/Serializers/CurrentUserSerializer.php +++ b/src/Api/Serializers/CurrentUserSerializer.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Api\Serializers; class CurrentUserSerializer extends UserSerializer { diff --git a/src/Api/Serializers/DiscussionBasicSerializer.php b/src/Api/Serializers/DiscussionBasicSerializer.php index 01f685e55..c90839004 100644 --- a/src/Api/Serializers/DiscussionBasicSerializer.php +++ b/src/Api/Serializers/DiscussionBasicSerializer.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Api\Serializers; class DiscussionBasicSerializer extends Serializer { diff --git a/src/Api/Serializers/DiscussionSerializer.php b/src/Api/Serializers/DiscussionSerializer.php index 59d80a8fe..a398982f5 100644 --- a/src/Api/Serializers/DiscussionSerializer.php +++ b/src/Api/Serializers/DiscussionSerializer.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Api\Serializers; use Flarum\Core\Discussions\Discussion; diff --git a/src/Api/Serializers/ForumSerializer.php b/src/Api/Serializers/ForumSerializer.php index 874dddcb7..799a5d95b 100644 --- a/src/Api/Serializers/ForumSerializer.php +++ b/src/Api/Serializers/ForumSerializer.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Api\Serializers; use Flarum\Core; diff --git a/src/Api/Serializers/GroupSerializer.php b/src/Api/Serializers/GroupSerializer.php index 62b9f4b25..0b8122c62 100644 --- a/src/Api/Serializers/GroupSerializer.php +++ b/src/Api/Serializers/GroupSerializer.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Api\Serializers; class GroupSerializer extends Serializer { diff --git a/src/Api/Serializers/NotificationSerializer.php b/src/Api/Serializers/NotificationSerializer.php index 570ab43ea..598854026 100644 --- a/src/Api/Serializers/NotificationSerializer.php +++ b/src/Api/Serializers/NotificationSerializer.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Api\Serializers; class NotificationSerializer extends Serializer { diff --git a/src/Api/Serializers/PostBasicSerializer.php b/src/Api/Serializers/PostBasicSerializer.php index 0dfcac96b..d7e0a090d 100644 --- a/src/Api/Serializers/PostBasicSerializer.php +++ b/src/Api/Serializers/PostBasicSerializer.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Api\Serializers; class PostBasicSerializer extends Serializer { diff --git a/src/Api/Serializers/PostSerializer.php b/src/Api/Serializers/PostSerializer.php index 0adfe393b..71e4da33c 100644 --- a/src/Api/Serializers/PostSerializer.php +++ b/src/Api/Serializers/PostSerializer.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Api\Serializers; class PostSerializer extends PostBasicSerializer { diff --git a/src/Api/Serializers/Serializer.php b/src/Api/Serializers/Serializer.php index 85a8180c0..d7f6269e0 100644 --- a/src/Api/Serializers/Serializer.php +++ b/src/Api/Serializers/Serializer.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Api\Serializers; use Closure; use Flarum\Core\Users\User; diff --git a/src/Api/Serializers/UserBasicSerializer.php b/src/Api/Serializers/UserBasicSerializer.php index 650552635..a58accc82 100644 --- a/src/Api/Serializers/UserBasicSerializer.php +++ b/src/Api/Serializers/UserBasicSerializer.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Api\Serializers; class UserBasicSerializer extends Serializer { diff --git a/src/Api/Serializers/UserSerializer.php b/src/Api/Serializers/UserSerializer.php index 927e3e1af..00f6a8df6 100644 --- a/src/Api/Serializers/UserSerializer.php +++ b/src/Api/Serializers/UserSerializer.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Api\Serializers; class UserSerializer extends UserBasicSerializer { diff --git a/src/Assets/AssetManager.php b/src/Assets/AssetManager.php index 52871eeb0..65cfb94a8 100644 --- a/src/Assets/AssetManager.php +++ b/src/Assets/AssetManager.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Assets; use DomainException; diff --git a/src/Assets/Compiler.php b/src/Assets/Compiler.php index e26357a1a..fc13137ba 100644 --- a/src/Assets/Compiler.php +++ b/src/Assets/Compiler.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Assets; interface Compiler { diff --git a/src/Assets/JsCompiler.php b/src/Assets/JsCompiler.php index 56a126e4b..de0d0678c 100644 --- a/src/Assets/JsCompiler.php +++ b/src/Assets/JsCompiler.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Assets; class JsCompiler extends RevisionCompiler { diff --git a/src/Assets/LessCompiler.php b/src/Assets/LessCompiler.php index 4338c8535..5bac231e7 100644 --- a/src/Assets/LessCompiler.php +++ b/src/Assets/LessCompiler.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Assets; use Less_Parser; diff --git a/src/Assets/RevisionCompiler.php b/src/Assets/RevisionCompiler.php index 486230d4a..f9d4f1cae 100644 --- a/src/Assets/RevisionCompiler.php +++ b/src/Assets/RevisionCompiler.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Assets; use Illuminate\Support\Str; diff --git a/src/Console/Command.php b/src/Console/Command.php index 592c8c5c7..7ecbcd5c8 100644 --- a/src/Console/Command.php +++ b/src/Console/Command.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Console; use Symfony\Component\Console\Command\Command as SymfonyCommand; use Symfony\Component\Console\Input\InputInterface; diff --git a/src/Console/GenerateExtensionCommand.php b/src/Console/GenerateExtensionCommand.php index 67285aaf2..6bbb6e283 100644 --- a/src/Console/GenerateExtensionCommand.php +++ b/src/Console/GenerateExtensionCommand.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Console; use Illuminate\Contracts\Container\Container; use Symfony\Component\Console\Input\InputOption; diff --git a/src/Console/ImportCommand.php b/src/Console/ImportCommand.php index 4329b380f..3e731195e 100644 --- a/src/Console/ImportCommand.php +++ b/src/Console/ImportCommand.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Console; use Illuminate\Console\Command; use Illuminate\Foundation\Application; @@ -14,7 +24,6 @@ use Symfony\Component\Console\Helper\ProgressBar; class ImportCommand extends Command { - /** * The console command name. * diff --git a/src/Console/UpgradeCommand.php b/src/Console/UpgradeCommand.php index fbe4a52d4..42397fada 100644 --- a/src/Console/UpgradeCommand.php +++ b/src/Console/UpgradeCommand.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Console; use Illuminate\Contracts\Container\Container; use Symfony\Component\Console\Input\InputInterface; @@ -41,7 +51,7 @@ class UpgradeCommand extends Command protected function upgrade() { - $this->container->bind('Illuminate\Database\Schema\Builder', function($container) { + $this->container->bind('Illuminate\Database\Schema\Builder', function ($container) { return $container->make('Illuminate\Database\ConnectionInterface')->getSchemaBuilder(); }); diff --git a/src/Core.php b/src/Core.php index f7ba7546c..702f2a852 100644 --- a/src/Core.php +++ b/src/Core.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum; class Core { diff --git a/src/Core/Application.php b/src/Core/Application.php index 70894fda7..75734b3a8 100644 --- a/src/Core/Application.php +++ b/src/Core/Application.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Core; use Closure; use RuntimeException; diff --git a/src/Core/CoreServiceProvider.php b/src/Core/CoreServiceProvider.php index 76166b578..8ea16c4b6 100644 --- a/src/Core/CoreServiceProvider.php +++ b/src/Core/CoreServiceProvider.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Core; use Flarum\Core\Users\User; use Flarum\Events\ModelAllow; diff --git a/src/Core/DatabaseServiceProvider.php b/src/Core/DatabaseServiceProvider.php index 32421de1b..74df4c61f 100644 --- a/src/Core/DatabaseServiceProvider.php +++ b/src/Core/DatabaseServiceProvider.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Core; use Flarum\Core; use Flarum\Support\ServiceProvider; diff --git a/src/Core/Discussions/Commands/DeleteDiscussion.php b/src/Core/Discussions/Commands/DeleteDiscussion.php index 8ff715489..6bee5f531 100644 --- a/src/Core/Discussions/Commands/DeleteDiscussion.php +++ b/src/Core/Discussions/Commands/DeleteDiscussion.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Core\Discussions\Commands; use Flarum\Core\Users\User; diff --git a/src/Core/Discussions/Commands/DeleteDiscussionHandler.php b/src/Core/Discussions/Commands/DeleteDiscussionHandler.php index 745d96184..601e89426 100644 --- a/src/Core/Discussions/Commands/DeleteDiscussionHandler.php +++ b/src/Core/Discussions/Commands/DeleteDiscussionHandler.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Core\Discussions\Commands; use Flarum\Core\Discussions\DiscussionRepository; use Flarum\Events\DiscussionWillBeDeleted; diff --git a/src/Core/Discussions/Commands/EditDiscussion.php b/src/Core/Discussions/Commands/EditDiscussion.php index 5537d868b..268e39e11 100644 --- a/src/Core/Discussions/Commands/EditDiscussion.php +++ b/src/Core/Discussions/Commands/EditDiscussion.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Core\Discussions\Commands; use Flarum\Core\Users\User; diff --git a/src/Core/Discussions/Commands/EditDiscussionHandler.php b/src/Core/Discussions/Commands/EditDiscussionHandler.php index 95ae3e88b..e83a42095 100644 --- a/src/Core/Discussions/Commands/EditDiscussionHandler.php +++ b/src/Core/Discussions/Commands/EditDiscussionHandler.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Core\Discussions\Commands; use Flarum\Core\Discussions\DiscussionRepository; use Flarum\Events\DiscussionWillBeSaved; diff --git a/src/Core/Discussions/Commands/ReadDiscussion.php b/src/Core/Discussions/Commands/ReadDiscussion.php index dd4422957..b5c2494b4 100644 --- a/src/Core/Discussions/Commands/ReadDiscussion.php +++ b/src/Core/Discussions/Commands/ReadDiscussion.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Core\Discussions\Commands; use Flarum\Core\Users\User; diff --git a/src/Core/Discussions/Commands/ReadDiscussionHandler.php b/src/Core/Discussions/Commands/ReadDiscussionHandler.php index db52f82ea..58618ebc1 100644 --- a/src/Core/Discussions/Commands/ReadDiscussionHandler.php +++ b/src/Core/Discussions/Commands/ReadDiscussionHandler.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Core\Discussions\Commands; use Flarum\Core\Discussions\DiscussionRepository; use Flarum\Events\DiscussionStateWillBeSaved; diff --git a/src/Core/Discussions/Commands/StartDiscussion.php b/src/Core/Discussions/Commands/StartDiscussion.php index 27c48decb..c77ccb7b6 100644 --- a/src/Core/Discussions/Commands/StartDiscussion.php +++ b/src/Core/Discussions/Commands/StartDiscussion.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Core\Discussions\Commands; use Flarum\Core\Users\User; diff --git a/src/Core/Discussions/Commands/StartDiscussionHandler.php b/src/Core/Discussions/Commands/StartDiscussionHandler.php index bf8b1d7dd..5d4b29c97 100644 --- a/src/Core/Discussions/Commands/StartDiscussionHandler.php +++ b/src/Core/Discussions/Commands/StartDiscussionHandler.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Core\Discussions\Commands; use Flarum\Events\DiscussionWillBeSaved; use Flarum\Core\Forum; diff --git a/src/Core/Discussions/Discussion.php b/src/Core/Discussions/Discussion.php index a97cddadf..1d50054ec 100755 --- a/src/Core/Discussions/Discussion.php +++ b/src/Core/Discussions/Discussion.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Core\Discussions; use Flarum\Core\Model; use Flarum\Events\DiscussionWasDeleted; diff --git a/src/Core/Discussions/DiscussionRepository.php b/src/Core/Discussions/DiscussionRepository.php index fa73745ff..4a22aebc0 100644 --- a/src/Core/Discussions/DiscussionRepository.php +++ b/src/Core/Discussions/DiscussionRepository.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Core\Discussions; use Illuminate\Database\Eloquent\Builder; use Flarum\Core\Users\User; diff --git a/src/Core/Discussions/DiscussionState.php b/src/Core/Discussions/DiscussionState.php index a0d2eac8c..e7d7c0a73 100644 --- a/src/Core/Discussions/DiscussionState.php +++ b/src/Core/Discussions/DiscussionState.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Core\Discussions; use Flarum\Events\DiscussionWasRead; use Flarum\Core\Model; diff --git a/src/Core/Discussions/DiscussionsServiceProvider.php b/src/Core/Discussions/DiscussionsServiceProvider.php index fac492e13..57f468dd0 100644 --- a/src/Core/Discussions/DiscussionsServiceProvider.php +++ b/src/Core/Discussions/DiscussionsServiceProvider.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Core\Discussions; use Flarum\Core\Search\GambitManager; use Flarum\Core\Users\User; diff --git a/src/Core/Discussions/Listeners/DiscussionMetadataUpdater.php b/src/Core/Discussions/Listeners/DiscussionMetadataUpdater.php index b9f3dd498..8d63a7e12 100755 --- a/src/Core/Discussions/Listeners/DiscussionMetadataUpdater.php +++ b/src/Core/Discussions/Listeners/DiscussionMetadataUpdater.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Core\Discussions\Listeners; use Flarum\Core\Posts\Post; use Flarum\Events\PostWasPosted; diff --git a/src/Core/Discussions/Search/DiscussionSearch.php b/src/Core/Discussions/Search/DiscussionSearch.php index 5d9099969..5d7119278 100644 --- a/src/Core/Discussions/Search/DiscussionSearch.php +++ b/src/Core/Discussions/Search/DiscussionSearch.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Core\Discussions\Search; use Flarum\Core\Search\Search; diff --git a/src/Core/Discussions/Search/DiscussionSearcher.php b/src/Core/Discussions/Search/DiscussionSearcher.php index 8fdf3b1de..94eb4513e 100644 --- a/src/Core/Discussions/Search/DiscussionSearcher.php +++ b/src/Core/Discussions/Search/DiscussionSearcher.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Core\Discussions\Search; use Flarum\Core\Discussions\Discussion; use Flarum\Core\Search\AppliesParametersToSearch; diff --git a/src/Core/Discussions/Search/Fulltext/Driver.php b/src/Core/Discussions/Search/Fulltext/Driver.php index 9bed81b92..0ac2d00cd 100644 --- a/src/Core/Discussions/Search/Fulltext/Driver.php +++ b/src/Core/Discussions/Search/Fulltext/Driver.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Core\Discussions\Search\Fulltext; interface Driver { diff --git a/src/Core/Discussions/Search/Fulltext/MySqlFulltextDriver.php b/src/Core/Discussions/Search/Fulltext/MySqlFulltextDriver.php index 17ad3ee98..e4782b77c 100644 --- a/src/Core/Discussions/Search/Fulltext/MySqlFulltextDriver.php +++ b/src/Core/Discussions/Search/Fulltext/MySqlFulltextDriver.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Core\Discussions\Search\Fulltext; use Flarum\Core\Posts\Post; diff --git a/src/Core/Discussions/Search/Gambits/AuthorGambit.php b/src/Core/Discussions/Search/Gambits/AuthorGambit.php index 1413dd191..41b6f0127 100644 --- a/src/Core/Discussions/Search/Gambits/AuthorGambit.php +++ b/src/Core/Discussions/Search/Gambits/AuthorGambit.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Core\Discussions\Search\Gambits; use Flarum\Core\Discussions\Search\DiscussionSearch; use Flarum\Core\Users\UserRepository; diff --git a/src/Core/Discussions/Search/Gambits/FulltextGambit.php b/src/Core/Discussions/Search/Gambits/FulltextGambit.php index 4af8e7aac..6539188fa 100644 --- a/src/Core/Discussions/Search/Gambits/FulltextGambit.php +++ b/src/Core/Discussions/Search/Gambits/FulltextGambit.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Core\Discussions\Search\Gambits; use Flarum\Core\Discussions\Search\DiscussionSearch; use Flarum\Core\Discussions\Search\Fulltext\Driver; diff --git a/src/Core/Discussions/Search/Gambits/UnreadGambit.php b/src/Core/Discussions/Search/Gambits/UnreadGambit.php index e10a2ed98..08dd3a666 100644 --- a/src/Core/Discussions/Search/Gambits/UnreadGambit.php +++ b/src/Core/Discussions/Search/Gambits/UnreadGambit.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Core\Discussions\Search\Gambits; use Flarum\Core\Discussions\DiscussionRepository; use Flarum\Core\Discussions\Search\DiscussionSearch; diff --git a/src/Core/Exceptions/InvalidConfirmationTokenException.php b/src/Core/Exceptions/InvalidConfirmationTokenException.php index b9232a5ae..b7389f1da 100644 --- a/src/Core/Exceptions/InvalidConfirmationTokenException.php +++ b/src/Core/Exceptions/InvalidConfirmationTokenException.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Core\Exceptions; use Exception; diff --git a/src/Core/Exceptions/PermissionDeniedException.php b/src/Core/Exceptions/PermissionDeniedException.php index 16ed4fa74..815237d7c 100644 --- a/src/Core/Exceptions/PermissionDeniedException.php +++ b/src/Core/Exceptions/PermissionDeniedException.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Core\Exceptions; use Exception; diff --git a/src/Core/Exceptions/ValidationException.php b/src/Core/Exceptions/ValidationException.php index f517161cd..61614d20a 100644 --- a/src/Core/Exceptions/ValidationException.php +++ b/src/Core/Exceptions/ValidationException.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Core\Exceptions; use Exception; diff --git a/src/Core/Formatter/Formatter.php b/src/Core/Formatter/Formatter.php index 0de2ff5aa..9ffaaf3b4 100644 --- a/src/Core/Formatter/Formatter.php +++ b/src/Core/Formatter/Formatter.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Core\Formatter; use Illuminate\Contracts\Cache\Repository; use s9e\TextFormatter\Configurator; diff --git a/src/Core/Formatter/FormatterServiceProvider.php b/src/Core/Formatter/FormatterServiceProvider.php index 83a37f41d..dbf720ac2 100644 --- a/src/Core/Formatter/FormatterServiceProvider.php +++ b/src/Core/Formatter/FormatterServiceProvider.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Core\Formatter; use Flarum\Support\ServiceProvider; use Flarum\Extend; diff --git a/src/Core/Forum.php b/src/Core/Forum.php index 5153bf73a..274a756e1 100755 --- a/src/Core/Forum.php +++ b/src/Core/Forum.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Core; use Flarum\Core\Support\Locked; use Flarum\Core; diff --git a/src/Core/Groups/Commands/CreateGroup.php b/src/Core/Groups/Commands/CreateGroup.php index 100e1e1cb..b4977bb13 100644 --- a/src/Core/Groups/Commands/CreateGroup.php +++ b/src/Core/Groups/Commands/CreateGroup.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Core\Groups\Commands; use Flarum\Core\Users\User; diff --git a/src/Core/Groups/Commands/CreateGroupHandler.php b/src/Core/Groups/Commands/CreateGroupHandler.php index 8211d1041..80e4e2e8d 100644 --- a/src/Core/Groups/Commands/CreateGroupHandler.php +++ b/src/Core/Groups/Commands/CreateGroupHandler.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Core\Groups\Commands; use Flarum\Core\Groups\Group; use Flarum\Core\Forum; diff --git a/src/Core/Groups/Commands/DeleteGroup.php b/src/Core/Groups/Commands/DeleteGroup.php index 5cc357990..8c0b6ffc1 100644 --- a/src/Core/Groups/Commands/DeleteGroup.php +++ b/src/Core/Groups/Commands/DeleteGroup.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Core\Groups\Commands; use Flarum\Core\Groups\Group; use Flarum\Core\Users\User; diff --git a/src/Core/Groups/Commands/DeleteGroupHandler.php b/src/Core/Groups/Commands/DeleteGroupHandler.php index 180bdf4cb..cbdca959d 100644 --- a/src/Core/Groups/Commands/DeleteGroupHandler.php +++ b/src/Core/Groups/Commands/DeleteGroupHandler.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Core\Groups\Commands; use Flarum\Core\Groups\Group; use Flarum\Core\Groups\GroupRepository; diff --git a/src/Core/Groups/Commands/EditGroup.php b/src/Core/Groups/Commands/EditGroup.php index 3ef09cbdc..62e0408c0 100644 --- a/src/Core/Groups/Commands/EditGroup.php +++ b/src/Core/Groups/Commands/EditGroup.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Core\Groups\Commands; use Flarum\Core\Groups\Group; use Flarum\Core\Users\User; diff --git a/src/Core/Groups/Commands/EditGroupHandler.php b/src/Core/Groups/Commands/EditGroupHandler.php index d2b715f3a..016715134 100644 --- a/src/Core/Groups/Commands/EditGroupHandler.php +++ b/src/Core/Groups/Commands/EditGroupHandler.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Core\Groups\Commands; use Flarum\Core\Groups\Group; use Flarum\Core\Groups\GroupRepository; diff --git a/src/Core/Groups/Group.php b/src/Core/Groups/Group.php index f4e8e0036..d5483f511 100755 --- a/src/Core/Groups/Group.php +++ b/src/Core/Groups/Group.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Core\Groups; use Flarum\Core\Model; use Flarum\Core\Support\Locked; diff --git a/src/Core/Groups/GroupRepository.php b/src/Core/Groups/GroupRepository.php index 2a8451462..4d9f37038 100644 --- a/src/Core/Groups/GroupRepository.php +++ b/src/Core/Groups/GroupRepository.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Core\Groups; use Flarum\Core\Users\User; use Illuminate\Database\Eloquent\Builder; diff --git a/src/Core/Groups/GroupsServiceProvider.php b/src/Core/Groups/GroupsServiceProvider.php index 868590b5b..f330b4326 100644 --- a/src/Core/Groups/GroupsServiceProvider.php +++ b/src/Core/Groups/GroupsServiceProvider.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Core\Groups; use Flarum\Events\ModelAllow; use Flarum\Support\ServiceProvider; diff --git a/src/Core/Groups/Permission.php b/src/Core/Groups/Permission.php index ecf436174..a087a710e 100755 --- a/src/Core/Groups/Permission.php +++ b/src/Core/Groups/Permission.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Core\Groups; use Flarum\Core\Model; use Illuminate\Database\Eloquent\Builder; diff --git a/src/Core/Model.php b/src/Core/Model.php index 9e5294901..78575d592 100755 --- a/src/Core/Model.php +++ b/src/Core/Model.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Core; use Flarum\Core\Exceptions\PermissionDeniedException; use Flarum\Core\Users\User; diff --git a/src/Core/Notifications/Blueprint.php b/src/Core/Notifications/Blueprint.php index 223984a29..77c450d0b 100644 --- a/src/Core/Notifications/Blueprint.php +++ b/src/Core/Notifications/Blueprint.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Core\Notifications; /** * A notification Blueprint, when instantiated, represents a notification about diff --git a/src/Core/Notifications/Commands/ReadNotification.php b/src/Core/Notifications/Commands/ReadNotification.php index e61b560a3..35e8b5efe 100644 --- a/src/Core/Notifications/Commands/ReadNotification.php +++ b/src/Core/Notifications/Commands/ReadNotification.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Core\Notifications\Commands; use Flarum\Core\Users\User; diff --git a/src/Core/Notifications/Commands/ReadNotificationHandler.php b/src/Core/Notifications/Commands/ReadNotificationHandler.php index 7b401a9f3..0753acf9c 100644 --- a/src/Core/Notifications/Commands/ReadNotificationHandler.php +++ b/src/Core/Notifications/Commands/ReadNotificationHandler.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Core\Notifications\Commands; use Flarum\Core\Notifications\Notification; use Flarum\Core\Exceptions\PermissionDeniedException; diff --git a/src/Core/Notifications/DiscussionRenamedBlueprint.php b/src/Core/Notifications/DiscussionRenamedBlueprint.php index ca732204d..cbf4feae8 100644 --- a/src/Core/Notifications/DiscussionRenamedBlueprint.php +++ b/src/Core/Notifications/DiscussionRenamedBlueprint.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Core\Notifications; use Flarum\Core\Posts\DiscussionRenamedPost; diff --git a/src/Core/Notifications/Listeners/DiscussionRenamedNotifier.php b/src/Core/Notifications/Listeners/DiscussionRenamedNotifier.php index ccef4699c..58472dfe4 100755 --- a/src/Core/Notifications/Listeners/DiscussionRenamedNotifier.php +++ b/src/Core/Notifications/Listeners/DiscussionRenamedNotifier.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Core\Notifications\Listeners; use Flarum\Events\DiscussionWasRenamed; use Flarum\Core\Posts\DiscussionRenamedPost; diff --git a/src/Core/Notifications/MailableBlueprint.php b/src/Core/Notifications/MailableBlueprint.php index a34850231..eaf2398e6 100644 --- a/src/Core/Notifications/MailableBlueprint.php +++ b/src/Core/Notifications/MailableBlueprint.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Core\Notifications; interface MailableBlueprint { diff --git a/src/Core/Notifications/Notification.php b/src/Core/Notifications/Notification.php index 9651756b1..430329a0c 100644 --- a/src/Core/Notifications/Notification.php +++ b/src/Core/Notifications/Notification.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Core\Notifications; use Flarum\Core\Model; diff --git a/src/Core/Notifications/NotificationMailer.php b/src/Core/Notifications/NotificationMailer.php index 0c6b938c9..a8e154188 100644 --- a/src/Core/Notifications/NotificationMailer.php +++ b/src/Core/Notifications/NotificationMailer.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Core\Notifications; use Flarum\Core\Users\User; use Illuminate\Contracts\Mail\Mailer; diff --git a/src/Core/Notifications/NotificationRepository.php b/src/Core/Notifications/NotificationRepository.php index 5c92699eb..7404ded26 100644 --- a/src/Core/Notifications/NotificationRepository.php +++ b/src/Core/Notifications/NotificationRepository.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Core\Notifications; use Flarum\Core\Users\User; diff --git a/src/Core/Notifications/NotificationSyncer.php b/src/Core/Notifications/NotificationSyncer.php index f243707a2..ba187e1d4 100644 --- a/src/Core/Notifications/NotificationSyncer.php +++ b/src/Core/Notifications/NotificationSyncer.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Core\Notifications; use Flarum\Events\NotificationWillBeSent; use Flarum\Core\Users\User; diff --git a/src/Core/Notifications/NotificationsServiceProvider.php b/src/Core/Notifications/NotificationsServiceProvider.php index 0f33d9c3a..b79b3a84c 100644 --- a/src/Core/Notifications/NotificationsServiceProvider.php +++ b/src/Core/Notifications/NotificationsServiceProvider.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Core\Notifications; use Flarum\Core\Users\User; use Flarum\Events\RegisterNotificationTypes; diff --git a/src/Core/Posts/Commands/DeletePost.php b/src/Core/Posts/Commands/DeletePost.php index f817b4829..12db5b049 100644 --- a/src/Core/Posts/Commands/DeletePost.php +++ b/src/Core/Posts/Commands/DeletePost.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Core\Posts\Commands; use Flarum\Core\Users\User; diff --git a/src/Core/Posts/Commands/DeletePostHandler.php b/src/Core/Posts/Commands/DeletePostHandler.php index ca854727f..749e77a37 100644 --- a/src/Core/Posts/Commands/DeletePostHandler.php +++ b/src/Core/Posts/Commands/DeletePostHandler.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Core\Posts\Commands; use Flarum\Core\Posts\PostRepository; use Flarum\Events\PostWillBeDeleted; diff --git a/src/Core/Posts/Commands/EditPost.php b/src/Core/Posts/Commands/EditPost.php index 9dd551315..d065548f3 100644 --- a/src/Core/Posts/Commands/EditPost.php +++ b/src/Core/Posts/Commands/EditPost.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Core\Posts\Commands; use Flarum\Core\Users\User; diff --git a/src/Core/Posts/Commands/EditPostHandler.php b/src/Core/Posts/Commands/EditPostHandler.php index 58bc09032..b167ab773 100644 --- a/src/Core/Posts/Commands/EditPostHandler.php +++ b/src/Core/Posts/Commands/EditPostHandler.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Core\Posts\Commands; use Flarum\Core\Posts\PostRepository; use Flarum\Events\PostWillBeSaved; diff --git a/src/Core/Posts/Commands/PostReply.php b/src/Core/Posts/Commands/PostReply.php index 55ac91619..45add6801 100644 --- a/src/Core/Posts/Commands/PostReply.php +++ b/src/Core/Posts/Commands/PostReply.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Core\Posts\Commands; use Flarum\Core\Users\User; diff --git a/src/Core/Posts/Commands/PostReplyHandler.php b/src/Core/Posts/Commands/PostReplyHandler.php index 2b7b10e69..91a263603 100644 --- a/src/Core/Posts/Commands/PostReplyHandler.php +++ b/src/Core/Posts/Commands/PostReplyHandler.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Core\Posts\Commands; use Flarum\Events\PostWillBeSaved; use Flarum\Core\Discussions\DiscussionRepository; diff --git a/src/Core/Posts/CommentPost.php b/src/Core/Posts/CommentPost.php index 61173fb7a..85b3253a5 100755 --- a/src/Core/Posts/CommentPost.php +++ b/src/Core/Posts/CommentPost.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Core\Posts; use DomainException; use Flarum\Core\Formatter\Formatter; diff --git a/src/Core/Posts/DiscussionRenamedPost.php b/src/Core/Posts/DiscussionRenamedPost.php index 0db8e2809..c10e3dc22 100755 --- a/src/Core/Posts/DiscussionRenamedPost.php +++ b/src/Core/Posts/DiscussionRenamedPost.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Core\Posts; /** * A post which indicates that a discussion's title was changed. diff --git a/src/Core/Posts/EventPost.php b/src/Core/Posts/EventPost.php index f12b6844e..d177a3724 100755 --- a/src/Core/Posts/EventPost.php +++ b/src/Core/Posts/EventPost.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Core\Posts; abstract class EventPost extends Post { diff --git a/src/Core/Posts/MergeablePost.php b/src/Core/Posts/MergeablePost.php index 5396d89ef..fa56d0443 100644 --- a/src/Core/Posts/MergeablePost.php +++ b/src/Core/Posts/MergeablePost.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Core\Posts; /** * A post that has the ability to be merged into an adjacent post. diff --git a/src/Core/Posts/Post.php b/src/Core/Posts/Post.php index 17e293c74..8f3898c67 100755 --- a/src/Core/Posts/Post.php +++ b/src/Core/Posts/Post.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Core\Posts; use DomainException; use Flarum\Events\PostWasDeleted; diff --git a/src/Core/Posts/PostRepository.php b/src/Core/Posts/PostRepository.php index ee04f7b44..66eeae74a 100644 --- a/src/Core/Posts/PostRepository.php +++ b/src/Core/Posts/PostRepository.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Core\Posts; use Illuminate\Database\Eloquent\Builder; use Illuminate\Database\Eloquent\ModelNotFoundException; diff --git a/src/Core/Posts/PostsServiceProvider.php b/src/Core/Posts/PostsServiceProvider.php index c48e5c2bd..bfaf903f4 100644 --- a/src/Core/Posts/PostsServiceProvider.php +++ b/src/Core/Posts/PostsServiceProvider.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Core\Posts; use Flarum\Core\Discussions\Discussion; use Flarum\Core\Users\User; diff --git a/src/Core/Posts/RegisteredTypesScope.php b/src/Core/Posts/RegisteredTypesScope.php index 3ffd65022..135788654 100644 --- a/src/Core/Posts/RegisteredTypesScope.php +++ b/src/Core/Posts/RegisteredTypesScope.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Core\Posts; use Illuminate\Database\Eloquent\ScopeInterface; use Illuminate\Database\Eloquent\Builder; diff --git a/src/Core/Search/AppliesParametersToSearch.php b/src/Core/Search/AppliesParametersToSearch.php index 14026b143..9f75e5a82 100644 --- a/src/Core/Search/AppliesParametersToSearch.php +++ b/src/Core/Search/AppliesParametersToSearch.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Core\Search; trait AppliesParametersToSearch { diff --git a/src/Core/Search/Gambit.php b/src/Core/Search/Gambit.php index 2f98c5a6f..b6946284d 100644 --- a/src/Core/Search/Gambit.php +++ b/src/Core/Search/Gambit.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Core\Search; interface Gambit { diff --git a/src/Core/Search/GambitManager.php b/src/Core/Search/GambitManager.php index f38afee38..bb782d0cf 100644 --- a/src/Core/Search/GambitManager.php +++ b/src/Core/Search/GambitManager.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Core\Search; use Illuminate\Contracts\Container\Container; use LogicException; diff --git a/src/Core/Search/RegexGambit.php b/src/Core/Search/RegexGambit.php index cf8557fd1..244d4643b 100644 --- a/src/Core/Search/RegexGambit.php +++ b/src/Core/Search/RegexGambit.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Core\Search; abstract class RegexGambit implements Gambit { diff --git a/src/Core/Search/Search.php b/src/Core/Search/Search.php index b6702ce2f..3f21cd932 100644 --- a/src/Core/Search/Search.php +++ b/src/Core/Search/Search.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Core\Search; use Flarum\Core\Users\User; use Illuminate\Database\Query\Builder; diff --git a/src/Core/Search/SearchCriteria.php b/src/Core/Search/SearchCriteria.php index a3f006eba..bb0b6e98b 100644 --- a/src/Core/Search/SearchCriteria.php +++ b/src/Core/Search/SearchCriteria.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Core\Search; use Flarum\Core\Users\User; diff --git a/src/Core/Search/SearchResults.php b/src/Core/Search/SearchResults.php index c5ba22fee..3d4a29437 100644 --- a/src/Core/Search/SearchResults.php +++ b/src/Core/Search/SearchResults.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Core\Search; use Illuminate\Database\Eloquent\Collection; diff --git a/src/Core/Settings/DatabaseSettingsRepository.php b/src/Core/Settings/DatabaseSettingsRepository.php index f3dac86b4..734952d9c 100644 --- a/src/Core/Settings/DatabaseSettingsRepository.php +++ b/src/Core/Settings/DatabaseSettingsRepository.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + namespace Flarum\Core\Settings; use Illuminate\Database\ConnectionInterface; diff --git a/src/Core/Settings/MemoryCacheSettingsRepository.php b/src/Core/Settings/MemoryCacheSettingsRepository.php index 52a403582..814cbd839 100644 --- a/src/Core/Settings/MemoryCacheSettingsRepository.php +++ b/src/Core/Settings/MemoryCacheSettingsRepository.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + namespace Flarum\Core\Settings; class MemoryCacheSettingsRepository implements SettingsRepository @@ -29,7 +38,7 @@ class MemoryCacheSettingsRepository implements SettingsRepository { if (array_key_exists($key, $this->cache)) { return $this->cache[$key]; - } else if (!$this->isCached) { + } elseif (!$this->isCached) { return array_get($this->all(), $key, $default); } diff --git a/src/Core/Settings/SettingsRepository.php b/src/Core/Settings/SettingsRepository.php index 3c5045cf1..abaf3f809 100644 --- a/src/Core/Settings/SettingsRepository.php +++ b/src/Core/Settings/SettingsRepository.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + namespace Flarum\Core\Settings; interface SettingsRepository diff --git a/src/Core/Settings/SettingsServiceProvider.php b/src/Core/Settings/SettingsServiceProvider.php index 1bc6064ac..c9f104543 100644 --- a/src/Core/Settings/SettingsServiceProvider.php +++ b/src/Core/Settings/SettingsServiceProvider.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Core\Settings; use Flarum\Support\ServiceProvider; diff --git a/src/Core/Support/DispatchesEvents.php b/src/Core/Support/DispatchesEvents.php index 50d8c8b27..841779cd8 100644 --- a/src/Core/Support/DispatchesEvents.php +++ b/src/Core/Support/DispatchesEvents.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Core\Support; trait DispatchesEvents { diff --git a/src/Core/Support/EventGenerator.php b/src/Core/Support/EventGenerator.php index bfc800806..1d0ec3427 100644 --- a/src/Core/Support/EventGenerator.php +++ b/src/Core/Support/EventGenerator.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Core\Support; trait EventGenerator { diff --git a/src/Core/Support/Locked.php b/src/Core/Support/Locked.php index a25e970ff..42fab536f 100644 --- a/src/Core/Support/Locked.php +++ b/src/Core/Support/Locked.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Core\Support; use Flarum\Core\Exceptions\PermissionDeniedException; use Flarum\Core\Users\User; diff --git a/src/Core/Support/ValidatesBeforeSave.php b/src/Core/Support/ValidatesBeforeSave.php index 85cc1626b..61e7d4813 100644 --- a/src/Core/Support/ValidatesBeforeSave.php +++ b/src/Core/Support/ValidatesBeforeSave.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Core\Support; use Flarum\Events\ModelValidator; use Illuminate\Validation\Factory; diff --git a/src/Core/Support/VisibleScope.php b/src/Core/Support/VisibleScope.php index dec71b2bf..52c9c39e8 100644 --- a/src/Core/Support/VisibleScope.php +++ b/src/Core/Support/VisibleScope.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Core\Support; use Flarum\Events\ScopeModelVisibility; use Illuminate\Database\Eloquent\Builder; diff --git a/src/Core/Users/Commands/ConfirmEmail.php b/src/Core/Users/Commands/ConfirmEmail.php index 5d05e02db..8c3975b26 100644 --- a/src/Core/Users/Commands/ConfirmEmail.php +++ b/src/Core/Users/Commands/ConfirmEmail.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Core\Users\Commands; class ConfirmEmail { diff --git a/src/Core/Users/Commands/ConfirmEmailHandler.php b/src/Core/Users/Commands/ConfirmEmailHandler.php index aac2d2b2f..d1eb38622 100644 --- a/src/Core/Users/Commands/ConfirmEmailHandler.php +++ b/src/Core/Users/Commands/ConfirmEmailHandler.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Core\Users\Commands; use Flarum\Core\Users\UserRepository; use Flarum\Events\UserWillBeSaved; diff --git a/src/Core/Users/Commands/DeleteAvatar.php b/src/Core/Users/Commands/DeleteAvatar.php index 2cb171d38..f581cba29 100644 --- a/src/Core/Users/Commands/DeleteAvatar.php +++ b/src/Core/Users/Commands/DeleteAvatar.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Core\Users\Commands; use Flarum\Core\Users\User; diff --git a/src/Core/Users/Commands/DeleteAvatarHandler.php b/src/Core/Users/Commands/DeleteAvatarHandler.php index 0ab9f888b..d900f38fc 100644 --- a/src/Core/Users/Commands/DeleteAvatarHandler.php +++ b/src/Core/Users/Commands/DeleteAvatarHandler.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Core\Users\Commands; use Flarum\Events\AvatarWillBeDeleted; use Flarum\Core\Users\UserRepository; diff --git a/src/Core/Users/Commands/DeleteUser.php b/src/Core/Users/Commands/DeleteUser.php index 5ca892fce..260d4d1e4 100644 --- a/src/Core/Users/Commands/DeleteUser.php +++ b/src/Core/Users/Commands/DeleteUser.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Core\Users\Commands; use Flarum\Core\Users\User; diff --git a/src/Core/Users/Commands/DeleteUserHandler.php b/src/Core/Users/Commands/DeleteUserHandler.php index 5839e4684..62b6fd2ff 100644 --- a/src/Core/Users/Commands/DeleteUserHandler.php +++ b/src/Core/Users/Commands/DeleteUserHandler.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Core\Users\Commands; use Flarum\Core\Users\User; use Flarum\Core\Users\UserRepository; diff --git a/src/Core/Users/Commands/EditUser.php b/src/Core/Users/Commands/EditUser.php index fd35f426e..56ea652d8 100644 --- a/src/Core/Users/Commands/EditUser.php +++ b/src/Core/Users/Commands/EditUser.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Core\Users\Commands; use Flarum\Core\Users\User; diff --git a/src/Core/Users/Commands/EditUserHandler.php b/src/Core/Users/Commands/EditUserHandler.php index 0ec1a2e37..a000b236f 100644 --- a/src/Core/Users/Commands/EditUserHandler.php +++ b/src/Core/Users/Commands/EditUserHandler.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Core\Users\Commands; use Flarum\Core\Users\User; use Flarum\Core\Users\UserRepository; diff --git a/src/Core/Users/Commands/RegisterUser.php b/src/Core/Users/Commands/RegisterUser.php index 2a03e01c9..afe16925d 100644 --- a/src/Core/Users/Commands/RegisterUser.php +++ b/src/Core/Users/Commands/RegisterUser.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Core\Users\Commands; use Flarum\Core\Users\User; diff --git a/src/Core/Users/Commands/RegisterUserHandler.php b/src/Core/Users/Commands/RegisterUserHandler.php index d290c9d39..60e7e5b2f 100644 --- a/src/Core/Users/Commands/RegisterUserHandler.php +++ b/src/Core/Users/Commands/RegisterUserHandler.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Core\Users\Commands; use Flarum\Core\Users\User; use Flarum\Events\UserWillBeSaved; diff --git a/src/Core/Users/Commands/RequestPasswordReset.php b/src/Core/Users/Commands/RequestPasswordReset.php index a046897e1..6b64c6598 100644 --- a/src/Core/Users/Commands/RequestPasswordReset.php +++ b/src/Core/Users/Commands/RequestPasswordReset.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Core\Users\Commands; class RequestPasswordReset { diff --git a/src/Core/Users/Commands/RequestPasswordResetHandler.php b/src/Core/Users/Commands/RequestPasswordResetHandler.php index 448052db5..d09338e21 100644 --- a/src/Core/Users/Commands/RequestPasswordResetHandler.php +++ b/src/Core/Users/Commands/RequestPasswordResetHandler.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Core\Users\Commands; use Flarum\Core\Settings\SettingsRepository; use Flarum\Core\Users\PasswordToken; diff --git a/src/Core/Users/Commands/UploadAvatar.php b/src/Core/Users/Commands/UploadAvatar.php index 62c995b90..4736f184f 100644 --- a/src/Core/Users/Commands/UploadAvatar.php +++ b/src/Core/Users/Commands/UploadAvatar.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Core\Users\Commands; use Flarum\Core\Users\User; use Psr\Http\Message\UploadedFileInterface; diff --git a/src/Core/Users/Commands/UploadAvatarHandler.php b/src/Core/Users/Commands/UploadAvatarHandler.php index 754042ddb..55e015c7a 100644 --- a/src/Core/Users/Commands/UploadAvatarHandler.php +++ b/src/Core/Users/Commands/UploadAvatarHandler.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Core\Users\Commands; use Flarum\Events\AvatarWillBeSaved; use Flarum\Core\Users\UserRepository; diff --git a/src/Core/Users/EmailToken.php b/src/Core/Users/EmailToken.php index 0d1c33686..c95e0c7bc 100644 --- a/src/Core/Users/EmailToken.php +++ b/src/Core/Users/EmailToken.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Core\Users; use Flarum\Core\Model; diff --git a/src/Core/Users/Guest.php b/src/Core/Users/Guest.php index f021b9226..be2f0d89f 100755 --- a/src/Core/Users/Guest.php +++ b/src/Core/Users/Guest.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Core\Users; use Flarum\Core\Groups\Group; diff --git a/src/Core/Users/Listeners/EmailConfirmationMailer.php b/src/Core/Users/Listeners/EmailConfirmationMailer.php index b10fbef76..06b8b3513 100755 --- a/src/Core/Users/Listeners/EmailConfirmationMailer.php +++ b/src/Core/Users/Listeners/EmailConfirmationMailer.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Core\Users\Listeners; use Flarum\Core\Settings\SettingsRepository; use Flarum\Events\UserWasRegistered; diff --git a/src/Core/Users/Listeners/UserMetadataUpdater.php b/src/Core/Users/Listeners/UserMetadataUpdater.php index 5de95c267..6b61587b2 100755 --- a/src/Core/Users/Listeners/UserMetadataUpdater.php +++ b/src/Core/Users/Listeners/UserMetadataUpdater.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Core\Users\Listeners; use Flarum\Core\Users\User; use Flarum\Events\PostWasPosted; diff --git a/src/Core/Users/PasswordToken.php b/src/Core/Users/PasswordToken.php index 22e661102..23549b8cf 100644 --- a/src/Core/Users/PasswordToken.php +++ b/src/Core/Users/PasswordToken.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Core\Users; use Flarum\Core\Model; diff --git a/src/Core/Users/Permission.php b/src/Core/Users/Permission.php index 8a7f547b5..e6a1970db 100644 --- a/src/Core/Users/Permission.php +++ b/src/Core/Users/Permission.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Core\Users; use Flarum\Core\Model; diff --git a/src/Core/Users/Search/Gambits/FulltextGambit.php b/src/Core/Users/Search/Gambits/FulltextGambit.php index a0966fd52..5cc37dd3e 100644 --- a/src/Core/Users/Search/Gambits/FulltextGambit.php +++ b/src/Core/Users/Search/Gambits/FulltextGambit.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Core\Users\Search\Gambits; use Flarum\Core\Users\UserRepository; use Flarum\Core\Search\Search; diff --git a/src/Core/Users/Search/UserSearch.php b/src/Core/Users/Search/UserSearch.php index 16b725755..a91d34529 100644 --- a/src/Core/Users/Search/UserSearch.php +++ b/src/Core/Users/Search/UserSearch.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Core\Users\Search; use Flarum\Core\Search\Search; diff --git a/src/Core/Users/Search/UserSearcher.php b/src/Core/Users/Search/UserSearcher.php index 4feb8386d..367b770c6 100644 --- a/src/Core/Users/Search/UserSearcher.php +++ b/src/Core/Users/Search/UserSearcher.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Core\Users\Search; use Flarum\Core\Search\AppliesParametersToSearch; use Flarum\Core\Search\GambitManager; diff --git a/src/Core/Users/User.php b/src/Core/Users/User.php index 0ca0f87b2..c948194cf 100755 --- a/src/Core/Users/User.php +++ b/src/Core/Users/User.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Core\Users; use Flarum\Core; use Flarum\Core\Groups\Group; diff --git a/src/Core/Users/UserRepository.php b/src/Core/Users/UserRepository.php index d6d2bb047..96359329a 100644 --- a/src/Core/Users/UserRepository.php +++ b/src/Core/Users/UserRepository.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Core\Users; use Illuminate\Database\Eloquent\Builder; diff --git a/src/Core/Users/UsersServiceProvider.php b/src/Core/Users/UsersServiceProvider.php index 8f7682810..77d8fa2f6 100644 --- a/src/Core/Users/UsersServiceProvider.php +++ b/src/Core/Users/UsersServiceProvider.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Core\Users; use Flarum\Core\Search\GambitManager; use Flarum\Events\ModelAllow; diff --git a/src/Events/ApiAttributes.php b/src/Events/ApiAttributes.php index 98a73e2bd..5941c503e 100644 --- a/src/Events/ApiAttributes.php +++ b/src/Events/ApiAttributes.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Events; use Flarum\Api\Serializers\Serializer; diff --git a/src/Events/ApiRelationship.php b/src/Events/ApiRelationship.php index 59df26de8..4eef33b3e 100644 --- a/src/Events/ApiRelationship.php +++ b/src/Events/ApiRelationship.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Events; use Flarum\Api\Serializers\Serializer; diff --git a/src/Events/AvatarWillBeDeleted.php b/src/Events/AvatarWillBeDeleted.php index 04b41ed80..db7b9d848 100644 --- a/src/Events/AvatarWillBeDeleted.php +++ b/src/Events/AvatarWillBeDeleted.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Events; use Flarum\Core\Users\User; diff --git a/src/Events/AvatarWillBeSaved.php b/src/Events/AvatarWillBeSaved.php index f8a57c323..057863484 100644 --- a/src/Events/AvatarWillBeSaved.php +++ b/src/Events/AvatarWillBeSaved.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Events; use Flarum\Core\Users\User; diff --git a/src/Events/BuildApiAction.php b/src/Events/BuildApiAction.php index d5ccce238..5a7eabff3 100644 --- a/src/Events/BuildApiAction.php +++ b/src/Events/BuildApiAction.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Events; use Flarum\Api\Actions\SerializeAction; diff --git a/src/Events/BuildClientView.php b/src/Events/BuildClientView.php index 840ff802f..9ec9de45a 100644 --- a/src/Events/BuildClientView.php +++ b/src/Events/BuildClientView.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Events; use Flarum\Support\ClientAction; use Flarum\Support\ClientView; diff --git a/src/Events/DiscussionSearchWillBePerformed.php b/src/Events/DiscussionSearchWillBePerformed.php index 3fb74983c..5bb5e64aa 100644 --- a/src/Events/DiscussionSearchWillBePerformed.php +++ b/src/Events/DiscussionSearchWillBePerformed.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Events; use Flarum\Core\Discussions\Search\DiscussionSearch; use Flarum\Core\Search\SearchCriteria; diff --git a/src/Events/DiscussionStateWillBeSaved.php b/src/Events/DiscussionStateWillBeSaved.php index 86aec0d85..0aee34f2e 100644 --- a/src/Events/DiscussionStateWillBeSaved.php +++ b/src/Events/DiscussionStateWillBeSaved.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Events; use Flarum\Core\Discussions\DiscussionState; diff --git a/src/Events/DiscussionWasDeleted.php b/src/Events/DiscussionWasDeleted.php index f593a340e..3658a5f2c 100644 --- a/src/Events/DiscussionWasDeleted.php +++ b/src/Events/DiscussionWasDeleted.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Events; use Flarum\Core\Discussions\Discussion; use Flarum\Core\Users\User; diff --git a/src/Events/DiscussionWasRead.php b/src/Events/DiscussionWasRead.php index 98d55af49..d93520567 100644 --- a/src/Events/DiscussionWasRead.php +++ b/src/Events/DiscussionWasRead.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Events; use Flarum\Core\Discussions\DiscussionState; diff --git a/src/Events/DiscussionWasRenamed.php b/src/Events/DiscussionWasRenamed.php index b22e6f738..1f48015b0 100644 --- a/src/Events/DiscussionWasRenamed.php +++ b/src/Events/DiscussionWasRenamed.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Events; use Flarum\Core\Discussions\Discussion; use Flarum\Core\Users\User; diff --git a/src/Events/DiscussionWasStarted.php b/src/Events/DiscussionWasStarted.php index ca36b5ecf..0a4f78b5e 100644 --- a/src/Events/DiscussionWasStarted.php +++ b/src/Events/DiscussionWasStarted.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Events; use Flarum\Core\Discussions\Discussion; diff --git a/src/Events/DiscussionWillBeDeleted.php b/src/Events/DiscussionWillBeDeleted.php index cd74d331b..6aea21945 100644 --- a/src/Events/DiscussionWillBeDeleted.php +++ b/src/Events/DiscussionWillBeDeleted.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Events; use Flarum\Core\Discussions\Discussion; use Flarum\Core\Users\User; diff --git a/src/Events/DiscussionWillBeSaved.php b/src/Events/DiscussionWillBeSaved.php index e298ee596..cb93c0933 100644 --- a/src/Events/DiscussionWillBeSaved.php +++ b/src/Events/DiscussionWillBeSaved.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Events; use Flarum\Core\Discussions\Discussion; use Flarum\Core\Users\User; diff --git a/src/Events/FormatterConfigurator.php b/src/Events/FormatterConfigurator.php index 5eb02c3d3..f42a13e98 100644 --- a/src/Events/FormatterConfigurator.php +++ b/src/Events/FormatterConfigurator.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Events; use s9e\TextFormatter\Configurator; diff --git a/src/Events/FormatterParser.php b/src/Events/FormatterParser.php index 49faa4a76..c6c0e394c 100644 --- a/src/Events/FormatterParser.php +++ b/src/Events/FormatterParser.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Events; use s9e\TextFormatter\Parser; use Flarum\Core\Posts\CommentPost; diff --git a/src/Events/FormatterRenderer.php b/src/Events/FormatterRenderer.php index 1f1581f87..fdb8e129e 100644 --- a/src/Events/FormatterRenderer.php +++ b/src/Events/FormatterRenderer.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Events; use s9e\TextFormatter\Renderer; use Flarum\Core\Posts\CommentPost; diff --git a/src/Events/GetUserGroups.php b/src/Events/GetUserGroups.php index 231863c85..415705ee2 100644 --- a/src/Events/GetUserGroups.php +++ b/src/Events/GetUserGroups.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Events; use Flarum\Core\Users\User; diff --git a/src/Events/GroupWasCreated.php b/src/Events/GroupWasCreated.php index a14b6c2a3..24d3d02bf 100644 --- a/src/Events/GroupWasCreated.php +++ b/src/Events/GroupWasCreated.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Events; use Flarum\Core\Groups\Group; diff --git a/src/Events/GroupWasDeleted.php b/src/Events/GroupWasDeleted.php index 87fa1b9ac..41e9069db 100644 --- a/src/Events/GroupWasDeleted.php +++ b/src/Events/GroupWasDeleted.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Events; use Flarum\Core\Groups\Group; diff --git a/src/Events/GroupWasRenamed.php b/src/Events/GroupWasRenamed.php index 9d9999434..8e0237b2b 100644 --- a/src/Events/GroupWasRenamed.php +++ b/src/Events/GroupWasRenamed.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Events; use Flarum\Core\Groups\Group; diff --git a/src/Events/GroupWillBeDeleted.php b/src/Events/GroupWillBeDeleted.php index 0d83b3173..f50b439ad 100644 --- a/src/Events/GroupWillBeDeleted.php +++ b/src/Events/GroupWillBeDeleted.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Events; use Flarum\Core\Groups\Group; use Flarum\Core\Users\User; diff --git a/src/Events/GroupWillBeSaved.php b/src/Events/GroupWillBeSaved.php index c11f99660..d7516920f 100644 --- a/src/Events/GroupWillBeSaved.php +++ b/src/Events/GroupWillBeSaved.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Events; use Flarum\Core\Groups\Group; use Flarum\Core\Users\User; diff --git a/src/Events/ModelAllow.php b/src/Events/ModelAllow.php index 81120e39d..eaf552de6 100644 --- a/src/Events/ModelAllow.php +++ b/src/Events/ModelAllow.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Events; use Flarum\Core\Model; use Flarum\Core\Users\User; diff --git a/src/Events/ModelDates.php b/src/Events/ModelDates.php index 371b47cdf..85ebf798b 100644 --- a/src/Events/ModelDates.php +++ b/src/Events/ModelDates.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Events; use Flarum\Core\Model; diff --git a/src/Events/ModelRelationship.php b/src/Events/ModelRelationship.php index ef8b92754..e2cbd8481 100644 --- a/src/Events/ModelRelationship.php +++ b/src/Events/ModelRelationship.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Events; use Flarum\Core\Model; diff --git a/src/Events/ModelValidator.php b/src/Events/ModelValidator.php index 171b3ad17..95b5b1902 100644 --- a/src/Events/ModelValidator.php +++ b/src/Events/ModelValidator.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Events; use Flarum\Core\Model; use Illuminate\Validation\Validator; diff --git a/src/Events/NotificationWillBeSent.php b/src/Events/NotificationWillBeSent.php index 030332514..8a1fd3de6 100644 --- a/src/Events/NotificationWillBeSent.php +++ b/src/Events/NotificationWillBeSent.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Events; use Flarum\Core\Notifications\Blueprint; diff --git a/src/Events/PostWasDeleted.php b/src/Events/PostWasDeleted.php index dcc605419..08444e530 100644 --- a/src/Events/PostWasDeleted.php +++ b/src/Events/PostWasDeleted.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Events; use Flarum\Core\Posts\Post; diff --git a/src/Events/PostWasHidden.php b/src/Events/PostWasHidden.php index 5807fd930..76098c0c6 100644 --- a/src/Events/PostWasHidden.php +++ b/src/Events/PostWasHidden.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Events; use Flarum\Core\Posts\CommentPost; diff --git a/src/Events/PostWasPosted.php b/src/Events/PostWasPosted.php index e321c1fa4..1f33b6778 100644 --- a/src/Events/PostWasPosted.php +++ b/src/Events/PostWasPosted.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Events; use Flarum\Core\Posts\Post; diff --git a/src/Events/PostWasRestored.php b/src/Events/PostWasRestored.php index 58408532c..5d3e03a44 100644 --- a/src/Events/PostWasRestored.php +++ b/src/Events/PostWasRestored.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Events; use Flarum\Core\Posts\CommentPost; diff --git a/src/Events/PostWasRevised.php b/src/Events/PostWasRevised.php index 6a2e025cf..b61e3b858 100644 --- a/src/Events/PostWasRevised.php +++ b/src/Events/PostWasRevised.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Events; use Flarum\Core\Posts\CommentPost; diff --git a/src/Events/PostWillBeDeleted.php b/src/Events/PostWillBeDeleted.php index 7efe9a0d1..cd4c0db89 100644 --- a/src/Events/PostWillBeDeleted.php +++ b/src/Events/PostWillBeDeleted.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Events; use Flarum\Core\Posts\Post; use Flarum\Core\Users\User; diff --git a/src/Events/PostWillBeSaved.php b/src/Events/PostWillBeSaved.php index 4f65b6b3c..6241321a9 100644 --- a/src/Events/PostWillBeSaved.php +++ b/src/Events/PostWillBeSaved.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Events; use Flarum\Core\Posts\Post; use Flarum\Core\Users\User; diff --git a/src/Events/RegisterApiRoutes.php b/src/Events/RegisterApiRoutes.php index e5ecb4cb5..8dea4ab3e 100644 --- a/src/Events/RegisterApiRoutes.php +++ b/src/Events/RegisterApiRoutes.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Events; use Flarum\Api\Request; use Flarum\Http\RouteCollection; diff --git a/src/Events/RegisterDiscussionGambits.php b/src/Events/RegisterDiscussionGambits.php index c7ca0ec40..7c6186254 100644 --- a/src/Events/RegisterDiscussionGambits.php +++ b/src/Events/RegisterDiscussionGambits.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Events; use Flarum\Core\Search\GambitManager; diff --git a/src/Events/RegisterForumRoutes.php b/src/Events/RegisterForumRoutes.php index d10331bc3..49415a7ea 100644 --- a/src/Events/RegisterForumRoutes.php +++ b/src/Events/RegisterForumRoutes.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Events; use Flarum\Http\RouteCollection; use Psr\Http\Message\ServerRequestInterface; diff --git a/src/Events/RegisterLocales.php b/src/Events/RegisterLocales.php index 737698433..98b547c82 100644 --- a/src/Events/RegisterLocales.php +++ b/src/Events/RegisterLocales.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Events; use Flarum\Locale\LocaleManager; diff --git a/src/Events/RegisterNotificationTypes.php b/src/Events/RegisterNotificationTypes.php index 0c44fc9b1..25a800615 100644 --- a/src/Events/RegisterNotificationTypes.php +++ b/src/Events/RegisterNotificationTypes.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Events; use InvalidArgumentException; use ReflectionClass; diff --git a/src/Events/RegisterPostTypes.php b/src/Events/RegisterPostTypes.php index 5798fd137..a9c5a2d92 100644 --- a/src/Events/RegisterPostTypes.php +++ b/src/Events/RegisterPostTypes.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Events; class RegisterPostTypes { diff --git a/src/Events/RegisterUserGambits.php b/src/Events/RegisterUserGambits.php index c906b5d72..7ec7d1f13 100644 --- a/src/Events/RegisterUserGambits.php +++ b/src/Events/RegisterUserGambits.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Events; use Flarum\Core\Search\GambitManager; diff --git a/src/Events/RegisterUserPreferences.php b/src/Events/RegisterUserPreferences.php index 359017fc0..56ab9936c 100644 --- a/src/Events/RegisterUserPreferences.php +++ b/src/Events/RegisterUserPreferences.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Events; use Flarum\Core\Users\User; diff --git a/src/Events/ScopeModelVisibility.php b/src/Events/ScopeModelVisibility.php index 77e85003e..2ac282232 100644 --- a/src/Events/ScopeModelVisibility.php +++ b/src/Events/ScopeModelVisibility.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Events; use Flarum\Core\Model; use Flarum\Core\Users\User; diff --git a/src/Events/ScopePostVisibility.php b/src/Events/ScopePostVisibility.php index 8fa63f822..af39490d3 100644 --- a/src/Events/ScopePostVisibility.php +++ b/src/Events/ScopePostVisibility.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Events; use Flarum\Core\Discussions\Discussion; use Flarum\Core\Users\User; diff --git a/src/Events/UserAvatarWasChanged.php b/src/Events/UserAvatarWasChanged.php index 0ac341464..83c154946 100644 --- a/src/Events/UserAvatarWasChanged.php +++ b/src/Events/UserAvatarWasChanged.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Events; use Flarum\Core\Users\User; diff --git a/src/Events/UserBioWasChanged.php b/src/Events/UserBioWasChanged.php index df4e5f8a0..944430fbc 100644 --- a/src/Events/UserBioWasChanged.php +++ b/src/Events/UserBioWasChanged.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Events; use Flarum\Core\Users\User; diff --git a/src/Events/UserEmailChangeWasRequested.php b/src/Events/UserEmailChangeWasRequested.php index 41b21b5f7..f5647ba48 100644 --- a/src/Events/UserEmailChangeWasRequested.php +++ b/src/Events/UserEmailChangeWasRequested.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Events; use Flarum\Core\Users\User; diff --git a/src/Events/UserEmailWasChanged.php b/src/Events/UserEmailWasChanged.php index 37e5d0f4c..4815fd507 100644 --- a/src/Events/UserEmailWasChanged.php +++ b/src/Events/UserEmailWasChanged.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Events; use Flarum\Core\Users\User; diff --git a/src/Events/UserGroupsWereChanged.php b/src/Events/UserGroupsWereChanged.php index 50b0d4e63..8cc2c0d03 100644 --- a/src/Events/UserGroupsWereChanged.php +++ b/src/Events/UserGroupsWereChanged.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Events; use Flarum\Core\Users\User; diff --git a/src/Events/UserLoggedIn.php b/src/Events/UserLoggedIn.php index a35900648..c5971cff0 100644 --- a/src/Events/UserLoggedIn.php +++ b/src/Events/UserLoggedIn.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Events; use Flarum\Core\Users\User; diff --git a/src/Events/UserLoggedOut.php b/src/Events/UserLoggedOut.php index e51c72f9e..d6ec860ed 100644 --- a/src/Events/UserLoggedOut.php +++ b/src/Events/UserLoggedOut.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Events; use Flarum\Core\Users\User; diff --git a/src/Events/UserPasswordWasChanged.php b/src/Events/UserPasswordWasChanged.php index ec5791def..6cc98f6ba 100644 --- a/src/Events/UserPasswordWasChanged.php +++ b/src/Events/UserPasswordWasChanged.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Events; use Flarum\Core\Users\User; diff --git a/src/Events/UserSearchWillBePerformed.php b/src/Events/UserSearchWillBePerformed.php index eea12fbb3..0c4b85ec4 100644 --- a/src/Events/UserSearchWillBePerformed.php +++ b/src/Events/UserSearchWillBePerformed.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Events; use Flarum\Core\Users\Search\UserSearch; use Flarum\Core\Search\SearchCriteria; diff --git a/src/Events/UserWasActivated.php b/src/Events/UserWasActivated.php index 6bf5e3b9e..86f13a16d 100644 --- a/src/Events/UserWasActivated.php +++ b/src/Events/UserWasActivated.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Events; use Flarum\Core\Users\User; diff --git a/src/Events/UserWasDeleted.php b/src/Events/UserWasDeleted.php index 7e33d508a..2c76569ec 100644 --- a/src/Events/UserWasDeleted.php +++ b/src/Events/UserWasDeleted.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Events; use Flarum\Core\Users\User; diff --git a/src/Events/UserWasRegistered.php b/src/Events/UserWasRegistered.php index ee2ce0f6a..dc9e2c08a 100644 --- a/src/Events/UserWasRegistered.php +++ b/src/Events/UserWasRegistered.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Events; use Flarum\Core\Users\User; diff --git a/src/Events/UserWasRenamed.php b/src/Events/UserWasRenamed.php index 2579dd560..1936865ae 100644 --- a/src/Events/UserWasRenamed.php +++ b/src/Events/UserWasRenamed.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Events; use Flarum\Core\Users\User; diff --git a/src/Events/UserWillBeDeleted.php b/src/Events/UserWillBeDeleted.php index fa461b327..9b8fcec71 100644 --- a/src/Events/UserWillBeDeleted.php +++ b/src/Events/UserWillBeDeleted.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Events; use Flarum\Core\Users\User; diff --git a/src/Events/UserWillBeSaved.php b/src/Events/UserWillBeSaved.php index 03a5cf9df..ee59fd34f 100644 --- a/src/Events/UserWillBeSaved.php +++ b/src/Events/UserWillBeSaved.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Events; use Flarum\Core\Users\User; diff --git a/src/Events/WillSerializeData.php b/src/Events/WillSerializeData.php index 2366b35bc..adab166ff 100644 --- a/src/Events/WillSerializeData.php +++ b/src/Events/WillSerializeData.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Events; class WillSerializeData { diff --git a/src/Forum/Actions/ClientAction.php b/src/Forum/Actions/ClientAction.php index 50c9ca830..f86f7dfa0 100644 --- a/src/Forum/Actions/ClientAction.php +++ b/src/Forum/Actions/ClientAction.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Forum\Actions; use Flarum\Support\ClientAction as BaseClientAction; use Flarum\Api\Client; diff --git a/src/Forum/Actions/ConfirmEmailAction.php b/src/Forum/Actions/ConfirmEmailAction.php index 0c8e5ddb2..ecc54e784 100644 --- a/src/Forum/Actions/ConfirmEmailAction.php +++ b/src/Forum/Actions/ConfirmEmailAction.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Forum\Actions; use Flarum\Core\Users\Commands\ConfirmEmail; use Flarum\Api\Commands\GenerateAccessToken; diff --git a/src/Forum/Actions/DiscussionAction.php b/src/Forum/Actions/DiscussionAction.php index b4f66abc1..c6f505a07 100644 --- a/src/Forum/Actions/DiscussionAction.php +++ b/src/Forum/Actions/DiscussionAction.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Forum\Actions; use Psr\Http\Message\ServerRequestInterface as Request; use Flarum\Http\RouteNotFoundException; diff --git a/src/Forum/Actions/IndexAction.php b/src/Forum/Actions/IndexAction.php index 45e9d0de4..d078f0018 100644 --- a/src/Forum/Actions/IndexAction.php +++ b/src/Forum/Actions/IndexAction.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Forum\Actions; use Psr\Http\Message\ServerRequestInterface as Request; diff --git a/src/Forum/Actions/LoginAction.php b/src/Forum/Actions/LoginAction.php index 9f6a49407..ed93d5dd4 100644 --- a/src/Forum/Actions/LoginAction.php +++ b/src/Forum/Actions/LoginAction.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Forum\Actions; use Flarum\Api\Client; use Flarum\Api\AccessToken; diff --git a/src/Forum/Actions/LogoutAction.php b/src/Forum/Actions/LogoutAction.php index 07a62fd2d..7db5ded96 100644 --- a/src/Forum/Actions/LogoutAction.php +++ b/src/Forum/Actions/LogoutAction.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Forum\Actions; use Flarum\Api\AccessToken; use Flarum\Events\UserLoggedOut; diff --git a/src/Forum/Actions/ResetPasswordAction.php b/src/Forum/Actions/ResetPasswordAction.php index 7effcb0ec..6b5cd6966 100644 --- a/src/Forum/Actions/ResetPasswordAction.php +++ b/src/Forum/Actions/ResetPasswordAction.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Forum\Actions; use Flarum\Core\Users\PasswordToken; use Flarum\Support\HtmlAction; diff --git a/src/Forum/Actions/SavePasswordAction.php b/src/Forum/Actions/SavePasswordAction.php index 2d2010dd8..725d81693 100644 --- a/src/Forum/Actions/SavePasswordAction.php +++ b/src/Forum/Actions/SavePasswordAction.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Forum\Actions; use Flarum\Core\Users\PasswordToken; use Flarum\Core\Users\Commands\EditUser; diff --git a/src/Forum/Actions/WritesRememberCookie.php b/src/Forum/Actions/WritesRememberCookie.php index 0608933b5..ecd36d588 100644 --- a/src/Forum/Actions/WritesRememberCookie.php +++ b/src/Forum/Actions/WritesRememberCookie.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Forum\Actions; use Dflydev\FigCookies\FigResponseCookies; use Dflydev\FigCookies\SetCookie; diff --git a/src/Forum/ForumServiceProvider.php b/src/Forum/ForumServiceProvider.php index 211ea899a..be81326c6 100644 --- a/src/Forum/ForumServiceProvider.php +++ b/src/Forum/ForumServiceProvider.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Forum; use Flarum\Core\Users\Guest; use Flarum\Events\RegisterForumRoutes; diff --git a/src/Forum/Middleware/HandleErrors.php b/src/Forum/Middleware/HandleErrors.php index 6579d7f7f..6ee5fd26a 100644 --- a/src/Forum/Middleware/HandleErrors.php +++ b/src/Forum/Middleware/HandleErrors.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Forum\Middleware; use Psr\Http\Message\ResponseInterface as Response; use Psr\Http\Message\ServerRequestInterface as Request; diff --git a/src/Forum/Middleware/LoginWithCookie.php b/src/Forum/Middleware/LoginWithCookie.php index af70711c5..ba9c54a9a 100644 --- a/src/Forum/Middleware/LoginWithCookie.php +++ b/src/Forum/Middleware/LoginWithCookie.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Forum\Middleware; use Flarum\Api\AccessToken; use Illuminate\Contracts\Container\Container; diff --git a/src/Http/RouteCollection.php b/src/Http/RouteCollection.php index e44297a61..3400e0f46 100644 --- a/src/Http/RouteCollection.php +++ b/src/Http/RouteCollection.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + namespace Flarum\Http; use FastRoute\DataGenerator; diff --git a/src/Http/RouteNotFoundException.php b/src/Http/RouteNotFoundException.php index 840f7768d..84d9f4876 100644 --- a/src/Http/RouteNotFoundException.php +++ b/src/Http/RouteNotFoundException.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + namespace Flarum\Http; use Exception; diff --git a/src/Http/RouterMiddleware.php b/src/Http/RouterMiddleware.php index 4bf6c200f..1bb27c8dc 100644 --- a/src/Http/RouterMiddleware.php +++ b/src/Http/RouterMiddleware.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + namespace Flarum\Http; use FastRoute\Dispatcher; diff --git a/src/Http/UrlGenerator.php b/src/Http/UrlGenerator.php index 7630a80e7..22791adfb 100644 --- a/src/Http/UrlGenerator.php +++ b/src/Http/UrlGenerator.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + namespace Flarum\Http; class UrlGenerator implements UrlGeneratorInterface diff --git a/src/Http/UrlGeneratorInterface.php b/src/Http/UrlGeneratorInterface.php index 98851ea02..0dd1f8418 100644 --- a/src/Http/UrlGeneratorInterface.php +++ b/src/Http/UrlGeneratorInterface.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + namespace Flarum\Http; interface UrlGeneratorInterface diff --git a/src/Install/Actions/IndexAction.php b/src/Install/Actions/IndexAction.php index 4da11c86f..0c9d204d9 100644 --- a/src/Install/Actions/IndexAction.php +++ b/src/Install/Actions/IndexAction.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Install\Actions; use Flarum\Support\HtmlAction; use Psr\Http\Message\ServerRequestInterface as Request; diff --git a/src/Install/Actions/InstallAction.php b/src/Install/Actions/InstallAction.php index e234fd87b..0c0169a76 100644 --- a/src/Install/Actions/InstallAction.php +++ b/src/Install/Actions/InstallAction.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Install\Actions; use Flarum\Support\Action; use Psr\Http\Message\ServerRequestInterface as Request; diff --git a/src/Install/Console/DataFromUser.php b/src/Install/Console/DataFromUser.php index 722cf5b56..51ab38cf3 100644 --- a/src/Install/Console/DataFromUser.php +++ b/src/Install/Console/DataFromUser.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Install\Console; use Symfony\Component\Console\Helper\HelperSet; use Symfony\Component\Console\Helper\QuestionHelper; diff --git a/src/Install/Console/DefaultData.php b/src/Install/Console/DefaultData.php index c432b8246..c1708cf68 100644 --- a/src/Install/Console/DefaultData.php +++ b/src/Install/Console/DefaultData.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Install\Console; class DefaultData implements ProvidesData { diff --git a/src/Install/Console/InstallCommand.php b/src/Install/Console/InstallCommand.php index 72a021b4c..c609754db 100644 --- a/src/Install/Console/InstallCommand.php +++ b/src/Install/Console/InstallCommand.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Install\Console; use Flarum\Console\Command; use Flarum\Core\Model; @@ -129,7 +139,7 @@ class InstallCommand extends Command protected function runMigrations() { - $this->container->bind('Illuminate\Database\Schema\Builder', function($container) { + $this->container->bind('Illuminate\Database\Schema\Builder', function ($container) { return $container->make('Illuminate\Database\ConnectionInterface')->getSchemaBuilder(); }); diff --git a/src/Install/Console/ProvidesData.php b/src/Install/Console/ProvidesData.php index 83220a536..48e07503f 100644 --- a/src/Install/Console/ProvidesData.php +++ b/src/Install/Console/ProvidesData.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Install\Console; interface ProvidesData { diff --git a/src/Install/InstallServiceProvider.php b/src/Install/InstallServiceProvider.php index 223a3b681..0e74eef31 100644 --- a/src/Install/InstallServiceProvider.php +++ b/src/Install/InstallServiceProvider.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Install; use Flarum\Http\RouteCollection; use Flarum\Support\ServiceProvider; diff --git a/src/Locale/JsCompiler.php b/src/Locale/JsCompiler.php index 96b18e10f..8c9ec95dc 100644 --- a/src/Locale/JsCompiler.php +++ b/src/Locale/JsCompiler.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Locale; use Flarum\Assets\RevisionCompiler; diff --git a/src/Locale/LocaleManager.php b/src/Locale/LocaleManager.php index 82a73d183..f92d48d38 100644 --- a/src/Locale/LocaleManager.php +++ b/src/Locale/LocaleManager.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Locale; class LocaleManager { diff --git a/src/Locale/LocaleServiceProvider.php b/src/Locale/LocaleServiceProvider.php index 5806012b5..88d4f1f52 100644 --- a/src/Locale/LocaleServiceProvider.php +++ b/src/Locale/LocaleServiceProvider.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Locale; use Flarum\Events\RegisterLocales; use Flarum\Support\ServiceProvider; diff --git a/src/Locale/TranslationCompiler.php b/src/Locale/TranslationCompiler.php index ce625007a..dace2b8a2 100644 --- a/src/Locale/TranslationCompiler.php +++ b/src/Locale/TranslationCompiler.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Locale; use Symfony\Component\Yaml\Yaml; diff --git a/src/Locale/Translator.php b/src/Locale/Translator.php index ace8f609f..fef2a4361 100644 --- a/src/Locale/Translator.php +++ b/src/Locale/Translator.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Locale; use Symfony\Component\Translation\TranslatorInterface; use Closure; diff --git a/src/Migrations/DatabaseMigrationRepository.php b/src/Migrations/DatabaseMigrationRepository.php index 6438110f6..e7ca9a6e6 100755 --- a/src/Migrations/DatabaseMigrationRepository.php +++ b/src/Migrations/DatabaseMigrationRepository.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + namespace Flarum\Migrations; use Illuminate\Database\ConnectionResolverInterface as Resolver; diff --git a/src/Migrations/Migration.php b/src/Migrations/Migration.php index 8706625ae..08841d29a 100644 --- a/src/Migrations/Migration.php +++ b/src/Migrations/Migration.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Migrations; use Illuminate\Database\Schema\Builder; diff --git a/src/Migrations/MigrationRepositoryInterface.php b/src/Migrations/MigrationRepositoryInterface.php index fe8e9d612..f25763a97 100755 --- a/src/Migrations/MigrationRepositoryInterface.php +++ b/src/Migrations/MigrationRepositoryInterface.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + namespace Flarum\Migrations; interface MigrationRepositoryInterface diff --git a/src/Migrations/Migrator.php b/src/Migrations/Migrator.php index 5f0fcac3a..69a11179a 100755 --- a/src/Migrations/Migrator.php +++ b/src/Migrations/Migrator.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + namespace Flarum\Migrations; use Illuminate\Support\Str; diff --git a/src/Seeders/ConfigTableSeeder.php b/src/Seeders/ConfigTableSeeder.php deleted file mode 100644 index 2e2017b86..000000000 --- a/src/Seeders/ConfigTableSeeder.php +++ /dev/null @@ -1,33 +0,0 @@ - 'http://flarum.dev/api', - 'base_url' => 'http://flarum.dev', - 'forum_title' => 'Flarum Demo Forum', - 'welcome_message' => 'Flarum is now at a point where you can have basic conversations, so here is a little demo for you to break.', - 'welcome_title' => 'Welcome to Flarum Demo Forum', - 'extensions_enabled' => '[]', - 'locale' => 'en', - 'theme_primary_color' => '#536F90', - 'theme_secondary_color' => '#536F90', - 'theme_dark_mode' => false, - 'theme_colored_header' => false, - ]; - - app('db')->table('config')->insert(array_map(function ($key, $value) { - return compact('key', 'value'); - }, array_keys($config), $config)); - } -} diff --git a/src/Seeders/DiscussionsTableSeeder.php b/src/Seeders/DiscussionsTableSeeder.php deleted file mode 100644 index c7d58a5b9..000000000 --- a/src/Seeders/DiscussionsTableSeeder.php +++ /dev/null @@ -1,134 +0,0 @@ - str_replace("'", '', rtrim($faker->realText(rand(20, 80)), '.')), - 'start_time' => $faker->dateTimeThisYear, - 'start_user_id' => rand(1, $users) - ]); - $discussion->comments_count = $posts_count; - - $post = CommentPost::create([ - 'discussion_id' => $discussion->id, - 'number' => 1, - 'time' => $discussion->start_time, - 'user_id' => $discussion->start_user_id, - 'content' => $faker->realText(rand(100, 1000)) - ]); - - $discussion->start_post_id = $post->id; - - $discussion->last_time = $post->time; - $discussion->last_user_id = $post->user_id; - $discussion->last_post_id = $post->id; - $discussion->last_post_number = $post->number; - $discussion->number_index = $post->number; - - $lastPost = null; - $count = $posts_count; - $posts = []; - $startTime = $discussion->start_time; - $numberOffset = 0; - - for ($j = 0; $j < $count - 1; $j++) { - if (rand(1, 100) == 1) { - $discussion->comments_count--; - - $post = DiscussionRenamedPost::create([ - 'discussion_id' => $discussion->id, - 'time' => $startTime = date_add($startTime, date_interval_create_from_date_string('1 second')), - 'user_id' => rand(1, $users), - 'content' => json_encode(array($faker->realText(rand(20, 40)), $discussion->title)) - ]); - } else { - $edited = rand(1, 20) == 1; - $hidden = rand(1, 100) == 1; - - if ($hidden) { - $discussion->comments_count--; - } - - $post = CommentPost::create([ - 'discussion_id' => $discussion->id, - 'number' => $j + 2 + $numberOffset, - 'time' => $startTime = date_add($startTime, date_interval_create_from_date_string('1 second')), - 'user_id' => rand(1, $users), - 'content' => $faker->realText(rand(50, 500)), - 'edit_time' => $edited ? $startTime = date_add($startTime, date_interval_create_from_date_string('1 second')) : null, - 'edit_user_id' => $edited ? rand(1, $users) : null, - 'hide_time' => $hidden ? $startTime = date_add($startTime, date_interval_create_from_date_string('1 second')) : null, - 'hide_user_id' => $hidden ? rand(1, $users) : null, - ]); - - $posts[] = $post; - - if (! $lastPost or $post->time >= $lastPost->time) { - $lastPost = $post; - } - } - - if (rand(1, 20) == 1) { - $numberOffset += rand(0, 3); - } - } - - // Update the discussion's last post details. - if ($lastPost) { - $discussion->last_time = $lastPost->time; - $discussion->last_user_id = $lastPost->user_id; - $discussion->last_post_id = $lastPost->id; - $discussion->last_post_number = $lastPost->number; - } - - $discussion->number_index = $j + 1 + $numberOffset; - - $discussion->save(); - - // Give some users some random discussion state data. - for ($j = rand(0, 100); $j < 100; $j++) { - try { - DiscussionState::create([ - 'discussion_id' => $discussion->id, - 'user_id' => rand(1, $users), - 'read_number' => rand(0, $posts_count - 1), - 'read_time' => $faker->dateTimeBetween($discussion->start_time, 'now') - ]); - } catch (\Illuminate\Database\QueryException $e) { - } - } - } - - // Update user post and discussion counts. - $prefix = app('db')->getTablePrefix(); - app('db')->table('users')->update([ - 'discussions_count' => app('db')->raw('(SELECT COUNT(id) FROM '.$prefix.'discussions WHERE start_user_id = '.$prefix.'users.id)'), - 'comments_count' => app('db')->raw('(SELECT COUNT(id) FROM '.$prefix.'posts WHERE user_id = '.$prefix.'users.id and type = \'comment\')'), - ]); - } -} diff --git a/src/Seeders/GroupsTableSeeder.php b/src/Seeders/GroupsTableSeeder.php deleted file mode 100644 index eea3bfccf..000000000 --- a/src/Seeders/GroupsTableSeeder.php +++ /dev/null @@ -1,34 +0,0 @@ - $group[0], - 'name_plural' => $group[1], - 'color' => $group[2], - 'icon' => $group[3] - ]); - } - } -} diff --git a/src/Seeders/PermissionsTableSeeder.php b/src/Seeders/PermissionsTableSeeder.php deleted file mode 100644 index 85292636c..000000000 --- a/src/Seeders/PermissionsTableSeeder.php +++ /dev/null @@ -1,43 +0,0 @@ - $permission[0], - 'permission' => $permission[1] - ]; - } - Permission::insert($permissions); - } -} diff --git a/src/Seeders/UsersTableSeeder.php b/src/Seeders/UsersTableSeeder.php deleted file mode 100644 index d0787a9cf..000000000 --- a/src/Seeders/UsersTableSeeder.php +++ /dev/null @@ -1,41 +0,0 @@ - str_replace('.', '_', $faker->userName), - 'email' => $faker->safeEmail, - 'is_activated' => true, - 'password' => 'password', - 'join_time' => $faker->dateTimeThisYear - ]); - - // Assign the users to the 'Member' group, and possibly some others. - $user->groups()->attach(3); - if (rand(1, 50) == 1) { - $user->groups()->attach(4); - } - if (rand(1, 20) == 1) { - $user->groups()->attach(5); - } - if (rand(1, 20) == 1) { - $user->groups()->attach(1); - } - } - } -} diff --git a/src/Support/Action.php b/src/Support/Action.php index bab852e97..3cfd50df4 100644 --- a/src/Support/Action.php +++ b/src/Support/Action.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Support; use Psr\Http\Message\ServerRequestInterface as Request; use Zend\Diactoros\Response\EmptyResponse; diff --git a/src/Support/ClientAction.php b/src/Support/ClientAction.php index 88e684066..35c4a73f6 100644 --- a/src/Support/ClientAction.php +++ b/src/Support/ClientAction.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Support; use Flarum\Api\Client; use Flarum\Assets\AssetManager; diff --git a/src/Support/ClientView.php b/src/Support/ClientView.php index 9a6592d95..09ae0121c 100644 --- a/src/Support/ClientView.php +++ b/src/Support/ClientView.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Support; use Flarum\Api\Client; use Flarum\Assets\AssetManager; diff --git a/src/Support/Extension.php b/src/Support/Extension.php index 4016cc09e..4fd866dcb 100644 --- a/src/Support/Extension.php +++ b/src/Support/Extension.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Support; use Flarum\Support\ServiceProvider; use Illuminate\Events\Dispatcher; diff --git a/src/Support/ExtensionManager.php b/src/Support/ExtensionManager.php index 2eb917d5c..e2e7c9231 100644 --- a/src/Support/ExtensionManager.php +++ b/src/Support/ExtensionManager.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Support; use Flarum\Support\ServiceProvider; use Flarum\Core\Settings\SettingsRepository; @@ -79,7 +89,7 @@ class ExtensionManager { $migrationDir = base_path('../extensions/' . $extension . '/migrations'); - $this->app->bind('Illuminate\Database\Schema\Builder', function($container) { + $this->app->bind('Illuminate\Database\Schema\Builder', function ($container) { return $container->make('Illuminate\Database\ConnectionInterface')->getSchemaBuilder(); }); diff --git a/src/Support/ExtensionsServiceProvider.php b/src/Support/ExtensionsServiceProvider.php index 7834d9ab3..2e42aca1f 100644 --- a/src/Support/ExtensionsServiceProvider.php +++ b/src/Support/ExtensionsServiceProvider.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Support; class ExtensionsServiceProvider extends ServiceProvider { diff --git a/src/Support/HtmlAction.php b/src/Support/HtmlAction.php index 856f4d87c..34ddd2275 100644 --- a/src/Support/HtmlAction.php +++ b/src/Support/HtmlAction.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Support; use Psr\Http\Message\ServerRequestInterface as Request; use Zend\Diactoros\Response; diff --git a/src/Support/ServiceProvider.php b/src/Support/ServiceProvider.php index b50ac38f3..737c7b108 100644 --- a/src/Support/ServiceProvider.php +++ b/src/Support/ServiceProvider.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Support; use Illuminate\Support\ServiceProvider as IlluminateServiceProvider; diff --git a/src/helpers.php b/src/helpers.php index 1fe28f1d1..488ef8644 100644 --- a/src/helpers.php +++ b/src/helpers.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + use Illuminate\Container\Container; if (! function_exists('app')) {