From 54ec8364d5e7b31b1c757a5197bc964501339550 Mon Sep 17 00:00:00 2001 From: Franz Liedke Date: Thu, 27 Aug 2015 01:40:18 +0200 Subject: [PATCH] Coding standards --- framework/core/src/Admin/Actions/ClientAction.php | 2 +- framework/core/src/Admin/AdminServiceProvider.php | 2 +- .../Admin/Middleware/LoginWithCookieAndCheckAdmin.php | 2 +- framework/core/src/Api/AccessToken.php | 2 +- framework/core/src/Api/Actions/Action.php | 2 +- framework/core/src/Api/Actions/ConfigAction.php | 2 +- framework/core/src/Api/Actions/CreateAction.php | 2 +- framework/core/src/Api/Actions/DeleteAction.php | 2 +- .../core/src/Api/Actions/Discussions/CreateAction.php | 2 +- .../core/src/Api/Actions/Discussions/DeleteAction.php | 2 +- .../core/src/Api/Actions/Discussions/IndexAction.php | 2 +- .../core/src/Api/Actions/Discussions/ShowAction.php | 2 +- .../core/src/Api/Actions/Discussions/UpdateAction.php | 2 +- .../core/src/Api/Actions/Extensions/DeleteAction.php | 2 +- .../core/src/Api/Actions/Extensions/UpdateAction.php | 2 +- framework/core/src/Api/Actions/ForgotAction.php | 2 +- framework/core/src/Api/Actions/Forum/ShowAction.php | 2 +- framework/core/src/Api/Actions/Forum/UpdateAction.php | 2 +- framework/core/src/Api/Actions/Groups/CreateAction.php | 2 +- framework/core/src/Api/Actions/Groups/DeleteAction.php | 2 +- framework/core/src/Api/Actions/Groups/IndexAction.php | 2 +- framework/core/src/Api/Actions/Groups/UpdateAction.php | 2 +- framework/core/src/Api/Actions/JsonApiAction.php | 2 +- .../core/src/Api/Actions/Notifications/IndexAction.php | 2 +- .../core/src/Api/Actions/Notifications/UpdateAction.php | 2 +- framework/core/src/Api/Actions/PermissionAction.php | 2 +- framework/core/src/Api/Actions/Posts/CreateAction.php | 2 +- framework/core/src/Api/Actions/Posts/DeleteAction.php | 2 +- framework/core/src/Api/Actions/Posts/GetsPosts.php | 2 +- framework/core/src/Api/Actions/Posts/IndexAction.php | 2 +- framework/core/src/Api/Actions/Posts/ShowAction.php | 2 +- framework/core/src/Api/Actions/Posts/UpdateAction.php | 2 +- framework/core/src/Api/Actions/SerializeAction.php | 2 +- .../core/src/Api/Actions/SerializeCollectionAction.php | 2 +- .../core/src/Api/Actions/SerializeResourceAction.php | 2 +- framework/core/src/Api/Actions/TokenAction.php | 2 +- framework/core/src/Api/Actions/Users/CreateAction.php | 2 +- framework/core/src/Api/Actions/Users/DeleteAction.php | 2 +- .../core/src/Api/Actions/Users/DeleteAvatarAction.php | 2 +- framework/core/src/Api/Actions/Users/IndexAction.php | 2 +- framework/core/src/Api/Actions/Users/ShowAction.php | 2 +- framework/core/src/Api/Actions/Users/UpdateAction.php | 2 +- .../core/src/Api/Actions/Users/UploadAvatarAction.php | 2 +- framework/core/src/Api/ApiServiceProvider.php | 2 +- framework/core/src/Api/Client.php | 2 +- framework/core/src/Api/Commands/GenerateAccessToken.php | 2 +- .../core/src/Api/Commands/GenerateAccessTokenHandler.php | 2 +- framework/core/src/Api/JsonApiRequest.php | 2 +- framework/core/src/Api/Middleware/JsonApiErrors.php | 2 +- framework/core/src/Api/Middleware/LoginWithHeader.php | 2 +- framework/core/src/Api/Middleware/ReadJsonParameters.php | 2 +- framework/core/src/Api/Request.php | 2 +- framework/core/src/Api/Response.php | 2 +- .../core/src/Api/Serializers/ActivitySerializer.php | 2 +- .../core/src/Api/Serializers/CurrentUserSerializer.php | 2 +- .../src/Api/Serializers/DiscussionBasicSerializer.php | 2 +- .../core/src/Api/Serializers/DiscussionSerializer.php | 2 +- framework/core/src/Api/Serializers/ForumSerializer.php | 2 +- framework/core/src/Api/Serializers/GroupSerializer.php | 2 +- .../core/src/Api/Serializers/NotificationSerializer.php | 2 +- .../core/src/Api/Serializers/PostBasicSerializer.php | 2 +- framework/core/src/Api/Serializers/PostSerializer.php | 2 +- framework/core/src/Api/Serializers/Serializer.php | 2 +- .../core/src/Api/Serializers/UserBasicSerializer.php | 2 +- framework/core/src/Api/Serializers/UserSerializer.php | 2 +- framework/core/src/Assets/AssetManager.php | 2 +- framework/core/src/Assets/Compiler.php | 2 +- framework/core/src/Assets/JsCompiler.php | 2 +- framework/core/src/Assets/LessCompiler.php | 2 +- framework/core/src/Assets/RevisionCompiler.php | 2 +- framework/core/src/Console/Command.php | 2 +- framework/core/src/Console/GenerateExtensionCommand.php | 2 +- framework/core/src/Console/ImportCommand.php | 2 +- framework/core/src/Console/UpgradeCommand.php | 2 +- framework/core/src/Core.php | 2 +- framework/core/src/Core/Application.php | 5 +++-- framework/core/src/Core/CoreServiceProvider.php | 2 +- framework/core/src/Core/DatabaseServiceProvider.php | 2 +- .../src/Core/Discussions/Commands/DeleteDiscussion.php | 2 +- .../Discussions/Commands/DeleteDiscussionHandler.php | 2 +- .../src/Core/Discussions/Commands/EditDiscussion.php | 2 +- .../Core/Discussions/Commands/EditDiscussionHandler.php | 2 +- .../src/Core/Discussions/Commands/ReadDiscussion.php | 2 +- .../Core/Discussions/Commands/ReadDiscussionHandler.php | 2 +- .../src/Core/Discussions/Commands/StartDiscussion.php | 2 +- .../Core/Discussions/Commands/StartDiscussionHandler.php | 2 +- framework/core/src/Core/Discussions/Discussion.php | 2 +- .../core/src/Core/Discussions/DiscussionRepository.php | 2 +- framework/core/src/Core/Discussions/DiscussionState.php | 2 +- .../src/Core/Discussions/DiscussionsServiceProvider.php | 2 +- .../Discussions/Listeners/DiscussionMetadataUpdater.php | 2 +- .../src/Core/Discussions/Search/DiscussionSearch.php | 2 +- .../src/Core/Discussions/Search/DiscussionSearcher.php | 2 +- .../core/src/Core/Discussions/Search/Fulltext/Driver.php | 2 +- .../Discussions/Search/Fulltext/MySqlFulltextDriver.php | 2 +- .../src/Core/Discussions/Search/Gambits/AuthorGambit.php | 2 +- .../Core/Discussions/Search/Gambits/FulltextGambit.php | 2 +- .../src/Core/Discussions/Search/Gambits/UnreadGambit.php | 2 +- .../Exceptions/InvalidConfirmationTokenException.php | 2 +- .../src/Core/Exceptions/PermissionDeniedException.php | 2 +- .../core/src/Core/Exceptions/ValidationException.php | 2 +- framework/core/src/Core/Formatter/Formatter.php | 2 +- .../core/src/Core/Formatter/FormatterServiceProvider.php | 2 +- framework/core/src/Core/Forum.php | 2 +- framework/core/src/Core/Groups/Commands/CreateGroup.php | 2 +- .../core/src/Core/Groups/Commands/CreateGroupHandler.php | 2 +- framework/core/src/Core/Groups/Commands/DeleteGroup.php | 2 +- .../core/src/Core/Groups/Commands/DeleteGroupHandler.php | 2 +- framework/core/src/Core/Groups/Commands/EditGroup.php | 2 +- .../core/src/Core/Groups/Commands/EditGroupHandler.php | 2 +- framework/core/src/Core/Groups/Group.php | 2 +- framework/core/src/Core/Groups/GroupRepository.php | 2 +- framework/core/src/Core/Groups/GroupsServiceProvider.php | 2 +- framework/core/src/Core/Groups/Permission.php | 2 +- framework/core/src/Core/Model.php | 2 +- framework/core/src/Core/Notifications/Blueprint.php | 2 +- .../src/Core/Notifications/Commands/ReadNotification.php | 2 +- .../Notifications/Commands/ReadNotificationHandler.php | 2 +- .../Core/Notifications/DiscussionRenamedBlueprint.php | 2 +- .../Listeners/DiscussionRenamedNotifier.php | 2 +- .../core/src/Core/Notifications/MailableBlueprint.php | 2 +- framework/core/src/Core/Notifications/Notification.php | 2 +- .../core/src/Core/Notifications/NotificationMailer.php | 2 +- .../src/Core/Notifications/NotificationRepository.php | 2 +- .../core/src/Core/Notifications/NotificationSyncer.php | 2 +- .../Core/Notifications/NotificationsServiceProvider.php | 2 +- framework/core/src/Core/Posts/Commands/DeletePost.php | 2 +- .../core/src/Core/Posts/Commands/DeletePostHandler.php | 2 +- framework/core/src/Core/Posts/Commands/EditPost.php | 2 +- .../core/src/Core/Posts/Commands/EditPostHandler.php | 2 +- framework/core/src/Core/Posts/Commands/PostReply.php | 2 +- .../core/src/Core/Posts/Commands/PostReplyHandler.php | 2 +- framework/core/src/Core/Posts/CommentPost.php | 2 +- framework/core/src/Core/Posts/DiscussionRenamedPost.php | 2 +- framework/core/src/Core/Posts/EventPost.php | 2 +- framework/core/src/Core/Posts/MergeablePost.php | 2 +- framework/core/src/Core/Posts/Post.php | 2 +- framework/core/src/Core/Posts/PostRepository.php | 2 +- framework/core/src/Core/Posts/PostsServiceProvider.php | 2 +- framework/core/src/Core/Posts/RegisteredTypesScope.php | 2 +- .../core/src/Core/Search/AppliesParametersToSearch.php | 2 +- framework/core/src/Core/Search/Gambit.php | 2 +- framework/core/src/Core/Search/GambitManager.php | 2 +- framework/core/src/Core/Search/RegexGambit.php | 2 +- framework/core/src/Core/Search/Search.php | 2 +- framework/core/src/Core/Search/SearchCriteria.php | 2 +- framework/core/src/Core/Search/SearchResults.php | 2 +- .../core/src/Core/Settings/SettingsServiceProvider.php | 2 +- framework/core/src/Core/Support/DispatchesEvents.php | 2 +- framework/core/src/Core/Support/EventGenerator.php | 2 +- framework/core/src/Core/Support/Locked.php | 2 +- framework/core/src/Core/Support/ValidatesBeforeSave.php | 2 +- framework/core/src/Core/Support/VisibleScope.php | 2 +- framework/core/src/Core/Users/Commands/ConfirmEmail.php | 2 +- .../core/src/Core/Users/Commands/ConfirmEmailHandler.php | 2 +- framework/core/src/Core/Users/Commands/DeleteAvatar.php | 2 +- .../core/src/Core/Users/Commands/DeleteAvatarHandler.php | 2 +- framework/core/src/Core/Users/Commands/DeleteUser.php | 2 +- .../core/src/Core/Users/Commands/DeleteUserHandler.php | 2 +- framework/core/src/Core/Users/Commands/EditUser.php | 2 +- .../core/src/Core/Users/Commands/EditUserHandler.php | 2 +- framework/core/src/Core/Users/Commands/RegisterUser.php | 2 +- .../core/src/Core/Users/Commands/RegisterUserHandler.php | 2 +- .../src/Core/Users/Commands/RequestPasswordReset.php | 2 +- .../Core/Users/Commands/RequestPasswordResetHandler.php | 2 +- framework/core/src/Core/Users/Commands/UploadAvatar.php | 2 +- .../core/src/Core/Users/Commands/UploadAvatarHandler.php | 2 +- framework/core/src/Core/Users/EmailToken.php | 2 +- framework/core/src/Core/Users/Guest.php | 2 +- .../src/Core/Users/Listeners/EmailConfirmationMailer.php | 2 +- .../src/Core/Users/Listeners/UserMetadataUpdater.php | 2 +- framework/core/src/Core/Users/PasswordToken.php | 2 +- framework/core/src/Core/Users/Permission.php | 2 +- .../src/Core/Users/Search/Gambits/FulltextGambit.php | 2 +- framework/core/src/Core/Users/Search/UserSearch.php | 2 +- framework/core/src/Core/Users/Search/UserSearcher.php | 2 +- framework/core/src/Core/Users/User.php | 2 +- framework/core/src/Core/Users/UserRepository.php | 2 +- framework/core/src/Core/Users/UsersServiceProvider.php | 2 +- framework/core/src/Events/ApiAttributes.php | 2 +- framework/core/src/Events/ApiRelationship.php | 2 +- framework/core/src/Events/AvatarWillBeDeleted.php | 2 +- framework/core/src/Events/AvatarWillBeSaved.php | 2 +- framework/core/src/Events/BuildApiAction.php | 2 +- framework/core/src/Events/BuildClientView.php | 2 +- .../core/src/Events/DiscussionSearchWillBePerformed.php | 2 +- framework/core/src/Events/DiscussionStateWillBeSaved.php | 2 +- framework/core/src/Events/DiscussionWasDeleted.php | 2 +- framework/core/src/Events/DiscussionWasRead.php | 2 +- framework/core/src/Events/DiscussionWasRenamed.php | 2 +- framework/core/src/Events/DiscussionWasStarted.php | 2 +- framework/core/src/Events/DiscussionWillBeDeleted.php | 2 +- framework/core/src/Events/DiscussionWillBeSaved.php | 2 +- framework/core/src/Events/FormatterConfigurator.php | 2 +- framework/core/src/Events/FormatterParser.php | 2 +- framework/core/src/Events/FormatterRenderer.php | 2 +- framework/core/src/Events/GetUserGroups.php | 2 +- framework/core/src/Events/GroupWasCreated.php | 2 +- framework/core/src/Events/GroupWasDeleted.php | 2 +- framework/core/src/Events/GroupWasRenamed.php | 2 +- framework/core/src/Events/GroupWillBeDeleted.php | 2 +- framework/core/src/Events/GroupWillBeSaved.php | 2 +- framework/core/src/Events/ModelAllow.php | 2 +- framework/core/src/Events/ModelDates.php | 2 +- framework/core/src/Events/ModelRelationship.php | 2 +- framework/core/src/Events/ModelValidator.php | 2 +- framework/core/src/Events/NotificationWillBeSent.php | 2 +- framework/core/src/Events/PostWasDeleted.php | 2 +- framework/core/src/Events/PostWasHidden.php | 2 +- framework/core/src/Events/PostWasPosted.php | 2 +- framework/core/src/Events/PostWasRestored.php | 2 +- framework/core/src/Events/PostWasRevised.php | 2 +- framework/core/src/Events/PostWillBeDeleted.php | 2 +- framework/core/src/Events/PostWillBeSaved.php | 2 +- framework/core/src/Events/RegisterApiRoutes.php | 2 +- framework/core/src/Events/RegisterDiscussionGambits.php | 2 +- framework/core/src/Events/RegisterForumRoutes.php | 2 +- framework/core/src/Events/RegisterLocales.php | 2 +- framework/core/src/Events/RegisterNotificationTypes.php | 2 +- framework/core/src/Events/RegisterPostTypes.php | 2 +- framework/core/src/Events/RegisterUserGambits.php | 2 +- framework/core/src/Events/RegisterUserPreferences.php | 2 +- framework/core/src/Events/ScopeModelVisibility.php | 2 +- framework/core/src/Events/ScopePostVisibility.php | 2 +- framework/core/src/Events/UserAvatarWasChanged.php | 2 +- framework/core/src/Events/UserBioWasChanged.php | 2 +- .../core/src/Events/UserEmailChangeWasRequested.php | 2 +- framework/core/src/Events/UserEmailWasChanged.php | 2 +- framework/core/src/Events/UserGroupsWereChanged.php | 2 +- framework/core/src/Events/UserLoggedIn.php | 2 +- framework/core/src/Events/UserLoggedOut.php | 2 +- framework/core/src/Events/UserPasswordWasChanged.php | 2 +- framework/core/src/Events/UserSearchWillBePerformed.php | 2 +- framework/core/src/Events/UserWasActivated.php | 2 +- framework/core/src/Events/UserWasDeleted.php | 2 +- framework/core/src/Events/UserWasRegistered.php | 2 +- framework/core/src/Events/UserWasRenamed.php | 2 +- framework/core/src/Events/UserWillBeDeleted.php | 2 +- framework/core/src/Events/UserWillBeSaved.php | 2 +- framework/core/src/Events/WillSerializeData.php | 2 +- framework/core/src/Forum/Actions/ClientAction.php | 2 +- framework/core/src/Forum/Actions/ConfirmEmailAction.php | 2 +- framework/core/src/Forum/Actions/DiscussionAction.php | 2 +- framework/core/src/Forum/Actions/IndexAction.php | 2 +- framework/core/src/Forum/Actions/LoginAction.php | 2 +- framework/core/src/Forum/Actions/LogoutAction.php | 2 +- framework/core/src/Forum/Actions/ResetPasswordAction.php | 2 +- framework/core/src/Forum/Actions/SavePasswordAction.php | 2 +- .../core/src/Forum/Actions/WritesRememberCookie.php | 2 +- framework/core/src/Forum/ForumServiceProvider.php | 2 +- framework/core/src/Forum/Middleware/HandleErrors.php | 2 +- framework/core/src/Forum/Middleware/LoginWithCookie.php | 2 +- framework/core/src/Install/Actions/IndexAction.php | 2 +- framework/core/src/Install/Actions/InstallAction.php | 2 +- framework/core/src/Install/Console/DataFromUser.php | 2 +- framework/core/src/Install/Console/DefaultData.php | 2 +- framework/core/src/Install/Console/ProvidesData.php | 2 +- framework/core/src/Install/InstallServiceProvider.php | 2 +- framework/core/src/Locale/JsCompiler.php | 2 +- framework/core/src/Locale/LocaleManager.php | 2 +- framework/core/src/Locale/LocaleServiceProvider.php | 2 +- framework/core/src/Locale/TranslationCompiler.php | 2 +- framework/core/src/Locale/Translator.php | 2 +- framework/core/src/Migrations/Migration.php | 2 +- framework/core/src/Migrations/Migrator.php | 9 +++++---- framework/core/src/Support/ClientAction.php | 2 +- framework/core/src/Support/ClientView.php | 2 +- framework/core/src/Support/Extension.php | 2 +- framework/core/src/Support/ExtensionManager.php | 2 +- framework/core/src/Support/ExtensionsServiceProvider.php | 2 +- framework/core/src/Support/HtmlAction.php | 2 +- framework/core/src/Support/ServiceProvider.php | 2 +- 272 files changed, 278 insertions(+), 276 deletions(-) diff --git a/framework/core/src/Admin/Actions/ClientAction.php b/framework/core/src/Admin/Actions/ClientAction.php index e0834468b..5973598cd 100644 --- a/framework/core/src/Admin/Actions/ClientAction.php +++ b/framework/core/src/Admin/Actions/ClientAction.php @@ -1,4 +1,4 @@ -afterBootstrapping( - 'Illuminate\Foundation\Bootstrap\DetectEnvironment', $callback + 'Illuminate\Foundation\Bootstrap\DetectEnvironment', + $callback ); } diff --git a/framework/core/src/Core/CoreServiceProvider.php b/framework/core/src/Core/CoreServiceProvider.php index 8ea16c4b6..9a95a552d 100644 --- a/framework/core/src/Core/CoreServiceProvider.php +++ b/framework/core/src/Core/CoreServiceProvider.php @@ -1,4 +1,4 @@ -files = $files; $this->resolver = $resolver; $this->repository = $repository; diff --git a/framework/core/src/Support/ClientAction.php b/framework/core/src/Support/ClientAction.php index 35c4a73f6..40f110ea8 100644 --- a/framework/core/src/Support/ClientAction.php +++ b/framework/core/src/Support/ClientAction.php @@ -1,4 +1,4 @@ -