From 090b71e51d8811537367840358f8c5bae887e55a Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Tue, 19 Jan 2021 08:20:23 +0100 Subject: [PATCH] Replace `integer` with `int` in PHP documentation --- wcfsetup/install.php | 12 +-- .../acp/action/InstallPackageAction.class.php | 4 +- .../action/UninstallPackageAction.class.php | 2 +- .../acp/action/UserExportGdprAction.class.php | 2 +- .../action/UserQuickSearchAction.class.php | 6 +- .../acp/action/WorkerProxyAction.class.php | 4 +- .../form/AbstractBulkProcessingForm.class.php | 2 +- .../form/AbstractCategoryAddForm.class.php | 12 +-- .../form/AbstractCategoryEditForm.class.php | 2 +- .../form/AbstractCustomOptionForm.class.php | 4 +- .../files/lib/acp/form/AdAddForm.class.php | 6 +- .../files/lib/acp/form/AdEditForm.class.php | 2 +- .../acp/form/ApplicationEditForm.class.php | 4 +- .../lib/acp/form/ArticleAddForm.class.php | 10 +-- .../lib/acp/form/ArticleEditForm.class.php | 2 +- .../lib/acp/form/BBCodeEditForm.class.php | 2 +- .../form/BBCodeMediaProviderAddForm.class.php | 2 +- .../BBCodeMediaProviderEditForm.class.php | 2 +- .../files/lib/acp/form/BoxAddForm.class.php | 8 +- .../files/lib/acp/form/BoxEditForm.class.php | 2 +- .../acp/form/CaptchaQuestionAddForm.class.php | 2 +- .../form/CaptchaQuestionEditForm.class.php | 2 +- .../form/ContactRecipientAddForm.class.php | 4 +- .../form/ContactRecipientEditForm.class.php | 2 +- .../lib/acp/form/CronjobAddForm.class.php | 2 +- .../lib/acp/form/CronjobEditForm.class.php | 2 +- .../lib/acp/form/DataImportForm.class.php | 2 +- .../DevtoolsProjectPipEntryAddForm.class.php | 2 +- .../files/lib/acp/form/LabelAddForm.class.php | 4 +- .../lib/acp/form/LabelEditForm.class.php | 2 +- .../lib/acp/form/LabelGroupAddForm.class.php | 6 +- .../lib/acp/form/LabelGroupEditForm.class.php | 2 +- .../lib/acp/form/LanguageAddForm.class.php | 2 +- .../lib/acp/form/LanguageEditForm.class.php | 2 +- .../lib/acp/form/LanguageExportForm.class.php | 4 +- .../lib/acp/form/LanguageImportForm.class.php | 2 +- .../LanguageMultilingualismForm.class.php | 4 +- .../files/lib/acp/form/MenuAddForm.class.php | 4 +- .../files/lib/acp/form/MenuEditForm.class.php | 2 +- .../lib/acp/form/MenuItemAddForm.class.php | 10 +-- .../lib/acp/form/MenuItemEditForm.class.php | 2 +- .../lib/acp/form/NoticeAddForm.class.php | 8 +- .../lib/acp/form/NoticeEditForm.class.php | 4 +- .../files/lib/acp/form/OptionForm.class.php | 2 +- .../PackageUpdateServerEditForm.class.php | 2 +- .../files/lib/acp/form/PageAddForm.class.php | 12 +-- .../files/lib/acp/form/PageEditForm.class.php | 2 +- .../form/PaidSubscriptionAddForm.class.php | 8 +- .../form/PaidSubscriptionEditForm.class.php | 2 +- .../PaidSubscriptionUserAddForm.class.php | 2 +- .../PaidSubscriptionUserEditForm.class.php | 2 +- .../lib/acp/form/SitemapEditForm.class.php | 4 +- .../lib/acp/form/SmileyAddForm.class.php | 4 +- .../lib/acp/form/SmileyEditForm.class.php | 2 +- .../files/lib/acp/form/StyleAddForm.class.php | 4 +- .../lib/acp/form/StyleEditForm.class.php | 2 +- .../lib/acp/form/StyleExportForm.class.php | 2 +- .../acp/form/StyleGlobalValuesForm.class.php | 2 +- .../files/lib/acp/form/TagEditForm.class.php | 2 +- .../lib/acp/form/TemplateAddForm.class.php | 6 +- .../lib/acp/form/TemplateEditForm.class.php | 2 +- .../acp/form/TemplateGroupAddForm.class.php | 4 +- .../acp/form/TemplateGroupEditForm.class.php | 2 +- .../lib/acp/form/TrophyAddForm.class.php | 2 +- .../UserActivityPointOptionForm.class.php | 2 +- .../files/lib/acp/form/UserAddForm.class.php | 8 +- .../acp/form/UserAssignToGroupForm.class.php | 6 +- .../UserContentRevertChangesForm.class.php | 6 +- .../files/lib/acp/form/UserEditForm.class.php | 8 +- .../form/UserEmailAddressExportForm.class.php | 4 +- .../lib/acp/form/UserGroupAddForm.class.php | 4 +- .../form/UserGroupAssignmentAddForm.class.php | 4 +- .../UserGroupAssignmentEditForm.class.php | 2 +- .../lib/acp/form/UserGroupEditForm.class.php | 2 +- .../acp/form/UserGroupOptionForm.class.php | 2 +- .../files/lib/acp/form/UserMailForm.class.php | 6 +- .../lib/acp/form/UserMergeForm.class.php | 8 +- .../lib/acp/form/UserOptionAddForm.class.php | 6 +- .../form/UserOptionCategoryAddForm.class.php | 2 +- .../form/UserOptionCategoryEditForm.class.php | 2 +- .../lib/acp/form/UserOptionEditForm.class.php | 2 +- .../lib/acp/form/UserOptionListForm.class.php | 2 +- .../lib/acp/form/UserRankAddForm.class.php | 10 +-- .../lib/acp/form/UserRankEditForm.class.php | 2 +- .../lib/acp/form/UserSearchForm.class.php | 8 +- .../lib/acp/form/UserTrophyAddForm.class.php | 4 +- .../lib/acp/page/ACPSessionLogPage.class.php | 2 +- .../page/AbstractCategoryListPage.class.php | 4 +- .../lib/acp/page/ArticleListPage.class.php | 6 +- .../files/lib/acp/page/BoxListPage.class.php | 2 +- .../lib/acp/page/CacheListPage.class.php | 2 +- .../lib/acp/page/CronjobLogListPage.class.php | 4 +- .../DevtoolsProjectPipEntryListPage.class.php | 14 +-- .../page/DevtoolsProjectPipListPage.class.php | 2 +- .../page/DevtoolsProjectSyncPage.class.php | 2 +- .../lib/acp/page/LabelListPage.class.php | 2 +- .../acp/page/LanguageItemListPage.class.php | 6 +- .../lib/acp/page/MediaListPage.class.php | 2 +- .../lib/acp/page/MenuItemListPage.class.php | 2 +- .../PackageInstallationConfirmPage.class.php | 2 +- .../lib/acp/page/PackageListPage.class.php | 2 +- .../files/lib/acp/page/PackagePage.class.php | 6 +- .../lib/acp/page/PageBoxOrderPage.class.php | 2 +- .../files/lib/acp/page/PageListPage.class.php | 2 +- ...bscriptionTransactionLogListPage.class.php | 2 +- ...idSubscriptionTransactionLogPage.class.php | 2 +- .../PaidSubscriptionUserListPage.class.php | 2 +- .../lib/acp/page/SmileyListPage.class.php | 2 +- .../lib/acp/page/TemplateDiffPage.class.php | 4 +- .../lib/acp/page/TemplateListPage.class.php | 2 +- .../lib/acp/page/UserGroupListPage.class.php | 2 +- .../files/lib/acp/page/UserListPage.class.php | 6 +- .../lib/acp/page/UserTrophyListPage.class.php | 2 +- .../acp/page/VersionTrackerListPage.class.php | 6 +- .../lib/action/AJAXProxyAction.class.php | 2 +- .../BackgroundQueuePerformAction.class.php | 2 +- .../action/GravatarDownloadAction.class.php | 4 +- .../lib/action/MessageQuoteAction.class.php | 8 +- .../NotificationConfirmAction.class.php | 2 +- .../NotificationDisableAction.class.php | 4 +- .../files/lib/action/PollAction.class.php | 4 +- .../AbstractDatabaseObjectAction.class.php | 8 +- .../files/lib/data/DatabaseObject.class.php | 2 +- .../lib/data/DatabaseObjectList.class.php | 16 ++-- .../lib/data/I18nDatabaseObjectList.class.php | 2 +- .../lib/data/IDatabaseObjectAction.class.php | 2 +- .../files/lib/data/IDeleteAction.class.php | 2 +- .../files/lib/data/IEditableObject.class.php | 2 +- .../files/lib/data/IFeedEntry.class.php | 2 +- .../install/files/lib/data/IFile.class.php | 6 +- .../files/lib/data/IIDObject.class.php | 2 +- .../install/files/lib/data/IMessage.class.php | 2 +- .../data/IMessageQuickReplyAction.class.php | 2 +- .../files/lib/data/IObjectTreeNode.class.php | 4 +- .../files/lib/data/IPollContainer.class.php | 2 +- .../lib/data/ITraversableObject.class.php | 4 +- .../files/lib/data/IUserContent.class.php | 4 +- .../lib/data/TMultiCategoryObject.class.php | 8 +- .../files/lib/data/TObjectTreeNode.class.php | 10 +-- .../lib/data/acl/option/ACLOption.class.php | 8 +- .../category/ACLOptionCategory.class.php | 6 +- .../data/acp/menu/item/ACPMenuItem.class.php | 6 +- .../provider/ACPSearchProvider.class.php | 6 +- .../lib/data/acp/session/ACPSession.class.php | 6 +- .../access/log/ACPSessionAccessLog.class.php | 6 +- .../acp/session/log/ACPSessionLog.class.php | 8 +- .../data/acp/template/ACPTemplate.class.php | 4 +- .../install/files/lib/data/ad/Ad.class.php | 8 +- .../files/lib/data/ad/AdEditor.class.php | 2 +- .../data/application/Application.class.php | 6 +- .../files/lib/data/article/Article.class.php | 26 +++--- .../lib/data/article/ArticleAction.class.php | 2 +- .../article/CategoryArticleList.class.php | 2 +- .../data/article/FeedArticleList.class.php | 2 +- .../data/article/ViewableArticle.class.php | 26 +++--- .../category/ArticleCategory.class.php | 6 +- .../category/ArticleCategoryCache.class.php | 14 +-- .../category/ArticleCategoryNode.class.php | 4 +- .../article/content/ArticleContent.class.php | 16 ++-- .../content/ViewableArticleContent.class.php | 2 +- .../AdministrativeAttachmentList.class.php | 2 +- .../lib/data/attachment/Attachment.class.php | 36 ++++---- .../GroupedAttachmentList.class.php | 2 +- .../files/lib/data/bbcode/BBCode.class.php | 12 +-- .../attribute/BBCodeAttribute.class.php | 10 +-- .../provider/BBCodeMediaProvider.class.php | 2 +- .../install/files/lib/data/box/Box.class.php | 38 ++++---- .../files/lib/data/box/BoxEditor.class.php | 2 +- .../lib/data/box/content/BoxContent.class.php | 14 +-- .../question/CaptchaQuestion.class.php | 4 +- .../AbstractDecoratedCategory.class.php | 2 +- .../lib/data/category/Category.class.php | 14 +-- .../data/category/CategoryEditor.class.php | 14 +-- .../data/category/CategoryNodeTree.class.php | 18 ++-- .../action/ClipboardAction.class.php | 6 +- .../item/ClipboardItemAction.class.php | 2 +- .../files/lib/data/comment/Comment.class.php | 22 ++--- .../lib/data/comment/CommentAction.class.php | 10 +-- .../data/comment/StructuredComment.class.php | 4 +- .../comment/StructuredCommentList.class.php | 14 +-- .../data/comment/ViewableComment.class.php | 2 +- .../response/CommentResponse.class.php | 12 +-- .../response/CommentResponseAction.class.php | 4 +- .../StructuredCommentResponse.class.php | 2 +- .../StructuredCommentResponseList.class.php | 4 +- .../ViewableCommentResponse.class.php | 2 +- .../lib/data/condition/Condition.class.php | 6 +- .../recipient/ContactRecipient.class.php | 10 +-- .../lib/data/core/object/CoreObject.class.php | 4 +- .../files/lib/data/cronjob/Cronjob.class.php | 24 ++--- .../lib/data/cronjob/log/CronjobLog.class.php | 8 +- .../data/custom/option/CustomOption.class.php | 10 +-- .../DevtoolsMissingLanguageItem.class.php | 6 +- .../project/DevtoolsProject.class.php | 2 +- .../history/entry/EditHistoryEntry.class.php | 14 +-- .../event/listener/EventListener.class.php | 8 +- .../files/lib/data/label/Label.class.php | 6 +- .../lib/data/label/LabelEditor.class.php | 4 +- .../lib/data/label/group/LabelGroup.class.php | 8 +- .../label/group/ViewableLabelGroup.class.php | 14 +-- .../lib/data/language/Language.class.php | 10 +-- .../data/language/LanguageEditor.class.php | 14 +-- .../category/LanguageCategory.class.php | 2 +- .../data/language/item/LanguageItem.class.php | 16 ++-- .../files/lib/data/like/Like.class.php | 26 +++--- .../files/lib/data/like/LikeAction.class.php | 2 +- .../lib/data/like/ViewableLikeList.class.php | 2 +- .../data/like/object/ILikeObject.class.php | 6 +- .../lib/data/like/object/LikeObject.class.php | 24 ++--- .../files/lib/data/media/Media.class.php | 54 ++++++------ .../lib/data/media/MediaAction.class.php | 2 +- .../lib/data/media/ViewableMedia.class.php | 10 +-- .../files/lib/data/menu/Menu.class.php | 6 +- .../files/lib/data/menu/MenuCache.class.php | 6 +- .../lib/data/menu/item/MenuItem.class.php | 20 ++--- .../lib/data/menu/item/MenuItemNode.class.php | 12 +-- .../data/menu/item/MenuItemNodeTree.class.php | 10 +-- .../queue/ModerationQueue.class.php | 22 ++--- .../queue/ViewableModerationQueue.class.php | 2 +- .../log/ModificationLog.class.php | 12 +-- .../files/lib/data/notice/Notice.class.php | 10 +-- .../lib/data/notice/NoticeAction.class.php | 2 +- .../lib/data/notice/NoticeEditor.class.php | 2 +- .../object/type/IObjectTypeProvider.class.php | 4 +- .../lib/data/object/type/ObjectType.class.php | 6 +- .../object/type/ObjectTypeCache.class.php | 8 +- .../definition/ObjectTypeDefinition.class.php | 4 +- .../files/lib/data/option/Option.class.php | 12 +-- .../option/category/OptionCategory.class.php | 6 +- .../files/lib/data/package/Package.class.php | 14 +-- .../lib/data/package/PackageCache.class.php | 2 +- .../PackageInstallationPlugin.class.php | 4 +- .../queue/PackageInstallationQueue.class.php | 16 ++-- .../PackageInstallationQueueAction.class.php | 2 +- .../package/update/PackageUpdate.class.php | 8 +- .../update/PackageUpdateAction.class.php | 2 +- .../server/PackageUpdateServer.class.php | 12 +-- .../version/PackageUpdateVersion.class.php | 8 +- .../files/lib/data/page/Page.class.php | 32 +++---- .../files/lib/data/page/PageCache.class.php | 6 +- .../files/lib/data/page/PageEditor.class.php | 4 +- .../lib/data/page/PageLanguage.class.php | 8 +- .../files/lib/data/page/PageNode.class.php | 10 +-- .../lib/data/page/PageNodeTree.class.php | 10 +-- .../data/page/content/PageContent.class.php | 12 +-- .../subscription/PaidSubscription.class.php | 10 +-- .../PaidSubscriptionEditor.class.php | 2 +- .../PaidSubscriptionTransactionLog.class.php | 14 +-- .../user/PaidSubscriptionUser.class.php | 18 ++-- .../files/lib/data/poll/Poll.class.php | 22 ++--- .../lib/data/poll/option/PollOption.class.php | 10 +-- .../data/reaction/type/ReactionType.class.php | 4 +- .../reaction/type/ReactionTypeCache.class.php | 4 +- .../data/search/ISearchResultObject.class.php | 2 +- .../files/lib/data/search/Search.class.php | 6 +- .../search/keyword/SearchKeyword.class.php | 6 +- .../files/lib/data/session/Session.class.php | 10 +-- .../files/lib/data/smiley/Smiley.class.php | 10 +-- .../lib/data/smiley/SmileyCache.class.php | 2 +- .../smiley/category/SmileyCategory.class.php | 4 +- .../files/lib/data/spider/Spider.class.php | 2 +- .../lib/data/stat/daily/StatDaily.class.php | 8 +- .../files/lib/data/style/Style.class.php | 16 ++-- .../lib/data/style/StyleEditor.class.php | 4 +- .../style/variable/StyleVariable.class.php | 2 +- .../install/files/lib/data/tag/Tag.class.php | 8 +- .../files/lib/data/tag/TagAction.class.php | 2 +- .../files/lib/data/tag/TagCloudTag.class.php | 6 +- .../lib/data/template/Template.class.php | 8 +- .../data/template/TemplateEditor.class.php | 2 +- .../template/group/TemplateGroup.class.php | 12 +-- .../listener/TemplateListener.class.php | 6 +- .../files/lib/data/trophy/Trophy.class.php | 22 ++--- .../lib/data/trophy/TrophyCache.class.php | 8 +- .../lib/data/trophy/TrophyEditor.class.php | 2 +- .../category/TrophyCategoryCache.class.php | 4 +- .../files/lib/data/user/User.class.php | 66 +++++++------- .../files/lib/data/user/UserAction.class.php | 2 +- .../files/lib/data/user/UserEditor.class.php | 6 +- .../files/lib/data/user/UserProfile.class.php | 42 ++++----- .../event/UserActivityEvent.class.php | 12 +-- .../ViewableUserActivityEventList.class.php | 6 +- .../UserAuthenticationFailure.class.php | 8 +- .../data/user/avatar/DefaultAvatar.class.php | 8 +- .../lib/data/user/avatar/Gravatar.class.php | 6 +- .../data/user/avatar/IUserAvatar.class.php | 10 +-- .../lib/data/user/avatar/UserAvatar.class.php | 20 ++--- .../user/cover/photo/UserCoverPhoto.class.php | 4 +- .../lib/data/user/follow/UserFollow.class.php | 12 +-- .../lib/data/user/group/UserGroup.class.php | 44 +++++----- .../data/user/group/UserGroupEditor.class.php | 2 +- .../assignment/UserGroupAssignment.class.php | 6 +- .../group/option/UserGroupOption.class.php | 2 +- .../UserGroupOptionCategory.class.php | 6 +- .../lib/data/user/ignore/UserIgnore.class.php | 10 +-- .../user/menu/item/UserMenuItem.class.php | 6 +- .../notification/UserNotification.class.php | 30 +++---- .../event/UserNotificationEvent.class.php | 8 +- .../object/watch/UserObjectWatch.class.php | 16 ++-- .../lib/data/user/online/UserOnline.class.php | 6 +- .../user/online/UsersOnlineList.class.php | 4 +- .../lib/data/user/option/UserOption.class.php | 38 ++++---- .../category/UserOptionCategory.class.php | 6 +- .../menu/item/UserProfileMenuItem.class.php | 6 +- .../item/UserProfileMenuItemEditor.class.php | 6 +- .../visitor/UserProfileVisitor.class.php | 12 +-- .../lib/data/user/rank/UserRank.class.php | 12 +-- .../lib/data/user/trophy/UserTrophy.class.php | 10 +-- .../data/user/trophy/UserTrophyList.class.php | 2 +- .../lib/form/AbstractModerationForm.class.php | 6 +- .../lib/form/AccountManagementForm.class.php | 22 ++--- .../files/lib/form/ContactForm.class.php | 2 +- .../lib/form/EmailActivationForm.class.php | 4 +- .../files/lib/form/MessageForm.class.php | 8 +- .../files/lib/form/NewPasswordForm.class.php | 2 +- .../files/lib/form/RegisterForm.class.php | 4 +- .../files/lib/form/SearchForm.class.php | 16 ++-- .../files/lib/form/SettingsForm.class.php | 8 +- .../files/lib/form/UserSearchForm.class.php | 6 +- .../lib/page/AbstractArticlePage.class.php | 2 +- .../files/lib/page/AbstractFeedPage.class.php | 2 +- .../files/lib/page/ArticleFeedPage.class.php | 2 +- .../files/lib/page/ArticleListPage.class.php | 4 +- .../files/lib/page/ArticlePage.class.php | 2 +- .../files/lib/page/AttachmentPage.class.php | 2 +- .../page/CategoryArticleListPage.class.php | 2 +- .../install/files/lib/page/CmsPage.class.php | 4 +- .../files/lib/page/EditHistoryPage.class.php | 6 +- .../files/lib/page/ITrackablePage.class.php | 4 +- .../files/lib/page/MediaPage.class.php | 2 +- .../files/lib/page/MembersListPage.class.php | 2 +- .../lib/page/ModerationListPage.class.php | 6 +- .../files/lib/page/MultipleLinkPage.class.php | 14 +-- .../files/lib/page/SearchResultPage.class.php | 2 +- .../files/lib/page/TaggedPage.class.php | 2 +- .../install/files/lib/page/UserPage.class.php | 2 +- .../files/lib/system/MetaTagHandler.class.php | 4 +- .../install/files/lib/system/Regex.class.php | 38 ++++---- .../install/files/lib/system/WCF.class.php | 16 ++-- .../files/lib/system/WCFSetup.class.php | 4 +- .../files/lib/system/acl/ACLHandler.class.php | 26 +++--- .../acl/simple/SimpleAclHandler.class.php | 6 +- .../acl/simple/SimpleAclResolver.class.php | 2 +- .../application/AbstractApplication.class.php | 6 +- .../application/ApplicationHandler.class.php | 4 +- .../system/application/IApplication.class.php | 4 +- .../attachment/AttachmentHandler.class.php | 20 ++--- .../IAttachmentObjectType.class.php | 18 ++-- .../system/bbcode/AttachmentBBCode.class.php | 4 +- .../lib/system/benchmark/Benchmark.class.php | 10 +-- ...tDatabaseObjectListBoxController.class.php | 8 +- .../files/lib/system/box/BoxHandler.class.php | 6 +- .../TodaysBirthdaysBoxController.class.php | 2 +- .../box/UserListBoxController.class.php | 2 +- .../system/breadcrumb/Breadcrumbs.class.php | 4 +- ...erGroupsUserBulkProcessingAction.class.php | 2 +- ...SendMailUserBulkProcessingAction.class.php | 2 +- .../builder/AbstractCacheBuilder.class.php | 2 +- .../AbstractSortedUserCacheBuilder.class.php | 2 +- .../cache/builder/ICacheBuilder.class.php | 2 +- .../builder/TagCloudCacheBuilder.class.php | 10 +-- .../runtime/AbstractRuntimeCache.class.php | 2 +- .../cache/runtime/IRuntimeCache.class.php | 12 +-- .../cache/source/DiskCacheSource.class.php | 2 +- .../cache/source/ICacheSource.class.php | 4 +- .../source/MemcachedCacheSource.class.php | 4 +- .../cache/source/RedisCacheSource.class.php | 4 +- .../system/captcha/CaptchaHandler.class.php | 2 +- .../category/AbstractCategoryType.class.php | 2 +- .../system/category/CategoryHandler.class.php | 12 +-- .../CategoryPermissionHandler.class.php | 2 +- .../system/category/ICategoryType.class.php | 2 +- .../cli/command/ImportCLICommand.class.php | 2 +- .../clipboard/ClipboardEditorItem.class.php | 2 +- .../clipboard/ClipboardHandler.class.php | 28 +++--- .../action/ArticleClipboardAction.class.php | 12 +-- .../action/MediaClipboardAction.class.php | 6 +- .../action/TagClipboardAction.class.php | 4 +- .../action/UserClipboardAction.class.php | 22 ++--- .../UserContentClipboardAction.class.php | 2 +- .../system/comment/CommentHandler.class.php | 14 +-- .../manager/AbstractCommentManager.class.php | 4 +- .../comment/manager/ICommentManager.class.php | 24 ++--- .../AbstractCheckboxCondition.class.php | 2 +- .../AbstractIntegerCondition.class.php | 12 +-- .../condition/ConditionHandler.class.php | 8 +- .../condition/UserAvatarCondition.class.php | 6 +- .../condition/UserBirthdayCondition.class.php | 2 +- .../UserCoverPhotoCondition.class.php | 4 +- .../condition/UserGroupCondition.class.php | 4 +- .../condition/UserLanguageCondition.class.php | 2 +- .../UserMobileBrowserCondition.class.php | 4 +- .../UserMultifactorCondition.class.php | 4 +- .../UserSignatureCondition.class.php | 4 +- .../condition/UserStateCondition.class.php | 12 +-- .../condition/UserTrophyCondition.class.php | 4 +- .../system/cronjob/CronjobScheduler.class.php | 4 +- .../lib/system/database/Database.class.php | 22 ++--- .../database/DatabaseException.class.php | 4 +- .../files/lib/system/database/Redis.class.php | 10 +-- .../statement/PreparedStatement.class.php | 10 +-- .../system/edit/EditHistoryManager.class.php | 16 ++-- .../MultipartAlternativeMimePart.class.php | 2 +- .../transport/SmtpEmailTransport.class.php | 8 +- ...ctHtmlInputNodeProcessorListener.class.php | 2 +- .../system/exception/AJAXException.class.php | 14 +-- .../exception/SystemException.class.php | 2 +- .../exporter/AbstractExporter.class.php | 6 +- .../lib/system/exporter/IExporter.class.php | 4 +- .../feed/enclosure/FeedEnclosure.class.php | 6 +- .../form/builder/TFormParentNode.class.php | 2 +- .../WysiwygPreviewFormButton.class.php | 6 +- .../wysiwyg/WysiwygFormContainer.class.php | 6 +- .../field/IMinimumLengthFormField.class.php | 2 +- .../builder/field/RatingFormField.class.php | 2 +- .../html/AbstractHtmlProcessor.class.php | 2 +- .../html/input/HtmlInputProcessor.class.php | 10 +-- .../input/node/HtmlInputNodeImg.class.php | 4 +- .../node/HtmlInputNodeProcessor.class.php | 2 +- .../node/HtmlInputNodeTextParser.class.php | 4 +- .../html/output/HtmlOutputProcessor.class.php | 6 +- .../html/simple/HtmlSimpleParser.class.php | 6 +- .../lib/system/html/toc/HtmlTocItem.class.php | 2 +- .../image/adapter/GDImageAdapter.class.php | 22 ++--- .../image/adapter/IImageAdapter.class.php | 88 +++++++++---------- .../IMemoryAwareImageAdapter.class.php | 4 +- .../adapter/ImagickImageAdapter.class.php | 4 +- .../importer/AbstractACLImporter.class.php | 4 +- .../AbstractAttachmentImporter.class.php | 6 +- .../AbstractCategoryImporter.class.php | 4 +- .../AbstractCommentImporter.class.php | 4 +- .../importer/AbstractImporter.class.php | 2 +- .../importer/AbstractLikeImporter.class.php | 6 +- .../importer/AbstractPollImporter.class.php | 2 +- .../AbstractWatchedObjectImporter.class.php | 2 +- .../system/importer/ArticleImporter.class.php | 4 +- .../system/importer/ImportHandler.class.php | 12 +-- .../system/importer/TrophyImporter.class.php | 4 +- .../system/importer/UserImporter.class.php | 2 +- .../importer/UserOptionImporter.class.php | 2 +- .../install/files/lib/system/io/FTP.class.php | 4 +- .../files/lib/system/io/File.class.php | 10 +-- .../files/lib/system/io/GZipFile.class.php | 2 +- .../files/lib/system/io/IArchive.class.php | 2 +- .../files/lib/system/io/RemoteFile.class.php | 10 +-- .../install/files/lib/system/io/Tar.class.php | 2 +- .../files/lib/system/io/TarWriter.class.php | 10 +-- .../install/files/lib/system/io/Zip.class.php | 6 +- .../files/lib/system/io/ZipWriter.class.php | 6 +- .../lib/system/label/LabelHandler.class.php | 34 +++---- .../AbstractLabelObjectHandler.class.php | 2 +- .../ArticleLabelObjectHandler.class.php | 2 +- .../object/ILabelObjectHandler.class.php | 12 +-- .../AbstractLabelObjectTypeHandler.class.php | 2 +- .../type/ILabelObjectTypeHandler.class.php | 4 +- .../object/type/LabelObjectType.class.php | 18 ++-- .../type/LabelObjectTypeContainer.class.php | 8 +- .../lib/system/language/I18nHandler.class.php | 6 +- .../lib/system/language/I18nPlural.class.php | 4 +- .../lib/system/language/I18nValue.class.php | 6 +- .../system/language/LanguageFactory.class.php | 14 +-- .../lib/system/like/LikeHandler.class.php | 10 +-- .../AbstractModificationLogHandler.class.php | 18 ++-- .../ModificationLogHandler.class.php | 8 +- .../files/lib/system/mail/Mail.class.php | 4 +- .../files/lib/system/menu/TreeMenu.class.php | 2 +- .../user/profile/UserProfileMenu.class.php | 2 +- .../CommentUserProfileMenuContent.class.php | 2 +- .../content/IUserProfileMenuContent.class.php | 4 +- .../message/QuickReplyManager.class.php | 8 +- .../message/censorship/Censorship.class.php | 4 +- .../IMessageEmbeddedObjectHandler.class.php | 4 +- ...mpleMessageEmbeddedObjectHandler.class.php | 10 +-- .../MessageEmbeddedObjectManager.class.php | 30 +++---- .../quote/MessageQuoteManager.class.php | 24 ++--- .../message/quote/QuotedMessage.class.php | 8 +- ...entCommentModerationQueueHandler.class.php | 2 +- ...ntResponseModerationQueueHandler.class.php | 2 +- .../AbstractModerationQueueManager.class.php | 16 ++-- .../queue/IModerationQueueHandler.class.php | 14 +-- .../queue/IModerationQueueManager.class.php | 12 +-- ...ModerationQueueActivationManager.class.php | 8 +- .../queue/ModerationQueueManager.class.php | 26 +++--- .../ModerationQueueReportManager.class.php | 10 +-- .../IModerationQueueReportHandler.class.php | 4 +- ...UserModerationQueueReportHandler.class.php | 2 +- .../system/option/IOptionHandler.class.php | 2 +- .../lib/system/option/IOptionType.class.php | 2 +- .../user/DateUserOptionOutput.class.php | 2 +- .../system/package/PackageArchive.class.php | 4 +- .../PackageInstallationDispatcher.class.php | 10 +-- .../PackageInstallationNodeBuilder.class.php | 14 +-- .../PackageInstallationSQLParser.class.php | 4 +- .../PackageInstallationScheduler.class.php | 8 +- .../package/PackageUpdateDispatcher.class.php | 6 +- ...LOptionPackageInstallationPlugin.class.php | 4 +- ...tOptionPackageInstallationPlugin.class.php | 2 +- ...ractXMLPackageInstallationPlugin.class.php | 4 +- .../BoxPackageInstallationPlugin.class.php | 2 +- ...anguagePackageInstallationPlugin.class.php | 2 +- ...enuItemPackageInstallationPlugin.class.php | 6 +- ...ectTypePackageInstallationPlugin.class.php | 2 +- ...pOptionPackageInstallationPlugin.class.php | 4 +- ...onEventPackageInstallationPlugin.class.php | 4 +- .../PackageValidationArchive.class.php | 12 +-- .../PackageValidationException.class.php | 40 ++++----- .../PackageValidationManager.class.php | 6 +- .../system/page/PageLocationManager.class.php | 2 +- .../page/handler/ILookupPageHandler.class.php | 4 +- .../page/handler/IMenuPageHandler.class.php | 6 +- ...coratedCategoryLookupPageHandler.class.php | 4 +- ...DecoratedCategoryMenuPageHandler.class.php | 2 +- .../handler/TUserLookupPageHandler.class.php | 2 +- .../payment/method/IPaymentMethod.class.php | 2 +- .../payment/type/IPaymentType.class.php | 2 +- .../lib/system/poll/PollManager.class.php | 22 ++--- .../system/reaction/ReactionHandler.class.php | 18 ++-- .../system/registry/RegistryHandler.class.php | 2 +- .../system/request/ControllerMap.class.php | 4 +- .../lib/system/request/LinkHandler.class.php | 4 +- .../lib/system/request/Request.class.php | 4 +- .../lib/system/search/ArticleSearch.class.php | 2 +- .../lib/system/search/ISearchEngine.class.php | 4 +- .../search/ISearchIndexManager.class.php | 26 +++--- .../search/ISearchableObjectType.class.php | 2 +- .../lib/system/search/SearchEngine.class.php | 2 +- .../search/SearchIndexManager.class.php | 2 +- .../search/SearchResultTextParser.class.php | 2 +- .../search/acp/ACPSearchHandler.class.php | 2 +- .../search/acp/ACPSearchResultList.class.php | 6 +- ...tegorizedACPSearchResultProvider.class.php | 2 +- .../search/mysql/MysqlSearchEngine.class.php | 2 +- .../system/session/SessionHandler.class.php | 30 +++---- .../lib/system/setup/Installer.class.php | 2 +- .../stat/AbstractStatDailyHandler.class.php | 8 +- .../system/stat/IStatDailyHandler.class.php | 4 +- .../lib/system/style/StyleHandler.class.php | 4 +- .../lib/system/tagging/TagCloud.class.php | 16 ++-- .../lib/system/tagging/TagEngine.class.php | 24 ++--- .../system/tagging/TypedTagCloud.class.php | 4 +- .../template/ACPTemplateEngine.class.php | 2 +- .../template/EmailTemplateEngine.class.php | 2 +- .../system/template/TemplateEngine.class.php | 10 +-- .../TemplateScriptingCompiler.class.php | 4 +- ...mbeddedObjectBlockTemplatePlugin.class.php | 2 +- .../plugin/LinkBlockTemplatePlugin.class.php | 2 +- .../plugin/PageBlockTemplatePlugin.class.php | 2 +- .../PagesFunctionTemplatePlugin.class.php | 14 +-- .../TrophyConditionHandler.class.php | 10 +-- .../AvatarUploadFileSaveStrategy.class.php | 4 +- ...aultUploadFileValidationStrategy.class.php | 4 +- ...mageUploadFileValidationStrategy.class.php | 2 +- .../lib/system/upload/UploadFile.class.php | 16 ++-- ...CoverPhotoUploadFileSaveStrategy.class.php | 4 +- .../lib/system/user/GroupedUserList.class.php | 6 +- .../system/user/UserBirthdayCache.class.php | 12 +-- .../event/UserActivityEventHandler.class.php | 20 ++--- .../point/UserActivityPointHandler.class.php | 14 +-- .../UserCollapsibleContentHandler.class.php | 16 ++-- .../UserGroupAssignmentHandler.class.php | 4 +- ...ableUserNotificationEventHandler.class.php | 4 +- .../UserNotificationHandler.class.php | 46 +++++----- .../event/IUserNotificationEvent.class.php | 2 +- ...CommentLikeUserNotificationEvent.class.php | 2 +- ...esponseLikeUserNotificationEvent.class.php | 2 +- ...IStackableUserNotificationObject.class.php | 2 +- .../object/IUserNotificationObject.class.php | 2 +- ...ommentUserNotificationObjectType.class.php | 4 +- ...eOwnerUserNotificationObjectType.class.php | 2 +- ...ommentUserNotificationObjectType.class.php | 2 +- .../IUserNotificationObjectType.class.php | 2 +- .../object/watch/IUserObjectWatch.class.php | 4 +- .../watch/UserObjectWatchHandler.class.php | 10 +-- .../user/signature/SignatureCache.class.php | 4 +- .../user/storage/UserStorageHandler.class.php | 10 +-- .../system/version/VersionTracker.class.php | 12 +-- .../version/VersionTrackerEntry.class.php | 16 ++-- .../visitTracker/VisitTracker.class.php | 20 ++--- .../AbstractRebuildDataWorker.class.php | 4 +- .../system/worker/AbstractWorker.class.php | 6 +- .../files/lib/system/worker/IWorker.class.php | 6 +- .../StatDailyRebuildDataWorker.class.php | 2 +- .../install/files/lib/util/CLIUtil.class.php | 4 +- .../files/lib/util/CronjobUtil.class.php | 40 ++++----- .../install/files/lib/util/DateUtil.class.php | 22 ++--- .../install/files/lib/util/Diff.class.php | 6 +- .../files/lib/util/DirectoryUtil.class.php | 10 +-- .../install/files/lib/util/ExifUtil.class.php | 18 ++-- .../files/lib/util/FileReader.class.php | 4 +- .../install/files/lib/util/FileUtil.class.php | 14 +-- .../files/lib/util/HeaderUtil.class.php | 4 +- .../files/lib/util/ImageUtil.class.php | 4 +- .../install/files/lib/util/JSON.class.php | 4 +- .../install/files/lib/util/MathUtil.class.php | 6 +- .../files/lib/util/MessageUtil.class.php | 2 +- .../files/lib/util/PasswordUtil.class.php | 2 +- .../files/lib/util/StringStack.class.php | 2 +- .../files/lib/util/StringUtil.class.php | 26 +++--- wcfsetup/install/files/lib/util/Url.class.php | 8 +- .../lib/util/UserRegistrationUtil.class.php | 4 +- .../files/lib/util/XMLWriter.class.php | 2 +- 601 files changed, 2191 insertions(+), 2191 deletions(-) diff --git a/wcfsetup/install.php b/wcfsetup/install.php index 335dc8f952..16b74fdf31 100644 --- a/wcfsetup/install.php +++ b/wcfsetup/install.php @@ -62,7 +62,7 @@ class SystemException extends \Exception implements IPrintableException { * Creates a new SystemException. * * @param string $message error message - * @param integer $code error code + * @param int $code error code * @param string $description description of the error * @param \Exception $previous repacked Exception */ @@ -508,10 +508,10 @@ function handleException($e) { /** * Catches php errors and throws instead a system exception. * - * @param integer $errorNo + * @param int $errorNo * @param string $message * @param string $filename - * @param integer $lineNo + * @param int $lineNo * @throws SystemException */ function handleError($errorNo, $message, $filename, $lineNo) { @@ -541,7 +541,7 @@ if (!function_exists('is_countable')) { class BasicFileUtil { /** * chmod mode - * @var integer + * @var int */ protected static $mode = null; @@ -813,7 +813,7 @@ class Tar { /** * chunk size for extracting - * @var integer + * @var int */ const CHUNK_SIZE = 8192; @@ -1226,7 +1226,7 @@ class GZipFile extends File { /** * Returns the filesize of the unzipped file. * - * @return integer + * @return int */ public function getFileSize() { $byteBlock = 1<<14; diff --git a/wcfsetup/install/files/lib/acp/action/InstallPackageAction.class.php b/wcfsetup/install/files/lib/acp/action/InstallPackageAction.class.php index 260b55fd4f..2f8d81cd40 100755 --- a/wcfsetup/install/files/lib/acp/action/InstallPackageAction.class.php +++ b/wcfsetup/install/files/lib/acp/action/InstallPackageAction.class.php @@ -40,7 +40,7 @@ class InstallPackageAction extends AbstractDialogAction { /** * current queue id - * @var integer + * @var int */ public $queueID = 0; @@ -207,7 +207,7 @@ class InstallPackageAction extends AbstractDialogAction { /** * Returns current action by queue id. * - * @param integer $queueID + * @param int $queueID * @return string */ protected function getCurrentAction($queueID) { diff --git a/wcfsetup/install/files/lib/acp/action/UninstallPackageAction.class.php b/wcfsetup/install/files/lib/acp/action/UninstallPackageAction.class.php index 11a6822f40..d41afb9e7f 100644 --- a/wcfsetup/install/files/lib/acp/action/UninstallPackageAction.class.php +++ b/wcfsetup/install/files/lib/acp/action/UninstallPackageAction.class.php @@ -22,7 +22,7 @@ use wcf\util\StringUtil; class UninstallPackageAction extends InstallPackageAction { /** * active package id - * @var integer + * @var int */ protected $packageID = 0; diff --git a/wcfsetup/install/files/lib/acp/action/UserExportGdprAction.class.php b/wcfsetup/install/files/lib/acp/action/UserExportGdprAction.class.php index 215e932a33..b986c917dd 100644 --- a/wcfsetup/install/files/lib/acp/action/UserExportGdprAction.class.php +++ b/wcfsetup/install/files/lib/acp/action/UserExportGdprAction.class.php @@ -117,7 +117,7 @@ class UserExportGdprAction extends AbstractAction { public $user; /** - * @var integer + * @var int */ public $userID = 0; diff --git a/wcfsetup/install/files/lib/acp/action/UserQuickSearchAction.class.php b/wcfsetup/install/files/lib/acp/action/UserQuickSearchAction.class.php index 2f38de8fc3..69c49df878 100644 --- a/wcfsetup/install/files/lib/acp/action/UserQuickSearchAction.class.php +++ b/wcfsetup/install/files/lib/acp/action/UserQuickSearchAction.class.php @@ -32,13 +32,13 @@ class UserQuickSearchAction extends AbstractAction { /** * matches - * @var integer[] + * @var int[] */ public $matches = []; /** * results per page - * @var integer + * @var int */ public $itemsPerPage = 50; @@ -62,7 +62,7 @@ class UserQuickSearchAction extends AbstractAction { /** * number of results - * @var integer + * @var int */ public $maxResults = 2000; diff --git a/wcfsetup/install/files/lib/acp/action/WorkerProxyAction.class.php b/wcfsetup/install/files/lib/acp/action/WorkerProxyAction.class.php index 0807a18e03..08baff5ff6 100644 --- a/wcfsetup/install/files/lib/acp/action/WorkerProxyAction.class.php +++ b/wcfsetup/install/files/lib/acp/action/WorkerProxyAction.class.php @@ -24,7 +24,7 @@ class WorkerProxyAction extends AJAXInvokeAction { /** * loop counter - * @var integer + * @var int */ protected $loopCount = -1; @@ -100,7 +100,7 @@ class WorkerProxyAction extends AJAXInvokeAction { /** * Sends a JSON-encoded response. * - * @param integer $progress + * @param int $progress * @param array $parameters * @param string $proceedURL */ diff --git a/wcfsetup/install/files/lib/acp/form/AbstractBulkProcessingForm.class.php b/wcfsetup/install/files/lib/acp/form/AbstractBulkProcessingForm.class.php index 5fbddb85d1..27e196a531 100644 --- a/wcfsetup/install/files/lib/acp/form/AbstractBulkProcessingForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/AbstractBulkProcessingForm.class.php @@ -25,7 +25,7 @@ abstract class AbstractBulkProcessingForm extends AbstractForm { /** * number of objects affected by bulk processing - * @var integer + * @var int */ public $affectedObjectCount = 0; diff --git a/wcfsetup/install/files/lib/acp/form/AbstractCategoryAddForm.class.php b/wcfsetup/install/files/lib/acp/form/AbstractCategoryAddForm.class.php index 7d85dde521..386437e0cd 100644 --- a/wcfsetup/install/files/lib/acp/form/AbstractCategoryAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/AbstractCategoryAddForm.class.php @@ -27,7 +27,7 @@ use wcf\util\ArrayUtil; abstract class AbstractCategoryAddForm extends AbstractForm { /** * id of the category acl object type - * @var integer + * @var int */ public $aclObjectTypeID = 0; @@ -51,13 +51,13 @@ abstract class AbstractCategoryAddForm extends AbstractForm { /** * is `1` if HTML is used in the description - * @var integer + * @var int */ public $descriptionUseHtml = 0; /** * indicates if the category is disabled - * @var integer + * @var int */ public $isDisabled = 0; @@ -87,7 +87,7 @@ abstract class AbstractCategoryAddForm extends AbstractForm { /** * id of the package the created package belongs to - * @var integer + * @var int */ public $packageID = 0; @@ -99,13 +99,13 @@ abstract class AbstractCategoryAddForm extends AbstractForm { /** * id of the parent category id - * @var integer + * @var int */ public $parentCategoryID = 0; /** * category show order - * @var integer + * @var int */ public $showOrder = 0; diff --git a/wcfsetup/install/files/lib/acp/form/AbstractCategoryEditForm.class.php b/wcfsetup/install/files/lib/acp/form/AbstractCategoryEditForm.class.php index 65a80e262e..d76d2ad27e 100644 --- a/wcfsetup/install/files/lib/acp/form/AbstractCategoryEditForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/AbstractCategoryEditForm.class.php @@ -31,7 +31,7 @@ class AbstractCategoryEditForm extends AbstractCategoryAddForm { /** * id of the edited category - * @var integer + * @var int */ public $categoryID = 0; diff --git a/wcfsetup/install/files/lib/acp/form/AbstractCustomOptionForm.class.php b/wcfsetup/install/files/lib/acp/form/AbstractCustomOptionForm.class.php index 3095b68d58..bfeb51333f 100644 --- a/wcfsetup/install/files/lib/acp/form/AbstractCustomOptionForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/AbstractCustomOptionForm.class.php @@ -60,7 +60,7 @@ abstract class AbstractCustomOptionForm extends AbstractAcpForm { /** * show order - * @var integer + * @var int */ public $showOrder = 0; @@ -97,7 +97,7 @@ abstract class AbstractCustomOptionForm extends AbstractAcpForm { /** * object id - * @var integer + * @var int */ public $optionID; diff --git a/wcfsetup/install/files/lib/acp/form/AdAddForm.class.php b/wcfsetup/install/files/lib/acp/form/AdAddForm.class.php index 6bf891e242..9166844289 100644 --- a/wcfsetup/install/files/lib/acp/form/AdAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/AdAddForm.class.php @@ -56,7 +56,7 @@ class AdAddForm extends AbstractForm { /** * 1 if the ad is disabled - * @var integer + * @var int */ public $isDisabled = 0; @@ -74,13 +74,13 @@ class AdAddForm extends AbstractForm { /** * id of the selected location's object type - * @var integer + * @var int */ public $objectTypeID = 0; /** * order used to the show the ads - * @var integer + * @var int */ public $showOrder = 0; diff --git a/wcfsetup/install/files/lib/acp/form/AdEditForm.class.php b/wcfsetup/install/files/lib/acp/form/AdEditForm.class.php index ff00f36df3..c2179ea36e 100644 --- a/wcfsetup/install/files/lib/acp/form/AdEditForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/AdEditForm.class.php @@ -23,7 +23,7 @@ class AdEditForm extends AdAddForm { /** * id of the edited ad - * @var integer + * @var int */ public $adID = 0; diff --git a/wcfsetup/install/files/lib/acp/form/ApplicationEditForm.class.php b/wcfsetup/install/files/lib/acp/form/ApplicationEditForm.class.php index bb16c08726..6f571fd285 100644 --- a/wcfsetup/install/files/lib/acp/form/ApplicationEditForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/ApplicationEditForm.class.php @@ -57,7 +57,7 @@ class ApplicationEditForm extends AbstractForm { /** * landing page id - * @var integer + * @var int */ public $landingPageID = 0; @@ -68,7 +68,7 @@ class ApplicationEditForm extends AbstractForm { /** * application package id - * @var integer + * @var int */ public $packageID = 0; diff --git a/wcfsetup/install/files/lib/acp/form/ArticleAddForm.class.php b/wcfsetup/install/files/lib/acp/form/ArticleAddForm.class.php index 6d3ef2b182..94ab297ecd 100644 --- a/wcfsetup/install/files/lib/acp/form/ArticleAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/ArticleAddForm.class.php @@ -56,7 +56,7 @@ class ArticleAddForm extends AbstractForm { /** * category id - * @var integer + * @var int */ public $categoryID = 0; @@ -86,7 +86,7 @@ class ArticleAddForm extends AbstractForm { /** * publication status - * @var integer + * @var int */ public $publicationStatus = Article::PUBLISHED; @@ -151,13 +151,13 @@ class ArticleAddForm extends AbstractForm { /** * image ids - * @var integer[] + * @var int[] */ public $imageID = []; /** * thumbnail image ids - * @var integer[] + * @var int[] */ public $teaserImageID = []; @@ -187,7 +187,7 @@ class ArticleAddForm extends AbstractForm { /** * list of label ids - * @var integer[] + * @var int[] */ public $labelIDs = []; diff --git a/wcfsetup/install/files/lib/acp/form/ArticleEditForm.class.php b/wcfsetup/install/files/lib/acp/form/ArticleEditForm.class.php index db5305cc61..f066ed3253 100644 --- a/wcfsetup/install/files/lib/acp/form/ArticleEditForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/ArticleEditForm.class.php @@ -34,7 +34,7 @@ class ArticleEditForm extends ArticleAddForm { /** * article id - * @var integer + * @var int */ public $articleID = 0; diff --git a/wcfsetup/install/files/lib/acp/form/BBCodeEditForm.class.php b/wcfsetup/install/files/lib/acp/form/BBCodeEditForm.class.php index 1ef468c13b..f7d2612961 100644 --- a/wcfsetup/install/files/lib/acp/form/BBCodeEditForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/BBCodeEditForm.class.php @@ -30,7 +30,7 @@ class BBCodeEditForm extends BBCodeAddForm { /** * bbcode id - * @var integer + * @var int */ public $bbcodeID = 0; diff --git a/wcfsetup/install/files/lib/acp/form/BBCodeMediaProviderAddForm.class.php b/wcfsetup/install/files/lib/acp/form/BBCodeMediaProviderAddForm.class.php index f269d8dea1..04bf3aeefd 100644 --- a/wcfsetup/install/files/lib/acp/form/BBCodeMediaProviderAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/BBCodeMediaProviderAddForm.class.php @@ -32,7 +32,7 @@ class BBCodeMediaProviderAddForm extends AbstractForm { /** * media provider package id - * @var integer + * @var int */ public $packageID = PACKAGE_ID; diff --git a/wcfsetup/install/files/lib/acp/form/BBCodeMediaProviderEditForm.class.php b/wcfsetup/install/files/lib/acp/form/BBCodeMediaProviderEditForm.class.php index d2ee7f43dd..ec935df40c 100644 --- a/wcfsetup/install/files/lib/acp/form/BBCodeMediaProviderEditForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/BBCodeMediaProviderEditForm.class.php @@ -27,7 +27,7 @@ class BBCodeMediaProviderEditForm extends BBCodeMediaProviderAddForm { /** * id of the edited media provider - * @var integer + * @var int */ public $providerID = 0; diff --git a/wcfsetup/install/files/lib/acp/form/BoxAddForm.class.php b/wcfsetup/install/files/lib/acp/form/BoxAddForm.class.php index 800ecb2940..f32363d265 100644 --- a/wcfsetup/install/files/lib/acp/form/BoxAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/BoxAddForm.class.php @@ -67,7 +67,7 @@ class BoxAddForm extends AbstractForm { /** * show order - * @var integer + * @var int */ public $showOrder = 0; @@ -109,7 +109,7 @@ class BoxAddForm extends AbstractForm { /** * image ids - * @var integer[] + * @var int[] */ public $imageID = []; @@ -121,13 +121,13 @@ class BoxAddForm extends AbstractForm { /** * page ids - * @var integer[] + * @var int[] */ public $pageIDs = []; /** * object type id of the selected box controller - * @var integer + * @var int */ public $boxControllerID = 0; diff --git a/wcfsetup/install/files/lib/acp/form/BoxEditForm.class.php b/wcfsetup/install/files/lib/acp/form/BoxEditForm.class.php index 5896c9497d..07265d9f41 100644 --- a/wcfsetup/install/files/lib/acp/form/BoxEditForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/BoxEditForm.class.php @@ -29,7 +29,7 @@ class BoxEditForm extends BoxAddForm { /** * box id - * @var integer + * @var int */ public $boxID = 0; diff --git a/wcfsetup/install/files/lib/acp/form/CaptchaQuestionAddForm.class.php b/wcfsetup/install/files/lib/acp/form/CaptchaQuestionAddForm.class.php index 9dba861bd2..b9adfe5c55 100644 --- a/wcfsetup/install/files/lib/acp/form/CaptchaQuestionAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/CaptchaQuestionAddForm.class.php @@ -32,7 +32,7 @@ class CaptchaQuestionAddForm extends AbstractForm { /** * 1 if the question is disabled - * @var integer + * @var int */ public $isDisabled = 0; diff --git a/wcfsetup/install/files/lib/acp/form/CaptchaQuestionEditForm.class.php b/wcfsetup/install/files/lib/acp/form/CaptchaQuestionEditForm.class.php index 25ef53f794..219815a1dd 100644 --- a/wcfsetup/install/files/lib/acp/form/CaptchaQuestionEditForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/CaptchaQuestionEditForm.class.php @@ -29,7 +29,7 @@ class CaptchaQuestionEditForm extends CaptchaQuestionAddForm { /** * id of the edited captcha question - * @var integer + * @var int */ public $captchaQuestionID = 0; diff --git a/wcfsetup/install/files/lib/acp/form/ContactRecipientAddForm.class.php b/wcfsetup/install/files/lib/acp/form/ContactRecipientAddForm.class.php index 97735ac81f..34fa4283c4 100644 --- a/wcfsetup/install/files/lib/acp/form/ContactRecipientAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/ContactRecipientAddForm.class.php @@ -48,13 +48,13 @@ class ContactRecipientAddForm extends AbstractForm { /** * 1 if the recipient is disabled - * @var integer + * @var int */ public $isDisabled = 0; /** * order used to the show the recipients - * @var integer + * @var int */ public $showOrder = 0; diff --git a/wcfsetup/install/files/lib/acp/form/ContactRecipientEditForm.class.php b/wcfsetup/install/files/lib/acp/form/ContactRecipientEditForm.class.php index ec6d8cda66..6dd564345e 100644 --- a/wcfsetup/install/files/lib/acp/form/ContactRecipientEditForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/ContactRecipientEditForm.class.php @@ -37,7 +37,7 @@ class ContactRecipientEditForm extends ContactRecipientAddForm { public $recipient; /** - * @var integer + * @var int */ public $recipientID = 0; diff --git a/wcfsetup/install/files/lib/acp/form/CronjobAddForm.class.php b/wcfsetup/install/files/lib/acp/form/CronjobAddForm.class.php index f1050903d0..6ea1ed288c 100755 --- a/wcfsetup/install/files/lib/acp/form/CronjobAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/CronjobAddForm.class.php @@ -39,7 +39,7 @@ class CronjobAddForm extends AbstractForm { /** * cronjob package id - * @var integer + * @var int */ public $packageID = PACKAGE_ID; diff --git a/wcfsetup/install/files/lib/acp/form/CronjobEditForm.class.php b/wcfsetup/install/files/lib/acp/form/CronjobEditForm.class.php index b737e2d948..aa411c9c43 100755 --- a/wcfsetup/install/files/lib/acp/form/CronjobEditForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/CronjobEditForm.class.php @@ -23,7 +23,7 @@ class CronjobEditForm extends CronjobAddForm { /** * cronjob id - * @var integer + * @var int */ public $cronjobID = 0; diff --git a/wcfsetup/install/files/lib/acp/form/DataImportForm.class.php b/wcfsetup/install/files/lib/acp/form/DataImportForm.class.php index a0f6170252..7072ce8d20 100644 --- a/wcfsetup/install/files/lib/acp/form/DataImportForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/DataImportForm.class.php @@ -115,7 +115,7 @@ class DataImportForm extends AbstractForm { /** * user merge mode - * @var integer + * @var int */ public $userMergeMode = UserImporter::MERGE_MODE_EMAIL; diff --git a/wcfsetup/install/files/lib/acp/form/DevtoolsProjectPipEntryAddForm.class.php b/wcfsetup/install/files/lib/acp/form/DevtoolsProjectPipEntryAddForm.class.php index 3d98c50837..0bab367abe 100644 --- a/wcfsetup/install/files/lib/acp/form/DevtoolsProjectPipEntryAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/DevtoolsProjectPipEntryAddForm.class.php @@ -56,7 +56,7 @@ class DevtoolsProjectPipEntryAddForm extends AbstractFormBuilderForm { /** * project id - * @var integer + * @var int */ public $projectID = 0; diff --git a/wcfsetup/install/files/lib/acp/form/LabelAddForm.class.php b/wcfsetup/install/files/lib/acp/form/LabelAddForm.class.php index 4ca80af12b..54ed4ff02c 100644 --- a/wcfsetup/install/files/lib/acp/form/LabelAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/LabelAddForm.class.php @@ -33,7 +33,7 @@ class LabelAddForm extends AbstractForm { /** * label group id - * @var integer + * @var int */ public $groupID = 0; @@ -82,7 +82,7 @@ class LabelAddForm extends AbstractForm { /** * show order - * @var integer + * @var int */ public $showOrder = 0; diff --git a/wcfsetup/install/files/lib/acp/form/LabelEditForm.class.php b/wcfsetup/install/files/lib/acp/form/LabelEditForm.class.php index 03620b038c..e42a6ef28f 100644 --- a/wcfsetup/install/files/lib/acp/form/LabelEditForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/LabelEditForm.class.php @@ -29,7 +29,7 @@ class LabelEditForm extends LabelAddForm { /** * label id - * @var integer + * @var int */ public $labelID = 0; diff --git a/wcfsetup/install/files/lib/acp/form/LabelGroupAddForm.class.php b/wcfsetup/install/files/lib/acp/form/LabelGroupAddForm.class.php index b2be3a9419..afd086c50d 100644 --- a/wcfsetup/install/files/lib/acp/form/LabelGroupAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/LabelGroupAddForm.class.php @@ -70,13 +70,13 @@ class LabelGroupAddForm extends AbstractForm { /** * object type id - * @var integer + * @var int */ public $objectTypeID = 0; /** * show order - * @var integer + * @var int */ public $showOrder = 0; @@ -229,7 +229,7 @@ class LabelGroupAddForm extends AbstractForm { /** * Saves label group to object relations. * - * @param integer $groupID + * @param int $groupID */ protected function saveObjectTypeRelations($groupID) { WCF::getDB()->beginTransaction(); diff --git a/wcfsetup/install/files/lib/acp/form/LabelGroupEditForm.class.php b/wcfsetup/install/files/lib/acp/form/LabelGroupEditForm.class.php index 4e941ba6cb..69c4038812 100644 --- a/wcfsetup/install/files/lib/acp/form/LabelGroupEditForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/LabelGroupEditForm.class.php @@ -29,7 +29,7 @@ class LabelGroupEditForm extends LabelGroupAddForm { /** * group id - * @var integer + * @var int */ public $groupID = 0; diff --git a/wcfsetup/install/files/lib/acp/form/LanguageAddForm.class.php b/wcfsetup/install/files/lib/acp/form/LanguageAddForm.class.php index 4896336891..88450021f2 100644 --- a/wcfsetup/install/files/lib/acp/form/LanguageAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/LanguageAddForm.class.php @@ -66,7 +66,7 @@ class LanguageAddForm extends AbstractForm { /** * source language id - * @var integer + * @var int */ public $sourceLanguageID = 0; diff --git a/wcfsetup/install/files/lib/acp/form/LanguageEditForm.class.php b/wcfsetup/install/files/lib/acp/form/LanguageEditForm.class.php index fc86482577..68d4dfa943 100644 --- a/wcfsetup/install/files/lib/acp/form/LanguageEditForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/LanguageEditForm.class.php @@ -18,7 +18,7 @@ use wcf\system\WCF; class LanguageEditForm extends LanguageAddForm { /** * language id - * @var integer + * @var int */ public $languageID = 0; diff --git a/wcfsetup/install/files/lib/acp/form/LanguageExportForm.class.php b/wcfsetup/install/files/lib/acp/form/LanguageExportForm.class.php index 288869a06a..1cce022086 100644 --- a/wcfsetup/install/files/lib/acp/form/LanguageExportForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/LanguageExportForm.class.php @@ -30,7 +30,7 @@ class LanguageExportForm extends AbstractForm { /** * language id - * @var integer + * @var int */ public $languageID = 0; @@ -60,7 +60,7 @@ class LanguageExportForm extends AbstractForm { /** * max package name length - * @var integer + * @var int */ public $packageNameLength = 0; diff --git a/wcfsetup/install/files/lib/acp/form/LanguageImportForm.class.php b/wcfsetup/install/files/lib/acp/form/LanguageImportForm.class.php index 3aa19a0116..6144533d3e 100644 --- a/wcfsetup/install/files/lib/acp/form/LanguageImportForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/LanguageImportForm.class.php @@ -55,7 +55,7 @@ class LanguageImportForm extends AbstractForm { /** * source language id - * @var integer + * @var int */ public $sourceLanguageID = 0; diff --git a/wcfsetup/install/files/lib/acp/form/LanguageMultilingualismForm.class.php b/wcfsetup/install/files/lib/acp/form/LanguageMultilingualismForm.class.php index dac7a926c0..f76113e921 100644 --- a/wcfsetup/install/files/lib/acp/form/LanguageMultilingualismForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/LanguageMultilingualismForm.class.php @@ -31,13 +31,13 @@ class LanguageMultilingualismForm extends AbstractForm { /** * indicates if multilingualism is enabled - * @var integer + * @var int */ public $enable = 0; /** * ids of selected available languages - * @var integer[] + * @var int[] */ public $languageIDs = []; diff --git a/wcfsetup/install/files/lib/acp/form/MenuAddForm.class.php b/wcfsetup/install/files/lib/acp/form/MenuAddForm.class.php index f03c4bd9fd..7148538a82 100644 --- a/wcfsetup/install/files/lib/acp/form/MenuAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/MenuAddForm.class.php @@ -49,7 +49,7 @@ class MenuAddForm extends AbstractForm { /** * show order - * @var integer + * @var int */ public $showOrder = 0; @@ -73,7 +73,7 @@ class MenuAddForm extends AbstractForm { /** * page ids - * @var integer[] + * @var int[] */ public $pageIDs = []; diff --git a/wcfsetup/install/files/lib/acp/form/MenuEditForm.class.php b/wcfsetup/install/files/lib/acp/form/MenuEditForm.class.php index fac9be9b56..42b3f97e45 100644 --- a/wcfsetup/install/files/lib/acp/form/MenuEditForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/MenuEditForm.class.php @@ -27,7 +27,7 @@ class MenuEditForm extends MenuAddForm { /** * menu id - * @var integer + * @var int */ public $menuID = 0; diff --git a/wcfsetup/install/files/lib/acp/form/MenuItemAddForm.class.php b/wcfsetup/install/files/lib/acp/form/MenuItemAddForm.class.php index b7ec2df95f..118aef192b 100644 --- a/wcfsetup/install/files/lib/acp/form/MenuItemAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/MenuItemAddForm.class.php @@ -38,7 +38,7 @@ class MenuItemAddForm extends AbstractForm { /** * menu id - * @var integer + * @var int */ public $menuID = 0; @@ -68,13 +68,13 @@ class MenuItemAddForm extends AbstractForm { /** * page id - * @var integer + * @var int */ public $pageID = null; /** * page object id - * @var integer + * @var int */ public $pageObjectID = null; @@ -92,13 +92,13 @@ class MenuItemAddForm extends AbstractForm { /** * id of the parent menu item - * @var integer + * @var int */ public $parentItemID = null; /** * show order - * @var integer + * @var int */ public $showOrder = 0; diff --git a/wcfsetup/install/files/lib/acp/form/MenuItemEditForm.class.php b/wcfsetup/install/files/lib/acp/form/MenuItemEditForm.class.php index db21e6894b..736549fa70 100644 --- a/wcfsetup/install/files/lib/acp/form/MenuItemEditForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/MenuItemEditForm.class.php @@ -22,7 +22,7 @@ use wcf\system\WCF; class MenuItemEditForm extends MenuItemAddForm { /** * menu item id - * @var integer + * @var int */ public $itemID = 0; diff --git a/wcfsetup/install/files/lib/acp/form/NoticeAddForm.class.php b/wcfsetup/install/files/lib/acp/form/NoticeAddForm.class.php index e1deea4f1d..8b8af60088 100644 --- a/wcfsetup/install/files/lib/acp/form/NoticeAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/NoticeAddForm.class.php @@ -60,13 +60,13 @@ class NoticeAddForm extends AbstractForm { /** * 1 if the notice is disabled - * @var integer + * @var int */ public $isDisabled = 0; /** * 1 if the notice is dismissible - * @var integer + * @var int */ public $isDismissible = 0; @@ -83,13 +83,13 @@ class NoticeAddForm extends AbstractForm { /** * 1 if html is used in the notice text - * @var integer + * @var int */ public $noticeUseHtml = 0; /** * order used to the show the notices - * @var integer + * @var int */ public $showOrder = 0; diff --git a/wcfsetup/install/files/lib/acp/form/NoticeEditForm.class.php b/wcfsetup/install/files/lib/acp/form/NoticeEditForm.class.php index 1d8aeac49f..34d8ec9a9f 100644 --- a/wcfsetup/install/files/lib/acp/form/NoticeEditForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/NoticeEditForm.class.php @@ -31,13 +31,13 @@ class NoticeEditForm extends NoticeAddForm { /** * id of the edited notice object - * @var integer + * @var int */ public $noticeID = 0; /** * 1 if the notice will be displayed for all users again - * @var integer + * @var int */ public $resetIsDismissed = 0; diff --git a/wcfsetup/install/files/lib/acp/form/OptionForm.class.php b/wcfsetup/install/files/lib/acp/form/OptionForm.class.php index d77455d29d..ca2223f306 100644 --- a/wcfsetup/install/files/lib/acp/form/OptionForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/OptionForm.class.php @@ -27,7 +27,7 @@ class OptionForm extends AbstractOptionListForm { /** * category id - * @var integer + * @var int */ public $categoryID = 0; diff --git a/wcfsetup/install/files/lib/acp/form/PackageUpdateServerEditForm.class.php b/wcfsetup/install/files/lib/acp/form/PackageUpdateServerEditForm.class.php index 2af28a4159..0cfc23c117 100755 --- a/wcfsetup/install/files/lib/acp/form/PackageUpdateServerEditForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/PackageUpdateServerEditForm.class.php @@ -22,7 +22,7 @@ class PackageUpdateServerEditForm extends PackageUpdateServerAddForm { /** * update server id - * @var integer + * @var int */ public $packageUpdateServerID = 0; diff --git a/wcfsetup/install/files/lib/acp/form/PageAddForm.class.php b/wcfsetup/install/files/lib/acp/form/PageAddForm.class.php index 393d380594..7038cc86a2 100644 --- a/wcfsetup/install/files/lib/acp/form/PageAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/PageAddForm.class.php @@ -64,7 +64,7 @@ class PageAddForm extends AbstractForm { /** * parent page id - * @var integer + * @var int */ public $parentPageID = 0; @@ -88,7 +88,7 @@ class PageAddForm extends AbstractForm { /** * application id of the page - * @var integer + * @var int */ public $applicationPackageID = 1; @@ -136,7 +136,7 @@ class PageAddForm extends AbstractForm { /** * list of box ids - * @var integer[] + * @var int[] */ public $boxIDs = []; @@ -177,7 +177,7 @@ class PageAddForm extends AbstractForm { /** * parent menu item id - * @var integer + * @var int */ public $parentMenuItemID; @@ -411,7 +411,7 @@ class PageAddForm extends AbstractForm { /** * Validates given custom url. * - * @param integer $languageID + * @param int $languageID * @param string $customURL * * @throws UserInputException @@ -696,7 +696,7 @@ class PageAddForm extends AbstractForm { /** * Returns the list of box ids that are enabled by default. * - * @return integer[] + * @return int[] */ protected function getDefaultBoxIDs() { $boxIDs = []; diff --git a/wcfsetup/install/files/lib/acp/form/PageEditForm.class.php b/wcfsetup/install/files/lib/acp/form/PageEditForm.class.php index 5e586f7463..a1b41cafcb 100644 --- a/wcfsetup/install/files/lib/acp/form/PageEditForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/PageEditForm.class.php @@ -34,7 +34,7 @@ class PageEditForm extends PageAddForm { /** * page id - * @var integer + * @var int */ public $pageID = 0; diff --git a/wcfsetup/install/files/lib/acp/form/PaidSubscriptionAddForm.class.php b/wcfsetup/install/files/lib/acp/form/PaidSubscriptionAddForm.class.php index 7a48e72286..f2b1b88ba4 100644 --- a/wcfsetup/install/files/lib/acp/form/PaidSubscriptionAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/PaidSubscriptionAddForm.class.php @@ -63,7 +63,7 @@ class PaidSubscriptionAddForm extends AbstractForm { /** * subscription show order - * @var integer + * @var int */ public $showOrder = 0; @@ -87,7 +87,7 @@ class PaidSubscriptionAddForm extends AbstractForm { /** * subscription length - * @var integer + * @var int */ public $subscriptionLength = 0; @@ -105,13 +105,13 @@ class PaidSubscriptionAddForm extends AbstractForm { /** * list of group ids - * @var integer[] + * @var int[] */ public $groupIDs = []; /** * list of excluded subscriptions - * @var integer[] + * @var int[] */ public $excludedSubscriptionIDs = []; diff --git a/wcfsetup/install/files/lib/acp/form/PaidSubscriptionEditForm.class.php b/wcfsetup/install/files/lib/acp/form/PaidSubscriptionEditForm.class.php index f317c91124..ed98c66caf 100644 --- a/wcfsetup/install/files/lib/acp/form/PaidSubscriptionEditForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/PaidSubscriptionEditForm.class.php @@ -24,7 +24,7 @@ class PaidSubscriptionEditForm extends PaidSubscriptionAddForm { /** * id of the edited subscription - * @var integer + * @var int */ public $subscriptionID = 0; diff --git a/wcfsetup/install/files/lib/acp/form/PaidSubscriptionUserAddForm.class.php b/wcfsetup/install/files/lib/acp/form/PaidSubscriptionUserAddForm.class.php index ffa420331f..b7babe1db4 100644 --- a/wcfsetup/install/files/lib/acp/form/PaidSubscriptionUserAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/PaidSubscriptionUserAddForm.class.php @@ -37,7 +37,7 @@ class PaidSubscriptionUserAddForm extends AbstractForm { /** * subscription id - * @var integer + * @var int */ public $subscriptionID = 0; diff --git a/wcfsetup/install/files/lib/acp/form/PaidSubscriptionUserEditForm.class.php b/wcfsetup/install/files/lib/acp/form/PaidSubscriptionUserEditForm.class.php index 23951537d5..6b3283d4ca 100644 --- a/wcfsetup/install/files/lib/acp/form/PaidSubscriptionUserEditForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/PaidSubscriptionUserEditForm.class.php @@ -19,7 +19,7 @@ use wcf\util\DateUtil; class PaidSubscriptionUserEditForm extends PaidSubscriptionUserAddForm { /** * subscription user id - * @var integer + * @var int */ public $subscriptionUserID = 0; diff --git a/wcfsetup/install/files/lib/acp/form/SitemapEditForm.class.php b/wcfsetup/install/files/lib/acp/form/SitemapEditForm.class.php index e51e7d7031..f6afe68991 100755 --- a/wcfsetup/install/files/lib/acp/form/SitemapEditForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/SitemapEditForm.class.php @@ -75,13 +75,13 @@ class SitemapEditForm extends AbstractForm { /** * `1` iff the sitemap is disabled. Otherwise `0`. - * @var integer + * @var int */ public $isDisabled = 0; /** * The time in seconds how long the sitemap should be cached. - * @var integer + * @var int */ public $rebuildTime = 172800; // two days diff --git a/wcfsetup/install/files/lib/acp/form/SmileyAddForm.class.php b/wcfsetup/install/files/lib/acp/form/SmileyAddForm.class.php index b277cd7d5d..e1f5216019 100644 --- a/wcfsetup/install/files/lib/acp/form/SmileyAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/SmileyAddForm.class.php @@ -51,13 +51,13 @@ class SmileyAddForm extends AbstractForm { /** * show order value - * @var integer + * @var int */ public $showOrder = 0; /** * categoryID value - * @var integer + * @var int */ public $categoryID = 0; diff --git a/wcfsetup/install/files/lib/acp/form/SmileyEditForm.class.php b/wcfsetup/install/files/lib/acp/form/SmileyEditForm.class.php index 0a0acc91d9..6e8c5b2f2b 100644 --- a/wcfsetup/install/files/lib/acp/form/SmileyEditForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/SmileyEditForm.class.php @@ -28,7 +28,7 @@ class SmileyEditForm extends SmileyAddForm { /** * smiley id - * @var integer + * @var int */ public $smileyID = 0; diff --git a/wcfsetup/install/files/lib/acp/form/StyleAddForm.class.php b/wcfsetup/install/files/lib/acp/form/StyleAddForm.class.php index dea52fdaa4..18336b88c8 100644 --- a/wcfsetup/install/files/lib/acp/form/StyleAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/StyleAddForm.class.php @@ -180,7 +180,7 @@ class StyleAddForm extends AbstractForm { /** * template group id - * @var integer + * @var int */ public $templateGroupID = 0; @@ -209,7 +209,7 @@ class StyleAddForm extends AbstractForm { /** * current scroll offsets before submitting the form - * @var integer[] + * @var int[] */ public $scrollOffsets = []; diff --git a/wcfsetup/install/files/lib/acp/form/StyleEditForm.class.php b/wcfsetup/install/files/lib/acp/form/StyleEditForm.class.php index 8f0ffe20ee..e2ce1ed833 100644 --- a/wcfsetup/install/files/lib/acp/form/StyleEditForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/StyleEditForm.class.php @@ -34,7 +34,7 @@ class StyleEditForm extends StyleAddForm { /** * style id - * @var integer + * @var int */ public $styleID = 0; diff --git a/wcfsetup/install/files/lib/acp/form/StyleExportForm.class.php b/wcfsetup/install/files/lib/acp/form/StyleExportForm.class.php index dd46bb32d4..b7bbda546d 100644 --- a/wcfsetup/install/files/lib/acp/form/StyleExportForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/StyleExportForm.class.php @@ -57,7 +57,7 @@ class StyleExportForm extends AbstractForm { /** * style id - * @var integer + * @var int */ public $styleID = 0; diff --git a/wcfsetup/install/files/lib/acp/form/StyleGlobalValuesForm.class.php b/wcfsetup/install/files/lib/acp/form/StyleGlobalValuesForm.class.php index 507eaef404..3d454f044f 100644 --- a/wcfsetup/install/files/lib/acp/form/StyleGlobalValuesForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/StyleGlobalValuesForm.class.php @@ -31,7 +31,7 @@ class StyleGlobalValuesForm extends AbstractForm { /** * current scroll offset before submitting the form - * @var integer + * @var int */ public $stylesScrollOffset = 0; diff --git a/wcfsetup/install/files/lib/acp/form/TagEditForm.class.php b/wcfsetup/install/files/lib/acp/form/TagEditForm.class.php index d9a838588e..3ec3e0fe24 100644 --- a/wcfsetup/install/files/lib/acp/form/TagEditForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/TagEditForm.class.php @@ -29,7 +29,7 @@ class TagEditForm extends TagAddForm { /** * tag id - * @var integer + * @var int */ public $tagID = 0; diff --git a/wcfsetup/install/files/lib/acp/form/TemplateAddForm.class.php b/wcfsetup/install/files/lib/acp/form/TemplateAddForm.class.php index 0d2e489059..5ac5b429be 100644 --- a/wcfsetup/install/files/lib/acp/form/TemplateAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/TemplateAddForm.class.php @@ -40,7 +40,7 @@ class TemplateAddForm extends AbstractForm { /** * template group id - * @var integer + * @var int */ public $templateGroupID = 0; @@ -58,13 +58,13 @@ class TemplateAddForm extends AbstractForm { /** * template's package id - * @var integer + * @var int */ public $packageID = 1; /** * id of copied template - * @var integer + * @var int */ public $copy = 0; diff --git a/wcfsetup/install/files/lib/acp/form/TemplateEditForm.class.php b/wcfsetup/install/files/lib/acp/form/TemplateEditForm.class.php index 7b389410ed..57c8cee2e4 100644 --- a/wcfsetup/install/files/lib/acp/form/TemplateEditForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/TemplateEditForm.class.php @@ -22,7 +22,7 @@ class TemplateEditForm extends TemplateAddForm { /** * template id - * @var integer + * @var int */ public $templateID = 0; diff --git a/wcfsetup/install/files/lib/acp/form/TemplateGroupAddForm.class.php b/wcfsetup/install/files/lib/acp/form/TemplateGroupAddForm.class.php index 031e1e20df..319cf43dcb 100644 --- a/wcfsetup/install/files/lib/acp/form/TemplateGroupAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/TemplateGroupAddForm.class.php @@ -36,13 +36,13 @@ class TemplateGroupAddForm extends AbstractForm { /** * template group folder - * @var integer + * @var int */ public $templateGroupFolderName = ''; /** * parent template group id - * @var integer + * @var int */ public $parentTemplateGroupID = 0; diff --git a/wcfsetup/install/files/lib/acp/form/TemplateGroupEditForm.class.php b/wcfsetup/install/files/lib/acp/form/TemplateGroupEditForm.class.php index 3754153608..ee572c66f8 100644 --- a/wcfsetup/install/files/lib/acp/form/TemplateGroupEditForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/TemplateGroupEditForm.class.php @@ -23,7 +23,7 @@ class TemplateGroupEditForm extends TemplateGroupAddForm { /** * template group id - * @var integer + * @var int */ public $templateGroupID = 0; diff --git a/wcfsetup/install/files/lib/acp/form/TrophyAddForm.class.php b/wcfsetup/install/files/lib/acp/form/TrophyAddForm.class.php index 8fb49e0833..ee32e1964d 100644 --- a/wcfsetup/install/files/lib/acp/form/TrophyAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/TrophyAddForm.class.php @@ -41,7 +41,7 @@ class TrophyAddForm extends AbstractAcpForm { /** * category id for the trophy. - * @var integer + * @var int */ public $categoryID = 0; diff --git a/wcfsetup/install/files/lib/acp/form/UserActivityPointOptionForm.class.php b/wcfsetup/install/files/lib/acp/form/UserActivityPointOptionForm.class.php index e4ca781dde..a4e8571abf 100644 --- a/wcfsetup/install/files/lib/acp/form/UserActivityPointOptionForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/UserActivityPointOptionForm.class.php @@ -29,7 +29,7 @@ class UserActivityPointOptionForm extends AbstractForm { /** * points to objectType - * @var integer[] + * @var int[] */ public $points = []; diff --git a/wcfsetup/install/files/lib/acp/form/UserAddForm.class.php b/wcfsetup/install/files/lib/acp/form/UserAddForm.class.php index 23f5984dbd..b3d2a3454e 100644 --- a/wcfsetup/install/files/lib/acp/form/UserAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/UserAddForm.class.php @@ -65,7 +65,7 @@ class UserAddForm extends UserOptionListForm { /** * user group ids - * @var integer[] + * @var int[] */ public $groupIDs = []; @@ -76,13 +76,13 @@ class UserAddForm extends UserOptionListForm { /** * language id - * @var integer + * @var int */ public $languageID = 0; /** * visible languages - * @var integer[] + * @var int[] */ public $visibleLanguages = []; @@ -112,7 +112,7 @@ class UserAddForm extends UserOptionListForm { /** * date when the signature will be enabled again - * @var integer + * @var int */ public $disableSignatureExpires = 0; diff --git a/wcfsetup/install/files/lib/acp/form/UserAssignToGroupForm.class.php b/wcfsetup/install/files/lib/acp/form/UserAssignToGroupForm.class.php index 08c14d0d36..c5b5da481c 100755 --- a/wcfsetup/install/files/lib/acp/form/UserAssignToGroupForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/UserAssignToGroupForm.class.php @@ -35,13 +35,13 @@ class UserAssignToGroupForm extends AbstractForm { /** * ids of the relevant users - * @var integer[] + * @var int[] */ public $userIDs = []; /** * ids of the assigned user groups - * @var integer[] + * @var int[] */ public $groupIDs = []; @@ -59,7 +59,7 @@ class UserAssignToGroupForm extends AbstractForm { /** * id of the user clipboard item object type - * @var integer + * @var int */ protected $objectTypeID = null; diff --git a/wcfsetup/install/files/lib/acp/form/UserContentRevertChangesForm.class.php b/wcfsetup/install/files/lib/acp/form/UserContentRevertChangesForm.class.php index e02e06f417..0c0e5fab28 100644 --- a/wcfsetup/install/files/lib/acp/form/UserContentRevertChangesForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/UserContentRevertChangesForm.class.php @@ -34,7 +34,7 @@ class UserContentRevertChangesForm extends AbstractForm { /** * ids of the relevant users - * @var integer[] + * @var int[] */ public $userIDs = []; @@ -46,13 +46,13 @@ class UserContentRevertChangesForm extends AbstractForm { /** * timeframe to consider - * @var integer + * @var int */ public $timeframe = 7; /** * id of the user clipboard item object type - * @var integer + * @var int */ protected $objectTypeID = null; diff --git a/wcfsetup/install/files/lib/acp/form/UserEditForm.class.php b/wcfsetup/install/files/lib/acp/form/UserEditForm.class.php index f514dc789e..6da105026c 100755 --- a/wcfsetup/install/files/lib/acp/form/UserEditForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/UserEditForm.class.php @@ -42,7 +42,7 @@ class UserEditForm extends UserAddForm { /** * user id - * @var integer + * @var int */ public $userID = 0; @@ -66,7 +66,7 @@ class UserEditForm extends UserAddForm { /** * date when the ban expires - * @var integer + * @var int */ public $banExpires = 0; @@ -96,7 +96,7 @@ class UserEditForm extends UserAddForm { /** * date when the avatar will be enabled again - * @var integer + * @var int */ public $disableAvatarExpires = 0; @@ -120,7 +120,7 @@ class UserEditForm extends UserAddForm { /** * date when the cover photo will be enabled again - * @var integer + * @var int */ public $disableCoverPhotoExpires = 0; diff --git a/wcfsetup/install/files/lib/acp/form/UserEmailAddressExportForm.class.php b/wcfsetup/install/files/lib/acp/form/UserEmailAddressExportForm.class.php index d5e448a99c..91582e4474 100755 --- a/wcfsetup/install/files/lib/acp/form/UserEmailAddressExportForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/UserEmailAddressExportForm.class.php @@ -36,7 +36,7 @@ class UserEmailAddressExportForm extends AbstractForm { /** * ids of the users whose email addresses are exported - * @var integer[] + * @var int[] */ public $userIDs = []; @@ -60,7 +60,7 @@ class UserEmailAddressExportForm extends AbstractForm { /** * clipboard item type id - * @var integer + * @var int */ protected $objectTypeID = null; diff --git a/wcfsetup/install/files/lib/acp/form/UserGroupAddForm.class.php b/wcfsetup/install/files/lib/acp/form/UserGroupAddForm.class.php index df7eb775a1..2ba8fa1a9c 100755 --- a/wcfsetup/install/files/lib/acp/form/UserGroupAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/UserGroupAddForm.class.php @@ -65,7 +65,7 @@ class UserGroupAddForm extends AbstractOptionListForm { /** * group priority - * @var integer + * @var int */ protected $priority = 0; @@ -77,7 +77,7 @@ class UserGroupAddForm extends AbstractOptionListForm { /** * shows the members of this group on the team page - * @var integer + * @var int */ protected $showOnTeamPage = 0; diff --git a/wcfsetup/install/files/lib/acp/form/UserGroupAssignmentAddForm.class.php b/wcfsetup/install/files/lib/acp/form/UserGroupAssignmentAddForm.class.php index fb3b0e304d..f075ac2cfd 100644 --- a/wcfsetup/install/files/lib/acp/form/UserGroupAssignmentAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/UserGroupAssignmentAddForm.class.php @@ -33,13 +33,13 @@ class UserGroupAssignmentAddForm extends AbstractForm { /** * id of the selected user group - * @var integer + * @var int */ public $groupID = 0; /** * true if the automatic assignment is disabled - * @var integer + * @var int */ public $isDisabled = 0; diff --git a/wcfsetup/install/files/lib/acp/form/UserGroupAssignmentEditForm.class.php b/wcfsetup/install/files/lib/acp/form/UserGroupAssignmentEditForm.class.php index bed96b5a1b..4d85fe79be 100644 --- a/wcfsetup/install/files/lib/acp/form/UserGroupAssignmentEditForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/UserGroupAssignmentEditForm.class.php @@ -29,7 +29,7 @@ class UserGroupAssignmentEditForm extends UserGroupAssignmentAddForm { /** * id of the edited automatic user group assignment - * @var integer + * @var int */ public $assignmentID = 0; diff --git a/wcfsetup/install/files/lib/acp/form/UserGroupEditForm.class.php b/wcfsetup/install/files/lib/acp/form/UserGroupEditForm.class.php index 87de81f0d5..06bb459042 100755 --- a/wcfsetup/install/files/lib/acp/form/UserGroupEditForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/UserGroupEditForm.class.php @@ -30,7 +30,7 @@ class UserGroupEditForm extends UserGroupAddForm { /** * id of the edited user group - * @var integer + * @var int */ public $groupID = 0; diff --git a/wcfsetup/install/files/lib/acp/form/UserGroupOptionForm.class.php b/wcfsetup/install/files/lib/acp/form/UserGroupOptionForm.class.php index 09586ea774..26b4b4a7aa 100644 --- a/wcfsetup/install/files/lib/acp/form/UserGroupOptionForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/UserGroupOptionForm.class.php @@ -74,7 +74,7 @@ class UserGroupOptionForm extends AbstractForm { /** * user group option id - * @var integer + * @var int */ public $userGroupOptionID = 0; diff --git a/wcfsetup/install/files/lib/acp/form/UserMailForm.class.php b/wcfsetup/install/files/lib/acp/form/UserMailForm.class.php index d258d8bc87..f92cfe0c45 100755 --- a/wcfsetup/install/files/lib/acp/form/UserMailForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/UserMailForm.class.php @@ -41,7 +41,7 @@ class UserMailForm extends AbstractForm { /** * list of group ids - * @var integer[] + * @var int[] */ public $groupIDs = []; @@ -70,13 +70,13 @@ class UserMailForm extends AbstractForm { /** * single user id - * @var integer + * @var int */ public $userID = 0; /** * list of user ids - * @var integer[] + * @var int[] */ public $userIDs = []; diff --git a/wcfsetup/install/files/lib/acp/form/UserMergeForm.class.php b/wcfsetup/install/files/lib/acp/form/UserMergeForm.class.php index fe35d02997..ca46452613 100644 --- a/wcfsetup/install/files/lib/acp/form/UserMergeForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/UserMergeForm.class.php @@ -32,7 +32,7 @@ class UserMergeForm extends AbstractForm { /** * ids of the relevant users - * @var integer[] + * @var int[] */ public $userIDs = []; @@ -44,19 +44,19 @@ class UserMergeForm extends AbstractForm { /** * destination user id - * @var integer + * @var int */ public $destinationUserID = 0; /** * ids of merge users (without destination user) - * @var integer[] + * @var int[] */ public $mergedUserIDs = []; /** * id of the user clipboard item object type - * @var integer + * @var int */ protected $objectTypeID = null; diff --git a/wcfsetup/install/files/lib/acp/form/UserOptionAddForm.class.php b/wcfsetup/install/files/lib/acp/form/UserOptionAddForm.class.php index b01e20792d..654abf8ec4 100644 --- a/wcfsetup/install/files/lib/acp/form/UserOptionAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/UserOptionAddForm.class.php @@ -97,13 +97,13 @@ class UserOptionAddForm extends AbstractForm { /** * edit permission bitmask - * @var integer + * @var int */ public $editable = 3; /** * view permission bitmask - * @var integer + * @var int */ public $visible = 15; @@ -115,7 +115,7 @@ class UserOptionAddForm extends AbstractForm { /** * show order - * @var integer + * @var int */ public $showOrder = 0; diff --git a/wcfsetup/install/files/lib/acp/form/UserOptionCategoryAddForm.class.php b/wcfsetup/install/files/lib/acp/form/UserOptionCategoryAddForm.class.php index bd6f461b4c..b208555326 100644 --- a/wcfsetup/install/files/lib/acp/form/UserOptionCategoryAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/UserOptionCategoryAddForm.class.php @@ -35,7 +35,7 @@ class UserOptionCategoryAddForm extends AbstractForm { /** * show order - * @var integer + * @var int */ public $showOrder = 0; diff --git a/wcfsetup/install/files/lib/acp/form/UserOptionCategoryEditForm.class.php b/wcfsetup/install/files/lib/acp/form/UserOptionCategoryEditForm.class.php index bbf517d6c9..451a102b73 100644 --- a/wcfsetup/install/files/lib/acp/form/UserOptionCategoryEditForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/UserOptionCategoryEditForm.class.php @@ -23,7 +23,7 @@ class UserOptionCategoryEditForm extends UserOptionCategoryAddForm { /** * category id - * @var integer + * @var int */ public $categoryID = 0; diff --git a/wcfsetup/install/files/lib/acp/form/UserOptionEditForm.class.php b/wcfsetup/install/files/lib/acp/form/UserOptionEditForm.class.php index 340b3fa018..b8f332f8a2 100644 --- a/wcfsetup/install/files/lib/acp/form/UserOptionEditForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/UserOptionEditForm.class.php @@ -23,7 +23,7 @@ class UserOptionEditForm extends UserOptionAddForm { /** * user option id - * @var integer + * @var int */ public $optionID = 0; diff --git a/wcfsetup/install/files/lib/acp/form/UserOptionListForm.class.php b/wcfsetup/install/files/lib/acp/form/UserOptionListForm.class.php index 1bc5921f0b..4930f06e53 100644 --- a/wcfsetup/install/files/lib/acp/form/UserOptionListForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/UserOptionListForm.class.php @@ -35,7 +35,7 @@ abstract class UserOptionListForm extends AbstractOptionListForm { /** * Returns the default form language id. * - * @return integer $languageID + * @return int $languageID */ protected function getDefaultFormLanguageID() { return LanguageFactory::getInstance()->getDefaultLanguageID(); diff --git a/wcfsetup/install/files/lib/acp/form/UserRankAddForm.class.php b/wcfsetup/install/files/lib/acp/form/UserRankAddForm.class.php index 67e7a0d027..afcf897c70 100644 --- a/wcfsetup/install/files/lib/acp/form/UserRankAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/UserRankAddForm.class.php @@ -41,7 +41,7 @@ class UserRankAddForm extends AbstractForm { /** * rank group id - * @var integer + * @var int */ public $groupID = 0; @@ -65,7 +65,7 @@ class UserRankAddForm extends AbstractForm { /** * required activity points to acquire the rank - * @var integer + * @var int */ public $requiredPoints = 0; @@ -76,19 +76,19 @@ class UserRankAddForm extends AbstractForm { /** * number of image repeats - * @var integer + * @var int */ public $repeatImage = 1; /** * required gender setting (1=male; 2=female) - * @var integer + * @var int */ public $requiredGender = 0; /** * hide generic user title - * @var integer + * @var int */ public $hideTitle = 0; diff --git a/wcfsetup/install/files/lib/acp/form/UserRankEditForm.class.php b/wcfsetup/install/files/lib/acp/form/UserRankEditForm.class.php index 182fe59223..2488b4b5ea 100644 --- a/wcfsetup/install/files/lib/acp/form/UserRankEditForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/UserRankEditForm.class.php @@ -24,7 +24,7 @@ class UserRankEditForm extends UserRankAddForm { /** * rank id - * @var integer + * @var int */ public $rankID = 0; diff --git a/wcfsetup/install/files/lib/acp/form/UserSearchForm.class.php b/wcfsetup/install/files/lib/acp/form/UserSearchForm.class.php index 0d53c3a36e..08ae52b020 100755 --- a/wcfsetup/install/files/lib/acp/form/UserSearchForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/UserSearchForm.class.php @@ -48,7 +48,7 @@ class UserSearchForm extends UserOptionListForm { /** * search id - * @var integer + * @var int */ public $searchID = 0; @@ -66,7 +66,7 @@ class UserSearchForm extends UserOptionListForm { /** * results per page - * @var integer + * @var int */ public $itemsPerPage = 50; @@ -78,14 +78,14 @@ class UserSearchForm extends UserOptionListForm { /** * number of results - * @var integer + * @var int */ public $maxResults = 2000; /** * id of the group the users have to belong to * is used on the user group list to show all users of a user group - * @var integer + * @var int */ public $groupID = 0; diff --git a/wcfsetup/install/files/lib/acp/form/UserTrophyAddForm.class.php b/wcfsetup/install/files/lib/acp/form/UserTrophyAddForm.class.php index 123041e524..1eddbd8a1f 100644 --- a/wcfsetup/install/files/lib/acp/form/UserTrophyAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/UserTrophyAddForm.class.php @@ -46,7 +46,7 @@ class UserTrophyAddForm extends AbstractAcpForm { /** * List of user ids which earn the trophy. - * @var integer[] + * @var int[] */ public $userIDs = []; @@ -69,7 +69,7 @@ class UserTrophyAddForm extends AbstractAcpForm { public $trophyUseHtml = 0; /** - * @var integer + * @var int */ public $trophyID = 0; diff --git a/wcfsetup/install/files/lib/acp/page/ACPSessionLogPage.class.php b/wcfsetup/install/files/lib/acp/page/ACPSessionLogPage.class.php index 65a3b8fe87..9af99e6d67 100755 --- a/wcfsetup/install/files/lib/acp/page/ACPSessionLogPage.class.php +++ b/wcfsetup/install/files/lib/acp/page/ACPSessionLogPage.class.php @@ -44,7 +44,7 @@ class ACPSessionLogPage extends SortablePage { /** * session log id - * @var integer + * @var int */ public $sessionLogID = 0; diff --git a/wcfsetup/install/files/lib/acp/page/AbstractCategoryListPage.class.php b/wcfsetup/install/files/lib/acp/page/AbstractCategoryListPage.class.php index 11d87279bc..201204e4b1 100644 --- a/wcfsetup/install/files/lib/acp/page/AbstractCategoryListPage.class.php +++ b/wcfsetup/install/files/lib/acp/page/AbstractCategoryListPage.class.php @@ -33,13 +33,13 @@ abstract class AbstractCategoryListPage extends AbstractPage { /** * ids of collapsed categories - * @var integer[] + * @var int[] */ public $collapsedCategoryIDs = null; /** * id of the collapsible category object type - * @var integer + * @var int */ public $collapsibleObjectTypeID = 0; diff --git a/wcfsetup/install/files/lib/acp/page/ArticleListPage.class.php b/wcfsetup/install/files/lib/acp/page/ArticleListPage.class.php index fe7c5be753..472ede2fc9 100644 --- a/wcfsetup/install/files/lib/acp/page/ArticleListPage.class.php +++ b/wcfsetup/install/files/lib/acp/page/ArticleListPage.class.php @@ -65,7 +65,7 @@ class ArticleListPage extends SortablePage { /** * category id - * @var integer + * @var int */ public $categoryID = 0; @@ -89,13 +89,13 @@ class ArticleListPage extends SortablePage { /** * display 'Add Article' dialog on load - * @var integer + * @var int */ public $showArticleAddDialog = 0; /** * publication status filter - * @var integer + * @var int */ public $publicationStatus = -1; diff --git a/wcfsetup/install/files/lib/acp/page/BoxListPage.class.php b/wcfsetup/install/files/lib/acp/page/BoxListPage.class.php index 3c939cf3ec..5cb2d076ac 100644 --- a/wcfsetup/install/files/lib/acp/page/BoxListPage.class.php +++ b/wcfsetup/install/files/lib/acp/page/BoxListPage.class.php @@ -81,7 +81,7 @@ class BoxListPage extends SortablePage { /** * display 'Add Box' dialog on load - * @var integer + * @var int */ public $showBoxAddDialog = 0; diff --git a/wcfsetup/install/files/lib/acp/page/CacheListPage.class.php b/wcfsetup/install/files/lib/acp/page/CacheListPage.class.php index feab7c7120..fe08a08702 100755 --- a/wcfsetup/install/files/lib/acp/page/CacheListPage.class.php +++ b/wcfsetup/install/files/lib/acp/page/CacheListPage.class.php @@ -29,7 +29,7 @@ class CacheListPage extends AbstractPage { /** * indicates if cache was cleared - * @var integer + * @var int */ public $cleared = 0; diff --git a/wcfsetup/install/files/lib/acp/page/CronjobLogListPage.class.php b/wcfsetup/install/files/lib/acp/page/CronjobLogListPage.class.php index 05df8b3e3a..94993b5600 100755 --- a/wcfsetup/install/files/lib/acp/page/CronjobLogListPage.class.php +++ b/wcfsetup/install/files/lib/acp/page/CronjobLogListPage.class.php @@ -53,12 +53,12 @@ class CronjobLogListPage extends SortablePage { public $objectListClassName = CronjobLogList::class; /** - * @var integer + * @var int */ public $cronjobID = 0; /** - * @var integer + * @var int */ public $success = -1; diff --git a/wcfsetup/install/files/lib/acp/page/DevtoolsProjectPipEntryListPage.class.php b/wcfsetup/install/files/lib/acp/page/DevtoolsProjectPipEntryListPage.class.php index 4297e41053..5ed7a60c3d 100644 --- a/wcfsetup/install/files/lib/acp/page/DevtoolsProjectPipEntryListPage.class.php +++ b/wcfsetup/install/files/lib/acp/page/DevtoolsProjectPipEntryListPage.class.php @@ -26,7 +26,7 @@ class DevtoolsProjectPipEntryListPage extends AbstractPage { /** * indicates the range of the listed items - * @var integer + * @var int */ public $endIndex = 0; @@ -55,13 +55,13 @@ class DevtoolsProjectPipEntryListPage extends AbstractPage { /** * number of items shown per page - * @var integer + * @var int */ public $itemsPerPage = 100; /** * number of all items - * @var integer + * @var int */ public $items = 0; @@ -83,13 +83,13 @@ class DevtoolsProjectPipEntryListPage extends AbstractPage { /** * current page number - * @var integer + * @var int */ public $pageNo = 0; /** * number of all pages - * @var integer + * @var int */ public $pages = 0; @@ -113,13 +113,13 @@ class DevtoolsProjectPipEntryListPage extends AbstractPage { /** * project id - * @var integer + * @var int */ public $projectID = 0; /** * indicates the range of the listed items - * @var integer + * @var int */ public $startIndex = 0; diff --git a/wcfsetup/install/files/lib/acp/page/DevtoolsProjectPipListPage.class.php b/wcfsetup/install/files/lib/acp/page/DevtoolsProjectPipListPage.class.php index ccfa3afc8f..6179440c4d 100644 --- a/wcfsetup/install/files/lib/acp/page/DevtoolsProjectPipListPage.class.php +++ b/wcfsetup/install/files/lib/acp/page/DevtoolsProjectPipListPage.class.php @@ -38,7 +38,7 @@ class DevtoolsProjectPipListPage extends AbstractPage { /** * project id - * @var integer + * @var int */ public $projectID = 0; diff --git a/wcfsetup/install/files/lib/acp/page/DevtoolsProjectSyncPage.class.php b/wcfsetup/install/files/lib/acp/page/DevtoolsProjectSyncPage.class.php index cfdb1ef33c..a6c2ae31db 100644 --- a/wcfsetup/install/files/lib/acp/page/DevtoolsProjectSyncPage.class.php +++ b/wcfsetup/install/files/lib/acp/page/DevtoolsProjectSyncPage.class.php @@ -32,7 +32,7 @@ class DevtoolsProjectSyncPage extends AbstractPage { /** * project id - * @var integer + * @var int */ public $objectID = 0; diff --git a/wcfsetup/install/files/lib/acp/page/LabelListPage.class.php b/wcfsetup/install/files/lib/acp/page/LabelListPage.class.php index 7f23616d03..4acec06709 100644 --- a/wcfsetup/install/files/lib/acp/page/LabelListPage.class.php +++ b/wcfsetup/install/files/lib/acp/page/LabelListPage.class.php @@ -61,7 +61,7 @@ class LabelListPage extends SortablePage { /** * if of the label group to which the displayed labels belong - * @var integer + * @var int */ public $groupID = 0; diff --git a/wcfsetup/install/files/lib/acp/page/LanguageItemListPage.class.php b/wcfsetup/install/files/lib/acp/page/LanguageItemListPage.class.php index 7797f19ed3..d6f49cfb20 100644 --- a/wcfsetup/install/files/lib/acp/page/LanguageItemListPage.class.php +++ b/wcfsetup/install/files/lib/acp/page/LanguageItemListPage.class.php @@ -44,13 +44,13 @@ class LanguageItemListPage extends SortablePage { /** * language id - * @var integer + * @var int */ public $languageID = 0; /** * language category id - * @var integer + * @var int */ public $languageCategoryID = 0; @@ -86,7 +86,7 @@ class LanguageItemListPage extends SortablePage { /** * is `1` if only custom language items (created via ACP) should be shown - * @var integer + * @var int * @since 5.2 */ public $isCustomLanguageItem = 0; diff --git a/wcfsetup/install/files/lib/acp/page/MediaListPage.class.php b/wcfsetup/install/files/lib/acp/page/MediaListPage.class.php index 64446a5af2..eca9c82908 100644 --- a/wcfsetup/install/files/lib/acp/page/MediaListPage.class.php +++ b/wcfsetup/install/files/lib/acp/page/MediaListPage.class.php @@ -27,7 +27,7 @@ class MediaListPage extends SortablePage { /** * id of the selected media category - * @var integer + * @var int */ public $categoryID = 0; diff --git a/wcfsetup/install/files/lib/acp/page/MenuItemListPage.class.php b/wcfsetup/install/files/lib/acp/page/MenuItemListPage.class.php index ecf0db9c29..31eb02cd8f 100644 --- a/wcfsetup/install/files/lib/acp/page/MenuItemListPage.class.php +++ b/wcfsetup/install/files/lib/acp/page/MenuItemListPage.class.php @@ -34,7 +34,7 @@ class MenuItemListPage extends AbstractPage { /** * menu id - * @var integer + * @var int */ public $menuID = 0; diff --git a/wcfsetup/install/files/lib/acp/page/PackageInstallationConfirmPage.class.php b/wcfsetup/install/files/lib/acp/page/PackageInstallationConfirmPage.class.php index a876361f99..e8192d8c5f 100644 --- a/wcfsetup/install/files/lib/acp/page/PackageInstallationConfirmPage.class.php +++ b/wcfsetup/install/files/lib/acp/page/PackageInstallationConfirmPage.class.php @@ -36,7 +36,7 @@ class PackageInstallationConfirmPage extends AbstractPage { /** * queue id - * @var integer + * @var int */ public $queueID = 0; diff --git a/wcfsetup/install/files/lib/acp/page/PackageListPage.class.php b/wcfsetup/install/files/lib/acp/page/PackageListPage.class.php index b06da25f87..b43e061d64 100644 --- a/wcfsetup/install/files/lib/acp/page/PackageListPage.class.php +++ b/wcfsetup/install/files/lib/acp/page/PackageListPage.class.php @@ -43,7 +43,7 @@ class PackageListPage extends SortablePage { /** * package id for uninstallation - * @var integer + * @var int */ public $packageID = 0; diff --git a/wcfsetup/install/files/lib/acp/page/PackagePage.class.php b/wcfsetup/install/files/lib/acp/page/PackagePage.class.php index 56761d7d9f..bf3fe2e99f 100755 --- a/wcfsetup/install/files/lib/acp/page/PackagePage.class.php +++ b/wcfsetup/install/files/lib/acp/page/PackagePage.class.php @@ -21,7 +21,7 @@ class PackagePage extends AbstractPage { /** * list of compatible API versions - * @var integer[] + * @var int[] */ public $compatibleVersions = []; @@ -32,7 +32,7 @@ class PackagePage extends AbstractPage { /** * id of the package - * @var integer + * @var int */ public $packageID = 0; @@ -44,7 +44,7 @@ class PackagePage extends AbstractPage { /** * Plugin-Store fileID - * @var integer + * @var int */ public $pluginStoreFileID = 0; diff --git a/wcfsetup/install/files/lib/acp/page/PageBoxOrderPage.class.php b/wcfsetup/install/files/lib/acp/page/PageBoxOrderPage.class.php index 6b3974dd5f..17b945f66a 100644 --- a/wcfsetup/install/files/lib/acp/page/PageBoxOrderPage.class.php +++ b/wcfsetup/install/files/lib/acp/page/PageBoxOrderPage.class.php @@ -42,7 +42,7 @@ class PageBoxOrderPage extends AbstractPage { /** * page id - * @var integer + * @var int */ public $pageID = 0; diff --git a/wcfsetup/install/files/lib/acp/page/PageListPage.class.php b/wcfsetup/install/files/lib/acp/page/PageListPage.class.php index f32e32127e..ba23585fb3 100644 --- a/wcfsetup/install/files/lib/acp/page/PageListPage.class.php +++ b/wcfsetup/install/files/lib/acp/page/PageListPage.class.php @@ -70,7 +70,7 @@ class PageListPage extends SortablePage { /** * application id of the page - * @var integer + * @var int */ public $applicationPackageID = 0; diff --git a/wcfsetup/install/files/lib/acp/page/PaidSubscriptionTransactionLogListPage.class.php b/wcfsetup/install/files/lib/acp/page/PaidSubscriptionTransactionLogListPage.class.php index ec0ed9eaf0..85103f0902 100644 --- a/wcfsetup/install/files/lib/acp/page/PaidSubscriptionTransactionLogListPage.class.php +++ b/wcfsetup/install/files/lib/acp/page/PaidSubscriptionTransactionLogListPage.class.php @@ -66,7 +66,7 @@ class PaidSubscriptionTransactionLogListPage extends SortablePage { /** * subscription id - * @var integer + * @var int */ public $subscriptionID = 0; diff --git a/wcfsetup/install/files/lib/acp/page/PaidSubscriptionTransactionLogPage.class.php b/wcfsetup/install/files/lib/acp/page/PaidSubscriptionTransactionLogPage.class.php index 6548c933e0..3737dff65c 100644 --- a/wcfsetup/install/files/lib/acp/page/PaidSubscriptionTransactionLogPage.class.php +++ b/wcfsetup/install/files/lib/acp/page/PaidSubscriptionTransactionLogPage.class.php @@ -31,7 +31,7 @@ class PaidSubscriptionTransactionLogPage extends AbstractPage { /** * log entry id - * @var integer + * @var int */ public $logID = 0; diff --git a/wcfsetup/install/files/lib/acp/page/PaidSubscriptionUserListPage.class.php b/wcfsetup/install/files/lib/acp/page/PaidSubscriptionUserListPage.class.php index 207d48c78f..0cdc3abf24 100644 --- a/wcfsetup/install/files/lib/acp/page/PaidSubscriptionUserListPage.class.php +++ b/wcfsetup/install/files/lib/acp/page/PaidSubscriptionUserListPage.class.php @@ -55,7 +55,7 @@ class PaidSubscriptionUserListPage extends SortablePage { /** * subscription id - * @var integer + * @var int */ public $subscriptionID = 0; diff --git a/wcfsetup/install/files/lib/acp/page/SmileyListPage.class.php b/wcfsetup/install/files/lib/acp/page/SmileyListPage.class.php index 6376fa48a2..fa3f1a8dd1 100644 --- a/wcfsetup/install/files/lib/acp/page/SmileyListPage.class.php +++ b/wcfsetup/install/files/lib/acp/page/SmileyListPage.class.php @@ -51,7 +51,7 @@ class SmileyListPage extends MultipleLinkPage { /** * category id - * @var integer + * @var int */ public $categoryID = 0; diff --git a/wcfsetup/install/files/lib/acp/page/TemplateDiffPage.class.php b/wcfsetup/install/files/lib/acp/page/TemplateDiffPage.class.php index f34a62983a..e46417d22a 100644 --- a/wcfsetup/install/files/lib/acp/page/TemplateDiffPage.class.php +++ b/wcfsetup/install/files/lib/acp/page/TemplateDiffPage.class.php @@ -25,7 +25,7 @@ class TemplateDiffPage extends AbstractPage { /** * template id - * @var integer + * @var int */ public $templateID = 0; @@ -37,7 +37,7 @@ class TemplateDiffPage extends AbstractPage { /** * template id of the template to compare with - * @var integer + * @var int */ public $parentID = 0; diff --git a/wcfsetup/install/files/lib/acp/page/TemplateListPage.class.php b/wcfsetup/install/files/lib/acp/page/TemplateListPage.class.php index 4759813a41..a0009de2e1 100644 --- a/wcfsetup/install/files/lib/acp/page/TemplateListPage.class.php +++ b/wcfsetup/install/files/lib/acp/page/TemplateListPage.class.php @@ -52,7 +52,7 @@ class TemplateListPage extends SortablePage { /** * template group id - * @var integer + * @var int */ public $templateGroupID = 0; diff --git a/wcfsetup/install/files/lib/acp/page/UserGroupListPage.class.php b/wcfsetup/install/files/lib/acp/page/UserGroupListPage.class.php index 09b1aee640..ad81bd52e4 100755 --- a/wcfsetup/install/files/lib/acp/page/UserGroupListPage.class.php +++ b/wcfsetup/install/files/lib/acp/page/UserGroupListPage.class.php @@ -42,7 +42,7 @@ class UserGroupListPage extends SortablePage { /** * indicates if a group has just been deleted - * @var integer + * @var int */ public $deletedGroups = 0; diff --git a/wcfsetup/install/files/lib/acp/page/UserListPage.class.php b/wcfsetup/install/files/lib/acp/page/UserListPage.class.php index 4271a77dd0..fef02d9847 100755 --- a/wcfsetup/install/files/lib/acp/page/UserListPage.class.php +++ b/wcfsetup/install/files/lib/acp/page/UserListPage.class.php @@ -68,7 +68,7 @@ class UserListPage extends SortablePage { /** * list of marked user ids - * @var integer[] + * @var int[] */ public $markedUsers = []; @@ -91,13 +91,13 @@ class UserListPage extends SortablePage { /** * id of a user search - * @var integer + * @var int */ public $searchID = 0; /** * list of user ids - * @var integer[] + * @var int[] */ public $userIDs = []; diff --git a/wcfsetup/install/files/lib/acp/page/UserTrophyListPage.class.php b/wcfsetup/install/files/lib/acp/page/UserTrophyListPage.class.php index f9056b18f2..532dd75e16 100644 --- a/wcfsetup/install/files/lib/acp/page/UserTrophyListPage.class.php +++ b/wcfsetup/install/files/lib/acp/page/UserTrophyListPage.class.php @@ -60,7 +60,7 @@ class UserTrophyListPage extends SortablePage { /** * The filter value for the trophy id. - * @var integer + * @var int */ public $trophyID = 0; diff --git a/wcfsetup/install/files/lib/acp/page/VersionTrackerListPage.class.php b/wcfsetup/install/files/lib/acp/page/VersionTrackerListPage.class.php index 6f6cb832d9..14a0289e4a 100644 --- a/wcfsetup/install/files/lib/acp/page/VersionTrackerListPage.class.php +++ b/wcfsetup/install/files/lib/acp/page/VersionTrackerListPage.class.php @@ -26,7 +26,7 @@ use wcf\util\StringUtil; class VersionTrackerListPage extends AbstractPage { /** * object id - * @var integer + * @var int */ public $objectID = 0; @@ -48,7 +48,7 @@ class VersionTrackerListPage extends AbstractPage { /** * left / old version id - * @var integer + * @var int */ public $oldID = 0; @@ -60,7 +60,7 @@ class VersionTrackerListPage extends AbstractPage { /** * right / new version id - * @var integer + * @var int */ public $newID = 0; diff --git a/wcfsetup/install/files/lib/action/AJAXProxyAction.class.php b/wcfsetup/install/files/lib/action/AJAXProxyAction.class.php index 4ab7fd4898..5fd7802ed3 100644 --- a/wcfsetup/install/files/lib/action/AJAXProxyAction.class.php +++ b/wcfsetup/install/files/lib/action/AJAXProxyAction.class.php @@ -30,7 +30,7 @@ class AJAXProxyAction extends AJAXInvokeAction { /** * list of object ids - * @var integer[] + * @var int[] */ protected $objectIDs = []; diff --git a/wcfsetup/install/files/lib/action/BackgroundQueuePerformAction.class.php b/wcfsetup/install/files/lib/action/BackgroundQueuePerformAction.class.php index b711c5a2d1..02daba211a 100644 --- a/wcfsetup/install/files/lib/action/BackgroundQueuePerformAction.class.php +++ b/wcfsetup/install/files/lib/action/BackgroundQueuePerformAction.class.php @@ -15,7 +15,7 @@ use wcf\system\WCF; class BackgroundQueuePerformAction extends AbstractAction { /** * number of jobs that will be processed per invocation - * @var integer + * @var int */ public static $jobsPerRun = 5; diff --git a/wcfsetup/install/files/lib/action/GravatarDownloadAction.class.php b/wcfsetup/install/files/lib/action/GravatarDownloadAction.class.php index 8289d4a36d..0eced8e08f 100644 --- a/wcfsetup/install/files/lib/action/GravatarDownloadAction.class.php +++ b/wcfsetup/install/files/lib/action/GravatarDownloadAction.class.php @@ -20,7 +20,7 @@ use wcf\util\HTTPRequest; class GravatarDownloadAction extends AbstractAction { /** * user id - * @var integer + * @var int */ public $userID = 0; @@ -32,7 +32,7 @@ class GravatarDownloadAction extends AbstractAction { /** * avatar size - * @var integer + * @var int */ public $size = UserAvatar::AVATAR_SIZE; diff --git a/wcfsetup/install/files/lib/action/MessageQuoteAction.class.php b/wcfsetup/install/files/lib/action/MessageQuoteAction.class.php index 64ed74ad7c..0eb50063d9 100644 --- a/wcfsetup/install/files/lib/action/MessageQuoteAction.class.php +++ b/wcfsetup/install/files/lib/action/MessageQuoteAction.class.php @@ -20,7 +20,7 @@ class MessageQuoteAction extends AJAXProxyAction { /** * indicates if the WCF.Message.Quote.Manager object requesting data has any * quote handlers which require updated object ids of full quotes - * @var integer + * @var int */ public $_getFullQuoteObjectIDs = false; @@ -120,7 +120,7 @@ class MessageQuoteAction extends AJAXProxyAction { /** * Returns the count of stored quotes. * - * @return integer + * @return int */ protected function count() { return MessageQuoteManager::getInstance()->countQuotes(); @@ -149,7 +149,7 @@ class MessageQuoteAction extends AJAXProxyAction { /** * Removes a list of quotes from storage and returns the remaining count. * - * @return integer + * @return int * @throws SystemException * @throws UserInputException */ @@ -170,7 +170,7 @@ class MessageQuoteAction extends AJAXProxyAction { /** * Removes all quotes marked for removal and returns the remaining count. * - * @return integer + * @return int */ protected function removeMarkedQuotes() { MessageQuoteManager::getInstance()->removeMarkedQuotes(); diff --git a/wcfsetup/install/files/lib/action/NotificationConfirmAction.class.php b/wcfsetup/install/files/lib/action/NotificationConfirmAction.class.php index a9fe3ac7d5..b571e4d570 100644 --- a/wcfsetup/install/files/lib/action/NotificationConfirmAction.class.php +++ b/wcfsetup/install/files/lib/action/NotificationConfirmAction.class.php @@ -34,7 +34,7 @@ class NotificationConfirmAction extends AbstractAction { /** * user notification id - * @var integer + * @var int */ public $notificationID = 0; diff --git a/wcfsetup/install/files/lib/action/NotificationDisableAction.class.php b/wcfsetup/install/files/lib/action/NotificationDisableAction.class.php index 101e7f4be1..ba905208b3 100644 --- a/wcfsetup/install/files/lib/action/NotificationDisableAction.class.php +++ b/wcfsetup/install/files/lib/action/NotificationDisableAction.class.php @@ -17,13 +17,13 @@ use wcf\util\StringUtil; class NotificationDisableAction extends AbstractAction { /** * event id - * @var integer + * @var int */ public $eventID = 0; /** * user id - * @var integer + * @var int */ public $userID = 0; diff --git a/wcfsetup/install/files/lib/action/PollAction.class.php b/wcfsetup/install/files/lib/action/PollAction.class.php index ac588e1646..417977062c 100644 --- a/wcfsetup/install/files/lib/action/PollAction.class.php +++ b/wcfsetup/install/files/lib/action/PollAction.class.php @@ -26,7 +26,7 @@ class PollAction extends AJAXProxyAction { /** * list of option ids - * @var integer[] + * @var int[] */ public $optionIDs = []; @@ -38,7 +38,7 @@ class PollAction extends AJAXProxyAction { /** * poll id - * @var integer + * @var int */ public $pollID = 0; diff --git a/wcfsetup/install/files/lib/data/AbstractDatabaseObjectAction.class.php b/wcfsetup/install/files/lib/data/AbstractDatabaseObjectAction.class.php index 8c8b752537..90a4071bf4 100644 --- a/wcfsetup/install/files/lib/data/AbstractDatabaseObjectAction.class.php +++ b/wcfsetup/install/files/lib/data/AbstractDatabaseObjectAction.class.php @@ -33,7 +33,7 @@ abstract class AbstractDatabaseObjectAction implements IDatabaseObjectAction, ID /** * list of object ids - * @var integer[] + * @var int[] */ protected $objectIDs = []; @@ -490,14 +490,14 @@ abstract class AbstractDatabaseObjectAction implements IDatabaseObjectAction, ID /** * Reads a value and validates it. If you set $allowEmpty to true, no exception will - * be thrown if the variable evaluates to 0 (integer) or '' (string). Furthermore the + * be thrown if the variable evaluates to 0 (int) or '' (string). Furthermore the * variable will be always created with a sane value if it does not exist. * * @param string $variableName * @param boolean $allowEmpty * @param string $arrayIndex - * @param integer $type - * @param integer $structure + * @param int $type + * @param int $structure * @throws SystemException * @throws UserInputException */ diff --git a/wcfsetup/install/files/lib/data/DatabaseObject.class.php b/wcfsetup/install/files/lib/data/DatabaseObject.class.php index 021e279770..fc1e6f7fc5 100644 --- a/wcfsetup/install/files/lib/data/DatabaseObject.class.php +++ b/wcfsetup/install/files/lib/data/DatabaseObject.class.php @@ -102,7 +102,7 @@ abstract class DatabaseObject implements IIDObject, IStorableObject { /** * Returns the id of the object. * - * @return integer + * @return int */ public function getObjectID() { return $this->data[static::getDatabaseTableIndexName()]; diff --git a/wcfsetup/install/files/lib/data/DatabaseObjectList.class.php b/wcfsetup/install/files/lib/data/DatabaseObjectList.class.php index 3879c6f883..936d1e04f5 100644 --- a/wcfsetup/install/files/lib/data/DatabaseObjectList.class.php +++ b/wcfsetup/install/files/lib/data/DatabaseObjectList.class.php @@ -40,19 +40,19 @@ abstract class DatabaseObjectList implements \Countable, ITraversableObject { /** * ids of result objects - * @var integer[] + * @var int[] */ public $objectIDs = null; /** * sql offset - * @var integer + * @var int */ public $sqlOffset = 0; /** * sql limit - * @var integer + * @var int */ public $sqlLimit = 0; @@ -94,13 +94,13 @@ abstract class DatabaseObjectList implements \Countable, ITraversableObject { /** * current iterator index - * @var integer + * @var int */ protected $index = 0; /** * list of index to object relation - * @var integer[] + * @var int[] */ protected $indexToObject = null; @@ -138,7 +138,7 @@ abstract class DatabaseObjectList implements \Countable, ITraversableObject { /** * Counts the number of objects. * - * @return integer + * @return int */ public function countObjects() { $sql = "SELECT COUNT(*) @@ -219,7 +219,7 @@ abstract class DatabaseObjectList implements \Countable, ITraversableObject { /** * Returns the object ids of the list. * - * @return integer[] + * @return int[] */ public function getObjectIDs() { return $this->objectIDs; @@ -228,7 +228,7 @@ abstract class DatabaseObjectList implements \Countable, ITraversableObject { /** * Sets the object ids. * - * @param integer[] $objectIDs + * @param int[] $objectIDs */ public function setObjectIDs(array $objectIDs) { $this->objectIDs = array_merge($objectIDs); diff --git a/wcfsetup/install/files/lib/data/I18nDatabaseObjectList.class.php b/wcfsetup/install/files/lib/data/I18nDatabaseObjectList.class.php index eb47c03b96..9548091742 100644 --- a/wcfsetup/install/files/lib/data/I18nDatabaseObjectList.class.php +++ b/wcfsetup/install/files/lib/data/I18nDatabaseObjectList.class.php @@ -28,7 +28,7 @@ abstract class I18nDatabaseObjectList extends DatabaseObjectList { /** * @inheritDoc - * @param integer $languageID id of the language that should be used + * @param int $languageID id of the language that should be used * @throws \DomainException */ public function __construct($languageID = null) { diff --git a/wcfsetup/install/files/lib/data/IDatabaseObjectAction.class.php b/wcfsetup/install/files/lib/data/IDatabaseObjectAction.class.php index bcf5ada69c..2ff4e7f178 100644 --- a/wcfsetup/install/files/lib/data/IDatabaseObjectAction.class.php +++ b/wcfsetup/install/files/lib/data/IDatabaseObjectAction.class.php @@ -30,7 +30,7 @@ interface IDatabaseObjectAction { /** * Returns DatabaseObject-related object ids. * - * @return integer[] + * @return int[] */ public function getObjectIDs(); diff --git a/wcfsetup/install/files/lib/data/IDeleteAction.class.php b/wcfsetup/install/files/lib/data/IDeleteAction.class.php index 940d661d19..eb4690d65c 100644 --- a/wcfsetup/install/files/lib/data/IDeleteAction.class.php +++ b/wcfsetup/install/files/lib/data/IDeleteAction.class.php @@ -14,7 +14,7 @@ interface IDeleteAction { /** * Deletes the relevant objects and returns the number of deleted objects. * - * @return integer + * @return int */ public function delete(); diff --git a/wcfsetup/install/files/lib/data/IEditableObject.class.php b/wcfsetup/install/files/lib/data/IEditableObject.class.php index 85e80306c8..0de8a9581c 100644 --- a/wcfsetup/install/files/lib/data/IEditableObject.class.php +++ b/wcfsetup/install/files/lib/data/IEditableObject.class.php @@ -42,7 +42,7 @@ interface IEditableObject extends IStorableObject { * objects. * * @param array $objectIDs - * @return integer + * @return int */ public static function deleteAll(array $objectIDs = []); } diff --git a/wcfsetup/install/files/lib/data/IFeedEntry.class.php b/wcfsetup/install/files/lib/data/IFeedEntry.class.php index e1c9897e43..e45ebcf4bf 100644 --- a/wcfsetup/install/files/lib/data/IFeedEntry.class.php +++ b/wcfsetup/install/files/lib/data/IFeedEntry.class.php @@ -13,7 +13,7 @@ interface IFeedEntry extends IMessage { /** * Returns the number of comments. * - * @return integer + * @return int */ public function getComments(); diff --git a/wcfsetup/install/files/lib/data/IFile.class.php b/wcfsetup/install/files/lib/data/IFile.class.php index 18eb9e7012..791e7177ca 100644 --- a/wcfsetup/install/files/lib/data/IFile.class.php +++ b/wcfsetup/install/files/lib/data/IFile.class.php @@ -11,9 +11,9 @@ namespace wcf\data; * @since 3.0 * * @property-read string $fileType type of the physical attachment file - * @property-read integer $isImage is `1` if the file is an image, otherwise `0` - * @property-read integer $width width of the file if `$isImage` is `1`, otherwise `0` - * @property-read integer $height height of the file if `$isImage` is `1`, otherwise `0` + * @property-read int $isImage is `1` if the file is an image, otherwise `0` + * @property-read int $width width of the file if `$isImage` is `1`, otherwise `0` + * @property-read int $height height of the file if `$isImage` is `1`, otherwise `0` */ interface IFile extends IStorableObject { /** diff --git a/wcfsetup/install/files/lib/data/IIDObject.class.php b/wcfsetup/install/files/lib/data/IIDObject.class.php index 4ff7595da1..d249a9efbf 100644 --- a/wcfsetup/install/files/lib/data/IIDObject.class.php +++ b/wcfsetup/install/files/lib/data/IIDObject.class.php @@ -14,7 +14,7 @@ interface IIDObject { /** * Returns the unique id of the object. * - * @return integer + * @return int */ public function getObjectID(); } diff --git a/wcfsetup/install/files/lib/data/IMessage.class.php b/wcfsetup/install/files/lib/data/IMessage.class.php index 8174918875..b930e18f89 100644 --- a/wcfsetup/install/files/lib/data/IMessage.class.php +++ b/wcfsetup/install/files/lib/data/IMessage.class.php @@ -13,7 +13,7 @@ interface IMessage extends IUserContent { /** * Returns a simplified message (only inline codes), truncated to 255 characters by default. * - * @param integer $maxLength + * @param int $maxLength * @return string */ public function getExcerpt($maxLength = 255); diff --git a/wcfsetup/install/files/lib/data/IMessageQuickReplyAction.class.php b/wcfsetup/install/files/lib/data/IMessageQuickReplyAction.class.php index c13e39134b..a509ef9465 100644 --- a/wcfsetup/install/files/lib/data/IMessageQuickReplyAction.class.php +++ b/wcfsetup/install/files/lib/data/IMessageQuickReplyAction.class.php @@ -30,7 +30,7 @@ interface IMessageQuickReplyAction { * Returns a message list object. * * @param DatabaseObject $container - * @param integer $lastMessageTime + * @param int $lastMessageTime * @return DatabaseObjectList */ public function getMessageList(DatabaseObject $container, $lastMessageTime); diff --git a/wcfsetup/install/files/lib/data/IObjectTreeNode.class.php b/wcfsetup/install/files/lib/data/IObjectTreeNode.class.php index b8e6e3dfaa..453f00950e 100644 --- a/wcfsetup/install/files/lib/data/IObjectTreeNode.class.php +++ b/wcfsetup/install/files/lib/data/IObjectTreeNode.class.php @@ -24,14 +24,14 @@ interface IObjectTreeNode extends \Countable, IIDObject, \RecursiveIterator { * * The minimum depth is `1`. * - * @return integer + * @return int */ public function getDepth(); /** * Returns the number of open parent nodes. * - * @return integer + * @return int */ public function getOpenParentNodes(); diff --git a/wcfsetup/install/files/lib/data/IPollContainer.class.php b/wcfsetup/install/files/lib/data/IPollContainer.class.php index a176cad398..62af1f7b5e 100644 --- a/wcfsetup/install/files/lib/data/IPollContainer.class.php +++ b/wcfsetup/install/files/lib/data/IPollContainer.class.php @@ -14,7 +14,7 @@ interface IPollContainer extends IIDObject, IPollObject { /** * Returns the id of the poll that belongs to this object or `null` if there is no such poll. * - * @return null|integer + * @return null|int */ public function getPollID(); } diff --git a/wcfsetup/install/files/lib/data/ITraversableObject.class.php b/wcfsetup/install/files/lib/data/ITraversableObject.class.php index 1a49e0ead1..9cddd88e60 100644 --- a/wcfsetup/install/files/lib/data/ITraversableObject.class.php +++ b/wcfsetup/install/files/lib/data/ITraversableObject.class.php @@ -13,7 +13,7 @@ interface ITraversableObject extends \SeekableIterator { /** * Sets internal iterator pointer based upon related object id. * - * @param integer $objectID + * @param int $objectID */ public function seekTo($objectID); @@ -21,7 +21,7 @@ interface ITraversableObject extends \SeekableIterator { * Searches a specific object by object id and setting internal iterator * pointer to found item. Returns `null` if object id is not found. * - * @param integer $objectID + * @param int $objectID * @return DatabaseObject|null */ public function search($objectID); diff --git a/wcfsetup/install/files/lib/data/IUserContent.class.php b/wcfsetup/install/files/lib/data/IUserContent.class.php index ee2319a5e9..9675c3b211 100644 --- a/wcfsetup/install/files/lib/data/IUserContent.class.php +++ b/wcfsetup/install/files/lib/data/IUserContent.class.php @@ -13,14 +13,14 @@ interface IUserContent extends ITitledLinkObject { /** * Returns message creation timestamp. * - * @return integer + * @return int */ public function getTime(); /** * Returns author's user id. * - * @return integer + * @return int */ public function getUserID(); diff --git a/wcfsetup/install/files/lib/data/TMultiCategoryObject.class.php b/wcfsetup/install/files/lib/data/TMultiCategoryObject.class.php index 89299089f6..94d66d35ae 100644 --- a/wcfsetup/install/files/lib/data/TMultiCategoryObject.class.php +++ b/wcfsetup/install/files/lib/data/TMultiCategoryObject.class.php @@ -29,7 +29,7 @@ trait TMultiCategoryObject { /** * ids of the object's categories - * @var integer[] + * @var int[] */ protected $categoryIDs = []; @@ -42,7 +42,7 @@ trait TMultiCategoryObject { /** * Returns the list of category ids. * - * @return integer[] + * @return int[] */ public function getCategoryIDs() { return $this->categoryIDs; @@ -117,7 +117,7 @@ trait TMultiCategoryObject { /** * Sets a category id. * - * @param integer $categoryID + * @param int $categoryID */ public function setCategoryID($categoryID) { $this->categoryIDs[] = $categoryID; @@ -126,7 +126,7 @@ trait TMultiCategoryObject { /** * Sets a category ids. * - * @param integer[] $categoryIDs + * @param int[] $categoryIDs */ public function setCategoryIDs(array $categoryIDs) { $this->categoryIDs = $categoryIDs; diff --git a/wcfsetup/install/files/lib/data/TObjectTreeNode.class.php b/wcfsetup/install/files/lib/data/TObjectTreeNode.class.php index 6756babc44..e79d0f2339 100644 --- a/wcfsetup/install/files/lib/data/TObjectTreeNode.class.php +++ b/wcfsetup/install/files/lib/data/TObjectTreeNode.class.php @@ -20,7 +20,7 @@ trait TObjectTreeNode { /** * current iterator key - * @var integer + * @var int */ protected $index = 0; @@ -49,7 +49,7 @@ trait TObjectTreeNode { /** * Returns the number of child nodes. * - * @return integer + * @return int */ public function count() { return count($this->children); @@ -78,7 +78,7 @@ trait TObjectTreeNode { * * The minimum depth is `1`. * - * @return integer + * @return int */ public function getDepth() { $element = $this; @@ -95,7 +95,7 @@ trait TObjectTreeNode { /** * Returns the number of open parent nodes. * - * @return integer + * @return int */ public function getOpenParentNodes() { $element = $this; @@ -130,7 +130,7 @@ trait TObjectTreeNode { /** * Return the key of the currently iterated child node. * - * @return integer + * @return int */ public function key() { return $this->index; diff --git a/wcfsetup/install/files/lib/data/acl/option/ACLOption.class.php b/wcfsetup/install/files/lib/data/acl/option/ACLOption.class.php index afd6b4ca09..32494ae5dc 100644 --- a/wcfsetup/install/files/lib/data/acl/option/ACLOption.class.php +++ b/wcfsetup/install/files/lib/data/acl/option/ACLOption.class.php @@ -10,9 +10,9 @@ use wcf\data\DatabaseObject; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\Acl\Option * - * @property-read integer $optionID unique id of the acl option - * @property-read integer $packageID id of the package which delivers the acl option - * @property-read integer $objectTypeID id of the `com.woltlab.wcf.acl` object type + * @property-read int $optionID unique id of the acl option + * @property-read int $packageID id of the package which delivers the acl option + * @property-read int $objectTypeID id of the `com.woltlab.wcf.acl` object type * @property-read string $optionName name and textual identifier of the acl option * @property-read string $categoryName name of the acl option category the option belongs to */ @@ -20,7 +20,7 @@ class ACLOption extends DatabaseObject { /** * Returns a list of options by object type id. * - * @param integer $objectTypeID + * @param int $objectTypeID * @return ACLOptionList */ public static function getOptions($objectTypeID) { diff --git a/wcfsetup/install/files/lib/data/acl/option/category/ACLOptionCategory.class.php b/wcfsetup/install/files/lib/data/acl/option/category/ACLOptionCategory.class.php index 441f1cde18..982ed63b20 100644 --- a/wcfsetup/install/files/lib/data/acl/option/category/ACLOptionCategory.class.php +++ b/wcfsetup/install/files/lib/data/acl/option/category/ACLOptionCategory.class.php @@ -10,9 +10,9 @@ use wcf\data\DatabaseObject; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\Acl\Option\Category * - * @property-read integer $categoryID unique id of the acl option category - * @property-read integer $packageID id of the package which delivers the acl option category - * @property-read integer $objectTypeID id of the `com.woltlab.wcf.acl` object type + * @property-read int $categoryID unique id of the acl option category + * @property-read int $packageID id of the package which delivers the acl option category + * @property-read int $objectTypeID id of the `com.woltlab.wcf.acl` object type * @property-read string $categoryName name and textual identifier of the acl option category */ class ACLOptionCategory extends DatabaseObject {} diff --git a/wcfsetup/install/files/lib/data/acp/menu/item/ACPMenuItem.class.php b/wcfsetup/install/files/lib/data/acp/menu/item/ACPMenuItem.class.php index 2dba4bb1d0..e8db518923 100644 --- a/wcfsetup/install/files/lib/data/acp/menu/item/ACPMenuItem.class.php +++ b/wcfsetup/install/files/lib/data/acp/menu/item/ACPMenuItem.class.php @@ -14,13 +14,13 @@ use wcf\system\WCF; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\Acp\Menu\Item * - * @property-read integer $menuItemID unique id of the ACP menu item - * @property-read integer $packageID id of the package which delivers the ACP menu item + * @property-read int $menuItemID unique id of the ACP menu item + * @property-read int $packageID id of the package which delivers the ACP menu item * @property-read string $menuItem textual identifier of the ACP menu item * @property-read string $parentMenuItem textual identifier of the ACP menu item's parent menu item or empty if it has no parent menu item * @property-read string $menuItemController class name of the ACP menu item's controller used to generate menu item link * @property-read string $menuItemLink additional part of the ACP menu item link if `$menuItemController` is set, external link or name of language item which contains the external link - * @property-read integer $showOrder position of the ACP menu item in relation to its siblings + * @property-read int $showOrder position of the ACP menu item in relation to its siblings * @property-read string $permissions comma separated list of user group permissions of which the active user needs to have at least one to see the ACP menu item * @property-read string $options comma separated list of options of which at least one needs to be enabled for the ACP menu item to be shown * @property-read string $icon FontAwesome CSS class name for ACP menu items on the first or third level diff --git a/wcfsetup/install/files/lib/data/acp/search/provider/ACPSearchProvider.class.php b/wcfsetup/install/files/lib/data/acp/search/provider/ACPSearchProvider.class.php index 0509d087cf..6f9e65656f 100644 --- a/wcfsetup/install/files/lib/data/acp/search/provider/ACPSearchProvider.class.php +++ b/wcfsetup/install/files/lib/data/acp/search/provider/ACPSearchProvider.class.php @@ -10,11 +10,11 @@ use wcf\data\DatabaseObject; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\Acp\Search\Provider * - * @property-read integer $providerID unique id of the ACP search provider - * @property-read integer $packageID id of the package which delivers the ACP search provider + * @property-read int $providerID unique id of the ACP search provider + * @property-read int $packageID id of the package which delivers the ACP search provider * @property-read string $providerName textual identifier of the ACP search provider * @property-read string $className class name of the `wcf\system\search\acp\IACPSearchResultProvider` implementation executing the search - * @property-read integer $showOrder position of the grouped results of the ACP search provider within the result list + * @property-read int $showOrder position of the grouped results of the ACP search provider within the result list */ class ACPSearchProvider extends DatabaseObject { /** diff --git a/wcfsetup/install/files/lib/data/acp/session/ACPSession.class.php b/wcfsetup/install/files/lib/data/acp/session/ACPSession.class.php index 28ce3e7458..985e223735 100644 --- a/wcfsetup/install/files/lib/data/acp/session/ACPSession.class.php +++ b/wcfsetup/install/files/lib/data/acp/session/ACPSession.class.php @@ -12,10 +12,10 @@ use wcf\system\WCF; * @package WoltLabSuite\Core\Data\Acp\Session * * @property-read string $sessionID unique textual identifier of the acp session - * @property-read integer|null $userID id of the user the acp session belongs to or `null` if the acp session belongs to a guest + * @property-read int|null $userID id of the user the acp session belongs to or `null` if the acp session belongs to a guest * @property-read string $ipAddress id of the user whom the acp session belongs to * @property-read string $userAgent user agent of the user whom the acp session belongs to - * @property-read integer $lastActivityTime timestamp at which the latest activity occurred + * @property-read int $lastActivityTime timestamp at which the latest activity occurred * @property-read string $requestURI uri of the latest request * @property-read string $requestMethod used request method of the latest request (`GET`, `POST`) * @property-read string $sessionVariables serialized array with variables stored on a session-basis @@ -39,7 +39,7 @@ class ACPSession extends DatabaseObject { * Returns the existing session object for given user id or null if there * is no such session. * - * @param integer $userID + * @param int $userID * @return ACPSession */ public static function getSessionByUserID($userID) { diff --git a/wcfsetup/install/files/lib/data/acp/session/access/log/ACPSessionAccessLog.class.php b/wcfsetup/install/files/lib/data/acp/session/access/log/ACPSessionAccessLog.class.php index 65a7241f07..45b5e96b07 100644 --- a/wcfsetup/install/files/lib/data/acp/session/access/log/ACPSessionAccessLog.class.php +++ b/wcfsetup/install/files/lib/data/acp/session/access/log/ACPSessionAccessLog.class.php @@ -11,10 +11,10 @@ use wcf\util\UserUtil; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\Acp\Session\Access\Log * - * @property-read integer $sessionAccessLogID unique id of the acp session access log entry - * @property-read integer $sessionLogID id of the acp session log entry the access log entry belongs to + * @property-read int $sessionAccessLogID unique id of the acp session access log entry + * @property-read int $sessionLogID id of the acp session log entry the access log entry belongs to * @property-read string $ipAddress ip address of the user who has caused the acp session access log entry - * @property-read integer $time timestamp at which the acp session access log entry has been created + * @property-read int $time timestamp at which the acp session access log entry has been created * @property-read string $requestURI uri of the logged request * @property-read string $requestMethod used request method (`GET`, `POST`) * @property-read string $className name of the PHP controller class diff --git a/wcfsetup/install/files/lib/data/acp/session/log/ACPSessionLog.class.php b/wcfsetup/install/files/lib/data/acp/session/log/ACPSessionLog.class.php index d47fb97ba4..2a8111702e 100644 --- a/wcfsetup/install/files/lib/data/acp/session/log/ACPSessionLog.class.php +++ b/wcfsetup/install/files/lib/data/acp/session/log/ACPSessionLog.class.php @@ -12,14 +12,14 @@ use wcf\util\UserUtil; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\Acp\Session\Log * - * @property-read integer $sessionLogID unique id of the acp session log entry + * @property-read int $sessionLogID unique id of the acp session log entry * @property-read string $sessionID id of the acp session the acp session log entry belongs to - * @property-read integer|null $userID id of the user who has caused the acp session log entry or `null` + * @property-read int|null $userID id of the user who has caused the acp session log entry or `null` * @property-read string $ipAddress ip address of the user who has caused the acp session access log entry * @property-read string $hostname name of the internet host corresponding to the user's IP address * @property-read string $userAgent user agent of the user who has caused the acp session access log entry - * @property-read integer $time timestamp at which the acp session log entry has been created - * @property-read integer $lastActivityTime timestamp at which the associated session has been active for the last time + * @property-read int $time timestamp at which the acp session log entry has been created + * @property-read int $lastActivityTime timestamp at which the associated session has been active for the last time * @property-read string|null $active has the corresponding acp session id as the value if the session is still active, otherwise `null` */ class ACPSessionLog extends DatabaseObject { diff --git a/wcfsetup/install/files/lib/data/acp/template/ACPTemplate.class.php b/wcfsetup/install/files/lib/data/acp/template/ACPTemplate.class.php index 4fd9365161..d75c68be8e 100644 --- a/wcfsetup/install/files/lib/data/acp/template/ACPTemplate.class.php +++ b/wcfsetup/install/files/lib/data/acp/template/ACPTemplate.class.php @@ -11,8 +11,8 @@ use wcf\data\DatabaseObject; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\Acp\Template * - * @property-read integer $templateID unique id of the acp template - * @property-read integer|null $packageID id of the package which delivers the acp template + * @property-read int $templateID unique id of the acp template + * @property-read int|null $packageID id of the package which delivers the acp template * @property-read string $templateName name of the template * @property-read string $application abbreviation of the application to which the template belongs */ diff --git a/wcfsetup/install/files/lib/data/ad/Ad.class.php b/wcfsetup/install/files/lib/data/ad/Ad.class.php index 4e1a9c3c09..0af66340e5 100644 --- a/wcfsetup/install/files/lib/data/ad/Ad.class.php +++ b/wcfsetup/install/files/lib/data/ad/Ad.class.php @@ -17,12 +17,12 @@ use wcf\util\StringUtil; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\Ad * - * @property-read integer $adID unique id of the ad - * @property-read integer $objectTypeID id of the `com.woltlab.wcf.adLocation` object type + * @property-read int $adID unique id of the ad + * @property-read int $objectTypeID id of the `com.woltlab.wcf.adLocation` object type * @property-read string $adName name of the ad shown in ACP * @property-read string $ad ad text - * @property-read integer $isDisabled is `1` if the ad is disabled and thus not shown, otherwise `0` - * @property-read integer $showOrder position of the ad in relation to the other ads at the same location + * @property-read int $isDisabled is `1` if the ad is disabled and thus not shown, otherwise `0` + * @property-read int $showOrder position of the ad in relation to the other ads at the same location */ class Ad extends DatabaseObject implements IRouteController { /** diff --git a/wcfsetup/install/files/lib/data/ad/AdEditor.class.php b/wcfsetup/install/files/lib/data/ad/AdEditor.class.php index 49b7866935..f694721df3 100644 --- a/wcfsetup/install/files/lib/data/ad/AdEditor.class.php +++ b/wcfsetup/install/files/lib/data/ad/AdEditor.class.php @@ -28,7 +28,7 @@ class AdEditor extends DatabaseObjectEditor implements IEditableCachedObject { /** * Sets the show order of the ad. * - * @param integer $showOrder + * @param int $showOrder */ public function setShowOrder($showOrder = 0) { $sql = "SELECT MAX(showOrder) diff --git a/wcfsetup/install/files/lib/data/application/Application.class.php b/wcfsetup/install/files/lib/data/application/Application.class.php index 3b492c848b..b3024e3c7f 100644 --- a/wcfsetup/install/files/lib/data/application/Application.class.php +++ b/wcfsetup/install/files/lib/data/application/Application.class.php @@ -17,12 +17,12 @@ use wcf\util\FileUtil; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\Application * - * @property-read integer $packageID id of the package which delivers the application + * @property-read int $packageID id of the package which delivers the application * @property-read string $domainName domain used to access the application (may not contain path components, see `$domainPath`) * @property-read string $domainPath path used to access the application * @property-read string $cookieDomain domain used to set cookies (corresponds to `domain` cookie property; may not contain path components) - * @property-read integer $isTainted is `1` if the application is being uninstalled and thus should not be loaded during uninstallation, otherwise `0` - * @property-read integer $landingPageID id of the page that is used as initial page when app is accessed without a controller name + * @property-read int $isTainted is `1` if the application is being uninstalled and thus should not be loaded during uninstallation, otherwise `0` + * @property-read int $landingPageID id of the page that is used as initial page when app is accessed without a controller name */ class Application extends DatabaseObject { /** diff --git a/wcfsetup/install/files/lib/data/article/Article.class.php b/wcfsetup/install/files/lib/data/article/Article.class.php index fa470be48a..4c79501aa7 100644 --- a/wcfsetup/install/files/lib/data/article/Article.class.php +++ b/wcfsetup/install/files/lib/data/article/Article.class.php @@ -20,20 +20,20 @@ use wcf\system\WCF; * @package WoltLabSuite\Core\Data\Article * @since 3.0 * - * @property-read integer $articleID unique id of the article - * @property-read integer|null $userID id of the user the article belongs to or `null` if the user does not exist anymore + * @property-read int $articleID unique id of the article + * @property-read int|null $userID id of the user the article belongs to or `null` if the user does not exist anymore * @property-read string $username name of the user the article belongs to - * @property-read integer $time timestamp at which the comment has been written - * @property-read integer $categoryID id of the category the article belongs to - * @property-read integer $isMultilingual is `1` if the article is available in multiple languages, otherwise `0` - * @property-read integer $publicationStatus publication status of the article (see `Article::UNPUBLISHED`, `Article::PUBLISHED` and `Article::DELAYED_PUBLICATION`) - * @property-read integer $publicationDate timestamp at which the article will be automatically published or `0` if it has already been published - * @property-read integer $enableComments is `1` if comments are enabled for the article, otherwise `0` - * @property-read integer $comments number of comments on the article - * @property-read integer $views number of times the article has been viewed - * @property-read integer $cumulativeLikes cumulative result of likes (counting `+1`) and dislikes (counting `-1`) for the article - * @property-read integer $isDeleted is 1 if the article is in trash bin, otherwise 0 - * @property-read integer $hasLabels is `1` if labels are assigned to the article + * @property-read int $time timestamp at which the comment has been written + * @property-read int $categoryID id of the category the article belongs to + * @property-read int $isMultilingual is `1` if the article is available in multiple languages, otherwise `0` + * @property-read int $publicationStatus publication status of the article (see `Article::UNPUBLISHED`, `Article::PUBLISHED` and `Article::DELAYED_PUBLICATION`) + * @property-read int $publicationDate timestamp at which the article will be automatically published or `0` if it has already been published + * @property-read int $enableComments is `1` if comments are enabled for the article, otherwise `0` + * @property-read int $comments number of comments on the article + * @property-read int $views number of times the article has been viewed + * @property-read int $cumulativeLikes cumulative result of likes (counting `+1`) and dislikes (counting `-1`) for the article + * @property-read int $isDeleted is 1 if the article is in trash bin, otherwise 0 + * @property-read int $hasLabels is `1` if labels are assigned to the article */ class Article extends DatabaseObject implements ILinkableObject, IUserContent { /** diff --git a/wcfsetup/install/files/lib/data/article/ArticleAction.class.php b/wcfsetup/install/files/lib/data/article/ArticleAction.class.php index dde8402295..888625956e 100644 --- a/wcfsetup/install/files/lib/data/article/ArticleAction.class.php +++ b/wcfsetup/install/files/lib/data/article/ArticleAction.class.php @@ -814,7 +814,7 @@ class ArticleAction extends AbstractDatabaseObjectAction { /** * Unmarks articles. * - * @param integer[] $articleIDs + * @param int[] $articleIDs */ protected function unmarkItems(array $articleIDs = []) { if (empty($articleIDs)) { diff --git a/wcfsetup/install/files/lib/data/article/CategoryArticleList.class.php b/wcfsetup/install/files/lib/data/article/CategoryArticleList.class.php index 803136be5e..bdd4195a7e 100644 --- a/wcfsetup/install/files/lib/data/article/CategoryArticleList.class.php +++ b/wcfsetup/install/files/lib/data/article/CategoryArticleList.class.php @@ -17,7 +17,7 @@ class CategoryArticleList extends AccessibleArticleList { /** * Creates a new CategoryArticleList object. * - * @param integer|integer[] $categoryID + * @param int|int[] $categoryID * @param boolean $includeChildCategories * @throws \InvalidArgumentException */ diff --git a/wcfsetup/install/files/lib/data/article/FeedArticleList.class.php b/wcfsetup/install/files/lib/data/article/FeedArticleList.class.php index 6f08338384..ae5043a874 100644 --- a/wcfsetup/install/files/lib/data/article/FeedArticleList.class.php +++ b/wcfsetup/install/files/lib/data/article/FeedArticleList.class.php @@ -23,7 +23,7 @@ class FeedArticleList extends CategoryArticleList { /** * Creates a new FeedArticleList object. * - * @param integer $categoryID + * @param int $categoryID */ public function __construct($categoryID = 0) { if ($categoryID) { diff --git a/wcfsetup/install/files/lib/data/article/ViewableArticle.class.php b/wcfsetup/install/files/lib/data/article/ViewableArticle.class.php index 1984151c1c..32fbe83839 100644 --- a/wcfsetup/install/files/lib/data/article/ViewableArticle.class.php +++ b/wcfsetup/install/files/lib/data/article/ViewableArticle.class.php @@ -26,7 +26,7 @@ use wcf\system\WCF; * @method Article getDecoratedObject() * @method ArticleContent|ViewableArticleContent getArticleContent() * @mixin Article - * @property-read integer|null $visitTime last time the active user has visited the time or `null` if object has not been fetched via `ViewableArticleList` or if the active user is a guest + * @property-read int|null $visitTime last time the active user has visited the time or `null` if object has not been fetched via `ViewableArticleList` or if the active user is a guest */ class ViewableArticle extends DatabaseObjectDecorator { /** @@ -42,26 +42,26 @@ class ViewableArticle extends DatabaseObjectDecorator { /** * effective visit time - * @var integer + * @var int */ protected $effectiveVisitTime; /** * number of unread articles - * @var integer + * @var int */ protected static $unreadArticles; /** * number of unread articles in watched categories - * @var integer + * @var int * @since 5.2 */ protected static $unreadWatchedArticles; /** * number of unread articles ordered by categories - * @var integer + * @var int * @since 5.2 */ protected static $unreadArticlesByCategory; @@ -75,7 +75,7 @@ class ViewableArticle extends DatabaseObjectDecorator { /** * Returns a specific article decorated as viewable article or `null` if it does not exist. * - * @param integer $articleID + * @param int $articleID * @param boolean $enableContentLoading Enables/disables the loading of article content objects * @return ViewableArticle */ @@ -150,7 +150,7 @@ class ViewableArticle extends DatabaseObjectDecorator { /** * Returns the effective visit time. * - * @return integer + * @return int */ public function getVisitTime() { if ($this->effectiveVisitTime === null) { @@ -215,7 +215,7 @@ class ViewableArticle extends DatabaseObjectDecorator { /** * Returns the number of unread articles. * - * @return integer + * @return int */ public static function getUnreadArticles() { if (self::$unreadArticles === null) { @@ -262,8 +262,8 @@ class ViewableArticle extends DatabaseObjectDecorator { /** * Returns the number of unread articles for a specific category. * - * @param integer $articleCategoryID - * @return integer + * @param int $articleCategoryID + * @return int * @since 5.2 */ public static function getUnreadArticlesForCategory($articleCategoryID) { @@ -316,8 +316,8 @@ class ViewableArticle extends DatabaseObjectDecorator { /** * Returns the unread article count for a specific category. * - * @param integer $articleCategoryID - * @return integer + * @param int $articleCategoryID + * @return int * @since 5.2 */ private static function fetchUnreadArticlesForCategory($articleCategoryID) { @@ -362,7 +362,7 @@ class ViewableArticle extends DatabaseObjectDecorator { /** * Returns the number of unread articles in watched categories. * - * @return integer + * @return int * @since 5.2 */ public static function getWatchedUnreadArticles() { diff --git a/wcfsetup/install/files/lib/data/article/category/ArticleCategory.class.php b/wcfsetup/install/files/lib/data/article/category/ArticleCategory.class.php index 9fa9b3ba97..4107c7d6a1 100644 --- a/wcfsetup/install/files/lib/data/article/category/ArticleCategory.class.php +++ b/wcfsetup/install/files/lib/data/article/category/ArticleCategory.class.php @@ -48,7 +48,7 @@ class ArticleCategory extends AbstractDecoratedCategory implements IAccessibleOb /** * subscribed categories - * @var integer[] + * @var int[] */ protected static $subscribedCategories; @@ -112,7 +112,7 @@ class ArticleCategory extends AbstractDecoratedCategory implements IAccessibleOb * Returns a list with ids of accessible categories. * * @param string[] $permissions - * @return integer[] + * @return int[] */ public static function getAccessibleCategoryIDs(array $permissions = ['canReadArticle']) { $categoryIDs = []; @@ -181,7 +181,7 @@ class ArticleCategory extends AbstractDecoratedCategory implements IAccessibleOb /** * Returns the list of subscribed categories. * - * @return integer[] + * @return int[] * @since 5.2 */ public static function getSubscribedCategoryIDs() { diff --git a/wcfsetup/install/files/lib/data/article/category/ArticleCategoryCache.class.php b/wcfsetup/install/files/lib/data/article/category/ArticleCategoryCache.class.php index 772a86615e..d6a2d11988 100644 --- a/wcfsetup/install/files/lib/data/article/category/ArticleCategoryCache.class.php +++ b/wcfsetup/install/files/lib/data/article/category/ArticleCategoryCache.class.php @@ -19,7 +19,7 @@ use wcf\system\WCF; class ArticleCategoryCache extends SingletonFactory { /** * number of total articles - * @var integer[] + * @var int[] */ protected $articles; @@ -56,10 +56,10 @@ class ArticleCategoryCache extends SingletonFactory { /** * Counts the articles contained in this category and its children. * - * @param integer[] $categoryToParent - * @param integer[] $articles - * @param integer $categoryID - * @return integer + * @param int[] $categoryToParent + * @param int[] $articles + * @param int $categoryID + * @return int */ protected function countArticles(array &$categoryToParent, array &$articles, $categoryID) { $count = (isset($articles[$categoryID])) ? $articles[$categoryID] : 0; @@ -78,8 +78,8 @@ class ArticleCategoryCache extends SingletonFactory { /** * Returns the number of articles in the category with the given id. * - * @param integer $categoryID - * @return integer + * @param int $categoryID + * @return int */ public function getArticles($categoryID) { if ($this->articles === null) { diff --git a/wcfsetup/install/files/lib/data/article/category/ArticleCategoryNode.class.php b/wcfsetup/install/files/lib/data/article/category/ArticleCategoryNode.class.php index 41003602c8..588fd19004 100644 --- a/wcfsetup/install/files/lib/data/article/category/ArticleCategoryNode.class.php +++ b/wcfsetup/install/files/lib/data/article/category/ArticleCategoryNode.class.php @@ -22,14 +22,14 @@ class ArticleCategoryNode extends CategoryNode { /** * number of articles in the category - * @var integer + * @var int */ protected $articles; /** * Returns number of articles in the category. * - * @return integer + * @return int */ public function getArticles() { if ($this->articles === null) { diff --git a/wcfsetup/install/files/lib/data/article/content/ArticleContent.class.php b/wcfsetup/install/files/lib/data/article/content/ArticleContent.class.php index cd83d7b7e0..c3c3e89dce 100644 --- a/wcfsetup/install/files/lib/data/article/content/ArticleContent.class.php +++ b/wcfsetup/install/files/lib/data/article/content/ArticleContent.class.php @@ -21,15 +21,15 @@ use wcf\util\StringUtil; * @package WoltLabSuite\Core\Data\Article\Content * @since 3.0 * - * @property-read integer $articleContentID unique id of the article content - * @property-read integer $articleID id of the article the article content belongs to - * @property-read integer $languageID id of the article content's language + * @property-read int $articleContentID unique id of the article content + * @property-read int $articleID id of the article the article content belongs to + * @property-read int $languageID id of the article content's language * @property-read string $title title of the article in the associated language * @property-read string $content actual content of the article in the associated language * @property-read string $teaser teaser of the article in the associated language or empty if no teaser exists - * @property-read integer|null $imageID id of the (image) media object used as article image for the associated language or `null` if no image is used - * @property-read integer|null $teaserImageID id of the (image) media object used as article teaser image for the associated language or `null` if no image is used - * @property-read integer $hasEmbeddedObjects is `1` if there are embedded objects in the article content, otherwise `0` + * @property-read int|null $imageID id of the (image) media object used as article image for the associated language or `null` if no image is used + * @property-read int|null $teaserImageID id of the (image) media object used as article teaser image for the associated language or `null` if no image is used + * @property-read int $hasEmbeddedObjects is `1` if there are embedded objects in the article content, otherwise `0` * @property-read string $metaTitle title of the article used in the title tag * @property-read string $metaDescription meta description of the article */ @@ -174,8 +174,8 @@ class ArticleContent extends DatabaseObject implements ILinkableObject, IRouteCo /** * Returns a certain article content or `null` if it does not exist. * - * @param integer $articleID - * @param integer $languageID + * @param int $articleID + * @param int $languageID * @return ArticleContent|null */ public static function getArticleContent($articleID, $languageID) { diff --git a/wcfsetup/install/files/lib/data/article/content/ViewableArticleContent.class.php b/wcfsetup/install/files/lib/data/article/content/ViewableArticleContent.class.php index 8aaeb7b438..c32ad49fdd 100644 --- a/wcfsetup/install/files/lib/data/article/content/ViewableArticleContent.class.php +++ b/wcfsetup/install/files/lib/data/article/content/ViewableArticleContent.class.php @@ -123,7 +123,7 @@ class ViewableArticleContent extends DatabaseObjectDecorator { /** * Returns a specific article content decorated as viewable article content. * - * @param integer $articleContentID + * @param int $articleContentID * @return ViewableArticleContent */ public static function getArticleContent($articleContentID) { diff --git a/wcfsetup/install/files/lib/data/attachment/AdministrativeAttachmentList.class.php b/wcfsetup/install/files/lib/data/attachment/AdministrativeAttachmentList.class.php index 9a62e71a27..d1e53e0203 100644 --- a/wcfsetup/install/files/lib/data/attachment/AdministrativeAttachmentList.class.php +++ b/wcfsetup/install/files/lib/data/attachment/AdministrativeAttachmentList.class.php @@ -77,7 +77,7 @@ class AdministrativeAttachmentList extends AttachmentList { /** * Returns attachment statistics. * - * @return integer[] + * @return int[] */ public function getStats() { $sql = "SELECT COUNT(*) AS count, diff --git a/wcfsetup/install/files/lib/data/attachment/Attachment.class.php b/wcfsetup/install/files/lib/data/attachment/Attachment.class.php index bc2f61ab06..ee51553341 100644 --- a/wcfsetup/install/files/lib/data/attachment/Attachment.class.php +++ b/wcfsetup/install/files/lib/data/attachment/Attachment.class.php @@ -18,30 +18,30 @@ use wcf\util\StringUtil; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\Attachment * - * @property-read integer $attachmentID unique id of the attachment - * @property-read integer $objectTypeID id of the `com.woltlab.wcf.attachment.objectType` object type - * @property-read integer|null $objectID id of the attachment container object the attachment belongs to - * @property-read integer|null $userID id of the user who uploaded the attachment or `null` if the user does not exist anymore or if the attachment has been uploaded by a guest + * @property-read int $attachmentID unique id of the attachment + * @property-read int $objectTypeID id of the `com.woltlab.wcf.attachment.objectType` object type + * @property-read int|null $objectID id of the attachment container object the attachment belongs to + * @property-read int|null $userID id of the user who uploaded the attachment or `null` if the user does not exist anymore or if the attachment has been uploaded by a guest * @property-read string $tmpHash temporary hash used to identify uploaded attachments but not associated with an object yet or empty if the attachment has been associated with an object * @property-read string $filename name of the physical attachment file - * @property-read integer $filesize size of the physical attachment file + * @property-read int $filesize size of the physical attachment file * @property-read string $fileType type of the physical attachment file * @property-read string $fileHash hash of the physical attachment file - * @property-read integer $isImage is `1` if the attachment is an image, otherwise `0` - * @property-read integer $width width of the attachment if `$isImage` is `1`, otherwise `0` - * @property-read integer $height height of the attachment if `$isImage` is `1`, otherwise `0` + * @property-read int $isImage is `1` if the attachment is an image, otherwise `0` + * @property-read int $width width of the attachment if `$isImage` is `1`, otherwise `0` + * @property-read int $height height of the attachment if `$isImage` is `1`, otherwise `0` * @property-read string $tinyThumbnailType type of the tiny thumbnail file for the attachment if `$isImage` is `1`, otherwise empty - * @property-read integer $tinyThumbnailSize size of the tiny thumbnail file for the attachment if `$isImage` is `1`, otherwise `0` - * @property-read integer $tinyThumbnailWidth width of the tiny thumbnail file for the attachment if `$isImage` is `1`, otherwise `0` - * @property-read integer $tinyThumbnailHeight height of the tiny thumbnail file for the attachment if `$isImage` is `1`, otherwise `0` + * @property-read int $tinyThumbnailSize size of the tiny thumbnail file for the attachment if `$isImage` is `1`, otherwise `0` + * @property-read int $tinyThumbnailWidth width of the tiny thumbnail file for the attachment if `$isImage` is `1`, otherwise `0` + * @property-read int $tinyThumbnailHeight height of the tiny thumbnail file for the attachment if `$isImage` is `1`, otherwise `0` * @property-read string $thumbnailType type of the thumbnail file for the attachment if `$isImage` is `1`, otherwise empty - * @property-read integer $thumbnailSize size of the thumbnail file for the attachment if `$isImage` is `1`, otherwise `0` - * @property-read integer $thumbnailWidth width of the thumbnail file for the attachment if `$isImage` is `1`, otherwise `0` - * @property-read integer $thumbnailHeight height of the thumbnail file for the attachment if `$isImage` is `1`, otherwise `0` - * @property-read integer $downloads number of times the attachment has been downloaded - * @property-read integer $lastDownloadTime timestamp at which the attachment has been downloaded the last time - * @property-read integer $uploadTime timestamp at which the attachment has been uploaded - * @property-read integer $showOrder position of the attachment in relation to the other attachment to the same message + * @property-read int $thumbnailSize size of the thumbnail file for the attachment if `$isImage` is `1`, otherwise `0` + * @property-read int $thumbnailWidth width of the thumbnail file for the attachment if `$isImage` is `1`, otherwise `0` + * @property-read int $thumbnailHeight height of the thumbnail file for the attachment if `$isImage` is `1`, otherwise `0` + * @property-read int $downloads number of times the attachment has been downloaded + * @property-read int $lastDownloadTime timestamp at which the attachment has been downloaded the last time + * @property-read int $uploadTime timestamp at which the attachment has been uploaded + * @property-read int $showOrder position of the attachment in relation to the other attachment to the same message */ class Attachment extends DatabaseObject implements ILinkableObject, IRouteController, IThumbnailFile { /** diff --git a/wcfsetup/install/files/lib/data/attachment/GroupedAttachmentList.class.php b/wcfsetup/install/files/lib/data/attachment/GroupedAttachmentList.class.php index da9f9e54d9..e88574df98 100644 --- a/wcfsetup/install/files/lib/data/attachment/GroupedAttachmentList.class.php +++ b/wcfsetup/install/files/lib/data/attachment/GroupedAttachmentList.class.php @@ -80,7 +80,7 @@ class GroupedAttachmentList extends AttachmentList { /** * Returns the objects of the list. * - * @param integer $objectID + * @param int $objectID * @return Attachment[] */ public function getGroupedObjects($objectID) { diff --git a/wcfsetup/install/files/lib/data/bbcode/BBCode.class.php b/wcfsetup/install/files/lib/data/bbcode/BBCode.class.php index 21366d5165..e068fc0b24 100644 --- a/wcfsetup/install/files/lib/data/bbcode/BBCode.class.php +++ b/wcfsetup/install/files/lib/data/bbcode/BBCode.class.php @@ -14,18 +14,18 @@ use wcf\system\WCF; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\Bbcode * - * @property-read integer $bbcodeID unique id of the bbcode + * @property-read int $bbcodeID unique id of the bbcode * @property-read string $bbcodeTag tag of the bbcode - * @property-read integer $packageID id of the package which delivers the bbcode or `1` if it has been created in the acp + * @property-read int $packageID id of the package which delivers the bbcode or `1` if it has been created in the acp * @property-read string $htmlOpen html code of the opening tag (without the less-than sign and greater-than sign) or empty if no such html code exists * @property-read string $htmlClose html code of the closing tag (without the less-than sign and greater-than sign) or empty if no such html code exists * @property-read string $className name of the PHP class implementing `wcf\system\bbcode\IBBCode` or empty if no such class exists - * @property-read integer $isBlockElement is `1` if the bbcode represents a block element and thus can contain multiple lines, otherwise `0` + * @property-read int $isBlockElement is `1` if the bbcode represents a block element and thus can contain multiple lines, otherwise `0` * @property-read string $wysiwygIcon css class name used as icon for the bbcode in the editor toolbar * @property-read string $buttonLabel name of the language item used as button label for the bbcode in the editor toolbar - * @property-read integer $isSourceCode is `1` if the bbcode's content is treated as source code, otherwise `0` - * @property-read integer $showButton is `1` if a button for the bbcode will be shown in the editor toolbar, otherwise `0` - * @property-read integer $originIsSystem is `1` if the bbcode has been delivered by a package, otherwise `0` (if the bbcode has been created by an admin in the acp) + * @property-read int $isSourceCode is `1` if the bbcode's content is treated as source code, otherwise `0` + * @property-read int $showButton is `1` if a button for the bbcode will be shown in the editor toolbar, otherwise `0` + * @property-read int $originIsSystem is `1` if the bbcode has been delivered by a package, otherwise `0` (if the bbcode has been created by an admin in the acp) */ class BBCode extends ProcessibleDatabaseObject implements IRouteController { /** diff --git a/wcfsetup/install/files/lib/data/bbcode/attribute/BBCodeAttribute.class.php b/wcfsetup/install/files/lib/data/bbcode/attribute/BBCodeAttribute.class.php index 10f58b69b4..d1fbfeb0da 100644 --- a/wcfsetup/install/files/lib/data/bbcode/attribute/BBCodeAttribute.class.php +++ b/wcfsetup/install/files/lib/data/bbcode/attribute/BBCodeAttribute.class.php @@ -11,13 +11,13 @@ use wcf\data\DatabaseObject; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\Bbcode\Attribute * - * @property-read integer $attributeID unique id of the bbcode attribute - * @property-read integer $bbcodeID id of the bbcode the attribute belongs to - * @property-read integer $attributeNo number of bbcode attribute + * @property-read int $attributeID unique id of the bbcode attribute + * @property-read int $bbcodeID id of the bbcode the attribute belongs to + * @property-read int $attributeNo number of bbcode attribute * @property-read string $attributeHtml html code used to render the bbcode attribute or empty if no such html code exists * @property-read string $validationPattern regular expression used to validate the bbcode attribute's value or empty if no such regular expression exists - * @property-read integer $required is `1` if the bbcode attribute is required of the bbcode, otherwise `0` - * @property-read integer $useText is `1` if the bbcode's content will be used as the bbcode attribute value + * @property-read int $required is `1` if the bbcode attribute is required of the bbcode, otherwise `0` + * @property-read int $useText is `1` if the bbcode's content will be used as the bbcode attribute value */ class BBCodeAttribute extends DatabaseObject { /** diff --git a/wcfsetup/install/files/lib/data/bbcode/media/provider/BBCodeMediaProvider.class.php b/wcfsetup/install/files/lib/data/bbcode/media/provider/BBCodeMediaProvider.class.php index 9d74756472..e54a4604f1 100644 --- a/wcfsetup/install/files/lib/data/bbcode/media/provider/BBCodeMediaProvider.class.php +++ b/wcfsetup/install/files/lib/data/bbcode/media/provider/BBCodeMediaProvider.class.php @@ -17,7 +17,7 @@ use wcf\util\Url; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\Bbcode\Media\Provider * - * @property-read integer $providerID unique id of the bbcode media provider + * @property-read int $providerID unique id of the bbcode media provider * @property-read string $title title of the bbcode media provider (shown in acp) * @property-read string $regex regular expression to recognize media elements/element urls * @property-read string $html html code used to render media elements diff --git a/wcfsetup/install/files/lib/data/box/Box.class.php b/wcfsetup/install/files/lib/data/box/Box.class.php index 93dbd153fd..981df16869 100644 --- a/wcfsetup/install/files/lib/data/box/Box.class.php +++ b/wcfsetup/install/files/lib/data/box/Box.class.php @@ -27,29 +27,29 @@ use wcf\system\WCF; * @package WoltLabSuite\Core\Data\Box * @since 3.0 * - * @property-read integer $boxID unique id of the box - * @property-read integer|null $objectTypeID id of the box controller object type + * @property-read int $boxID unique id of the box + * @property-read int|null $objectTypeID id of the box controller object type * @property-read string $identifier unique textual identifier of the box * @property-read string $name monolingual name of the box shown in the ACP * @property-read string $boxType type of the box which determines the method of outputting its content (default box types are `text`, `html`, `tpl`, `system`) * @property-read string $position name of the position on the page at which the box is shown - * @property-read integer $showOrder position of the box in relation to its siblings - * @property-read integer $visibleEverywhere is `1` if the box is visible on every page, otherwise `0` - * @property-read integer $isMultilingual is `1` if the box content is available in multiple languages, otherwise `0` - * @property-read integer $lastUpdateTime timestamp at which the box has been updated the last time + * @property-read int $showOrder position of the box in relation to its siblings + * @property-read int $visibleEverywhere is `1` if the box is visible on every page, otherwise `0` + * @property-read int $isMultilingual is `1` if the box content is available in multiple languages, otherwise `0` + * @property-read int $lastUpdateTime timestamp at which the box has been updated the last time * @property-read string $cssClassName css class name(s) of the box - * @property-read integer $showHeader is `1` if the box header will be shown, otherwise `0` - * @property-read integer $originIsSystem is `1` if the box has been delivered by a package, otherwise `0` (i.e. the box has been created in the ACP) - * @property-read integer $packageID id of the package which delivers the box or `1` if it has been created in the ACP - * @property-read integer|null $menuID id of the menu whose menu items are shown in the contents if `$boxType = menu`, otherwise `null` - * @property-read integer|null $linkPageID id of the (internal) page the box image and box title are linking to or `null` if no internal page is linked - * @property-read integer $linkPageObjectID id of the object the (internal) page links refers to or `0` if no internal link is used or no specific object is linked + * @property-read int $showHeader is `1` if the box header will be shown, otherwise `0` + * @property-read int $originIsSystem is `1` if the box has been delivered by a package, otherwise `0` (i.e. the box has been created in the ACP) + * @property-read int $packageID id of the package which delivers the box or `1` if it has been created in the ACP + * @property-read int|null $menuID id of the menu whose menu items are shown in the contents if `$boxType = menu`, otherwise `null` + * @property-read int|null $linkPageID id of the (internal) page the box image and box title are linking to or `null` if no internal page is linked + * @property-read int $linkPageObjectID id of the object the (internal) page links refers to or `0` if no internal link is used or no specific object is linked * @property-read string $externalURL external link used to for the box image and box title or empty if no external link is set * @property-read array $additionalData array with additional data of the box - * @property-read integer|null $limit number of objects shown in the box for `AbstractDatabaseObjectListBoxController` controllers or `null` otherwise + * @property-read int|null $limit number of objects shown in the box for `AbstractDatabaseObjectListBoxController` controllers or `null` otherwise * @property-read string|null $sortField sort field of the objects shown in the box for `AbstractDatabaseObjectListBoxController` controllers or `null` otherwise * @property-read string|null $sortOrder sort order of the objects shown in the box for `AbstractDatabaseObjectListBoxController` controllers or `null` otherwise - * @property-read integer $isDisabled is `1` if the box is disabled and thus is not displayed, otherwise `0` + * @property-read int $isDisabled is `1` if the box is disabled and thus is not displayed, otherwise `0` */ class Box extends DatabaseObject { /** @@ -84,7 +84,7 @@ class Box extends DatabaseObject { /** * box to page assignments - * @var integer[] + * @var int[] */ protected $pageIDs; @@ -113,7 +113,7 @@ class Box extends DatabaseObject { /** * virtual show order of this box - * @var integer + * @var int */ public $virtualShowOrder = -1; @@ -454,7 +454,7 @@ class Box extends DatabaseObject { /** * Returns the template name of this box. * - * @param integer $languageID + * @param int $languageID * @return string */ public function getTplName($languageID = null) { @@ -472,7 +472,7 @@ class Box extends DatabaseObject { /** * Returns box to page assignments. * - * @return integer[] + * @return int[] */ public function getPageIDs() { if ($this->pageIDs === null) { @@ -515,7 +515,7 @@ class Box extends DatabaseObject { /** * Sets the virtual show order of this box. * - * @param integer $virtualShowOrder + * @param int $virtualShowOrder */ public function setVirtualShowOrder($virtualShowOrder) { $this->virtualShowOrder = $virtualShowOrder; diff --git a/wcfsetup/install/files/lib/data/box/BoxEditor.class.php b/wcfsetup/install/files/lib/data/box/BoxEditor.class.php index 729ba1ce72..d98f73bdbf 100644 --- a/wcfsetup/install/files/lib/data/box/BoxEditor.class.php +++ b/wcfsetup/install/files/lib/data/box/BoxEditor.class.php @@ -24,7 +24,7 @@ class BoxEditor extends DatabaseObjectEditor { /** * Creates the template file for "tpl"-type boxes. * - * @param integer $languageID + * @param int $languageID * @param string $content */ public function writeTemplate($languageID, $content) { diff --git a/wcfsetup/install/files/lib/data/box/content/BoxContent.class.php b/wcfsetup/install/files/lib/data/box/content/BoxContent.class.php index eb46f3b1bb..716e015267 100644 --- a/wcfsetup/install/files/lib/data/box/content/BoxContent.class.php +++ b/wcfsetup/install/files/lib/data/box/content/BoxContent.class.php @@ -15,13 +15,13 @@ use wcf\system\WCF; * @package WoltLabSuite\Core\Data\Box\Content * @since 3.0 * - * @property-read integer $boxContentID unique id of the box content - * @property-read integer $boxID id of the box the box content belongs to - * @property-read integer $languageID id of the box content's language + * @property-read int $boxContentID unique id of the box content + * @property-read int $boxID id of the box the box content belongs to + * @property-read int $languageID id of the box content's language * @property-read string $title title of the page in the associated language * @property-read string $content actual content of the box in the associated language - * @property-read integer|null $imageID id of the (image) media object used as box image for the associated language or `null` if no image is used - * @property-read integer $hasEmbeddedObjects is `1` if the box content contains embedded objects, otherwise `0` + * @property-read int|null $imageID id of the (image) media object used as box image for the associated language or `null` if no image is used + * @property-read int $hasEmbeddedObjects is `1` if the box content contains embedded objects, otherwise `0` */ class BoxContent extends DatabaseObject { /** @@ -43,8 +43,8 @@ class BoxContent extends DatabaseObject { /** * Returns a certain box content or `null` if it does not exist. * - * @param integer $boxID - * @param integer $languageID + * @param int $boxID + * @param int $languageID * @return BoxContent|null */ public static function getBoxContent($boxID, $languageID) { diff --git a/wcfsetup/install/files/lib/data/captcha/question/CaptchaQuestion.class.php b/wcfsetup/install/files/lib/data/captcha/question/CaptchaQuestion.class.php index 279722cfbc..8fb2c0b55a 100644 --- a/wcfsetup/install/files/lib/data/captcha/question/CaptchaQuestion.class.php +++ b/wcfsetup/install/files/lib/data/captcha/question/CaptchaQuestion.class.php @@ -13,10 +13,10 @@ use wcf\util\StringUtil; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\Captcha\Question * - * @property-read integer $questionID unique id of the captcha question + * @property-read int $questionID unique id of the captcha question * @property-read string $question question of the captcha or name of language item which contains the question * @property-read string $answers newline-separated list of answers or name of language item which contains the answers - * @property-read integer $isDisabled is `1` if the captcha question is disabled and thus not offered to answer, otherwise `0` + * @property-read int $isDisabled is `1` if the captcha question is disabled and thus not offered to answer, otherwise `0` */ class CaptchaQuestion extends DatabaseObject { /** diff --git a/wcfsetup/install/files/lib/data/category/AbstractDecoratedCategory.class.php b/wcfsetup/install/files/lib/data/category/AbstractDecoratedCategory.class.php index 3789f5096c..dc7f9c12c4 100644 --- a/wcfsetup/install/files/lib/data/category/AbstractDecoratedCategory.class.php +++ b/wcfsetup/install/files/lib/data/category/AbstractDecoratedCategory.class.php @@ -120,7 +120,7 @@ abstract class AbstractDecoratedCategory extends DatabaseObjectDecorator { * Returns the decorated category with the given id or `null` if no such * category exists. * - * @param integer $categoryID + * @param int $categoryID * @return AbstractDecoratedCategory|null */ public static function getCategory($categoryID) { diff --git a/wcfsetup/install/files/lib/data/category/Category.class.php b/wcfsetup/install/files/lib/data/category/Category.class.php index 8d3fbef74f..913eee4c3f 100644 --- a/wcfsetup/install/files/lib/data/category/Category.class.php +++ b/wcfsetup/install/files/lib/data/category/Category.class.php @@ -19,15 +19,15 @@ use wcf\system\WCF; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\Category * - * @property-read integer $categoryID unique id of the category - * @property-read integer $objectTypeID id of the `com.woltlab.wcf.category` object type - * @property-read integer $parentCategoryID id of the category's parent category or `0` if it has no parent category + * @property-read int $categoryID unique id of the category + * @property-read int $objectTypeID id of the `com.woltlab.wcf.category` object type + * @property-read int $parentCategoryID id of the category's parent category or `0` if it has no parent category * @property-read string $title title of the category or name of language item which contains the title * @property-read string $description description of the category or name of language item which contains the description - * @property-read integer $descriptionUseHtml is `1` if html is enabled in the description, otherwise `0` - * @property-read integer $showOrder position of the category in relation to its siblings - * @property-read integer $time timestamp at which the comment has been created - * @property-read integer $isDisabled is `1` if the category is disabled and thus neither accessible nor selectable, otherwise `0` + * @property-read int $descriptionUseHtml is `1` if html is enabled in the description, otherwise `0` + * @property-read int $showOrder position of the category in relation to its siblings + * @property-read int $time timestamp at which the comment has been created + * @property-read int $isDisabled is `1` if the category is disabled and thus neither accessible nor selectable, otherwise `0` * @property-read array $additionalData array with additional data of the category */ class Category extends ProcessibleDatabaseObject implements IPermissionObject, IRouteController { diff --git a/wcfsetup/install/files/lib/data/category/CategoryEditor.class.php b/wcfsetup/install/files/lib/data/category/CategoryEditor.class.php index 4f40fe48ee..4597dde588 100644 --- a/wcfsetup/install/files/lib/data/category/CategoryEditor.class.php +++ b/wcfsetup/install/files/lib/data/category/CategoryEditor.class.php @@ -27,9 +27,9 @@ class CategoryEditor extends DatabaseObjectEditor implements IEditableCachedObje * Prepares the update of the show order of this category and return the * correct new show order. * - * @param integer $parentCategoryID - * @param integer $showOrder - * @return integer + * @param int $parentCategoryID + * @param int $showOrder + * @return int */ public function updateShowOrder($parentCategoryID, $showOrder) { // correct invalid values @@ -149,10 +149,10 @@ class CategoryEditor extends DatabaseObjectEditor implements IEditableCachedObje /** * Returns the show order for a new category. * - * @param integer $objectTypeID - * @param integer $parentCategoryID - * @param integer $showOrder - * @return integer + * @param int $objectTypeID + * @param int $parentCategoryID + * @param int $showOrder + * @return int */ protected static function getShowOrder($objectTypeID, $parentCategoryID, $showOrder) { // correct invalid values diff --git a/wcfsetup/install/files/lib/data/category/CategoryNodeTree.class.php b/wcfsetup/install/files/lib/data/category/CategoryNodeTree.class.php index d96a9d7239..c6d46cb336 100644 --- a/wcfsetup/install/files/lib/data/category/CategoryNodeTree.class.php +++ b/wcfsetup/install/files/lib/data/category/CategoryNodeTree.class.php @@ -14,7 +14,7 @@ use wcf\system\exception\SystemException; class CategoryNodeTree implements \IteratorAggregate { /** * list of ids of categories which will not be included in the node tree - * @var integer[] + * @var int[] */ protected $excludedCategoryIDs = []; @@ -26,7 +26,7 @@ class CategoryNodeTree implements \IteratorAggregate { /** * maximum depth considered when building the node tree - * @var integer + * @var int */ protected $maxDepth = -1; @@ -38,7 +38,7 @@ class CategoryNodeTree implements \IteratorAggregate { /** * id of the parent category - * @var integer + * @var int */ protected $parentCategoryID = 0; @@ -58,9 +58,9 @@ class CategoryNodeTree implements \IteratorAggregate { * Creates a new instance of CategoryNodeTree. * * @param string $objectType - * @param integer $parentCategoryID + * @param int $parentCategoryID * @param boolean $includeDisabledCategories - * @param integer[] $excludedCategoryIDs + * @param int[] $excludedCategoryIDs * @throws SystemException */ public function __construct($objectType, $parentCategoryID = 0, $includeDisabledCategories = false, array $excludedCategoryIDs = []) { @@ -79,7 +79,7 @@ class CategoryNodeTree implements \IteratorAggregate { * Sets the maximum depth considered when building the node tree, defaults * to -1 which equals infinite. * - * @param integer $maxDepth + * @param int $maxDepth */ public function setMaxDepth($maxDepth) { $this->maxDepth = $maxDepth; @@ -97,7 +97,7 @@ class CategoryNodeTree implements \IteratorAggregate { * Builds a certain level of the tree. * * @param CategoryNode $parentNode - * @param integer $depth + * @param int $depth */ protected function buildTreeLevel(CategoryNode $parentNode, $depth = 0) { if ($this->maxDepth != -1 && $depth < 0) { @@ -119,7 +119,7 @@ class CategoryNodeTree implements \IteratorAggregate { /** * Returns the category with the given id. * - * @param integer $categoryID + * @param int $categoryID * @return Category */ protected function getCategory($categoryID) { @@ -150,7 +150,7 @@ class CategoryNodeTree implements \IteratorAggregate { /** * Returns the category node for the category with the given id. * - * @param integer $categoryID + * @param int $categoryID * @return CategoryNode */ protected function getNode($categoryID) { diff --git a/wcfsetup/install/files/lib/data/clipboard/action/ClipboardAction.class.php b/wcfsetup/install/files/lib/data/clipboard/action/ClipboardAction.class.php index 36719eefac..c12056d912 100644 --- a/wcfsetup/install/files/lib/data/clipboard/action/ClipboardAction.class.php +++ b/wcfsetup/install/files/lib/data/clipboard/action/ClipboardAction.class.php @@ -10,10 +10,10 @@ use wcf\data\DatabaseObject; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\Clipboard\Action * - * @property-read integer $actionID unique id of the clipboard action - * @property-read integer $packageID id of the package which delivers the clipboard action + * @property-read int $actionID unique id of the clipboard action + * @property-read int $packageID id of the package which delivers the clipboard action * @property-read string $actionName name and textual identifier of the clipboard action * @property-read string $actionClassName PHP class name implementing `wcf\system\clipboard\action\IClipboardAction` - * @property-read integer $showOrder position of the clipboard action in relation to the other clipboard actions + * @property-read int $showOrder position of the clipboard action in relation to the other clipboard actions */ class ClipboardAction extends DatabaseObject {} diff --git a/wcfsetup/install/files/lib/data/clipboard/item/ClipboardItemAction.class.php b/wcfsetup/install/files/lib/data/clipboard/item/ClipboardItemAction.class.php index e31a676b1a..a13dbbd9f8 100644 --- a/wcfsetup/install/files/lib/data/clipboard/item/ClipboardItemAction.class.php +++ b/wcfsetup/install/files/lib/data/clipboard/item/ClipboardItemAction.class.php @@ -19,7 +19,7 @@ use wcf\system\WCF; class ClipboardItemAction extends AbstractDatabaseObjectAction { /** * object type id - * @var integer + * @var int */ public $objectTypeID = 0; diff --git a/wcfsetup/install/files/lib/data/comment/Comment.class.php b/wcfsetup/install/files/lib/data/comment/Comment.class.php index 3a2ec1c248..bbe570ec82 100644 --- a/wcfsetup/install/files/lib/data/comment/Comment.class.php +++ b/wcfsetup/install/files/lib/data/comment/Comment.class.php @@ -16,19 +16,19 @@ use wcf\util\StringUtil; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\Comment * - * @property-read integer $commentID unique id of the comment - * @property-read integer $objectTypeID id of the `com.woltlab.wcf.comment.commentableContent` object type - * @property-read integer $objectID id of the commented object of the object type represented by `$objectTypeID` - * @property-read integer $time timestamp at which the comment has been written - * @property-read integer|null $userID id of the user who wrote the comment or `null` if the user does not exist anymore or if the comment has been written by a guest + * @property-read int $commentID unique id of the comment + * @property-read int $objectTypeID id of the `com.woltlab.wcf.comment.commentableContent` object type + * @property-read int $objectID id of the commented object of the object type represented by `$objectTypeID` + * @property-read int $time timestamp at which the comment has been written + * @property-read int|null $userID id of the user who wrote the comment or `null` if the user does not exist anymore or if the comment has been written by a guest * @property-read string $username name of the user or guest who wrote the comment * @property-read string $message comment message - * @property-read integer $responses number of responses on the comment + * @property-read int $responses number of responses on the comment * @property-read string $responseIDs serialized array with the ids of the five latest comment responses - * @property-read integer $unfilteredResponses number of all responses on the comment, including disabled ones + * @property-read int $unfilteredResponses number of all responses on the comment, including disabled ones * @property-read string $unfilteredResponseIDs serialized array with the ids of the five latest comment responses, including disabled ones - * @property-read integer $enableHtml is 1 if HTML will rendered in the comment, otherwise 0 - * @property-read integer $isDisabled is 1 if the comment is disabled, otherwise 0 + * @property-read int $enableHtml is 1 if HTML will rendered in the comment, otherwise 0 + * @property-read int $isDisabled is 1 if the comment is disabled, otherwise 0 */ class Comment extends DatabaseObject implements IMessage { use TUserContent; @@ -36,7 +36,7 @@ class Comment extends DatabaseObject implements IMessage { /** * Returns a list of response ids. * - * @return integer[] + * @return int[] */ public function getResponseIDs() { if ($this->responseIDs === null || $this->responseIDs == '') { @@ -54,7 +54,7 @@ class Comment extends DatabaseObject implements IMessage { /** * Returns a list of unfiltered response ids, including those that are still disabled. * - * @return integer[] + * @return int[] */ public function getUnfilteredResponseIDs() { if ($this->unfilteredResponseIDs === null || $this->unfilteredResponseIDs == '') { diff --git a/wcfsetup/install/files/lib/data/comment/CommentAction.class.php b/wcfsetup/install/files/lib/data/comment/CommentAction.class.php index 94de5f49e4..4b8a04f6ba 100644 --- a/wcfsetup/install/files/lib/data/comment/CommentAction.class.php +++ b/wcfsetup/install/files/lib/data/comment/CommentAction.class.php @@ -734,7 +734,7 @@ class CommentAction extends AbstractDatabaseObjectAction implements IMessageInli /** * Enables a comment. * - * @return integer[] + * @return int[] */ public function enable() { if ($this->comment === null) $this->comment = reset($this->objects); @@ -777,7 +777,7 @@ class CommentAction extends AbstractDatabaseObjectAction implements IMessageInli /** * Enables a response. * - * @return integer[] + * @return int[] */ public function enableResponse() { if ($this->comment === null) $this->comment = reset($this->objects); @@ -965,7 +965,7 @@ class CommentAction extends AbstractDatabaseObjectAction implements IMessageInli /** * Removes a comment or response. * - * @return integer[] + * @return int[] */ public function remove() { if ($this->comment !== null) { @@ -1180,7 +1180,7 @@ class CommentAction extends AbstractDatabaseObjectAction implements IMessageInli /** * Validates object type id parameter. * - * @param integer $objectTypeID + * @param int $objectTypeID * @return ObjectType * @throws UserInputException */ @@ -1288,7 +1288,7 @@ class CommentAction extends AbstractDatabaseObjectAction implements IMessageInli * Returns the current html input processor or a new one if `$message` is not null. * * @param string|null $message source message - * @param integer $objectID object id + * @param int $objectID object id * @return HtmlInputProcessor */ public function getHtmlInputProcessor($message = null, $objectID = 0) { diff --git a/wcfsetup/install/files/lib/data/comment/StructuredComment.class.php b/wcfsetup/install/files/lib/data/comment/StructuredComment.class.php index 0e6e765ced..3aff2e710c 100644 --- a/wcfsetup/install/files/lib/data/comment/StructuredComment.class.php +++ b/wcfsetup/install/files/lib/data/comment/StructuredComment.class.php @@ -42,7 +42,7 @@ class StructuredComment extends DatabaseObjectDecorator implements \Countable, \ /** * iterator index - * @var integer + * @var int */ private $position = 0; @@ -73,7 +73,7 @@ class StructuredComment extends DatabaseObjectDecorator implements \Countable, \ /** * Returns timestamp of oldest response loaded. * - * @return integer + * @return int */ public function getLastResponseTime() { $lastResponseTime = 0; diff --git a/wcfsetup/install/files/lib/data/comment/StructuredCommentList.class.php b/wcfsetup/install/files/lib/data/comment/StructuredCommentList.class.php index 88914d712d..070c3538b9 100644 --- a/wcfsetup/install/files/lib/data/comment/StructuredCommentList.class.php +++ b/wcfsetup/install/files/lib/data/comment/StructuredCommentList.class.php @@ -29,25 +29,25 @@ class StructuredCommentList extends CommentList { /** * minimum comment time - * @var integer + * @var int */ public $minCommentTime = 0; /** * object type id - * @var integer + * @var int */ public $objectTypeID = 0; /** * object id - * @var integer + * @var int */ public $objectID = 0; /** * ids of the responses of the comments in the list - * @var integer[] + * @var int[] */ public $responseIDs = []; @@ -76,8 +76,8 @@ class StructuredCommentList extends CommentList { * Creates a new structured comment list. * * @param ICommentManager $commentManager - * @param integer $objectTypeID - * @param integer $objectID + * @param int $objectTypeID + * @param int $objectID */ public function __construct(ICommentManager $commentManager, $objectTypeID, $objectID) { parent::__construct(); @@ -181,7 +181,7 @@ class StructuredCommentList extends CommentList { /** * Returns minimum comment time. * - * @return integer + * @return int */ public function getMinCommentTime() { return $this->minCommentTime; diff --git a/wcfsetup/install/files/lib/data/comment/ViewableComment.class.php b/wcfsetup/install/files/lib/data/comment/ViewableComment.class.php index 062c8575e6..b24aa41db0 100644 --- a/wcfsetup/install/files/lib/data/comment/ViewableComment.class.php +++ b/wcfsetup/install/files/lib/data/comment/ViewableComment.class.php @@ -51,7 +51,7 @@ class ViewableComment extends DatabaseObjectDecorator { /** * Returns a specific comment decorated as comment entry. * - * @param integer $commentID + * @param int $commentID * @return ViewableComment */ public static function getComment($commentID) { diff --git a/wcfsetup/install/files/lib/data/comment/response/CommentResponse.class.php b/wcfsetup/install/files/lib/data/comment/response/CommentResponse.class.php index 98ff6d7004..3c27fc45c9 100644 --- a/wcfsetup/install/files/lib/data/comment/response/CommentResponse.class.php +++ b/wcfsetup/install/files/lib/data/comment/response/CommentResponse.class.php @@ -17,14 +17,14 @@ use wcf\util\StringUtil; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\Comment\Response * - * @property-read integer $responseID unique id of the comment response - * @property-read integer $commentID id of the comment the comment response belongs to - * @property-read integer $time timestamp at which the comment response has been written - * @property-read integer|null $userID id of the user who wrote the comment response or `null` if the user does not exist anymore or if the comment response has been written by a guest + * @property-read int $responseID unique id of the comment response + * @property-read int $commentID id of the comment the comment response belongs to + * @property-read int $time timestamp at which the comment response has been written + * @property-read int|null $userID id of the user who wrote the comment response or `null` if the user does not exist anymore or if the comment response has been written by a guest * @property-read string $username name of the user or guest who wrote the comment response * @property-read string $message comment response message - * @property-read integer $enableHtml is 1 if HTML will rendered in the comment response, otherwise 0 - * @property-read integer $isDisabled is 1 if the comment response is disabled, otherwise 0 + * @property-read int $enableHtml is 1 if HTML will rendered in the comment response, otherwise 0 + * @property-read int $isDisabled is 1 if the comment response is disabled, otherwise 0 */ class CommentResponse extends DatabaseObject implements IMessage { use TUserContent; diff --git a/wcfsetup/install/files/lib/data/comment/response/CommentResponseAction.class.php b/wcfsetup/install/files/lib/data/comment/response/CommentResponseAction.class.php index f636038f27..a77fd3b1a7 100644 --- a/wcfsetup/install/files/lib/data/comment/response/CommentResponseAction.class.php +++ b/wcfsetup/install/files/lib/data/comment/response/CommentResponseAction.class.php @@ -324,7 +324,7 @@ class CommentResponseAction extends AbstractDatabaseObjectAction { /** * Validates object type id parameter. * - * @param integer $objectTypeID + * @param int $objectTypeID * @return ObjectType * @throws UserInputException */ @@ -353,7 +353,7 @@ class CommentResponseAction extends AbstractDatabaseObjectAction { * Returns the current html input processor or a new one if `$message` is not null. * * @param string|null $message source message - * @param integer $objectID object id + * @param int $objectID object id * @return HtmlInputProcessor */ public function getHtmlInputProcessor($message = null, $objectID = 0) { diff --git a/wcfsetup/install/files/lib/data/comment/response/StructuredCommentResponse.class.php b/wcfsetup/install/files/lib/data/comment/response/StructuredCommentResponse.class.php index 21b13ae4a6..b10f59f12b 100644 --- a/wcfsetup/install/files/lib/data/comment/response/StructuredCommentResponse.class.php +++ b/wcfsetup/install/files/lib/data/comment/response/StructuredCommentResponse.class.php @@ -70,7 +70,7 @@ class StructuredCommentResponse extends DatabaseObjectDecorator { /** * Returns a structured response. * - * @param integer $responseID + * @param int $responseID * @return StructuredCommentResponse */ public static function getResponse($responseID) { diff --git a/wcfsetup/install/files/lib/data/comment/response/StructuredCommentResponseList.class.php b/wcfsetup/install/files/lib/data/comment/response/StructuredCommentResponseList.class.php index dbb606e5b7..d5e410f4fe 100644 --- a/wcfsetup/install/files/lib/data/comment/response/StructuredCommentResponseList.class.php +++ b/wcfsetup/install/files/lib/data/comment/response/StructuredCommentResponseList.class.php @@ -34,7 +34,7 @@ class StructuredCommentResponseList extends CommentResponseList { /** * minimum response time - * @var integer + * @var int */ public $minResponseTime = 0; @@ -104,7 +104,7 @@ class StructuredCommentResponseList extends CommentResponseList { /** * Returns minimum response time. * - * @return integer + * @return int */ public function getMinResponseTime() { return $this->minResponseTime; diff --git a/wcfsetup/install/files/lib/data/comment/response/ViewableCommentResponse.class.php b/wcfsetup/install/files/lib/data/comment/response/ViewableCommentResponse.class.php index 9e98895d7f..ac4e703067 100644 --- a/wcfsetup/install/files/lib/data/comment/response/ViewableCommentResponse.class.php +++ b/wcfsetup/install/files/lib/data/comment/response/ViewableCommentResponse.class.php @@ -51,7 +51,7 @@ class ViewableCommentResponse extends DatabaseObjectDecorator { /** * Returns a specific comment response decorated as viewable comment response. * - * @param integer $responseID + * @param int $responseID * @return ViewableCommentResponse */ public static function getResponse($responseID) { diff --git a/wcfsetup/install/files/lib/data/condition/Condition.class.php b/wcfsetup/install/files/lib/data/condition/Condition.class.php index 9f4822aec7..bf309702c6 100644 --- a/wcfsetup/install/files/lib/data/condition/Condition.class.php +++ b/wcfsetup/install/files/lib/data/condition/Condition.class.php @@ -11,9 +11,9 @@ use wcf\data\DatabaseObject; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\Condition * - * @property-read integer $conditionID unique id of the condition - * @property-read integer $objectTypeID id of the condition object type (of different condition object type definitions) - * @property-read integer $objectID id of the conditioned object of the object type represented by `$objectTypeID` + * @property-read int $conditionID unique id of the condition + * @property-read int $objectTypeID id of the condition object type (of different condition object type definitions) + * @property-read int $objectID id of the conditioned object of the object type represented by `$objectTypeID` * @property-read array $conditionData array with the condition data with is processed by the condition object type's processor */ class Condition extends DatabaseObject { diff --git a/wcfsetup/install/files/lib/data/contact/recipient/ContactRecipient.class.php b/wcfsetup/install/files/lib/data/contact/recipient/ContactRecipient.class.php index 457c26cf4f..036b5b398c 100644 --- a/wcfsetup/install/files/lib/data/contact/recipient/ContactRecipient.class.php +++ b/wcfsetup/install/files/lib/data/contact/recipient/ContactRecipient.class.php @@ -12,13 +12,13 @@ use wcf\system\WCF; * @package WoltLabSuite\Core\Data\Contact\Recipient * @since 3.1 * - * @property-read integer $recipientID unique id of the recipient + * @property-read int $recipientID unique id of the recipient * @property-read string $name name of the recipient * @property-read string $email email address of the recipient - * @property-read integer $showOrder position of the recipient in relation to other recipients - * @property-read integer $isAdministrator is `1` if the recipient is the administrator and the `email` value equals `MAIL_ADMIN_ADDRESS`, otherwise `0` - * @property-read integer $isDisabled is `1` if the recipient is disabled and thus is not available for selection, otherwise `0` - * @property-read integer $originIsSystem is `1` if the recipient has been delivered by a package, otherwise `0` (i.e. the recipient has been created in the ACP) + * @property-read int $showOrder position of the recipient in relation to other recipients + * @property-read int $isAdministrator is `1` if the recipient is the administrator and the `email` value equals `MAIL_ADMIN_ADDRESS`, otherwise `0` + * @property-read int $isDisabled is `1` if the recipient is disabled and thus is not available for selection, otherwise `0` + * @property-read int $originIsSystem is `1` if the recipient has been delivered by a package, otherwise `0` (i.e. the recipient has been created in the ACP) */ class ContactRecipient extends DatabaseObject { /** diff --git a/wcfsetup/install/files/lib/data/core/object/CoreObject.class.php b/wcfsetup/install/files/lib/data/core/object/CoreObject.class.php index 460c45b4f7..27d02e6fac 100644 --- a/wcfsetup/install/files/lib/data/core/object/CoreObject.class.php +++ b/wcfsetup/install/files/lib/data/core/object/CoreObject.class.php @@ -10,8 +10,8 @@ use wcf\data\DatabaseObject; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\Core\Object * - * @property-read integer $objectID unique id of the core object - * @property-read integer $packageID id of the package which delivers the core object + * @property-read int $objectID unique id of the core object + * @property-read int $packageID id of the package which delivers the core object * @property-read string $objectName PHP class name of the core object */ class CoreObject extends DatabaseObject {} diff --git a/wcfsetup/install/files/lib/data/cronjob/Cronjob.class.php b/wcfsetup/install/files/lib/data/cronjob/Cronjob.class.php index ae552fd811..8af9cbb200 100644 --- a/wcfsetup/install/files/lib/data/cronjob/Cronjob.class.php +++ b/wcfsetup/install/files/lib/data/cronjob/Cronjob.class.php @@ -13,9 +13,9 @@ use wcf\util\CronjobUtil; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\Cronjob * - * @property-read integer $cronjobID unique id of the cronjob + * @property-read int $cronjobID unique id of the cronjob * @property-read string $className PHP class name implementing `wcf\system\cronjob\ICronjob` - * @property-read integer $packageID id of the package which delivers the cronjob or the id of the active application during creation in the ACP + * @property-read int $packageID id of the package which delivers the cronjob or the id of the active application during creation in the ACP * @property-read string $cronjobName name and textual identifier of the cronjob * @property-read string $description description of the cronjob or name of language item which contains the description * @property-read string $startMinute minutes in the hour at which the cronjob is executed, wildcard `*` (any minute) or a rule using wildcard `*` @@ -23,14 +23,14 @@ use wcf\util\CronjobUtil; * @property-read string $startDom day of the month at which the cronjob is executed, wildcard `*` (any day) or a rule using wildcard `*` * @property-read string $startMonth month in the year in which the cronjob is executed, wildcard `*` (any month) or a rule using wildcard `*` * @property-read string $startDow day in the week at which the cronjob is executed, wildcard `*` (any day) or a rule using wildcard `*` - * @property-read integer $lastExec timestamp at which the cronjob has been executed the last time - * @property-read integer $nextExec timestamp at which the cronjob will be executed next - * @property-read integer $afterNextExec timestamp at which the cronjob will be executed after next - * @property-read integer $isDisabled is `1` if the cronjob is disabled and thus not executed, otherwise `0` - * @property-read integer $canBeEdited is `1` if the cronjob can be edited in the ACP, otherwise `0` - * @property-read integer $canBeDisabled is `1` if the cronjob can be disabled in the ACP so that it will not be executed, otherwise `0` - * @property-read integer $state current state of the cronjob (see `Cronjob::READY`, `Cronjob::PENDING`, `Cronjob::EXECUTING` and `Cronjob::MAX_FAIL_COUNT`) - * @property-read integer $failCount number of times the cronjob execution failed consecutively + * @property-read int $lastExec timestamp at which the cronjob has been executed the last time + * @property-read int $nextExec timestamp at which the cronjob will be executed next + * @property-read int $afterNextExec timestamp at which the cronjob will be executed after next + * @property-read int $isDisabled is `1` if the cronjob is disabled and thus not executed, otherwise `0` + * @property-read int $canBeEdited is `1` if the cronjob can be edited in the ACP, otherwise `0` + * @property-read int $canBeDisabled is `1` if the cronjob can be disabled in the ACP so that it will not be executed, otherwise `0` + * @property-read int $state current state of the cronjob (see `Cronjob::READY`, `Cronjob::PENDING`, `Cronjob::EXECUTING` and `Cronjob::MAX_FAIL_COUNT`) + * @property-read int $failCount number of times the cronjob execution failed consecutively * @property-read string $options comma separated list of options of which at least one needs to be enabled for the cronjob to be executed */ class Cronjob extends DatabaseObject { @@ -66,8 +66,8 @@ class Cronjob extends DatabaseObject { /** * Returns timestamp of next execution. * - * @param integer $timeBase - * @return integer + * @param int $timeBase + * @return int */ public function getNextExec($timeBase = null) { if ($timeBase === null) { diff --git a/wcfsetup/install/files/lib/data/cronjob/log/CronjobLog.class.php b/wcfsetup/install/files/lib/data/cronjob/log/CronjobLog.class.php index 948b6dce3f..8394e2275c 100644 --- a/wcfsetup/install/files/lib/data/cronjob/log/CronjobLog.class.php +++ b/wcfsetup/install/files/lib/data/cronjob/log/CronjobLog.class.php @@ -10,10 +10,10 @@ use wcf\data\DatabaseObject; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\Cronjob\Log * - * @property-read integer $cronjobLogID unique id of the cronjob execution log - * @property-read integer $cronjobID id of the cronjob the log belongs to - * @property-read integer $execTime timestamp at which the cronjob has been executed - * @property-read integer $success is `1` if the cronjob has been successfully executed, otherwise `0` + * @property-read int $cronjobLogID unique id of the cronjob execution log + * @property-read int $cronjobID id of the cronjob the log belongs to + * @property-read int $execTime timestamp at which the cronjob has been executed + * @property-read int $success is `1` if the cronjob has been successfully executed, otherwise `0` * @property-read string $error error message if the cronjob did not execute successfully, otherwise empty */ class CronjobLog extends DatabaseObject { diff --git a/wcfsetup/install/files/lib/data/custom/option/CustomOption.class.php b/wcfsetup/install/files/lib/data/custom/option/CustomOption.class.php index 168e60950e..c7164b45ab 100644 --- a/wcfsetup/install/files/lib/data/custom/option/CustomOption.class.php +++ b/wcfsetup/install/files/lib/data/custom/option/CustomOption.class.php @@ -20,17 +20,17 @@ use wcf\util\StringUtil; * @package WoltLabSuite\Core\Data\Custom\Option * @since 3.1 * - * @property-read integer $optionID unique id of the option + * @property-read int $optionID unique id of the option * @property-read string $optionTitle title of the option or name of language item which contains the title * @property-read string $optionDescription description of the option or name of language item which contains the description * @property-read string $optionType type of the option which determines its input and output * @property-read string $defaultValue default value of the option * @property-read string $validationPattern regular expression used to validate the value of the option * @property-read string $selectOptions possible values of the option separated by newlines - * @property-read integer $required is `1` if the option has to be filled out, otherwise `0` - * @property-read integer $showOrder position of the option in relation to the other options - * @property-read integer $isDisabled is `1` if the option is disabled, otherwise `0` - * @property-read integer $originIsSystem is `1` if the option has been delivered by a package, otherwise `0` (i.e. the option has been created in the ACP) + * @property-read int $required is `1` if the option has to be filled out, otherwise `0` + * @property-read int $showOrder position of the option in relation to the other options + * @property-read int $isDisabled is `1` if the option is disabled, otherwise `0` + * @property-read int $originIsSystem is `1` if the option has been delivered by a package, otherwise `0` (i.e. the option has been created in the ACP) */ abstract class CustomOption extends Option implements ITitledObject { /** diff --git a/wcfsetup/install/files/lib/data/devtools/missing/language/item/DevtoolsMissingLanguageItem.class.php b/wcfsetup/install/files/lib/data/devtools/missing/language/item/DevtoolsMissingLanguageItem.class.php index 243582f7fc..377198cfc5 100644 --- a/wcfsetup/install/files/lib/data/devtools/missing/language/item/DevtoolsMissingLanguageItem.class.php +++ b/wcfsetup/install/files/lib/data/devtools/missing/language/item/DevtoolsMissingLanguageItem.class.php @@ -15,10 +15,10 @@ use wcf\util\JSON; * @package WoltLabSuite\Core\Devtools\Missing\Language\Item * @since 5.3 * - * @property-read integer $itemID unique id of the missing language item log entry - * @property-read integer $languageID id of the language the missing language item was requested for + * @property-read int $itemID unique id of the missing language item log entry + * @property-read int $languageID id of the language the missing language item was requested for * @property-read string $languageItem name of the missing language item - * @property-read integer $lastTime timestamp of the last time the missing language item was requested + * @property-read int $lastTime timestamp of the last time the missing language item was requested * @property-read string $stackTrace stack trace of how the missing language item was requested for the last time */ class DevtoolsMissingLanguageItem extends DatabaseObject { diff --git a/wcfsetup/install/files/lib/data/devtools/project/DevtoolsProject.class.php b/wcfsetup/install/files/lib/data/devtools/project/DevtoolsProject.class.php index db5e001a20..a86a00b3b1 100644 --- a/wcfsetup/install/files/lib/data/devtools/project/DevtoolsProject.class.php +++ b/wcfsetup/install/files/lib/data/devtools/project/DevtoolsProject.class.php @@ -20,7 +20,7 @@ use wcf\util\DirectoryUtil; * @package WoltLabSuite\Core\Devtools\Project * @since 3.1 * - * @property-read integer $projectID unique id of the project + * @property-read int $projectID unique id of the project * @property-read string $name internal name for display inside the ACP * @property-read string $path file system path */ diff --git a/wcfsetup/install/files/lib/data/edit/history/entry/EditHistoryEntry.class.php b/wcfsetup/install/files/lib/data/edit/history/entry/EditHistoryEntry.class.php index b09614797b..8ee4b6bc35 100644 --- a/wcfsetup/install/files/lib/data/edit/history/entry/EditHistoryEntry.class.php +++ b/wcfsetup/install/files/lib/data/edit/history/entry/EditHistoryEntry.class.php @@ -11,14 +11,14 @@ use wcf\data\DatabaseObject; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\Edit\History\Entry * - * @property-read integer $entryID unique id of the edit history entry - * @property-read integer $objectTypeID id of the `com.woltlab.wcf.edit.historySavingObject` object type - * @property-read integer $objectID id of the edited object of the object type with id `$objectTypeID` - * @property-read integer|null $userID id of the user who has created the previous version of the object or `null` if the user does not exist anymore or if the previous version has been created by a guest + * @property-read int $entryID unique id of the edit history entry + * @property-read int $objectTypeID id of the `com.woltlab.wcf.edit.historySavingObject` object type + * @property-read int $objectID id of the edited object of the object type with id `$objectTypeID` + * @property-read int|null $userID id of the user who has created the previous version of the object or `null` if the user does not exist anymore or if the previous version has been created by a guest * @property-read string $username name of the user who has created the previous version of the object - * @property-read integer $time timestamp at which the original version has been created - * @property-read integer $obsoletedAt timestamp at which the edited version has been created and time used for clean up - * @property-read integer|null $obsoletedByUserID id of the user who has created this version of the object + * @property-read int $time timestamp at which the original version has been created + * @property-read int $obsoletedAt timestamp at which the edited version has been created and time used for clean up + * @property-read int|null $obsoletedByUserID id of the user who has created this version of the object * @property-read string $message message of the edited object prior to the edit * @property-read string $editReason reason for the edit */ diff --git a/wcfsetup/install/files/lib/data/event/listener/EventListener.class.php b/wcfsetup/install/files/lib/data/event/listener/EventListener.class.php index b5d745b1e3..58f38c13b9 100644 --- a/wcfsetup/install/files/lib/data/event/listener/EventListener.class.php +++ b/wcfsetup/install/files/lib/data/event/listener/EventListener.class.php @@ -12,15 +12,15 @@ use wcf\data\TDatabaseObjectPermissions; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\Event\Listener * - * @property-read integer $listenerID unique id of the event listener - * @property-read integer $packageID id of the package which delivers the event listener + * @property-read int $listenerID unique id of the event listener + * @property-read int $packageID id of the package which delivers the event listener * @property-read string $environment environment in which the event listener is executed, possible values: 'all', 'user' or 'admin' * @property-read string $listenerName name and textual identifier of the event listener * @property-read string $eventClassName name of the class in which the listened event is fired * @property-read string $eventName name of the listened event * @property-read string $listenerClassName class name of the event listener class - * @property-read integer $inherit is `1` if the event listener is also executed for classes inheriting from the listened class, otherwise `0` - * @property-read integer $niceValue value from [-128, 127] used to determine event listener execution order (event listeners with smaller `$niceValue` are executed first) + * @property-read int $inherit is `1` if the event listener is also executed for classes inheriting from the listened class, otherwise `0` + * @property-read int $niceValue value from [-128, 127] used to determine event listener execution order (event listeners with smaller `$niceValue` are executed first) * @property-read string $permissions comma separated list of user group permissions of which the active user needs to have at least one for the event listener to be executed * @property-read string $options comma separated list of options of which at least one needs to be enabled for the event listener to be executed */ diff --git a/wcfsetup/install/files/lib/data/label/Label.class.php b/wcfsetup/install/files/lib/data/label/Label.class.php index dbfbe56584..8c9346f4e8 100644 --- a/wcfsetup/install/files/lib/data/label/Label.class.php +++ b/wcfsetup/install/files/lib/data/label/Label.class.php @@ -13,11 +13,11 @@ use wcf\util\StringUtil; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\Label * - * @property-read integer $labelID unique id of the label - * @property-read integer $groupID id of the label group the label belongs to + * @property-read int $labelID unique id of the label + * @property-read int $groupID id of the label group the label belongs to * @property-read string $label label text or name of language item which contains the label text * @property-read string $cssClassName css class name used when displaying the label - * @property-read integer $showOrder position of the label in relation to the other labels in the label group + * @property-read int $showOrder position of the label in relation to the other labels in the label group */ class Label extends DatabaseObject implements IRouteController { /** diff --git a/wcfsetup/install/files/lib/data/label/LabelEditor.class.php b/wcfsetup/install/files/lib/data/label/LabelEditor.class.php index a45b53a81f..25d0014b08 100644 --- a/wcfsetup/install/files/lib/data/label/LabelEditor.class.php +++ b/wcfsetup/install/files/lib/data/label/LabelEditor.class.php @@ -33,8 +33,8 @@ class LabelEditor extends DatabaseObjectEditor implements IEditableCachedObject /** * Adds the label to a specific position in the label group. * - * @param integer $groupID - * @param integer $showOrder + * @param int $groupID + * @param int $showOrder */ public function setShowOrder($groupID, $showOrder = 0) { // shift back labels in old label group with higher showOrder diff --git a/wcfsetup/install/files/lib/data/label/group/LabelGroup.class.php b/wcfsetup/install/files/lib/data/label/group/LabelGroup.class.php index d678c7cb5c..fbc4636e97 100644 --- a/wcfsetup/install/files/lib/data/label/group/LabelGroup.class.php +++ b/wcfsetup/install/files/lib/data/label/group/LabelGroup.class.php @@ -12,11 +12,11 @@ use wcf\system\WCF; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\Label\Group * - * @property-read integer $groupID unique id of the label group + * @property-read int $groupID unique id of the label group * @property-read string $groupName name of the label group or name of language item which contains the label text * @property-read string $groupDescription description of the label group (only shown in ACP) - * @property-read integer $forceSelection is `1` if a label in the label group has to be selected when creating an object for which the label group is available, otherwise `0` - * @property-read integer $showOrder position of the label group in relation to the other label groups + * @property-read int $forceSelection is `1` if a label in the label group has to be selected when creating an object for which the label group is available, otherwise `0` + * @property-read int $showOrder position of the label group in relation to the other label groups */ class LabelGroup extends DatabaseObject implements IRouteController { /** @@ -40,7 +40,7 @@ class LabelGroup extends DatabaseObject implements IRouteController { * * @param DatabaseObject $groupA * @param DatabaseObject $groupB - * @return integer + * @return int */ public static function sortLabelGroups(DatabaseObject $groupA, DatabaseObject $groupB) { /** @noinspection PhpUndefinedFieldInspection */ diff --git a/wcfsetup/install/files/lib/data/label/group/ViewableLabelGroup.class.php b/wcfsetup/install/files/lib/data/label/group/ViewableLabelGroup.class.php index a14b8582c8..8a4bb265e2 100644 --- a/wcfsetup/install/files/lib/data/label/group/ViewableLabelGroup.class.php +++ b/wcfsetup/install/files/lib/data/label/group/ViewableLabelGroup.class.php @@ -32,7 +32,7 @@ class ViewableLabelGroup extends DatabaseObjectDecorator implements \Countable, /** * list of permissions by type - * @var integer[][] + * @var int[][] */ protected $permissions = [ 'group' => [], @@ -41,13 +41,13 @@ class ViewableLabelGroup extends DatabaseObjectDecorator implements \Countable, /** * current iterator index - * @var integer + * @var int */ protected $index = 0; /** * list of index to object relation - * @var integer[] + * @var int[] */ protected $indexToObject = null; @@ -82,7 +82,7 @@ class ViewableLabelGroup extends DatabaseObjectDecorator implements \Countable, /** * Returns true, if label is known. * - * @param integer $labelID + * @param int $labelID * @return boolean */ public function isValid($labelID) { @@ -93,7 +93,7 @@ class ViewableLabelGroup extends DatabaseObjectDecorator implements \Countable, * Returns true, if the given user fulfils option id permissions. * If the user parameter is null, the method checks the current user. * - * @param integer $optionID + * @param int $optionID * @param User $user * @return boolean */ @@ -124,7 +124,7 @@ class ViewableLabelGroup extends DatabaseObjectDecorator implements \Countable, /** * Returns a list of label ids. * - * @return integer[] + * @return int[] */ public function getLabelIDs() { return array_keys($this->labels); @@ -142,7 +142,7 @@ class ViewableLabelGroup extends DatabaseObjectDecorator implements \Countable, /** * Returns a label by id. * - * @param integer $labelID + * @param int $labelID * @return Label|null */ public function getLabel($labelID) { diff --git a/wcfsetup/install/files/lib/data/language/Language.class.php b/wcfsetup/install/files/lib/data/language/Language.class.php index 2e8a837945..1916940aef 100644 --- a/wcfsetup/install/files/lib/data/language/Language.class.php +++ b/wcfsetup/install/files/lib/data/language/Language.class.php @@ -14,13 +14,13 @@ use wcf\util\StringUtil; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\Language * - * @property-read integer $languageID unique id of the language + * @property-read int $languageID unique id of the language * @property-read string $languageCode code of the language according to ISO 639-1 * @property-read string $languageName name of the language within the language itself * @property-read string $countryCode code of the country using the language according to ISO 3166-1, used to determine the language's country flag - * @property-read integer $isDefault is `1` if the language is the default language, otherwise `0` - * @property-read integer $hasContent is `1` if the language can be selected when creating language-specific content, otherwise `0` - * @property-read integer $isDisabled is `1` if the language is disabled and thus not selectable, otherwise `0` + * @property-read int $isDefault is `1` if the language is the default language, otherwise `0` + * @property-read int $hasContent is `1` if the language can be selected when creating language-specific content, otherwise `0` + * @property-read int $isDisabled is `1` if the language is disabled and thus not selectable, otherwise `0` */ class Language extends DatabaseObject { /** @@ -43,7 +43,7 @@ class Language extends DatabaseObject { /** * id of the active package - * @var integer + * @var int */ public $packageID = PACKAGE_ID; diff --git a/wcfsetup/install/files/lib/data/language/LanguageEditor.class.php b/wcfsetup/install/files/lib/data/language/LanguageEditor.class.php index 1665a0888a..089c5918c3 100644 --- a/wcfsetup/install/files/lib/data/language/LanguageEditor.class.php +++ b/wcfsetup/install/files/lib/data/language/LanguageEditor.class.php @@ -58,7 +58,7 @@ class LanguageEditor extends DatabaseObjectEditor implements IEditableCachedObje /** * Write the languages files. * - * @param integer[] $languageCategoryIDs + * @param int[] $languageCategoryIDs */ protected function writeLanguageFiles(array $languageCategoryIDs) { $conditions = new PreparedStatementConditionBuilder(); @@ -119,7 +119,7 @@ class LanguageEditor extends DatabaseObjectEditor implements IEditableCachedObje /** * Exports this language. * - * @param integer[] $packageIDArray + * @param int[] $packageIDArray * @param boolean $exportCustomValues */ public function export($packageIDArray = [], $exportCustomValues = false) { @@ -235,7 +235,7 @@ class LanguageEditor extends DatabaseObjectEditor implements IEditableCachedObje * Updates the relevant language files automatically. * * @param XML $xml - * @param integer $packageID + * @param int $packageID * @param boolean $updateFiles * @param boolean $updateExistingItems * @throws \InvalidArgumentException if given XML file is invalid @@ -634,7 +634,7 @@ class LanguageEditor extends DatabaseObjectEditor implements IEditableCachedObje * Updates the relevant language files automatically. * * @param XML $xml - * @param integer $packageID + * @param int $packageID * @param Language $source * @return LanguageEditor */ @@ -692,7 +692,7 @@ class LanguageEditor extends DatabaseObjectEditor implements IEditableCachedObje * * @param array $items * @param LanguageCategory $category - * @param integer $packageID + * @param int $packageID * @param array $useCustom */ public function updateItems(array $items, LanguageCategory $category, $packageID = PACKAGE_ID, array $useCustom = []) { @@ -804,8 +804,8 @@ class LanguageEditor extends DatabaseObjectEditor implements IEditableCachedObje /** * Copies all cms contents (article, box, media, page) from given source language to language specified as $destinationLanguageID. * - * @param integer $sourceLanguageID - * @param integer $destinationLanguageID + * @param int $sourceLanguageID + * @param int $destinationLanguageID */ public static function copyLanguageContent($sourceLanguageID, $destinationLanguageID) { // article content diff --git a/wcfsetup/install/files/lib/data/language/category/LanguageCategory.class.php b/wcfsetup/install/files/lib/data/language/category/LanguageCategory.class.php index 9cd6677350..1c3032d979 100644 --- a/wcfsetup/install/files/lib/data/language/category/LanguageCategory.class.php +++ b/wcfsetup/install/files/lib/data/language/category/LanguageCategory.class.php @@ -11,7 +11,7 @@ use wcf\data\ITitledObject; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\Language\Category * - * @property-read integer $languageCategoryID unique id of the language category + * @property-read int $languageCategoryID unique id of the language category * @property-read string $languageCategory name and textual identifier of the language category */ class LanguageCategory extends DatabaseObject implements ITitledObject { diff --git a/wcfsetup/install/files/lib/data/language/item/LanguageItem.class.php b/wcfsetup/install/files/lib/data/language/item/LanguageItem.class.php index 9a1913d5b2..6249045dc5 100644 --- a/wcfsetup/install/files/lib/data/language/item/LanguageItem.class.php +++ b/wcfsetup/install/files/lib/data/language/item/LanguageItem.class.php @@ -10,18 +10,18 @@ use wcf\data\DatabaseObject; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\Language\Item * - * @property-read integer $languageItemID unique id of the language item - * @property-read integer $languageID id of the language the language item belongs to + * @property-read int $languageItemID unique id of the language item + * @property-read int $languageID id of the language the language item belongs to * @property-read string $languageItem name and textual identifier of the language item * @property-read string $languageItemValue default value of the language item * @property-read string $languageCustomItemValue custom value of the language item set by an admin - * @property-read integer $languageUseCustomValue is `1` if the custom value is used instead of the default value, otherwise `0` - * @property-read integer $languageItemOriginIsSystem is `1` if the language item has been delivered by a package, otherwise `0` (for example, if language item has been created for i18n content) - * @property-read integer $languageCategoryID id of the language category the language item belongs to - * @property-read integer|null $packageID id of the package the which delivers the language item or with which the language item is associated + * @property-read int $languageUseCustomValue is `1` if the custom value is used instead of the default value, otherwise `0` + * @property-read int $languageItemOriginIsSystem is `1` if the language item has been delivered by a package, otherwise `0` (for example, if language item has been created for i18n content) + * @property-read int $languageCategoryID id of the language category the language item belongs to + * @property-read int|null $packageID id of the package the which delivers the language item or with which the language item is associated * @property-read string $languageItemOldValue previous default value of the language item - * @property-read integer $languageCustomItemDisableTime the timestamp at which the custom version has been disabled due to a change to the original value - * @property-read integer $isCustomLanguageItem is `1` if the language item has been added manually via the ACP + * @property-read int $languageCustomItemDisableTime the timestamp at which the custom version has been disabled due to a change to the original value + * @property-read int $isCustomLanguageItem is `1` if the language item has been added manually via the ACP */ class LanguageItem extends DatabaseObject { /** diff --git a/wcfsetup/install/files/lib/data/like/Like.class.php b/wcfsetup/install/files/lib/data/like/Like.class.php index 7f70384675..db580a30fc 100644 --- a/wcfsetup/install/files/lib/data/like/Like.class.php +++ b/wcfsetup/install/files/lib/data/like/Like.class.php @@ -14,25 +14,25 @@ use wcf\util\StringUtil; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\Like * - * @property-read integer $likeID unique id of the like - * @property-read integer $objectID id of the liked object - * @property-read integer $objectTypeID id of the `com.woltlab.wcf.like.likeableObject` object type - * @property-read integer|null $objectUserID id of the user who created the liked object or null if user has been deleted or object was created by guest - * @property-read integer $userID id of the user who created the like - * @property-read integer $time timestamp at which the like has been created - * @property-read integer $likeValue value of the like (`+1` = like, `-1` = dislike, see `Like::LIKE` and `Like::Dislike`) - * @property-read integer $reactionTypeID reactionTypeID of the reaction + * @property-read int $likeID unique id of the like + * @property-read int $objectID id of the liked object + * @property-read int $objectTypeID id of the `com.woltlab.wcf.like.likeableObject` object type + * @property-read int|null $objectUserID id of the user who created the liked object or null if user has been deleted or object was created by guest + * @property-read int $userID id of the user who created the like + * @property-read int $time timestamp at which the like has been created + * @property-read int $likeValue value of the like (`+1` = like, `-1` = dislike, see `Like::LIKE` and `Like::Dislike`) + * @property-read int $reactionTypeID reactionTypeID of the reaction */ class Like extends DatabaseObject { /** * like value - * @var integer + * @var int */ const LIKE = 1; /** * dislike value - * @var integer + * @var int */ const DISLIKE = -1; @@ -59,9 +59,9 @@ class Like extends DatabaseObject { /** * Returns the like with given type, object id and user id. * - * @param integer $objectTypeID - * @param integer $objectID - * @param integer $userID + * @param int $objectTypeID + * @param int $objectID + * @param int $userID * @return Like */ public static function getLike($objectTypeID, $objectID, $userID) { diff --git a/wcfsetup/install/files/lib/data/like/LikeAction.class.php b/wcfsetup/install/files/lib/data/like/LikeAction.class.php index 0326922d0c..96de047998 100644 --- a/wcfsetup/install/files/lib/data/like/LikeAction.class.php +++ b/wcfsetup/install/files/lib/data/like/LikeAction.class.php @@ -155,7 +155,7 @@ class LikeAction extends AbstractDatabaseObjectAction implements IGroupedUserLis * Sets like/dislike for an object, executing this method again with the same parameters * will revert the status (removing like/dislike). * - * @param integer $likeValue + * @param int $likeValue * @return array */ protected function updateLike($likeValue) { diff --git a/wcfsetup/install/files/lib/data/like/ViewableLikeList.class.php b/wcfsetup/install/files/lib/data/like/ViewableLikeList.class.php index 8a9dd20be1..ee2d5a74c1 100644 --- a/wcfsetup/install/files/lib/data/like/ViewableLikeList.class.php +++ b/wcfsetup/install/files/lib/data/like/ViewableLikeList.class.php @@ -85,7 +85,7 @@ class ViewableLikeList extends LikeList { /** * Returns timestamp of oldest like fetched. * - * @return integer + * @return int */ public function getLastLikeTime() { $lastLikeTime = 0; diff --git a/wcfsetup/install/files/lib/data/like/object/ILikeObject.class.php b/wcfsetup/install/files/lib/data/like/object/ILikeObject.class.php index b692397c80..f0af890757 100644 --- a/wcfsetup/install/files/lib/data/like/object/ILikeObject.class.php +++ b/wcfsetup/install/files/lib/data/like/object/ILikeObject.class.php @@ -25,7 +25,7 @@ interface ILikeObject extends IDatabaseObjectProcessor, IIDObject, ITitledObject /** * Returns the user id of the owner of this object. * - * @return integer + * @return int */ public function getUserID(); @@ -39,7 +39,7 @@ interface ILikeObject extends IDatabaseObjectProcessor, IIDObject, ITitledObject /** * Updates the cumulative likes for this object. * - * @param integer $cumulativeLikes + * @param int $cumulativeLikes */ public function updateLikeCounter($cumulativeLikes); @@ -60,7 +60,7 @@ interface ILikeObject extends IDatabaseObjectProcessor, IIDObject, ITitledObject /** * Returns the language id of this object or its parent or `null` if no explicit language is set. * - * @return integer|null + * @return int|null */ public function getLanguageID(); } diff --git a/wcfsetup/install/files/lib/data/like/object/LikeObject.class.php b/wcfsetup/install/files/lib/data/like/object/LikeObject.class.php index 4d643b922c..ba242c2236 100644 --- a/wcfsetup/install/files/lib/data/like/object/LikeObject.class.php +++ b/wcfsetup/install/files/lib/data/like/object/LikeObject.class.php @@ -15,13 +15,13 @@ use wcf\util\JSON; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\Like\Object * - * @property-read integer $likeObjectID unique id of the liked object - * @property-read integer $objectTypeID id of the `com.woltlab.wcf.like.likeableObject` object type - * @property-read integer $objectID id of the liked object - * @property-read integer|null $objectUserID id of the user who created the liked object or null if user has been deleted or object was created by guest - * @property-read integer $likes number of likes of the liked object - * @property-read integer $dislikes legacy column, not used anymore - * @property-read integer $cumulativeLikes number of likes of the liked object + * @property-read int $likeObjectID unique id of the liked object + * @property-read int $objectTypeID id of the `com.woltlab.wcf.like.likeableObject` object type + * @property-read int $objectID id of the liked object + * @property-read int|null $objectUserID id of the user who created the liked object or null if user has been deleted or object was created by guest + * @property-read int $likes number of likes of the liked object + * @property-read int $dislikes legacy column, not used anymore + * @property-read int $cumulativeLikes number of likes of the liked object * @property-read string $cachedUsers serialized array with the ids and names of the three users who liked (+1) the object last * @property-read string $cachedReactions serialized array with the reactionTypeIDs and the count of the reactions */ @@ -45,13 +45,13 @@ class LikeObject extends DatabaseObject { /** * A list with all reaction counts. - * @var integer[] + * @var int[] */ protected $reactions = []; /** * The reputation for the current object. - * @var integer + * @var int */ protected $reputation = null; @@ -142,7 +142,7 @@ class LikeObject extends DatabaseObject { * Returns all reaction counts for this object. Reactions without any count won't be saved in the array. * So this method returns an empty array, if this object has no reactions. * - * @return integer[] + * @return int[] * @since 5.2 */ public function getReactions() { @@ -161,8 +161,8 @@ class LikeObject extends DatabaseObject { /** * Returns the like object with the given type and object id. * - * @param integer $objectTypeID - * @param integer $objectID + * @param int $objectTypeID + * @param int $objectID * @return LikeObject */ public static function getLikeObject($objectTypeID, $objectID) { diff --git a/wcfsetup/install/files/lib/data/media/Media.class.php b/wcfsetup/install/files/lib/data/media/Media.class.php index 3a4b32ea01..d36d7d0ab9 100644 --- a/wcfsetup/install/files/lib/data/media/Media.class.php +++ b/wcfsetup/install/files/lib/data/media/Media.class.php @@ -17,40 +17,40 @@ use wcf\system\WCF; * @package WoltLabSuite\Core\Data\Media * @since 3.0 * - * @property-read integer $mediaID unique id of the media file - * @property-read integer $categoryID id of the category the media file belongs to or `null` if it belongs to no category + * @property-read int $mediaID unique id of the media file + * @property-read int $categoryID id of the category the media file belongs to or `null` if it belongs to no category * @property-read string $filename name of the physical media file - * @property-read integer $filesize size of the physical media file + * @property-read int $filesize size of the physical media file * @property-read string $fileType type of the physical media file * @property-read string $fileHash hash of the physical media file - * @property-read integer $uploadTime timestamp at which the media file has been uploaded + * @property-read int $uploadTime timestamp at which the media file has been uploaded * @property-read int $fileUpdateTime timestamp at which the media file was updated the last or `0` if it has not been updated - * @property-read integer|null $userID id of the user who uploaded the media file or null if the user does not exist anymore + * @property-read int|null $userID id of the user who uploaded the media file or null if the user does not exist anymore * @property-read string $username name of the user who uploaded the media file - * @property-read integer|null $languageID id of the language associated with the media file or null if the media file is multilingual or if the language has been deleted - * @property-read integer $isMultilingual is `1` if the media file's title, description and altText is available in multiple languages, otherwise `0` - * @property-read integer $captionEnableHtml is `1` if html code in caption is supported, otherwise `0` - * @property-read integer $isImage is `1` if the media file is an image, otherwise `0` - * @property-read integer $width width of the media file if `$isImage` is `1`, otherwise `0` - * @property-read integer $height height of the media file if `$isImage` is `1`, otherwise `0` + * @property-read int|null $languageID id of the language associated with the media file or null if the media file is multilingual or if the language has been deleted + * @property-read int $isMultilingual is `1` if the media file's title, description and altText is available in multiple languages, otherwise `0` + * @property-read int $captionEnableHtml is `1` if html code in caption is supported, otherwise `0` + * @property-read int $isImage is `1` if the media file is an image, otherwise `0` + * @property-read int $width width of the media file if `$isImage` is `1`, otherwise `0` + * @property-read int $height height of the media file if `$isImage` is `1`, otherwise `0` * @property-read string $tinyThumbnailType type of the tiny thumbnail file for the media file if `$isImage` is `1`, otherwise empty - * @property-read integer $tinyThumbnailSize size of the tiny thumbnail file for the media file if `$isImage` is `1`, otherwise `0` - * @property-read integer $tinyThumbnailWidth width of the tiny thumbnail file for the media file if `$isImage` is `1`, otherwise `0` - * @property-read integer $tinyThumbnailHeight height of the tiny thumbnail file for the media file if `$isImage` is `1`, otherwise `0` + * @property-read int $tinyThumbnailSize size of the tiny thumbnail file for the media file if `$isImage` is `1`, otherwise `0` + * @property-read int $tinyThumbnailWidth width of the tiny thumbnail file for the media file if `$isImage` is `1`, otherwise `0` + * @property-read int $tinyThumbnailHeight height of the tiny thumbnail file for the media file if `$isImage` is `1`, otherwise `0` * @property-read string $smallThumbnailType type of the small thumbnail file for the media file if `$isImage` is `1`, otherwise empty - * @property-read integer $smallThumbnailSize size of the small thumbnail file for the media file if `$isImage` is `1`, otherwise `0` - * @property-read integer $smallThumbnailWidth width of the small thumbnail file for the media file if `$isImage` is `1`, otherwise `0` - * @property-read integer $smallThumbnailHeight height of the small thumbnail file for the media file if `$isImage` is `1`, otherwise `0` + * @property-read int $smallThumbnailSize size of the small thumbnail file for the media file if `$isImage` is `1`, otherwise `0` + * @property-read int $smallThumbnailWidth width of the small thumbnail file for the media file if `$isImage` is `1`, otherwise `0` + * @property-read int $smallThumbnailHeight height of the small thumbnail file for the media file if `$isImage` is `1`, otherwise `0` * @property-read string $mediumThumbnailType type of the medium thumbnail file for the media file if `$isImage` is `1`, otherwise empty - * @property-read integer $mediumThumbnailSize size of the medium thumbnail file for the media file if `$isImage` is `1`, otherwise `0` - * @property-read integer $mediumThumbnailWidth width of the medium thumbnail file for the media file if `$isImage` is `1`, otherwise `0` - * @property-read integer $mediumThumbnailHeight height of the medium thumbnail file for the media file if `$isImage` is `1`, otherwise `0` + * @property-read int $mediumThumbnailSize size of the medium thumbnail file for the media file if `$isImage` is `1`, otherwise `0` + * @property-read int $mediumThumbnailWidth width of the medium thumbnail file for the media file if `$isImage` is `1`, otherwise `0` + * @property-read int $mediumThumbnailHeight height of the medium thumbnail file for the media file if `$isImage` is `1`, otherwise `0` * @property-read string $largeThumbnailType type of the large thumbnail file for the media file if `$isImage` is `1`, otherwise empty - * @property-read integer $largeThumbnailSize size of the large thumbnail file for the media file if `$isImage` is `1`, otherwise `0` - * @property-read integer $largeThumbnailWidth width of the large thumbnail file for the media file if `$isImage` is `1`, otherwise `0` - * @property-read integer $largeThumbnailHeight height of the large thumbnail file for the media file if `$isImage` is `1`, otherwise `0` - * @property-read integer $downloads number of times the media file has been downloaded - * @property-read integer $lastDownloadTime timestamp at which the media file has been downloaded the last time + * @property-read int $largeThumbnailSize size of the large thumbnail file for the media file if `$isImage` is `1`, otherwise `0` + * @property-read int $largeThumbnailWidth width of the large thumbnail file for the media file if `$isImage` is `1`, otherwise `0` + * @property-read int $largeThumbnailHeight height of the large thumbnail file for the media file if `$isImage` is `1`, otherwise `0` + * @property-read int $downloads number of times the media file has been downloaded + * @property-read int $lastDownloadTime timestamp at which the media file has been downloaded the last time */ class Media extends DatabaseObject implements ILinkableObject, IRouteController, IThumbnailFile { /** @@ -122,7 +122,7 @@ class Media extends DatabaseObject implements ILinkableObject, IRouteController, * Returns the width of the thumbnail file with the given size. * * @param string $size - * @return integer + * @return int * @throws \InvalidArgumentException */ public function getThumbnailWidth($size) { @@ -141,7 +141,7 @@ class Media extends DatabaseObject implements ILinkableObject, IRouteController, * Returns the height of the thumbnail file with the given size. * * @param string $size - * @return integer + * @return int * @throws \InvalidArgumentException */ public function getThumbnailHeight($size) { diff --git a/wcfsetup/install/files/lib/data/media/MediaAction.class.php b/wcfsetup/install/files/lib/data/media/MediaAction.class.php index 11e5e2402b..97bba3a87a 100644 --- a/wcfsetup/install/files/lib/data/media/MediaAction.class.php +++ b/wcfsetup/install/files/lib/data/media/MediaAction.class.php @@ -595,7 +595,7 @@ class MediaAction extends AbstractDatabaseObjectAction implements ISearchAction, * Unmarks the media files with the given ids. If no media ids are given, * all media files currently loaded are unmarked. * - * @param integer[] $mediaIDs ids of the media files to be unmarked + * @param int[] $mediaIDs ids of the media files to be unmarked */ protected function unmarkItems(array $mediaIDs = []) { if (empty($mediaIDs)) { diff --git a/wcfsetup/install/files/lib/data/media/ViewableMedia.class.php b/wcfsetup/install/files/lib/data/media/ViewableMedia.class.php index fb417dfd7e..ce931ee11f 100644 --- a/wcfsetup/install/files/lib/data/media/ViewableMedia.class.php +++ b/wcfsetup/install/files/lib/data/media/ViewableMedia.class.php @@ -25,7 +25,7 @@ use wcf\util\StringUtil; class ViewableMedia extends DatabaseObjectDecorator { /** * force localized content by language id - * @var integer + * @var int */ protected $forceLanguageID; @@ -49,7 +49,7 @@ class ViewableMedia extends DatabaseObjectDecorator { /** * Registers localized content by language id. * - * @param integer $languageID + * @param int $languageID * @param string[] $content */ public function setLocalizedContent($languageID, array $content) { @@ -59,7 +59,7 @@ class ViewableMedia extends DatabaseObjectDecorator { /** * Returns an instance of this class with localized versions. * - * @param integer $languageID + * @param int $languageID * @return ViewableMedia */ public function getLocalizedVersion($languageID) { @@ -76,7 +76,7 @@ class ViewableMedia extends DatabaseObjectDecorator { /** * Forces the localized values by language id. * - * @param integer $languageID + * @param int $languageID */ protected function forceLanguageID($languageID) { $this->forceLanguageID = $languageID; @@ -242,7 +242,7 @@ class ViewableMedia extends DatabaseObjectDecorator { /** * Returns the viewable media file with the given id. * - * @param integer $mediaID + * @param int $mediaID * @return ViewableMedia|null */ public static function getMedia($mediaID) { diff --git a/wcfsetup/install/files/lib/data/menu/Menu.class.php b/wcfsetup/install/files/lib/data/menu/Menu.class.php index 77b86a5bcf..6bd4c32691 100644 --- a/wcfsetup/install/files/lib/data/menu/Menu.class.php +++ b/wcfsetup/install/files/lib/data/menu/Menu.class.php @@ -15,11 +15,11 @@ use wcf\system\WCF; * @package WoltLabSuite\Core\Data\Menu * @since 3.0 * - * @property-read integer $menuID unique id of the menu + * @property-read int $menuID unique id of the menu * @property-read string $identifier textual identifier of the menu * @property-read string $title title of the menu or name of language item which contains the title - * @property-read integer $originIsSystem is `1` if the menu has been delivered by a package, otherwise `0` (if the menu has been created by an admin in the ACP) - * @property-read integer $packageID id of the package the which delivers the menu or `1` if it has been created in the ACP + * @property-read int $originIsSystem is `1` if the menu has been delivered by a package, otherwise `0` (if the menu has been created by an admin in the ACP) + * @property-read int $packageID id of the package the which delivers the menu or `1` if it has been created in the ACP */ class Menu extends DatabaseObject implements ITitledObject { /** diff --git a/wcfsetup/install/files/lib/data/menu/MenuCache.class.php b/wcfsetup/install/files/lib/data/menu/MenuCache.class.php index 2b229c7f1a..fc5fc598d6 100644 --- a/wcfsetup/install/files/lib/data/menu/MenuCache.class.php +++ b/wcfsetup/install/files/lib/data/menu/MenuCache.class.php @@ -35,7 +35,7 @@ class MenuCache extends SingletonFactory { /** * Returns a menu by id. * - * @param integer $menuID menu id + * @param int $menuID menu id * @return Menu|null menu object or null if menu id is unknown */ public function getMenuByID($menuID) { @@ -49,7 +49,7 @@ class MenuCache extends SingletonFactory { /** * Returns a menu item list by menu id. * - * @param integer $menuID menu id + * @param int $menuID menu id * @return MenuItemList|null menu item list object or null if menu id is unknown */ public function getMenuItemsByMenuID($menuID) { @@ -72,7 +72,7 @@ class MenuCache extends SingletonFactory { /** * Returns the id of the main menu. * - * @return integer + * @return int */ public function getMainMenuID() { return MenuCacheBuilder::getInstance()->getData([], 'mainMenuID'); diff --git a/wcfsetup/install/files/lib/data/menu/item/MenuItem.class.php b/wcfsetup/install/files/lib/data/menu/item/MenuItem.class.php index ca9b48f8ea..cad60af545 100644 --- a/wcfsetup/install/files/lib/data/menu/item/MenuItem.class.php +++ b/wcfsetup/install/files/lib/data/menu/item/MenuItem.class.php @@ -19,18 +19,18 @@ use wcf\system\WCF; * @package WoltLabSuite\Core\Data\Menu\Item * @since 3.0 * - * @property-read integer $itemID unique id of the menu item - * @property-read integer $menuID id of the menu the menu item belongs to - * @property-read integer|null $parentItemID id of the menu item's parent menu item or null if it has no parent menu item + * @property-read int $itemID unique id of the menu item + * @property-read int $menuID id of the menu the menu item belongs to + * @property-read int|null $parentItemID id of the menu item's parent menu item or null if it has no parent menu item * @property-read string $identifier textual identifier of the menu item * @property-read string $title title of the menu item or name of language item which contains title - * @property-read integer|null $pageID id of the linked `wcf\data\page\Page` object or null of no such page is linked - * @property-read integer $pageObjectID id of the object required to show the page referenced by `$pageID` + * @property-read int|null $pageID id of the linked `wcf\data\page\Page` object or null of no such page is linked + * @property-read int $pageObjectID id of the object required to show the page referenced by `$pageID` * @property-read string $externalURL external link of the menu item - * @property-read integer $showOrder position of the menu item in relation to its siblings - * @property-read integer $isDisabled is `1` if the menu item is disabled and thus not shown in the menu, otherwise `0` - * @property-read integer $originIsSystem is `1` if the menu item has been delivered by a package, otherwise `0` (if the menu item has been created by an admin in the ACP) - * @property-read integer $packageID id of the package the which delivers the menu item or `1` if it has been created in the ACP + * @property-read int $showOrder position of the menu item in relation to its siblings + * @property-read int $isDisabled is `1` if the menu item is disabled and thus not shown in the menu, otherwise `0` + * @property-read int $originIsSystem is `1` if the menu item has been delivered by a package, otherwise `0` (if the menu item has been created by an admin in the ACP) + * @property-read int $packageID id of the package the which delivers the menu item or `1` if it has been created in the ACP */ class MenuItem extends DatabaseObject implements ITitledObject { /** @@ -141,7 +141,7 @@ class MenuItem extends DatabaseObject implements ITitledObject { /** * Returns the number of outstanding items for this menu. * - * @return integer + * @return int */ public function getOutstandingItems() { if ($this->getMenuPageHandler() !== null) { diff --git a/wcfsetup/install/files/lib/data/menu/item/MenuItemNode.class.php b/wcfsetup/install/files/lib/data/menu/item/MenuItemNode.class.php index ff3f44249c..55f1896e3a 100644 --- a/wcfsetup/install/files/lib/data/menu/item/MenuItemNode.class.php +++ b/wcfsetup/install/files/lib/data/menu/item/MenuItemNode.class.php @@ -23,7 +23,7 @@ class MenuItemNode extends DatabaseObjectDecorator implements \Countable, \Recur /** * node depth - * @var integer + * @var int */ protected $depth = 0; @@ -41,7 +41,7 @@ class MenuItemNode extends DatabaseObjectDecorator implements \Countable, \Recur /** * iterator position - * @var integer + * @var int */ private $position = 0; @@ -55,7 +55,7 @@ class MenuItemNode extends DatabaseObjectDecorator implements \Countable, \Recur * * @param MenuItemNode $parentNode * @param MenuItem $menuItem - * @param integer $depth + * @param int $depth */ public function __construct($parentNode = null, MenuItem $menuItem = null, $depth = 0) { if ($menuItem === null) { @@ -88,7 +88,7 @@ class MenuItemNode extends DatabaseObjectDecorator implements \Countable, \Recur /** * Returns the number of children. * - * @return integer + * @return int */ public function count() { return count($this->children); @@ -111,7 +111,7 @@ class MenuItemNode extends DatabaseObjectDecorator implements \Countable, \Recur /** * Returns the number of open parent nodes. * - * @return integer + * @return int */ public function getOpenParentNodes() { $element = $this; @@ -198,7 +198,7 @@ class MenuItemNode extends DatabaseObjectDecorator implements \Countable, \Recur /** * Returns node depth. * - * @return integer + * @return int */ public function getDepth() { return $this->depth; diff --git a/wcfsetup/install/files/lib/data/menu/item/MenuItemNodeTree.class.php b/wcfsetup/install/files/lib/data/menu/item/MenuItemNodeTree.class.php index 641ad1a09c..398f287cf7 100644 --- a/wcfsetup/install/files/lib/data/menu/item/MenuItemNodeTree.class.php +++ b/wcfsetup/install/files/lib/data/menu/item/MenuItemNodeTree.class.php @@ -21,7 +21,7 @@ class MenuItemNodeTree { /** * menu id - * @var integer + * @var int */ public $menuID; @@ -45,14 +45,14 @@ class MenuItemNodeTree { /** * number of visible items - * @var integer + * @var int */ protected $visibleItemCount = 0; /** * Creates a new MenuItemNodeTree object. * - * @param integer $menuID menu id + * @param int $menuID menu id * @param MenuItemList $menuItemList optional object to be provided when building the tree from cache * @param boolean $checkVisibility if `false`, individual menu item visibility will not be checked */ @@ -124,7 +124,7 @@ class MenuItemNodeTree { /** * Generates the node tree recursively. * - * @param integer $parentID parent menu item id + * @param int $parentID parent menu item id * @param MenuItemNode $parentNode parent menu item object * @return MenuItemNode[] nested menu item tree */ @@ -173,7 +173,7 @@ class MenuItemNodeTree { /** * Returns the number of visible items. * - * @return integer + * @return int */ public function getVisibleItemCount() { return $this->visibleItemCount; diff --git a/wcfsetup/install/files/lib/data/moderation/queue/ModerationQueue.class.php b/wcfsetup/install/files/lib/data/moderation/queue/ModerationQueue.class.php index 5f04e92b26..17cdb74b1b 100644 --- a/wcfsetup/install/files/lib/data/moderation/queue/ModerationQueue.class.php +++ b/wcfsetup/install/files/lib/data/moderation/queue/ModerationQueue.class.php @@ -12,16 +12,16 @@ use wcf\system\WCF; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\Moderation\Queue * - * @property-read integer $queueID unique id of the moderation queue entry - * @property-read integer $objectTypeID id of the `com.woltlab.wcf.moderation.type` object type - * @property-read integer $objectID id of the object of the object type with id `$objectTypeID` to which the moderation queue entry belongs to - * @property-read integer $containerID id of the object's container object to which the modification log entry belongs to or `0` if no such container object exists or is logged - * @property-read integer|null $userID id of the user who created the moderation queue entry or `null` if the user does not exist anymore or if the moderation queue entry has been created by a guest - * @property-read integer $time timestamp at which the moderation queue entry has been created - * @property-read integer|null $assignedUserID id of the user to which the moderation queue entry is assigned or `null` if it is not assigned to any user - * @property-read integer $status status of the moderation queue entry (see `ModerationQueue::STATUS_*` constants) - * @property-read integer $comments number of comments on the moderation queue entry - * @property-read integer $lastChangeTime timestamp at which the moderation queue entry has been changed the last time + * @property-read int $queueID unique id of the moderation queue entry + * @property-read int $objectTypeID id of the `com.woltlab.wcf.moderation.type` object type + * @property-read int $objectID id of the object of the object type with id `$objectTypeID` to which the moderation queue entry belongs to + * @property-read int $containerID id of the object's container object to which the modification log entry belongs to or `0` if no such container object exists or is logged + * @property-read int|null $userID id of the user who created the moderation queue entry or `null` if the user does not exist anymore or if the moderation queue entry has been created by a guest + * @property-read int $time timestamp at which the moderation queue entry has been created + * @property-read int|null $assignedUserID id of the user to which the moderation queue entry is assigned or `null` if it is not assigned to any user + * @property-read int $status status of the moderation queue entry (see `ModerationQueue::STATUS_*` constants) + * @property-read int $comments number of comments on the moderation queue entry + * @property-read int $lastChangeTime timestamp at which the moderation queue entry has been changed the last time * @property-read array $additionalData array with additional data of the moderation queue entry * @property-read boolean $markAsJustified true if the report was closed, but it was actually justified and other actions may have been taken */ @@ -93,7 +93,7 @@ class ModerationQueue extends DatabaseObject { /** * Returns status text. * - * @param integer $status + * @param int $status * @return string */ public function getStatus($status = null) { diff --git a/wcfsetup/install/files/lib/data/moderation/queue/ViewableModerationQueue.class.php b/wcfsetup/install/files/lib/data/moderation/queue/ViewableModerationQueue.class.php index b9618a0202..b65e13a4e9 100644 --- a/wcfsetup/install/files/lib/data/moderation/queue/ViewableModerationQueue.class.php +++ b/wcfsetup/install/files/lib/data/moderation/queue/ViewableModerationQueue.class.php @@ -149,7 +149,7 @@ class ViewableModerationQueue extends DatabaseObjectDecorator implements ILinkab /** * Returns a viewable moderation queue entry. * - * @param integer $queueID + * @param int $queueID * @return ViewableModerationQueue */ public static function getViewableModerationQueue($queueID) { diff --git a/wcfsetup/install/files/lib/data/modification/log/ModificationLog.class.php b/wcfsetup/install/files/lib/data/modification/log/ModificationLog.class.php index 4fe10645dd..093305242e 100644 --- a/wcfsetup/install/files/lib/data/modification/log/ModificationLog.class.php +++ b/wcfsetup/install/files/lib/data/modification/log/ModificationLog.class.php @@ -10,13 +10,13 @@ use wcf\data\DatabaseObject; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\Modification\Log * - * @property-read integer $logID unique id of the modification log entry - * @property-read integer $objectTypeID id of the `com.woltlab.wcf.modifiableContent` object type - * @property-read integer $objectID id of the object of the object type with id `$objectTypeID` to which the modification log entry belongs to - * @property-read integer|null $parentObjectID id of the object's parent object to which the modification log entry belongs to or `null` if no such parent object exists or is logged - * @property-read integer|null $userID id of the user who caused the modification log entry or `null` if the user does not exist anymore or if the modification log entry has been caused by a guest + * @property-read int $logID unique id of the modification log entry + * @property-read int $objectTypeID id of the `com.woltlab.wcf.modifiableContent` object type + * @property-read int $objectID id of the object of the object type with id `$objectTypeID` to which the modification log entry belongs to + * @property-read int|null $parentObjectID id of the object's parent object to which the modification log entry belongs to or `null` if no such parent object exists or is logged + * @property-read int|null $userID id of the user who caused the modification log entry or `null` if the user does not exist anymore or if the modification log entry has been caused by a guest * @property-read string $username name of the user or guest who caused the modification log entry - * @property-read integer $time timestamp at which the modification log entry has been created + * @property-read int $time timestamp at which the modification log entry has been created * @property-read string $action name of the modification action that is logged * @property-read array $additionalData array with additional data of the modification log entry */ diff --git a/wcfsetup/install/files/lib/data/notice/Notice.class.php b/wcfsetup/install/files/lib/data/notice/Notice.class.php index 8aff0b288f..d98237b025 100644 --- a/wcfsetup/install/files/lib/data/notice/Notice.class.php +++ b/wcfsetup/install/files/lib/data/notice/Notice.class.php @@ -16,14 +16,14 @@ use wcf\util\StringUtil; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\Notice * - * @property-read integer $noticeID unique id of the notice + * @property-read int $noticeID unique id of the notice * @property-read string $noticeName name of the notice shown in ACP * @property-read string $notice text of the notice or name of language item which contains the text - * @property-read integer $noticeUseHtml is `1` if the notice text will be rendered as HTML, otherwise `0` + * @property-read int $noticeUseHtml is `1` if the notice text will be rendered as HTML, otherwise `0` * @property-read string $cssClassName css class name(s) used for the notice HTML element - * @property-read integer $showOrder position of the notice in relation to the other notices - * @property-read integer $isDisabled is `1` if the notice is disabled and thus not shown, otherwise `0` - * @property-read integer $isDismissible is `1` if the notice can be dismissed by users, otherwise `0` + * @property-read int $showOrder position of the notice in relation to the other notices + * @property-read int $isDisabled is `1` if the notice is disabled and thus not shown, otherwise `0` + * @property-read int $isDismissible is `1` if the notice can be dismissed by users, otherwise `0` */ class Notice extends DatabaseObject implements IRouteController { /** diff --git a/wcfsetup/install/files/lib/data/notice/NoticeAction.class.php b/wcfsetup/install/files/lib/data/notice/NoticeAction.class.php index 9f57b8ff1d..63b1eaff5e 100644 --- a/wcfsetup/install/files/lib/data/notice/NoticeAction.class.php +++ b/wcfsetup/install/files/lib/data/notice/NoticeAction.class.php @@ -74,7 +74,7 @@ class NoticeAction extends AbstractDatabaseObjectAction implements ISortableActi /** * Dismisses a certain notice. * - * @return integer[] + * @return int[] */ public function dismiss() { if (WCF::getUser()->userID) { diff --git a/wcfsetup/install/files/lib/data/notice/NoticeEditor.class.php b/wcfsetup/install/files/lib/data/notice/NoticeEditor.class.php index dafc49722e..60f5bbc24f 100644 --- a/wcfsetup/install/files/lib/data/notice/NoticeEditor.class.php +++ b/wcfsetup/install/files/lib/data/notice/NoticeEditor.class.php @@ -28,7 +28,7 @@ class NoticeEditor extends DatabaseObjectEditor implements IEditableCachedObject /** * Sets the show order of the notice. * - * @param integer $showOrder + * @param int $showOrder */ public function setShowOrder($showOrder = 0) { $sql = "SELECT MAX(showOrder) diff --git a/wcfsetup/install/files/lib/data/object/type/IObjectTypeProvider.class.php b/wcfsetup/install/files/lib/data/object/type/IObjectTypeProvider.class.php index bee4170d09..084d4c916b 100644 --- a/wcfsetup/install/files/lib/data/object/type/IObjectTypeProvider.class.php +++ b/wcfsetup/install/files/lib/data/object/type/IObjectTypeProvider.class.php @@ -14,7 +14,7 @@ interface IObjectTypeProvider { /** * Returns an object by its ID. * - * @param integer $objectID + * @param int $objectID * @return DatabaseObject */ public function getObjectByID($objectID); @@ -22,7 +22,7 @@ interface IObjectTypeProvider { /** * Returns objects by their IDs. * - * @param integer[] $objectIDs + * @param int[] $objectIDs * @return DatabaseObject[] */ public function getObjectsByIDs(array $objectIDs); diff --git a/wcfsetup/install/files/lib/data/object/type/ObjectType.class.php b/wcfsetup/install/files/lib/data/object/type/ObjectType.class.php index 3974d3873c..4085a93ea5 100644 --- a/wcfsetup/install/files/lib/data/object/type/ObjectType.class.php +++ b/wcfsetup/install/files/lib/data/object/type/ObjectType.class.php @@ -18,9 +18,9 @@ use wcf\system\SingletonFactory; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\Object\Type * - * @property-read integer $objectTypeID unique id of the object type - * @property-read integer $definitionID id of the object type definition the object type belongs to - * @property-read integer $packageID id of the package the which delivers the object type + * @property-read int $objectTypeID unique id of the object type + * @property-read int $definitionID id of the object type definition the object type belongs to + * @property-read int $packageID id of the package the which delivers the object type * @property-read string $objectType textual identifier of the object type * @property-read string $className PHP class name of the object type processor (implementing the interface forced by the object type definition) * @property-read array $additionalData array with additional data of the object type diff --git a/wcfsetup/install/files/lib/data/object/type/ObjectTypeCache.class.php b/wcfsetup/install/files/lib/data/object/type/ObjectTypeCache.class.php index 4b02a92b8d..4451e77443 100644 --- a/wcfsetup/install/files/lib/data/object/type/ObjectTypeCache.class.php +++ b/wcfsetup/install/files/lib/data/object/type/ObjectTypeCache.class.php @@ -21,7 +21,7 @@ class ObjectTypeCache extends SingletonFactory { /** * object type definition ids grouped by category name - * @var integer[][] + * @var int[][] */ protected $definitionsByCategory = []; @@ -63,7 +63,7 @@ class ObjectTypeCache extends SingletonFactory { * Returns the object type definition with the given id or null if no such * object type definition exists. * - * @param integer $definitionID + * @param int $definitionID * @return ObjectTypeDefinition */ public function getDefinition($definitionID) { @@ -113,7 +113,7 @@ class ObjectTypeCache extends SingletonFactory { * Returns the object type with the given id or null if no such object type * exists. * - * @param integer $objectTypeID + * @param int $objectTypeID * @return ObjectType */ public function getObjectType($objectTypeID) { @@ -159,7 +159,7 @@ class ObjectTypeCache extends SingletonFactory { * * @param string $definitionName * @param string $objectTypeName - * @return integer + * @return int */ public function getObjectTypeIDByName($definitionName, $objectTypeName) { $objectType = $this->getObjectTypeByName($definitionName, $objectTypeName); diff --git a/wcfsetup/install/files/lib/data/object/type/definition/ObjectTypeDefinition.class.php b/wcfsetup/install/files/lib/data/object/type/definition/ObjectTypeDefinition.class.php index f79fec6733..794cc1a418 100644 --- a/wcfsetup/install/files/lib/data/object/type/definition/ObjectTypeDefinition.class.php +++ b/wcfsetup/install/files/lib/data/object/type/definition/ObjectTypeDefinition.class.php @@ -10,9 +10,9 @@ use wcf\data\DatabaseObject; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\Object\Type\Definition * - * @property-read integer $definitionID unique id of the object type definition + * @property-read int $definitionID unique id of the object type definition * @property-read string $definitionName textual identifier of the object type definition - * @property-read integer $packageID id of the package the which delivers the object type definition + * @property-read int $packageID id of the package the which delivers the object type definition * @property-read string $interfaceName PHP interface name the PHP classes of the object types' processors need to implement * @property-read string $categoryName */ diff --git a/wcfsetup/install/files/lib/data/option/Option.class.php b/wcfsetup/install/files/lib/data/option/Option.class.php index 0b0cbb6b82..e1a91b38ba 100644 --- a/wcfsetup/install/files/lib/data/option/Option.class.php +++ b/wcfsetup/install/files/lib/data/option/Option.class.php @@ -15,8 +15,8 @@ use wcf\util\StringUtil; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\Option * - * @property-read integer $optionID unique id of the option - * @property-read integer $packageID id of the package the which delivers the option + * @property-read int $optionID unique id of the option + * @property-read int $packageID id of the package the which delivers the option * @property-read string $optionName name and textual identifier of the option * @property-read string $categoryName name of the option category the option belongs to * @property-read string $optionType textual identifier of the option (corresponds to a class implementing `wcf\system\option\IOptionType`) @@ -24,12 +24,12 @@ use wcf\util\StringUtil; * @property-read string $validationPattern regular expression used to validate the option's value or empty if no such regular expression exists * @property-read string $selectOptions newline-separated list of selectable options for a selectable option type (line pattern: `{value}:{language item name}`) * @property-read string $enableOptions list of options that are enabled based on the option's value (simple comma-separated list of boolean options, otherwise newline-separated list with line pattern: `{select value}:{comma-separated list}`) - * @property-read integer $showOrder position of the option in relation to the other option in the option category - * @property-read integer $hidden is `1` if the option is hidden and thus cannot be explicitly set by in the acp, otherwise `0` + * @property-read int $showOrder position of the option in relation to the other option in the option category + * @property-read int $hidden is `1` if the option is hidden and thus cannot be explicitly set by in the acp, otherwise `0` * @property-read string $permissions comma separated list of user group permissions of which the active user needs to have at least one to set the option value * @property-read string $options comma separated list of options of which at least one needs to be enabled for the option to be editable - * @property-read integer $supportI18n is `1` if the option supports different values for all available languages, otherwise `0` - * @property-read integer $requireI18n is `1` if `$supportI18n = 1` and the option's value has to explicitly set for all values so that the `monolingual` option is not available, otherwise `0` + * @property-read int $supportI18n is `1` if the option supports different values for all available languages, otherwise `0` + * @property-read int $requireI18n is `1` if `$supportI18n = 1` and the option's value has to explicitly set for all values so that the `monolingual` option is not available, otherwise `0` * @property-read array $additionalData array with additional data of the option */ class Option extends DatabaseObject { diff --git a/wcfsetup/install/files/lib/data/option/category/OptionCategory.class.php b/wcfsetup/install/files/lib/data/option/category/OptionCategory.class.php index 9e65a06389..4eb162709e 100644 --- a/wcfsetup/install/files/lib/data/option/category/OptionCategory.class.php +++ b/wcfsetup/install/files/lib/data/option/category/OptionCategory.class.php @@ -12,11 +12,11 @@ use wcf\data\TDatabaseObjectPermissions; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\Option\Category * - * @property-read integer $categoryID unique id of the option category - * @property-read integer $packageID id of the package the which delivers the option category + * @property-read int $categoryID unique id of the option category + * @property-read int $packageID id of the package the which delivers the option category * @property-read string $categoryName name and textual identifier of the option category * @property-read string $parentCategoryName name of the option category's parent category or empty if the option category has no parent category - * @property-read integer $showOrder position of the option category in relation its siblings + * @property-read int $showOrder position of the option category in relation its siblings * @property-read string $permissions comma separated list of user group permissions of which the active user needs to have at least one to see the option category * @property-read string $options comma separated list of options of which at least one needs to be enabled for the option category to be shown */ diff --git a/wcfsetup/install/files/lib/data/package/Package.class.php b/wcfsetup/install/files/lib/data/package/Package.class.php index ebfc10b50d..f24680f462 100644 --- a/wcfsetup/install/files/lib/data/package/Package.class.php +++ b/wcfsetup/install/files/lib/data/package/Package.class.php @@ -17,17 +17,17 @@ use wcf\util\FileUtil; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\Package * - * @property-read integer $packageID unique id of the package + * @property-read int $packageID unique id of the package * @property-read string $package unique textual identifier of the package * @property-read string $packageDir relative directory to Core in which the application is installed or empty if package is no application or Core * @property-read string $packageName name of the package or name of language item which contains the name * @property-read string $packageDescription description of the package or name of language item which contains the description * @property-read string $packageVersion installed version of package - * @property-read integer $packageDate timestamp at which the installed package version has been released - * @property-read integer $installDate timestamp at which the package has been installed - * @property-read integer $updateDate timestamp at which the package has been updated or installed if it has not been updated yet + * @property-read int $packageDate timestamp at which the installed package version has been released + * @property-read int $installDate timestamp at which the package has been installed + * @property-read int $updateDate timestamp at which the package has been updated or installed if it has not been updated yet * @property-read string $packageURL external url to website with more information about the package - * @property-read integer $isApplication is `1` if the package delivers an application, otherwise `0` + * @property-read int $isApplication is `1` if the package delivers an application, otherwise `0` * @property-read string $author author of the package * @property-read string $authorURL external url to the website of the package author */ @@ -65,7 +65,7 @@ class Package extends DatabaseObject implements ILinkableObject, IRouteControlle /** * list of ids of packages which are required by another package - * @var integer[] + * @var int[] */ protected static $requiredPackageIDs = null; @@ -420,7 +420,7 @@ class Package extends DatabaseObject implements ILinkableObject, IRouteControlle /** * Writes the config.inc.php for an application. * - * @param integer $packageID + * @param int $packageID */ public static function writeConfigFile($packageID) { $package = new Package($packageID); diff --git a/wcfsetup/install/files/lib/data/package/PackageCache.class.php b/wcfsetup/install/files/lib/data/package/PackageCache.class.php index a551eaebf4..87cd595c49 100644 --- a/wcfsetup/install/files/lib/data/package/PackageCache.class.php +++ b/wcfsetup/install/files/lib/data/package/PackageCache.class.php @@ -28,7 +28,7 @@ class PackageCache extends SingletonFactory { /** * Returns a specific package. * - * @param integer $packageID + * @param int $packageID * @return Package */ public function getPackage($packageID) { diff --git a/wcfsetup/install/files/lib/data/package/installation/plugin/PackageInstallationPlugin.class.php b/wcfsetup/install/files/lib/data/package/installation/plugin/PackageInstallationPlugin.class.php index 3bae2b1ca7..6d1a555191 100644 --- a/wcfsetup/install/files/lib/data/package/installation/plugin/PackageInstallationPlugin.class.php +++ b/wcfsetup/install/files/lib/data/package/installation/plugin/PackageInstallationPlugin.class.php @@ -12,8 +12,8 @@ use wcf\system\package\plugin\IPackageInstallationPlugin; * @package WoltLabSuite\Core\Data\Package\Installation\Plugin * * @property-read string $pluginName unique name and textual identifier of the package installation plugin - * @property-read integer|null $packageID id of the package the which delivers the package installation plugin - * @property-read integer $priority priority in which the package installation plugins are installed, `1` for Core package installation plugins (executed first) and `0` for other package installation plugins + * @property-read int|null $packageID id of the package the which delivers the package installation plugin + * @property-read int $priority priority in which the package installation plugins are installed, `1` for Core package installation plugins (executed first) and `0` for other package installation plugins * @property-read string $className name of the PHP class implementing `wcf\system\package\plugin\IPackageInstallationPlugin` handling installing and uninstalling handled data */ class PackageInstallationPlugin extends DatabaseObject { diff --git a/wcfsetup/install/files/lib/data/package/installation/queue/PackageInstallationQueue.class.php b/wcfsetup/install/files/lib/data/package/installation/queue/PackageInstallationQueue.class.php index e4c02fe13a..f51a81df9e 100644 --- a/wcfsetup/install/files/lib/data/package/installation/queue/PackageInstallationQueue.class.php +++ b/wcfsetup/install/files/lib/data/package/installation/queue/PackageInstallationQueue.class.php @@ -11,23 +11,23 @@ use wcf\system\WCF; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\Package\Installation\Queue * - * @property-read integer $queueID unique id of the package installation queue entry - * @property-read integer $parentQueueID id of the package installation queue entry's parent entry or `0` if it has no parent entry - * @property-read integer $processNo numerical identifier of a group of dependent package installation queue entries, i.e. a parent entry and all of its children - * @property-read integer $userID id of the user who started the package installation, update or uninstallation + * @property-read int $queueID unique id of the package installation queue entry + * @property-read int $parentQueueID id of the package installation queue entry's parent entry or `0` if it has no parent entry + * @property-read int $processNo numerical identifier of a group of dependent package installation queue entries, i.e. a parent entry and all of its children + * @property-read int $userID id of the user who started the package installation, update or uninstallation * @property-read string $package identifier of the relevant package * @property-read string $packageName name of the relevant package - * @property-read integer|null $packageID id of relevant package + * @property-read int|null $packageID id of relevant package * @property-read string $archive location of the package file for `$action = install` or `$action = update`, otherwise empty * @property-read string $action action the package installation queue entry belongs to (`install`, `update`, `uninstall`) - * @property-read integer $done is `1` if the package installation queue entry has been completed, otherwise `0` - * @property-read integer $isApplication is `1` if the package installation queue entry belongs to an application, otherwise `0` + * @property-read int $done is `1` if the package installation queue entry has been completed, otherwise `0` + * @property-read int $isApplication is `1` if the package installation queue entry belongs to an application, otherwise `0` */ class PackageInstallationQueue extends DatabaseObject { /** * Returns a new process number for package installation queue. * - * @return integer + * @return int */ public static function getNewProcessNo() { $sql = "SELECT MAX(processNo) AS processNo diff --git a/wcfsetup/install/files/lib/data/package/installation/queue/PackageInstallationQueueAction.class.php b/wcfsetup/install/files/lib/data/package/installation/queue/PackageInstallationQueueAction.class.php index c0c55a5861..8cc90e0134 100644 --- a/wcfsetup/install/files/lib/data/package/installation/queue/PackageInstallationQueueAction.class.php +++ b/wcfsetup/install/files/lib/data/package/installation/queue/PackageInstallationQueueAction.class.php @@ -61,7 +61,7 @@ class PackageInstallationQueueAction extends AbstractDatabaseObjectAction { /** * Prepares a new package installation queue. * - * @return integer[] + * @return int[] */ public function prepareQueue() { $processNo = PackageInstallationQueue::getNewProcessNo(); diff --git a/wcfsetup/install/files/lib/data/package/update/PackageUpdate.class.php b/wcfsetup/install/files/lib/data/package/update/PackageUpdate.class.php index 863da5d6e9..59b7643a34 100644 --- a/wcfsetup/install/files/lib/data/package/update/PackageUpdate.class.php +++ b/wcfsetup/install/files/lib/data/package/update/PackageUpdate.class.php @@ -10,15 +10,15 @@ use wcf\data\DatabaseObject; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\Package\Update * - * @property-read integer $packageUpdateID unique id of the package update - * @property-read integer $packageUpdateServerID id of the package update server the package update is located on + * @property-read int $packageUpdateID unique id of the package update + * @property-read int $packageUpdateServerID id of the package update server the package update is located on * @property-read string $package identifier of the package * @property-read string $packageName name of the package * @property-read string $packageDescription description of the package * @property-read string $author author of the package * @property-read string $authorURL external url to the website of the package author - * @property-read integer $isApplication is `1` if the package update belongs to an application, otherwise `0` - * @property-read integer $pluginStoreFileID file id for related package on pluginstore.woltlab.com, otherwise `0` + * @property-read int $isApplication is `1` if the package update belongs to an application, otherwise `0` + * @property-read int $pluginStoreFileID file id for related package on pluginstore.woltlab.com, otherwise `0` */ class PackageUpdate extends DatabaseObject { /** diff --git a/wcfsetup/install/files/lib/data/package/update/PackageUpdateAction.class.php b/wcfsetup/install/files/lib/data/package/update/PackageUpdateAction.class.php index de7e6b7e14..088609c81c 100644 --- a/wcfsetup/install/files/lib/data/package/update/PackageUpdateAction.class.php +++ b/wcfsetup/install/files/lib/data/package/update/PackageUpdateAction.class.php @@ -235,7 +235,7 @@ class PackageUpdateAction extends AbstractDatabaseObjectAction { * Validates dependencies and exclusions of a package, * optionally limited by a minimum version number. * - * @param integer $packageUpdateID + * @param int $packageUpdateID * @param string|null $minVersion * @param string[] $installedPackages * @param string[] $excludedPackagesOfInstalledPackages diff --git a/wcfsetup/install/files/lib/data/package/update/server/PackageUpdateServer.class.php b/wcfsetup/install/files/lib/data/package/update/server/PackageUpdateServer.class.php index bc00b3e095..a97d93b105 100644 --- a/wcfsetup/install/files/lib/data/package/update/server/PackageUpdateServer.class.php +++ b/wcfsetup/install/files/lib/data/package/update/server/PackageUpdateServer.class.php @@ -16,12 +16,12 @@ use wcf\util\Url; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\Package\Update\Server * - * @property-read integer $packageUpdateServerID unique id of the package update server + * @property-read int $packageUpdateServerID unique id of the package update server * @property-read string $serverURL url of the package update server * @property-read string $loginUsername username used to login on the package update server * @property-read string $loginPassword password used to login on the package update server - * @property-read integer $isDisabled is `1` if the package update server is disabled and thus not considered for package updates, otherwise `0` - * @property-read integer $lastUpdateTime timestamp at which the data of the package update server has been fetched the last time + * @property-read int $isDisabled is `1` if the package update server is disabled and thus not considered for package updates, otherwise `0` + * @property-read int $lastUpdateTime timestamp at which the data of the package update server has been fetched the last time * @property-read string $status status of the package update server (`online` or `offline`) * @property-read string $errorMessage error message if the package update server if offline or empty otherwise * @property-read string $apiVersion version of the supported package update server api (`2.0`, `2.1`) @@ -68,7 +68,7 @@ class PackageUpdateServer extends DatabaseObject { /** * Returns all active update package servers sorted by hostname. * - * @param integer[] $packageUpdateServerIDs + * @param int[] $packageUpdateServerIDs * @return PackageUpdateServer[] */ public static final function getActiveUpdateServers(array $packageUpdateServerIDs = []) { @@ -167,7 +167,7 @@ class PackageUpdateServer extends DatabaseObject { /** * Stores auth data for a package update server. * - * @param integer $packageUpdateServerID + * @param int $packageUpdateServerID * @param string $username * @param string $password * @param boolean $saveCredentials @@ -197,7 +197,7 @@ class PackageUpdateServer extends DatabaseObject { /** * Returns true if update server requires license data instead of username/password. * - * @return integer + * @return int */ public final function requiresLicense() { return Regex::compile('^https?://update.woltlab.com/')->match($this->serverURL); diff --git a/wcfsetup/install/files/lib/data/package/update/version/PackageUpdateVersion.class.php b/wcfsetup/install/files/lib/data/package/update/version/PackageUpdateVersion.class.php index 17bf3a6653..a5aa98437f 100644 --- a/wcfsetup/install/files/lib/data/package/update/version/PackageUpdateVersion.class.php +++ b/wcfsetup/install/files/lib/data/package/update/version/PackageUpdateVersion.class.php @@ -10,14 +10,14 @@ use wcf\data\DatabaseObject; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\Package\Update\Version * - * @property-read integer $packageUpdateVersionID unique id of the package update version - * @property-read integer $packageUpdateID id of the package update the package update version belongs to + * @property-read int $packageUpdateVersionID unique id of the package update version + * @property-read int $packageUpdateID id of the package update the package update version belongs to * @property-read string $packageVersion version number of the package update version - * @property-read integer $packageDate date of the package update version + * @property-read int $packageDate date of the package update version * @property-read string $filename location of the package update version file or empty if no file is given * @property-read string $license name of the license of the package update version or empty if no license is given * @property-read string $licenseURL link to the license of the package update version or empty if no license or license link is given - * @property-read integer $isAccessible is `1` if the package update version is accessible and thus can be installed, otherwise `0` + * @property-read int $isAccessible is `1` if the package update version is accessible and thus can be installed, otherwise `0` */ class PackageUpdateVersion extends DatabaseObject { /** diff --git a/wcfsetup/install/files/lib/data/page/Page.class.php b/wcfsetup/install/files/lib/data/page/Page.class.php index aa98e0b67f..c4ca695dcd 100644 --- a/wcfsetup/install/files/lib/data/page/Page.class.php +++ b/wcfsetup/install/files/lib/data/page/Page.class.php @@ -26,24 +26,24 @@ use wcf\system\WCF; * @package WoltLabSuite\Core\Data\Page * @since 3.0 * - * @property-read integer $pageID unique id of the page - * @property-read integer|null $parentPageID id of the page's parent page or `null` if it has no parent page + * @property-read int $pageID unique id of the page + * @property-read int|null $parentPageID id of the page's parent page or `null` if it has no parent page * @property-read string $identifier unique textual identifier of the page * @property-read string $name monolingual name of the page shown in the ACP * @property-read string $pageType type of the page, default types: `text`, `html`, `tpl` `system` - * @property-read integer $isDisabled is `1` if the page is disabled and thus cannot be accessed, otherwise `0` - * @property-read integer $isLandingPage is `1` if the page is the landing page, otherwise `0` - * @property-read integer $isMultilingual is `1` if the page is available in different languages, otherwise `0` - * @property-read integer $originIsSystem is `1` if the page has been delivered by a package, otherwise `0` (i.e. the page has been created in the ACP) - * @property-read integer $packageID id of the package the which delivers the page or `1` if it has been created in the ACP - * @property-read integer $applicationPackageID id of the package of the application the pages belongs to - * @property-read integer $overrideApplicationPackageID id of the package of the application that the page virtually belongs to + * @property-read int $isDisabled is `1` if the page is disabled and thus cannot be accessed, otherwise `0` + * @property-read int $isLandingPage is `1` if the page is the landing page, otherwise `0` + * @property-read int $isMultilingual is `1` if the page is available in different languages, otherwise `0` + * @property-read int $originIsSystem is `1` if the page has been delivered by a package, otherwise `0` (i.e. the page has been created in the ACP) + * @property-read int $packageID id of the package the which delivers the page or `1` if it has been created in the ACP + * @property-read int $applicationPackageID id of the package of the application the pages belongs to + * @property-read int $overrideApplicationPackageID id of the package of the application that the page virtually belongs to * @property-read string $controller name of the page controller class * @property-read string $handler name of the page handler class for `system` pages or empty * @property-read string $controllerCustomURL custom url of the page - * @property-read integer $requireObjectID is `1` if the page requires an object id parameter, otherwise `0` - * @property-read integer $hasFixedParent is `1` if the page's parent page cannot be changed, otherwise `0` - * @property-read integer $lastUpdateTime timestamp at which the page has been updated the last time + * @property-read int $requireObjectID is `1` if the page requires an object id parameter, otherwise `0` + * @property-read int $hasFixedParent is `1` if the page's parent page cannot be changed, otherwise `0` + * @property-read int $lastUpdateTime timestamp at which the page has been updated the last time * @property-read string $cssClassName css class name(s) of the page * @property-read string $availableDuringOfflineMode is `1` if the page is available during offline mode, otherwise `0` * @property-read string $allowSpidersToIndex is `1` if the page is accessible for search spiders, otherwise `0` @@ -69,7 +69,7 @@ class Page extends DatabaseObject implements ILinkableObject, ITitledObject { /** * box to page assignments - * @var integer[] + * @var int[] */ protected $boxIDs; @@ -137,7 +137,7 @@ class Page extends DatabaseObject implements ILinkableObject, ITitledObject { * Returns content for a single language, passing `null` for `$languageID` is undefined * for multilingual pages. * - * @param integer $languageID language id or `null` if there are no localized versions + * @param int $languageID language id or `null` if there are no localized versions * @return PageContent|null page content data */ public function getPageContentByLanguage($languageID = null) { @@ -303,7 +303,7 @@ class Page extends DatabaseObject implements ILinkableObject, ITitledObject { /** * Returns box to page assignments. * - * @return integer[] + * @return int[] */ public function getBoxIDs() { if ($this->boxIDs === null) { @@ -331,7 +331,7 @@ class Page extends DatabaseObject implements ILinkableObject, ITitledObject { /** * Returns the template name of this page. * - * @param integer $languageID + * @param int $languageID * @return string */ public function getTplName($languageID = null) { diff --git a/wcfsetup/install/files/lib/data/page/PageCache.class.php b/wcfsetup/install/files/lib/data/page/PageCache.class.php index 5d5e4e7657..71e2025ebd 100644 --- a/wcfsetup/install/files/lib/data/page/PageCache.class.php +++ b/wcfsetup/install/files/lib/data/page/PageCache.class.php @@ -39,7 +39,7 @@ class PageCache extends SingletonFactory { /** * Returns a page by page id or null. * - * @param integer $pageID page id + * @param int $pageID page id * @return Page|null */ public function getPage($pageID) { @@ -82,8 +82,8 @@ class PageCache extends SingletonFactory { * Returns the localized page title by page id, optionally retrieving the title * for given language id if it is a multilingual page. * - * @param integer $pageID page id - * @param integer $languageID specific value by language id + * @param int $pageID page id + * @param int $languageID specific value by language id * @return string localized page title */ public function getPageTitle($pageID, $languageID = null) { diff --git a/wcfsetup/install/files/lib/data/page/PageEditor.class.php b/wcfsetup/install/files/lib/data/page/PageEditor.class.php index e45a93a324..956247aaba 100644 --- a/wcfsetup/install/files/lib/data/page/PageEditor.class.php +++ b/wcfsetup/install/files/lib/data/page/PageEditor.class.php @@ -32,7 +32,7 @@ class PageEditor extends DatabaseObjectEditor implements IEditableCachedObject { /** * Creates or updates the page's template file. * - * @param integer $languageID language id or `null` + * @param int $languageID language id or `null` * @param string $content template content */ public function updateTemplate($languageID, $content) { @@ -58,7 +58,7 @@ class PageEditor extends DatabaseObjectEditor implements IEditableCachedObject { * Returns true if given custom url is unique. * * @param string $customURL - * @param integer $packageID + * @param int $packageID * * @return boolean */ diff --git a/wcfsetup/install/files/lib/data/page/PageLanguage.class.php b/wcfsetup/install/files/lib/data/page/PageLanguage.class.php index e83370979a..09bfd8f9e9 100644 --- a/wcfsetup/install/files/lib/data/page/PageLanguage.class.php +++ b/wcfsetup/install/files/lib/data/page/PageLanguage.class.php @@ -16,21 +16,21 @@ use wcf\system\request\LinkHandler; class PageLanguage { /** * language id - * @var integer + * @var int */ protected $languageID; /** * page id - * @var integer + * @var int */ protected $pageID; /** * Creates a new PageLanguage object. * - * @param integer $pageID - * @param integer $languageID + * @param int $pageID + * @param int $languageID */ public function __construct($pageID, $languageID) { $this->pageID = $pageID; diff --git a/wcfsetup/install/files/lib/data/page/PageNode.class.php b/wcfsetup/install/files/lib/data/page/PageNode.class.php index 35edaf5b4a..02906ed379 100644 --- a/wcfsetup/install/files/lib/data/page/PageNode.class.php +++ b/wcfsetup/install/files/lib/data/page/PageNode.class.php @@ -29,13 +29,13 @@ class PageNode extends DatabaseObjectDecorator implements \Countable, \Recursive /** * node depth - * @var integer + * @var int */ protected $depth = 0; /** * iterator position - * @var integer + * @var int */ private $position = 0; @@ -49,7 +49,7 @@ class PageNode extends DatabaseObjectDecorator implements \Countable, \Recursive * * @param PageNode $parentNode * @param Page $page - * @param integer $depth + * @param int $depth */ public function __construct($parentNode = null, Page $page = null, $depth = 0) { if ($page === null) { @@ -82,7 +82,7 @@ class PageNode extends DatabaseObjectDecorator implements \Countable, \Recursive /** * Returns the number of children. * - * @return integer + * @return int */ public function count() { return count($this->children); @@ -140,7 +140,7 @@ class PageNode extends DatabaseObjectDecorator implements \Countable, \Recursive /** * Returns node depth. * - * @return integer + * @return int */ public function getDepth() { return $this->depth; diff --git a/wcfsetup/install/files/lib/data/page/PageNodeTree.class.php b/wcfsetup/install/files/lib/data/page/PageNodeTree.class.php index bc152341c8..0c568e90c2 100644 --- a/wcfsetup/install/files/lib/data/page/PageNodeTree.class.php +++ b/wcfsetup/install/files/lib/data/page/PageNodeTree.class.php @@ -13,13 +13,13 @@ namespace wcf\data\page; class PageNodeTree { /** * parent page id - * @var integer + * @var int */ public $parentID = null; /** * start depth - * @var integer + * @var int */ public $startDepth = 0; @@ -44,8 +44,8 @@ class PageNodeTree { /** * Creates a new PageNodeTree object. * - * @param integer $parentID - * @param integer $startDepth + * @param int $parentID + * @param int $startDepth */ public function __construct($parentID = null, $startDepth = 0) { $this->parentID = $parentID; @@ -73,7 +73,7 @@ class PageNodeTree { /** * Generates the node tree recursively. * - * @param integer $parentID + * @param int $parentID * @param PageNode $parentNode * @return PageNode[] */ diff --git a/wcfsetup/install/files/lib/data/page/content/PageContent.class.php b/wcfsetup/install/files/lib/data/page/content/PageContent.class.php index 45cd72c1d8..b633daeb90 100644 --- a/wcfsetup/install/files/lib/data/page/content/PageContent.class.php +++ b/wcfsetup/install/files/lib/data/page/content/PageContent.class.php @@ -17,14 +17,14 @@ use wcf\system\WCF; * @package WoltLabSuite\Core\Data\Page\Content * @since 3.0 * - * @property-read integer $pageContentID unique id of the page content - * @property-read integer $pageID id of the page the page content belongs to - * @property-read integer $languageID id of the page content's language + * @property-read int $pageContentID unique id of the page content + * @property-read int $pageID id of the page the page content belongs to + * @property-read int $languageID id of the page content's language * @property-read string $title title of the page in the associated language * @property-read string $content actual content of the page in the associated language * @property-read string $metaDescription meta description of the page in the associated language * @property-read string $customURL custom url of the page in the associated language - * @property-read integer $hasEmbeddedObjects is `1` if the page content contains embedded objects, otherwise `0` + * @property-read int $hasEmbeddedObjects is `1` if the page content contains embedded objects, otherwise `0` */ class PageContent extends DatabaseObject implements ILinkableObject { /** @@ -85,8 +85,8 @@ class PageContent extends DatabaseObject implements ILinkableObject { /** * Returns a certain page content. * - * @param integer $pageID - * @param integer $languageID + * @param int $pageID + * @param int $languageID * @return PageContent|null */ public static function getPageContent($pageID, $languageID) { diff --git a/wcfsetup/install/files/lib/data/paid/subscription/PaidSubscription.class.php b/wcfsetup/install/files/lib/data/paid/subscription/PaidSubscription.class.php index bec9b40d6f..0554de5cfe 100644 --- a/wcfsetup/install/files/lib/data/paid/subscription/PaidSubscription.class.php +++ b/wcfsetup/install/files/lib/data/paid/subscription/PaidSubscription.class.php @@ -16,16 +16,16 @@ use wcf\system\WCF; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\Paid\Subscription * - * @property-read integer $subscriptionID unique id of the paid subscription + * @property-read int $subscriptionID unique id of the paid subscription * @property-read string $title title of the paid subscription or name of language item which contains the title * @property-read string $description description of the paid subscription or name of language item which contains the description - * @property-read integer $isDisabled is `1` if the paid subscription is disabled and thus cannot be bought, otherwise `0` - * @property-read integer $showOrder position of the paid subscription in relation to the other paid subscriptions + * @property-read int $isDisabled is `1` if the paid subscription is disabled and thus cannot be bought, otherwise `0` + * @property-read int $showOrder position of the paid subscription in relation to the other paid subscriptions * @property-read double $cost cost of the paid subscription * @property-read string $currency identifier for the currency of the paid subscription cost - * @property-read integer $subscriptionLength magnitude part of the duration of the subscription or `0` if the subscription is permanent + * @property-read int $subscriptionLength magnitude part of the duration of the subscription or `0` if the subscription is permanent * @property-read string $subscriptionLengthUnit unit part of the duration of the subscription (`D` for days, `M` for months, `Y` for years) or empty if the subscription is permanent - * @property-read integer $isRecurring is `1` if the paid subscription is recurring and thus requires regular (automatic) payments, otherwise `0` + * @property-read int $isRecurring is `1` if the paid subscription is recurring and thus requires regular (automatic) payments, otherwise `0` * @property-read string $groupIDs comma-separated list with the ids of the user groups for which the subscription pays membership * @property-read string $excludedSubscriptionIDs comma-separated list with the ids of paid subscriptions which prohibit purchase of this paid subscription */ diff --git a/wcfsetup/install/files/lib/data/paid/subscription/PaidSubscriptionEditor.class.php b/wcfsetup/install/files/lib/data/paid/subscription/PaidSubscriptionEditor.class.php index 52b5111d96..2fdbc42f15 100644 --- a/wcfsetup/install/files/lib/data/paid/subscription/PaidSubscriptionEditor.class.php +++ b/wcfsetup/install/files/lib/data/paid/subscription/PaidSubscriptionEditor.class.php @@ -26,7 +26,7 @@ class PaidSubscriptionEditor extends DatabaseObjectEditor implements IEditableCa /** * Sets the show order of the subscription. * - * @param integer $showOrder + * @param int $showOrder */ public function setShowOrder($showOrder = 0) { $sql = "SELECT MAX(showOrder) diff --git a/wcfsetup/install/files/lib/data/paid/subscription/transaction/log/PaidSubscriptionTransactionLog.class.php b/wcfsetup/install/files/lib/data/paid/subscription/transaction/log/PaidSubscriptionTransactionLog.class.php index 8e8745edbf..2532bebb02 100644 --- a/wcfsetup/install/files/lib/data/paid/subscription/transaction/log/PaidSubscriptionTransactionLog.class.php +++ b/wcfsetup/install/files/lib/data/paid/subscription/transaction/log/PaidSubscriptionTransactionLog.class.php @@ -14,12 +14,12 @@ use wcf\system\WCF; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\Paid\Subscription\Transaction\Log * - * @property-read integer $logID unique id of the paid subscription transaction log entry - * @property-read integer|null $subscriptionUserID id of the paid subscription-user-association or `null` if no such association exists - * @property-read integer|null $userID id of the user who caused the paid subscription transaction log entry or `null` if the user does not exist anymore - * @property-read integer $subscriptionID id of the paid subscription - * @property-read integer $paymentMethodObjectTypeID id of the `com.woltlab.wcf.payment.method` object type - * @property-read integer $logTime timestamp at which the log has been created + * @property-read int $logID unique id of the paid subscription transaction log entry + * @property-read int|null $subscriptionUserID id of the paid subscription-user-association or `null` if no such association exists + * @property-read int|null $userID id of the user who caused the paid subscription transaction log entry or `null` if the user does not exist anymore + * @property-read int $subscriptionID id of the paid subscription + * @property-read int $paymentMethodObjectTypeID id of the `com.woltlab.wcf.payment.method` object type + * @property-read int $logTime timestamp at which the log has been created * @property-read string $transactionID identifier of the paid subscription transaction * @property-read string $transactionDetails serialized details of the paid subscription transaction * @property-read string $logMessage log message describing the status of the paid subscription transaction @@ -85,7 +85,7 @@ class PaidSubscriptionTransactionLog extends DatabaseObject { /** * Returns the transaction log entry by transaction id or `null` if no such entry exists. * - * @param integer $paymentMethodObjectTypeID + * @param int $paymentMethodObjectTypeID * @param string $transactionID * @return PaidSubscriptionTransactionLog|null */ diff --git a/wcfsetup/install/files/lib/data/paid/subscription/user/PaidSubscriptionUser.class.php b/wcfsetup/install/files/lib/data/paid/subscription/user/PaidSubscriptionUser.class.php index 19a3159f0b..d4f21df6ea 100644 --- a/wcfsetup/install/files/lib/data/paid/subscription/user/PaidSubscriptionUser.class.php +++ b/wcfsetup/install/files/lib/data/paid/subscription/user/PaidSubscriptionUser.class.php @@ -13,13 +13,13 @@ use wcf\system\WCF; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\Paid\Subscription\User * - * @property-read integer $subscriptionUserID unique id of the paid subscription-user-association - * @property-read integer $subscriptionID id of the paid subscription the paid subscription-user-association belongs to - * @property-read integer $userID id of the user the paid subscription-user-association belongs to - * @property-read integer $startDate timestamp at which the paid subscription started - * @property-read integer $endDate timestamp at which the paid subscription ended or will end - * @property-read integer $isActive is `1` if the user's paid subscription is currently active and thus not expired, otherwise `0` - * @property-read integer $sentExpirationNotification is `1` if the user has been notified that the paid subscription is expiring + * @property-read int $subscriptionUserID unique id of the paid subscription-user-association + * @property-read int $subscriptionID id of the paid subscription the paid subscription-user-association belongs to + * @property-read int $userID id of the user the paid subscription-user-association belongs to + * @property-read int $startDate timestamp at which the paid subscription started + * @property-read int $endDate timestamp at which the paid subscription ended or will end + * @property-read int $isActive is `1` if the user's paid subscription is currently active and thus not expired, otherwise `0` + * @property-read int $sentExpirationNotification is `1` if the user has been notified that the paid subscription is expiring */ class PaidSubscriptionUser extends DatabaseObject { /** @@ -77,8 +77,8 @@ class PaidSubscriptionUser extends DatabaseObject { /** * Returns a specific subscription user or `null` if such a user does not exist. * - * @param integer $subscriptionID - * @param integer $userID + * @param int $subscriptionID + * @param int $userID * @return PaidSubscriptionUser|null */ public static function getSubscriptionUser($subscriptionID, $userID) { diff --git a/wcfsetup/install/files/lib/data/poll/Poll.class.php b/wcfsetup/install/files/lib/data/poll/Poll.class.php index d8fa99a28d..5bae326edb 100644 --- a/wcfsetup/install/files/lib/data/poll/Poll.class.php +++ b/wcfsetup/install/files/lib/data/poll/Poll.class.php @@ -14,18 +14,18 @@ use wcf\system\WCF; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\Poll * - * @property-read integer $pollID unique id of the poll - * @property-read integer $objectTypeID id of the `com.woltlab.wcf.poll` object type - * @property-read integer $objectID id of the poll container object the poll belongs to + * @property-read int $pollID unique id of the poll + * @property-read int $objectTypeID id of the `com.woltlab.wcf.poll` object type + * @property-read int $objectID id of the poll container object the poll belongs to * @property-read string $question question of the poll - * @property-read integer $time timestamp at which the poll has been created - * @property-read integer $endTime timestamp at which the poll has been/will be closed - * @property-read integer $isChangeable is `1` if participants can change their vote, otherwise `0` - * @property-read integer $isPublic is `1` if the result of the poll is public, otherwise `0` - * @property-read integer $sortByVotes is `1` if the results will be sorted by votes, otherwise `0` - * @property-read integer $resultsRequireVote is `1` if a user has to have voted to see the results, otherwise `0` - * @property-read integer $maxVotes maximum number of options the user can select - * @property-read integer $votes number of votes in the poll + * @property-read int $time timestamp at which the poll has been created + * @property-read int $endTime timestamp at which the poll has been/will be closed + * @property-read int $isChangeable is `1` if participants can change their vote, otherwise `0` + * @property-read int $isPublic is `1` if the result of the poll is public, otherwise `0` + * @property-read int $sortByVotes is `1` if the results will be sorted by votes, otherwise `0` + * @property-read int $resultsRequireVote is `1` if a user has to have voted to see the results, otherwise `0` + * @property-read int $maxVotes maximum number of options the user can select + * @property-read int $votes number of votes in the poll */ class Poll extends DatabaseObject { /** diff --git a/wcfsetup/install/files/lib/data/poll/option/PollOption.class.php b/wcfsetup/install/files/lib/data/poll/option/PollOption.class.php index c132c182a0..2fceb6d0c6 100644 --- a/wcfsetup/install/files/lib/data/poll/option/PollOption.class.php +++ b/wcfsetup/install/files/lib/data/poll/option/PollOption.class.php @@ -11,11 +11,11 @@ use wcf\data\DatabaseObject; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\Poll\Poll * - * @property-read integer $optionID unique id of the poll option - * @property-read integer $pollID id of the poll the option belongs to + * @property-read int $optionID unique id of the poll option + * @property-read int $pollID id of the poll the option belongs to * @property-read string $optionValue text of the poll option - * @property-read integer $votes number of votes for the poll option - * @property-read integer $showOrder position of the poll option in relation to the other options of the poll + * @property-read int $votes number of votes for the poll option + * @property-read int $showOrder position of the poll option in relation to the other options of the poll */ class PollOption extends DatabaseObject { /** @@ -28,7 +28,7 @@ class PollOption extends DatabaseObject { * Returns relative amount of votes for this option. * * @param Poll $poll - * @return integer + * @return int */ public function getRelativeVotes(Poll $poll) { if ($poll->votes) { diff --git a/wcfsetup/install/files/lib/data/reaction/type/ReactionType.class.php b/wcfsetup/install/files/lib/data/reaction/type/ReactionType.class.php index acbdffb2cd..abcac8c100 100644 --- a/wcfsetup/install/files/lib/data/reaction/type/ReactionType.class.php +++ b/wcfsetup/install/files/lib/data/reaction/type/ReactionType.class.php @@ -13,9 +13,9 @@ use wcf\system\WCF; * @package WoltLabSuite\Core\Data\Reaction\Type * @since 5.2 * - * @property-read integer $reactionTypeID unique id of the reaction type + * @property-read int $reactionTypeID unique id of the reaction type * @property-read string $title - * @property-read integer $showOrder position of the reaction type in relation to the other reaction types + * @property-read int $showOrder position of the reaction type in relation to the other reaction types * @property-read string $iconFile the file location of the icon * @property-read boolean $isAssignable `1`, if the reaction can be assigned */ diff --git a/wcfsetup/install/files/lib/data/reaction/type/ReactionTypeCache.class.php b/wcfsetup/install/files/lib/data/reaction/type/ReactionTypeCache.class.php index db08511ab5..470ceb17a2 100644 --- a/wcfsetup/install/files/lib/data/reaction/type/ReactionTypeCache.class.php +++ b/wcfsetup/install/files/lib/data/reaction/type/ReactionTypeCache.class.php @@ -29,7 +29,7 @@ class ReactionTypeCache extends SingletonFactory { /** * Returns the reaction type with the given reactionTypeID. * - * @param integer $reactionTypeID + * @param int $reactionTypeID * @return ReactionType */ public function getReactionTypeByID($reactionTypeID) { @@ -43,7 +43,7 @@ class ReactionTypeCache extends SingletonFactory { /** * Returns the reaction types with the given reactionTypeIDs. * - * @param integer[] $reactionTypeIDs + * @param int[] $reactionTypeIDs * @return ReactionType[] */ public function getReactionTypesByID(array $reactionTypeIDs) { diff --git a/wcfsetup/install/files/lib/data/search/ISearchResultObject.class.php b/wcfsetup/install/files/lib/data/search/ISearchResultObject.class.php index 16c855dacd..0075a91452 100644 --- a/wcfsetup/install/files/lib/data/search/ISearchResultObject.class.php +++ b/wcfsetup/install/files/lib/data/search/ISearchResultObject.class.php @@ -27,7 +27,7 @@ interface ISearchResultObject { /** * Returns the creation time. * - * @return integer + * @return int */ public function getTime(); diff --git a/wcfsetup/install/files/lib/data/search/Search.class.php b/wcfsetup/install/files/lib/data/search/Search.class.php index 7f627e00c5..736225aa94 100644 --- a/wcfsetup/install/files/lib/data/search/Search.class.php +++ b/wcfsetup/install/files/lib/data/search/Search.class.php @@ -10,10 +10,10 @@ use wcf\data\DatabaseObject; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\Search * - * @property-read integer $searchID unique id of the search - * @property-read integer|null $userID id of the user who has done the search or `null` if a guest has done the search + * @property-read int $searchID unique id of the search + * @property-read int|null $userID id of the user who has done the search or `null` if a guest has done the search * @property-read string $searchData serialized array with data and parameters of the seatch - * @property-read integer $searchTime timestamp of the search + * @property-read int $searchTime timestamp of the search * @property-read string $searchType type of search, like `messages` or `users` * @property-read string $searchHash hash identifying the search for the user to reuse the result within the first 30 minutes */ diff --git a/wcfsetup/install/files/lib/data/search/keyword/SearchKeyword.class.php b/wcfsetup/install/files/lib/data/search/keyword/SearchKeyword.class.php index ba61afcd2b..cd58870ac4 100644 --- a/wcfsetup/install/files/lib/data/search/keyword/SearchKeyword.class.php +++ b/wcfsetup/install/files/lib/data/search/keyword/SearchKeyword.class.php @@ -10,9 +10,9 @@ use wcf\data\DatabaseObject; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\Search\Keyword * - * @property-read integer $keywordID unique id of the search keyword + * @property-read int $keywordID unique id of the search keyword * @property-read string $keyword search keyword - * @property-read integer $searches times the keyword has been searched - * @property-read integer $lastSearchTime last time the keyword has been searched + * @property-read int $searches times the keyword has been searched + * @property-read int $lastSearchTime last time the keyword has been searched */ class SearchKeyword extends DatabaseObject {} diff --git a/wcfsetup/install/files/lib/data/session/Session.class.php b/wcfsetup/install/files/lib/data/session/Session.class.php index ead802977b..79fc9586e7 100644 --- a/wcfsetup/install/files/lib/data/session/Session.class.php +++ b/wcfsetup/install/files/lib/data/session/Session.class.php @@ -10,11 +10,11 @@ use wcf\data\acp\session\ACPSession; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\Session * - * @property-read integer|null $pageID id of the latest page visited - * @property-read integer|null $pageObjectID id of the object the latest page visited belongs to - * @property-read integer|null $parentPageID id of the parent page of latest page visited - * @property-read integer|null $parentPageObjectID id of the object the parent page of latest page visited belongs to - * @property-read integer $spiderID id of the spider the session belongs to + * @property-read int|null $pageID id of the latest page visited + * @property-read int|null $pageObjectID id of the object the latest page visited belongs to + * @property-read int|null $parentPageID id of the parent page of latest page visited + * @property-read int|null $parentPageObjectID id of the object the parent page of latest page visited belongs to + * @property-read int $spiderID id of the spider the session belongs to */ class Session extends ACPSession { /** diff --git a/wcfsetup/install/files/lib/data/smiley/Smiley.class.php b/wcfsetup/install/files/lib/data/smiley/Smiley.class.php index 7e0dd94bf5..f69c083c65 100644 --- a/wcfsetup/install/files/lib/data/smiley/Smiley.class.php +++ b/wcfsetup/install/files/lib/data/smiley/Smiley.class.php @@ -13,15 +13,15 @@ use wcf\util\StringUtil; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\Smiley * - * @property-read integer $smileyID unique id of the smiley - * @property-read integer $packageID id of the package which delivers the smiley - * @property-read integer|null $categoryID id of the category the smiley belongs to or `null` if it belongs to the default category + * @property-read int $smileyID unique id of the smiley + * @property-read int $packageID id of the package which delivers the smiley + * @property-read int|null $categoryID id of the category the smiley belongs to or `null` if it belongs to the default category * @property-read string $smileyPath path to the smiley file relative to wcf's default path * @property-read string $smileyPath2x path to the smiley file relative to wcf's default path (2x version) * @property-read string $smileyTitle title of the smiley or name of language item that contains the title * @property-read string $smileyCode code used for displaying the smiley * @property-read string $aliases alternative codes used for displaying the smiley - * @property-read integer $showOrder position of the smiley in relation to the other smileys in the same category + * @property-read int $showOrder position of the smiley in relation to the other smileys in the same category */ class Smiley extends DatabaseObject implements ITitledObject { protected $height; @@ -68,7 +68,7 @@ class Smiley extends DatabaseObject implements ITitledObject { /** * Returns the height of the smiley. * - * @return integer + * @return int */ public function getHeight() { if ($this->height === null) { diff --git a/wcfsetup/install/files/lib/data/smiley/SmileyCache.class.php b/wcfsetup/install/files/lib/data/smiley/SmileyCache.class.php index 84e28290be..c409c60541 100644 --- a/wcfsetup/install/files/lib/data/smiley/SmileyCache.class.php +++ b/wcfsetup/install/files/lib/data/smiley/SmileyCache.class.php @@ -121,7 +121,7 @@ class SmileyCache extends SingletonFactory { /** * Returns all the smilies of a category. * - * @param integer $categoryID + * @param int $categoryID * @return array */ public function getCategorySmilies($categoryID = null) { diff --git a/wcfsetup/install/files/lib/data/smiley/category/SmileyCategory.class.php b/wcfsetup/install/files/lib/data/smiley/category/SmileyCategory.class.php index 34f03f2f13..e9cc68f79b 100644 --- a/wcfsetup/install/files/lib/data/smiley/category/SmileyCategory.class.php +++ b/wcfsetup/install/files/lib/data/smiley/category/SmileyCategory.class.php @@ -24,13 +24,13 @@ use wcf\system\WCF; class SmileyCategory extends AbstractDecoratedCategory implements \Countable, ITraversableObject { /** * current iterator index - * @var integer + * @var int */ protected $index = 0; /** * list of index to object relation - * @var integer[] + * @var int[] */ protected $indexToObject = null; diff --git a/wcfsetup/install/files/lib/data/spider/Spider.class.php b/wcfsetup/install/files/lib/data/spider/Spider.class.php index 4dfa8d9574..04af2f6f70 100644 --- a/wcfsetup/install/files/lib/data/spider/Spider.class.php +++ b/wcfsetup/install/files/lib/data/spider/Spider.class.php @@ -10,7 +10,7 @@ use wcf\data\DatabaseObject; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\Spider * - * @property-read integer $spiderID unique id of the spider + * @property-read int $spiderID unique id of the spider * @property-read string $spiderIdentifier unique textual identifier of the spider * @property-read string $spiderName name of the spider * @property-read string $spiderURL link to the spider's website or empty if no such website exists diff --git a/wcfsetup/install/files/lib/data/stat/daily/StatDaily.class.php b/wcfsetup/install/files/lib/data/stat/daily/StatDaily.class.php index 26f536fd62..c3d7ab1448 100644 --- a/wcfsetup/install/files/lib/data/stat/daily/StatDaily.class.php +++ b/wcfsetup/install/files/lib/data/stat/daily/StatDaily.class.php @@ -10,10 +10,10 @@ use wcf\data\DatabaseObject; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\Stat\Daily * - * @property-read integer $statID unique id of the daily statistic entry - * @property-read integer $objectTypeID id of the `com.woltlab.wcf.statDailyHandler` object type + * @property-read int $statID unique id of the daily statistic entry + * @property-read int $objectTypeID id of the `com.woltlab.wcf.statDailyHandler` object type * @property-read string $date date when the daily statistic entry has been created - * @property-read integer $counter daily statistic entry count for the last day - * @property-read integer $total cumulative daily statistic entry count up to the date + * @property-read int $counter daily statistic entry count for the last day + * @property-read int $total cumulative daily statistic entry count up to the date */ class StatDaily extends DatabaseObject {} diff --git a/wcfsetup/install/files/lib/data/style/Style.class.php b/wcfsetup/install/files/lib/data/style/Style.class.php index d8ace46aae..986ffeb761 100644 --- a/wcfsetup/install/files/lib/data/style/Style.class.php +++ b/wcfsetup/install/files/lib/data/style/Style.class.php @@ -13,12 +13,12 @@ use wcf\util\FileUtil; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\Style * - * @property-read integer $styleID unique id of the style - * @property-read integer $packageID id of the package which delivers the style + * @property-read int $styleID unique id of the style + * @property-read int $packageID id of the package which delivers the style * @property-read string $styleName name of style - * @property-read integer $templateGroupID id of the template group used for the style or `0` if the style uses no specific template group - * @property-read integer $isDefault is `1` if the style is the default style for guests and users, otherwise `0` - * @property-read integer $isDisabled is `1` if the style is disabled and thus cannot be used without having the specific permission to do so, otherwise `0` + * @property-read int $templateGroupID id of the template group used for the style or `0` if the style uses no specific template group + * @property-read int $isDefault is `1` if the style is the default style for guests and users, otherwise `0` + * @property-read int $isDisabled is `1` if the style is disabled and thus cannot be used without having the specific permission to do so, otherwise `0` * @property-read string $styleDescription description of the style or name of the language item which contains the description * @property-read string $styleVersion version number of the style * @property-read string $styleDate date when the used version of the style has been published @@ -30,9 +30,9 @@ use wcf\util\FileUtil; * @property-read string $authorURL link to the author's website * @property-read string $imagePath path (relative to `WCF_DIR`) to the images used by the style or empty if style has no special image path * @property-read string $packageName package identifier used to export the style as a package or empty (thus style cannot be exported as package) - * @property-read integer $isTainted is `0` if the original declarations of an imported or installed style are not and cannot be altered, otherwise `1` - * @property-read integer $hasFavicon is `0` if the default favicon data should be used - * @property-read integer $coverPhotoExtension extension of the style's cover photo file + * @property-read int $isTainted is `0` if the original declarations of an imported or installed style are not and cannot be altered, otherwise `1` + * @property-read int $hasFavicon is `0` if the default favicon data should be used + * @property-read int $coverPhotoExtension extension of the style's cover photo file * @property-read string $apiVersion the style's compatibility version, possible values: '3.0' or '3.1' */ class Style extends DatabaseObject { diff --git a/wcfsetup/install/files/lib/data/style/StyleEditor.class.php b/wcfsetup/install/files/lib/data/style/StyleEditor.class.php index 51354466ce..6d97c953c2 100644 --- a/wcfsetup/install/files/lib/data/style/StyleEditor.class.php +++ b/wcfsetup/install/files/lib/data/style/StyleEditor.class.php @@ -47,7 +47,7 @@ class StyleEditor extends DatabaseObjectEditor implements IEditableCachedObject /** * list of compatible API versions - * @var integer[] + * @var int[] * @deprecated 5.2 */ public static $compatibilityApiVersions = [2018]; @@ -348,7 +348,7 @@ class StyleEditor extends DatabaseObjectEditor implements IEditableCachedObject * Imports a style. * * @param string $filename - * @param integer $packageID + * @param int $packageID * @param StyleEditor $style * @param boolean $skipFontDownload * @return StyleEditor diff --git a/wcfsetup/install/files/lib/data/style/variable/StyleVariable.class.php b/wcfsetup/install/files/lib/data/style/variable/StyleVariable.class.php index 2a196d4799..070c48ff1a 100644 --- a/wcfsetup/install/files/lib/data/style/variable/StyleVariable.class.php +++ b/wcfsetup/install/files/lib/data/style/variable/StyleVariable.class.php @@ -10,7 +10,7 @@ use wcf\data\DatabaseObject; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\Style\Variable * - * @property-read integer $variableID unique id of the style variable + * @property-read int $variableID unique id of the style variable * @property-read string $variableName name of the style variable * @property-read string $defaultValue default value of the style variable */ diff --git a/wcfsetup/install/files/lib/data/tag/Tag.class.php b/wcfsetup/install/files/lib/data/tag/Tag.class.php index adedf07a23..e7b1bddcab 100644 --- a/wcfsetup/install/files/lib/data/tag/Tag.class.php +++ b/wcfsetup/install/files/lib/data/tag/Tag.class.php @@ -13,17 +13,17 @@ use wcf\util\ArrayUtil; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\Tag * - * @property-read integer $tagID unique id of the tag - * @property-read integer $languageID id of the language the tag belongs to + * @property-read int $tagID unique id of the tag + * @property-read int $languageID id of the language the tag belongs to * @property-read string $name name/text of the tag - * @property-read integer|null $synonymFor id of the tag for which the tag is a synonym or `null` if the tag is no synonym + * @property-read int|null $synonymFor id of the tag for which the tag is a synonym or `null` if the tag is no synonym */ class Tag extends DatabaseObject implements IRouteController { /** * Return the tag with the given name or null of no such tag exists. * * @param string $name - * @param integer $languageID + * @param int $languageID * @return Tag|null */ public static function getTag($name, $languageID = 0) { diff --git a/wcfsetup/install/files/lib/data/tag/TagAction.class.php b/wcfsetup/install/files/lib/data/tag/TagAction.class.php index 85919b400c..c6bf13ced9 100644 --- a/wcfsetup/install/files/lib/data/tag/TagAction.class.php +++ b/wcfsetup/install/files/lib/data/tag/TagAction.class.php @@ -150,7 +150,7 @@ class TagAction extends AbstractDatabaseObjectAction implements ISearchAction { /** * Unmarks tags. * - * @param integer[] $tagIDs + * @param int[] $tagIDs * @since 3.0 */ protected function unmarkItems(array $tagIDs = []) { diff --git a/wcfsetup/install/files/lib/data/tag/TagCloudTag.class.php b/wcfsetup/install/files/lib/data/tag/TagCloudTag.class.php index f61e44ee90..451d6c0ce6 100644 --- a/wcfsetup/install/files/lib/data/tag/TagCloudTag.class.php +++ b/wcfsetup/install/files/lib/data/tag/TagCloudTag.class.php @@ -13,7 +13,7 @@ use wcf\data\DatabaseObjectDecorator; * @method Tag getDecoratedObject() * @mixin Tag * - * @property-read integer|null $counter number of the times the tag has been used for a certain object type or `null` + * @property-read int|null $counter number of the times the tag has been used for a certain object type or `null` */ class TagCloudTag extends DatabaseObjectDecorator { /** @@ -23,7 +23,7 @@ class TagCloudTag extends DatabaseObjectDecorator { /** * weight of the tag in a weighted list - * @var integer + * @var int */ protected $weight = 1; @@ -39,7 +39,7 @@ class TagCloudTag extends DatabaseObjectDecorator { /** * Returns the weight of the tag. * - * @return integer + * @return int */ public function getWeight() { return $this->weight; diff --git a/wcfsetup/install/files/lib/data/template/Template.class.php b/wcfsetup/install/files/lib/data/template/Template.class.php index e06c72d1c1..3eb8f565b6 100644 --- a/wcfsetup/install/files/lib/data/template/Template.class.php +++ b/wcfsetup/install/files/lib/data/template/Template.class.php @@ -14,12 +14,12 @@ use wcf\util\FileUtil; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\Template * - * @property-read integer $templateID unique id of the template - * @property-read integer $packageID id of the package which delivers the template + * @property-read int $templateID unique id of the template + * @property-read int $packageID id of the package which delivers the template * @property-read string $templateName name of the template * @property-read string $application abbreviation of the application to which the template belongs - * @property-read integer|null $templateGroupID id of the template group to which the template belongs or `null` if the template belongs to no template group - * @property-read integer $lastModificationTime timestamp at which the template has been edited the last time + * @property-read int|null $templateGroupID id of the template group to which the template belongs or `null` if the template belongs to no template group + * @property-read int $lastModificationTime timestamp at which the template has been edited the last time */ class Template extends DatabaseObject { /** diff --git a/wcfsetup/install/files/lib/data/template/TemplateEditor.class.php b/wcfsetup/install/files/lib/data/template/TemplateEditor.class.php index 2806180579..bb7cd88272 100644 --- a/wcfsetup/install/files/lib/data/template/TemplateEditor.class.php +++ b/wcfsetup/install/files/lib/data/template/TemplateEditor.class.php @@ -61,7 +61,7 @@ class TemplateEditor extends DatabaseObjectEditor { * Renames the file of this template. * * @param string $name - * @param integer $templateGroupID + * @param int $templateGroupID */ public function rename($name, $templateGroupID = 0) { // get current path diff --git a/wcfsetup/install/files/lib/data/template/group/TemplateGroup.class.php b/wcfsetup/install/files/lib/data/template/group/TemplateGroup.class.php index aee5adbb97..fa834c06bf 100644 --- a/wcfsetup/install/files/lib/data/template/group/TemplateGroup.class.php +++ b/wcfsetup/install/files/lib/data/template/group/TemplateGroup.class.php @@ -12,8 +12,8 @@ use wcf\util\StringUtil; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\Template\Group * - * @property-read integer $templateGroupID unique id of the template group - * @property-read integer|null $parentTemplateGroupID id of the template group's parent template group or `null` if the template group has no parent template group + * @property-read int $templateGroupID unique id of the template group + * @property-read int|null $parentTemplateGroupID id of the template group's parent template group or `null` if the template group has no parent template group * @property-read string $templateGroupName name of the template group * @property-read string $templateGroupFolderName name of the folder containing the modified templates (relative to the normal template folder) */ @@ -51,9 +51,9 @@ class TemplateGroup extends DatabaseObject { /** * Creates a select list of all template groups. * - * @param integer[] $ignore Array of template group ids that should be excluded with all of their children. + * @param int[] $ignore Array of template group ids that should be excluded with all of their children. * -1 denotes that all immutable groups should be ignored. - * @param integer $initialDepth Specifies the initial indentation depth of the list + * @param int $initialDepth Specifies the initial indentation depth of the list * @return array */ public static function getSelectList($ignore = [], $initialDepth = 0) { @@ -79,8 +79,8 @@ class TemplateGroup extends DatabaseObject { /** * Generates the select list. * - * @param integer $parentID id of the parent template group - * @param integer $depth current list depth + * @param int $parentID id of the parent template group + * @param int $depth current list depth * @param array $ignore list of template group ids to ignore in result */ protected static function makeSelectList($parentID = 0, $depth = 0, $ignore = []) { diff --git a/wcfsetup/install/files/lib/data/template/listener/TemplateListener.class.php b/wcfsetup/install/files/lib/data/template/listener/TemplateListener.class.php index 48e05d65e0..55bf63a795 100644 --- a/wcfsetup/install/files/lib/data/template/listener/TemplateListener.class.php +++ b/wcfsetup/install/files/lib/data/template/listener/TemplateListener.class.php @@ -10,14 +10,14 @@ use wcf\data\DatabaseObject; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\Template\Listener * - * @property-read integer $listenerID unique id of the template listener - * @property-read integer $packageID id of the package which delivers the template listener + * @property-read int $listenerID unique id of the template listener + * @property-read int $packageID id of the package which delivers the template listener * @property-read string $name name of the template listener * @property-read string $environment environment in which the template listener is executed, possible values: 'user' or 'admin' * @property-read string $templateName name of the template in which the listened event is fired * @property-read string $eventName name of the listened event * @property-read string $templateCode included template code at the position of the listened event - * @property-read integer $niceValue value from [-128, 127] used to determine template listener execution order (template listeners with smaller `$niceValue` are executed first) + * @property-read int $niceValue value from [-128, 127] used to determine template listener execution order (template listeners with smaller `$niceValue` are executed first) * @property-read string $permissions comma separated list of user group permissions of which the active user needs to have at least one for the template listener to be executed * @property-read string $options comma separated list of options of which at least one needs to be enabled for the template listener to be executed */ diff --git a/wcfsetup/install/files/lib/data/trophy/Trophy.class.php b/wcfsetup/install/files/lib/data/trophy/Trophy.class.php index 4693831615..5c11f38f32 100644 --- a/wcfsetup/install/files/lib/data/trophy/Trophy.class.php +++ b/wcfsetup/install/files/lib/data/trophy/Trophy.class.php @@ -21,31 +21,31 @@ use wcf\util\StringUtil; * @package WoltLabSuite\Core\Data\Trophy * @since 3.1 * - * @property-read integer $trophyID unique id for the trophy + * @property-read int $trophyID unique id for the trophy * @property-read string $title the trophy title * @property-read string $description the trophy description - * @property-read integer $categoryID the categoryID of the trophy - * @property-read integer $type the trophy type + * @property-read int $categoryID the categoryID of the trophy + * @property-read int $type the trophy type * @property-read string $iconFile the file location of the icon * @property-read string $iconName the icon name * @property-read string $iconColor the icon color * @property-read string $badgeColor the icon badge color - * @property-read integer $isDisabled `1` if the trophy is disabled - * @property-read integer $awardAutomatically `1` if the trophy is awarded automatically - * @property-read integer $revokeAutomatically `1` if the trophy should be automatically revoked once the conditions are no longer met. - * @property-read integer $trophyUseHtml `1` if the trophy use a html description - * @property-read integer $showOrder position of the trophy in relation to the other trophies at the same location + * @property-read int $isDisabled `1` if the trophy is disabled + * @property-read int $awardAutomatically `1` if the trophy is awarded automatically + * @property-read int $revokeAutomatically `1` if the trophy should be automatically revoked once the conditions are no longer met. + * @property-read int $trophyUseHtml `1` if the trophy use a html description + * @property-read int $showOrder position of the trophy in relation to the other trophies at the same location */ class Trophy extends DatabaseObject implements ITitledLinkObject, IRouteController { /** * The type value, if this trophy is an image trophy. - * @var integer + * @var int */ const TYPE_IMAGE = 1; /** * The type value, if this trophy is a badge trophy (based on CSS icons). - * @var integer + * @var int */ const TYPE_BADGE = 2; @@ -84,7 +84,7 @@ class Trophy extends DatabaseObject implements ITitledLinkObject, IRouteControll /** * Renders a trophy. * - * @param integer $size + * @param int $size * @param boolean $showTooltip * @return string */ diff --git a/wcfsetup/install/files/lib/data/trophy/TrophyCache.class.php b/wcfsetup/install/files/lib/data/trophy/TrophyCache.class.php index 683d71566b..b6dee57900 100644 --- a/wcfsetup/install/files/lib/data/trophy/TrophyCache.class.php +++ b/wcfsetup/install/files/lib/data/trophy/TrophyCache.class.php @@ -42,7 +42,7 @@ class TrophyCache extends SingletonFactory { /** * Returns the trophy with the given trophyID. * - * @param integer $trophyID + * @param int $trophyID * @return Trophy */ public function getTrophyByID($trophyID) { @@ -56,7 +56,7 @@ class TrophyCache extends SingletonFactory { /** * Returns the trophy with the given trophyID. * - * @param integer[] $trophyIDs + * @param int[] $trophyIDs * @return Trophy[] */ public function getTrophiesByID(array $trophyIDs) { @@ -72,7 +72,7 @@ class TrophyCache extends SingletonFactory { /** * Returns all trophies for a specific category. * - * @param integer $categoryID + * @param int $categoryID * @return Trophy[] */ public function getTrophiesByCategoryID($categoryID) { @@ -98,7 +98,7 @@ class TrophyCache extends SingletonFactory { /** * Returns all enabled trophies for a specific category. * - * @param integer $categoryID + * @param int $categoryID * @return Trophy[] */ public function getEnabledTrophiesByCategoryID($categoryID) { diff --git a/wcfsetup/install/files/lib/data/trophy/TrophyEditor.class.php b/wcfsetup/install/files/lib/data/trophy/TrophyEditor.class.php index 41ed5eb5bb..a4b9149d86 100644 --- a/wcfsetup/install/files/lib/data/trophy/TrophyEditor.class.php +++ b/wcfsetup/install/files/lib/data/trophy/TrophyEditor.class.php @@ -24,7 +24,7 @@ class TrophyEditor extends DatabaseObjectEditor implements IEditableCachedObject /** * Sets the show order of the trophy. * - * @param integer $showOrder + * @param int $showOrder */ public function setShowOrder($showOrder = 0) { $sql = "SELECT MAX(showOrder) diff --git a/wcfsetup/install/files/lib/data/trophy/category/TrophyCategoryCache.class.php b/wcfsetup/install/files/lib/data/trophy/category/TrophyCategoryCache.class.php index 5f5b3e5dda..600b7c3e9a 100644 --- a/wcfsetup/install/files/lib/data/trophy/category/TrophyCategoryCache.class.php +++ b/wcfsetup/install/files/lib/data/trophy/category/TrophyCategoryCache.class.php @@ -46,7 +46,7 @@ class TrophyCategoryCache extends SingletonFactory { /** * Returns the trophy category with the given id. * - * @param integer $categoryID + * @param int $categoryID * @return TrophyCategory|null */ public function getCategoryByID($categoryID) { @@ -60,7 +60,7 @@ class TrophyCategoryCache extends SingletonFactory { /** * Returns the categories with the given id. * - * @param integer[] $categoryIDs + * @param int[] $categoryIDs * @return TrophyCategory[] */ public function getCategoriesByID(array $categoryIDs) { diff --git a/wcfsetup/install/files/lib/data/user/User.class.php b/wcfsetup/install/files/lib/data/user/User.class.php index 8b17991c1e..d5f858efa3 100644 --- a/wcfsetup/install/files/lib/data/user/User.class.php +++ b/wcfsetup/install/files/lib/data/user/User.class.php @@ -25,60 +25,60 @@ use wcf\util\UserUtil; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\User * - * @property-read integer $userID unique id of the user + * @property-read int $userID unique id of the user * @property-read string $username name of the user * @property-read string $email email address of the user * @property-read string $password double salted hash of the user's password * @property-read string $accessToken token used for access authentication, for example used by feed pages - * @property-read integer $languageID id of the interface language used by the user - * @property-read integer $registrationDate timestamp at which the user has registered/has been created - * @property-read integer $styleID id of the style used by the user - * @property-read integer $banned is `1` if the user is banned, otherwise `0` + * @property-read int $languageID id of the interface language used by the user + * @property-read int $registrationDate timestamp at which the user has registered/has been created + * @property-read int $styleID id of the style used by the user + * @property-read int $banned is `1` if the user is banned, otherwise `0` * @property-read string $banReason reason why the user is banned - * @property-read integer $banExpires timestamp at which the banned user is automatically unbanned - * @property-read integer $activationCode flag which determines, whether the user is activated (for legacy reasons an random integer, if the user is *not* activated) + * @property-read int $banExpires timestamp at which the banned user is automatically unbanned + * @property-read int $activationCode flag which determines, whether the user is activated (for legacy reasons an random integer, if the user is *not* activated) * @property-read string $emailConfirmed code sent to the user's email address used for account activation or null if the email is confirmed - * @property-read integer $lastLostPasswordRequestTime timestamp at which the user has reported that they lost their password or 0 if password has not been reported as lost + * @property-read int $lastLostPasswordRequestTime timestamp at which the user has reported that they lost their password or 0 if password has not been reported as lost * @property-read string $lostPasswordKey code used for authenticating setting new password after password loss or empty if password has not been reported as lost - * @property-read integer $lastUsernameChange timestamp at which the user changed their name the last time or 0 if username has not been changed + * @property-read int $lastUsernameChange timestamp at which the user changed their name the last time or 0 if username has not been changed * @property-read string $newEmail new email address of the user that has to be manually confirmed or empty if no new email address has been set * @property-read string $oldUsername previous name of the user or empty if they have had no previous name - * @property-read integer $quitStarted timestamp at which the user terminated their account - * @property-read integer $reactivationCode code used for authenticating setting new email address or empty if no new email address has been set + * @property-read int $quitStarted timestamp at which the user terminated their account + * @property-read int $reactivationCode code used for authenticating setting new email address or empty if no new email address has been set * @property-read string $registrationIpAddress ip address of the user at the time of registration or empty if user has been created manually or if no ip address are logged - * @property-read integer|null $avatarID id of the user's avatar or null if they have no avatar - * @property-read integer $disableAvatar is `1` if the user's avatar has been disabled, otherwise `0` + * @property-read int|null $avatarID id of the user's avatar or null if they have no avatar + * @property-read int $disableAvatar is `1` if the user's avatar has been disabled, otherwise `0` * @property-read string $disableAvatarReason reason why the user's avatar is disabled - * @property-read integer $disableAvatarExpires timestamp at which the user's avatar will automatically be enabled again - * @property-read integer $enableGravatar is `1` if the user uses a gravatar as avatar, otherwise `0` + * @property-read int $disableAvatarExpires timestamp at which the user's avatar will automatically be enabled again + * @property-read int $enableGravatar is `1` if the user uses a gravatar as avatar, otherwise `0` * @property-read string $gravatarFileExtension extension of the user's gravatar file * @property-read string $signature text of the user's signature - * @property-read integer $signatureEnableHtml is `1` if HTML will rendered in the user's signature, otherwise `0` - * @property-read integer $disableSignature is `1` if the user's signature has been disabled, otherwise `0` + * @property-read int $signatureEnableHtml is `1` if HTML will rendered in the user's signature, otherwise `0` + * @property-read int $disableSignature is `1` if the user's signature has been disabled, otherwise `0` * @property-read string $disableSignatureReason reason why the user's signature is disabled - * @property-read integer $disableSignatureExpires timestamp at which the user's signature will automatically be enabled again - * @property-read integer $lastActivityTime timestamp of the user's last activity - * @property-read integer $profileHits number of times the user's profile has been visited - * @property-read integer|null $rankID id of the user's rank or null if they have no rank + * @property-read int $disableSignatureExpires timestamp at which the user's signature will automatically be enabled again + * @property-read int $lastActivityTime timestamp of the user's last activity + * @property-read int $profileHits number of times the user's profile has been visited + * @property-read int|null $rankID id of the user's rank or null if they have no rank * @property-read string $userTitle custom user title used instead of rank title or empty if user has no custom title - * @property-read integer|null $userOnlineGroupID id of the user group whose online marking is used when printing the user's formatted name or null if no special marking is used - * @property-read integer $activityPoints total number of the user's activity points + * @property-read int|null $userOnlineGroupID id of the user group whose online marking is used when printing the user's formatted name or null if no special marking is used + * @property-read int $activityPoints total number of the user's activity points * @property-read string $notificationMailToken token used for authenticating requests by the user to disable notification emails * @property-read string $authData data of the third party used for authentication - * @property-read integer $likesReceived cumulative result of likes (counting +1) the user's contents have received + * @property-read int $likesReceived cumulative result of likes (counting +1) the user's contents have received * @property-read string $coverPhotoHash hash of the user's cover photo * @property-read string $coverPhotoExtension extension of the user's cover photo file - * @property-read integer $disableCoverPhoto is `1` if the user's cover photo has been disabled, otherwise `0` + * @property-read int $disableCoverPhoto is `1` if the user's cover photo has been disabled, otherwise `0` * @property-read string $disableCoverPhotoReason reason why the user's cover photo is disabled - * @property-read integer $disableCoverPhotoExpires timestamp at which the user's cover photo will automatically be enabled again - * @property-read integer $articles number of articles written by the user + * @property-read int $disableCoverPhotoExpires timestamp at which the user's cover photo will automatically be enabled again + * @property-read int $articles number of articles written by the user * @property-read string $blacklistMatches JSON string of an array with all matches in the blacklist, otherwise an empty string - * @property-read integer $multifactorActive is `1` if the use has enabled a second factor, otherwise `0` + * @property-read int $multifactorActive is `1` if the use has enabled a second factor, otherwise `0` */ final class User extends DatabaseObject implements IPopoverObject, IRouteController, IUserContent { /** * list of group ids - * @var integer[] + * @var int[] */ protected $groupIDs; @@ -90,7 +90,7 @@ final class User extends DatabaseObject implements IPopoverObject, IRouteControl /** * list of language ids - * @var integer[] + * @var int[] */ protected $languageIDs; @@ -189,7 +189,7 @@ final class User extends DatabaseObject implements IPopoverObject, IRouteControl * Returns an array with all the groups in which the actual user is a member. * * @param boolean $skipCache - * @return integer[] + * @return int[] */ public function getGroupIDs($skipCache = false) { if ($this->groupIDs === null || $skipCache) { @@ -229,7 +229,7 @@ final class User extends DatabaseObject implements IPopoverObject, IRouteControl /** * Returns a list of language ids for this user. * - * @return integer[] + * @return int[] */ public function getLanguageIDs() { if ($this->languageIDs === null) { @@ -294,7 +294,7 @@ final class User extends DatabaseObject implements IPopoverObject, IRouteControl * Returns the id of a user option. * * @param string $name - * @return integer id + * @return int id */ public static function getUserOptionID($name) { // get user option cache if necessary diff --git a/wcfsetup/install/files/lib/data/user/UserAction.class.php b/wcfsetup/install/files/lib/data/user/UserAction.class.php index 38b8d2fbf8..81038de9c1 100644 --- a/wcfsetup/install/files/lib/data/user/UserAction.class.php +++ b/wcfsetup/install/files/lib/data/user/UserAction.class.php @@ -599,7 +599,7 @@ class UserAction extends AbstractDatabaseObjectAction implements IClipboardActio /** * Unmarks users. * - * @param integer[] $userIDs + * @param int[] $userIDs */ protected function unmarkItems(array $userIDs = []) { if (empty($userIDs)) { diff --git a/wcfsetup/install/files/lib/data/user/UserEditor.class.php b/wcfsetup/install/files/lib/data/user/UserEditor.class.php index e10f4cd356..8ba5e444a3 100644 --- a/wcfsetup/install/files/lib/data/user/UserEditor.class.php +++ b/wcfsetup/install/files/lib/data/user/UserEditor.class.php @@ -109,7 +109,7 @@ class UserEditor extends DatabaseObjectEditor implements IEditableCachedObject { /** * Inserts default options. * - * @param integer $userID + * @param int $userID */ protected static function createUserOptions($userID) { // fetch default values @@ -205,7 +205,7 @@ class UserEditor extends DatabaseObjectEditor implements IEditableCachedObject { /** * Adds a user to a user group. * - * @param integer $groupID + * @param int $groupID */ public function addToGroup($groupID) { $sql = "INSERT IGNORE INTO wcf".WCF_N."_user_to_group @@ -218,7 +218,7 @@ class UserEditor extends DatabaseObjectEditor implements IEditableCachedObject { /** * Removes a user from a user group. * - * @param integer $groupID + * @param int $groupID */ public function removeFromGroup($groupID) { $sql = "DELETE FROM wcf".WCF_N."_user_to_group diff --git a/wcfsetup/install/files/lib/data/user/UserProfile.class.php b/wcfsetup/install/files/lib/data/user/UserProfile.class.php index 74df9bc3b4..ad7a2fe94a 100644 --- a/wcfsetup/install/files/lib/data/user/UserProfile.class.php +++ b/wcfsetup/install/files/lib/data/user/UserProfile.class.php @@ -45,25 +45,25 @@ class UserProfile extends DatabaseObjectDecorator implements ITitledLinkObject { /** * list of ignored user ids - * @var integer[] + * @var int[] */ protected $ignoredUserIDs; /** * list of user ids that are ignoring this user - * @var integer[] + * @var int[] */ protected $ignoredByUserIDs; /** * list of follower user ids - * @var integer[] + * @var int[] */ protected $followerUserIDs; /** * list of following user ids - * @var integer[] + * @var int[] */ protected $followingUserIDs; @@ -81,7 +81,7 @@ class UserProfile extends DatabaseObjectDecorator implements ITitledLinkObject { /** * age of this user - * @var integer + * @var int */ protected $__age; @@ -122,7 +122,7 @@ class UserProfile extends DatabaseObjectDecorator implements ITitledLinkObject { /** * Returns a list of all user ids being followed by current user. * - * @return integer[] + * @return int[] */ public function getFollowingUsers() { if ($this->followingUserIDs === null) { @@ -156,7 +156,7 @@ class UserProfile extends DatabaseObjectDecorator implements ITitledLinkObject { /** * Returns a list of user ids following current user. * - * @return integer[] + * @return int[] */ public function getFollowers() { if ($this->followerUserIDs === null) { @@ -190,7 +190,7 @@ class UserProfile extends DatabaseObjectDecorator implements ITitledLinkObject { /** * Returns a list of ignored user ids. * - * @return integer[] + * @return int[] */ public function getIgnoredUsers() { if ($this->ignoredUserIDs === null) { @@ -224,7 +224,7 @@ class UserProfile extends DatabaseObjectDecorator implements ITitledLinkObject { /** * Returns a list of user ids that are ignoring this user. * - * @return integer[] + * @return int[] */ public function getIgnoredByUsers() { if ($this->ignoredByUserIDs === null) { @@ -258,7 +258,7 @@ class UserProfile extends DatabaseObjectDecorator implements ITitledLinkObject { /** * Returns true if current user is following given user id. * - * @param integer $userID + * @param int $userID * @return boolean */ public function isFollowing($userID) { @@ -268,7 +268,7 @@ class UserProfile extends DatabaseObjectDecorator implements ITitledLinkObject { /** * Returns true if given user ids follows current user. * - * @param integer $userID + * @param int $userID * @return boolean */ public function isFollower($userID) { @@ -278,7 +278,7 @@ class UserProfile extends DatabaseObjectDecorator implements ITitledLinkObject { /** * Returns true if given user is ignored. * - * @param integer $userID + * @param int $userID * @return boolean */ public function isIgnoredUser($userID) { @@ -288,7 +288,7 @@ class UserProfile extends DatabaseObjectDecorator implements ITitledLinkObject { /** * Returns true if the given user ignores the current user. * - * @param integer $userID + * @param int $userID * @return boolean */ public function isIgnoredByUser($userID) { @@ -544,7 +544,7 @@ class UserProfile extends DatabaseObjectDecorator implements ITitledLinkObject { /** * Returns the last activity time. * - * @return integer + * @return int */ public function getLastActivityTime() { return max($this->lastActivityTime, $this->sessionLastActivityTime); @@ -553,7 +553,7 @@ class UserProfile extends DatabaseObjectDecorator implements ITitledLinkObject { /** * Returns a new user profile object. * - * @param integer $userID + * @param int $userID * @return UserProfile * @deprecated 3.0, use UserProfileRuntimeCache::getObject() */ @@ -564,7 +564,7 @@ class UserProfile extends DatabaseObjectDecorator implements ITitledLinkObject { /** * Returns a list of user profiles. * - * @param integer[] $userIDs + * @param int[] $userIDs * @return UserProfile[] * @deprecated 3.0, use UserProfileRuntimeCache::getObjects() */ @@ -705,8 +705,8 @@ class UserProfile extends DatabaseObjectDecorator implements ITitledLinkObject { /** * Returns the age of this user. * - * @param integer $year - * @return integer + * @param int $year + * @return int */ public function getAge($year = null) { $showYear = $this->birthdayShowYear || WCF::getSession()->getPermission('admin.general.canViewPrivateUserOptions'); @@ -740,7 +740,7 @@ class UserProfile extends DatabaseObjectDecorator implements ITitledLinkObject { /** * Returns the formatted birthday of this user. * - * @param integer $year + * @param int $year * @return string */ public function getBirthday($year = null) { @@ -774,7 +774,7 @@ class UserProfile extends DatabaseObjectDecorator implements ITitledLinkObject { /** * Returns the age of user account in days. * - * @return integer + * @return int */ public function getProfileAge() { return (TIME_NOW - $this->registrationDate) / 86400; @@ -1046,7 +1046,7 @@ class UserProfile extends DatabaseObjectDecorator implements ITitledLinkObject { /** * Sets the session-based last activity time. * - * @param integer $timestamp + * @param int $timestamp */ public function setSessionLastActivityTime($timestamp) { $this->object->data['sessionLastActivityTime'] = $timestamp; diff --git a/wcfsetup/install/files/lib/data/user/activity/event/UserActivityEvent.class.php b/wcfsetup/install/files/lib/data/user/activity/event/UserActivityEvent.class.php index 83aac7b1f2..62199325fb 100644 --- a/wcfsetup/install/files/lib/data/user/activity/event/UserActivityEvent.class.php +++ b/wcfsetup/install/files/lib/data/user/activity/event/UserActivityEvent.class.php @@ -10,12 +10,12 @@ use wcf\data\DatabaseObject; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\User\Activity\Event * - * @property-read integer $eventID unique id of the user activity event - * @property-read integer $objectTypeID id of the `com.woltlab.wcf.user.recentActivityEvent` object type - * @property-read integer $objectID id of the object the user activity event belongs to - * @property-read integer|null $languageID id of the language of the related object or null if the object has no specific language - * @property-read integer $userID id of the user who has triggered the user activity event - * @property-read integer $time timestamp at which the user activity event has been triggered + * @property-read int $eventID unique id of the user activity event + * @property-read int $objectTypeID id of the `com.woltlab.wcf.user.recentActivityEvent` object type + * @property-read int $objectID id of the object the user activity event belongs to + * @property-read int|null $languageID id of the language of the related object or null if the object has no specific language + * @property-read int $userID id of the user who has triggered the user activity event + * @property-read int $time timestamp at which the user activity event has been triggered * @property-read array $additionalData array with additional data of the user activity event */ class UserActivityEvent extends DatabaseObject { diff --git a/wcfsetup/install/files/lib/data/user/activity/event/ViewableUserActivityEventList.class.php b/wcfsetup/install/files/lib/data/user/activity/event/ViewableUserActivityEventList.class.php index 77f1f5dfc8..60d09cd2e1 100644 --- a/wcfsetup/install/files/lib/data/user/activity/event/ViewableUserActivityEventList.class.php +++ b/wcfsetup/install/files/lib/data/user/activity/event/ViewableUserActivityEventList.class.php @@ -87,7 +87,7 @@ class ViewableUserActivityEventList extends UserActivityEventList { /** * Returns timestamp of oldest entry fetched. * - * @return integer + * @return int */ public function getLastEventTime() { $lastEventTime = 0; @@ -105,7 +105,7 @@ class ViewableUserActivityEventList extends UserActivityEventList { /** * Validates event permissions and returns a list of orphaned event ids. * - * @return integer[] + * @return int[] */ public function validateEvents() { $orphanedEventIDs = []; @@ -127,7 +127,7 @@ class ViewableUserActivityEventList extends UserActivityEventList { /** * Truncates the items in object list to given number of items. * - * @param integer $limit + * @param int $limit */ public function truncate($limit) { $this->objects = array_slice($this->objects, 0, $limit, true); diff --git a/wcfsetup/install/files/lib/data/user/authentication/failure/UserAuthenticationFailure.class.php b/wcfsetup/install/files/lib/data/user/authentication/failure/UserAuthenticationFailure.class.php index 9ef888f289..d8b7acd935 100644 --- a/wcfsetup/install/files/lib/data/user/authentication/failure/UserAuthenticationFailure.class.php +++ b/wcfsetup/install/files/lib/data/user/authentication/failure/UserAuthenticationFailure.class.php @@ -12,11 +12,11 @@ use wcf\system\WCF; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\User\Authentication\Failure * - * @property-read integer $failureID unique if of the user authentication failure + * @property-read int $failureID unique if of the user authentication failure * @property-read string $environment environment in which the user authentication failure occurred, possible values: 'user' or 'admin' - * @property-read integer|null $userID id of the user using an incorrect password or null if the provided username or email address is not associated with any registered user + * @property-read int|null $userID id of the user using an incorrect password or null if the provided username or email address is not associated with any registered user * @property-read string $username user name or email address used to login - * @property-read integer $time timestamp at which the user authentication failure has occurred + * @property-read int $time timestamp at which the user authentication failure has occurred * @property-read string $ipAddress ip address of the user trying to login in * @property-read string $userAgent user agent of the user trying to login in */ @@ -50,7 +50,7 @@ class UserAuthenticationFailure extends DatabaseObject { /** * Returns the number of authentication failures for given user account. * - * @param integer $userID + * @param int $userID * @return boolean */ public static function countUserFailures($userID) { diff --git a/wcfsetup/install/files/lib/data/user/avatar/DefaultAvatar.class.php b/wcfsetup/install/files/lib/data/user/avatar/DefaultAvatar.class.php index b31f569620..204bf8f792 100644 --- a/wcfsetup/install/files/lib/data/user/avatar/DefaultAvatar.class.php +++ b/wcfsetup/install/files/lib/data/user/avatar/DefaultAvatar.class.php @@ -14,7 +14,7 @@ use wcf\util\StringUtil; class DefaultAvatar implements IUserAvatar { /** * image size - * @var integer + * @var int */ public $size = UserAvatar::AVATAR_SIZE; @@ -113,9 +113,9 @@ SVG; /** * Returns the perceived luminance of the given color. * - * @param integer $r - * @param integer $g - * @param integer $b + * @param int $r + * @param int $g + * @param int $b * @return float luminance expressed in a float in the range of 0 and 1 */ protected function getPerceptiveLuminance($r, $g, $b) { diff --git a/wcfsetup/install/files/lib/data/user/avatar/Gravatar.class.php b/wcfsetup/install/files/lib/data/user/avatar/Gravatar.class.php index 2004402dcd..d3cf4109b6 100644 --- a/wcfsetup/install/files/lib/data/user/avatar/Gravatar.class.php +++ b/wcfsetup/install/files/lib/data/user/avatar/Gravatar.class.php @@ -30,13 +30,13 @@ class Gravatar extends DefaultAvatar { /** * gravatar expire time (days) - * @var integer + * @var int */ const GRAVATAR_CACHE_EXPIRE = 7; /** * user id - * @var integer + * @var int */ public $userID = 0; @@ -61,7 +61,7 @@ class Gravatar extends DefaultAvatar { /** * Creates a new Gravatar object. * - * @param integer $userID + * @param int $userID * @param string $gravatar * @param string $fileExtension */ diff --git a/wcfsetup/install/files/lib/data/user/avatar/IUserAvatar.class.php b/wcfsetup/install/files/lib/data/user/avatar/IUserAvatar.class.php index f478617c8e..9c23822ec3 100644 --- a/wcfsetup/install/files/lib/data/user/avatar/IUserAvatar.class.php +++ b/wcfsetup/install/files/lib/data/user/avatar/IUserAvatar.class.php @@ -21,7 +21,7 @@ interface IUserAvatar { /** * Returns the url to this avatar. * - * @param integer $size + * @param int $size * @return string */ public function getURL($size = null); @@ -29,7 +29,7 @@ interface IUserAvatar { /** * Returns the html code to display this avatar. * - * @param integer $size + * @param int $size * @return string */ public function getImageTag($size = null); @@ -37,7 +37,7 @@ interface IUserAvatar { /** * Returns the image tag used for cropping. * - * @param integer $size + * @param int $size * @return string * @deprecated 3.0 */ @@ -46,14 +46,14 @@ interface IUserAvatar { /** * Returns the width of this avatar. * - * @return integer + * @return int */ public function getWidth(); /** * Returns the height of this avatar. * - * @return integer + * @return int */ public function getHeight(); } diff --git a/wcfsetup/install/files/lib/data/user/avatar/UserAvatar.class.php b/wcfsetup/install/files/lib/data/user/avatar/UserAvatar.class.php index 26b8f8ca0d..9dd4cc87d8 100644 --- a/wcfsetup/install/files/lib/data/user/avatar/UserAvatar.class.php +++ b/wcfsetup/install/files/lib/data/user/avatar/UserAvatar.class.php @@ -12,46 +12,46 @@ use wcf\system\WCF; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\User\Avatar * - * @property-read integer $avatarID unique id of the user avatar + * @property-read int $avatarID unique id of the user avatar * @property-read string $avatarName name of the original avatar file * @property-read string $avatarExtension extension of the avatar file - * @property-read integer $width width of the user avatar image - * @property-read integer $height height of the user avatar image - * @property-read integer|null $userID id of the user to which the user avatar belongs or null + * @property-read int $width width of the user avatar image + * @property-read int $height height of the user avatar image + * @property-read int|null $userID id of the user to which the user avatar belongs or null * @property-read string $fileHash SHA1 hash of the original avatar file */ class UserAvatar extends DatabaseObject implements IUserAvatar { /** * needed avatar thumbnail sizes - * @var integer[] + * @var int[] * @deprecated 3.0 */ public static $avatarThumbnailSizes = [32, 96, 128, 256]; /** * maximum thumbnail size - * @var integer + * @var int * @deprecated 3.0 */ public static $maxThumbnailSize = 128; /** * minimum height and width of an uploaded avatar - * @var integer + * @var int * @deprecated 3.0 */ const MIN_AVATAR_SIZE = 96; /** * minimum height and width of an uploaded avatar - * @var integer + * @var int */ const AVATAR_SIZE = 128; /** * Returns the physical location of this avatar. * - * @param integer $size + * @param int $size * @return string */ public function getLocation($size = null) { @@ -61,7 +61,7 @@ class UserAvatar extends DatabaseObject implements IUserAvatar { /** * Returns the file name of this avatar. * - * @param integer $size + * @param int $size * @return string */ public function getFilename($size = null) { diff --git a/wcfsetup/install/files/lib/data/user/cover/photo/UserCoverPhoto.class.php b/wcfsetup/install/files/lib/data/user/cover/photo/UserCoverPhoto.class.php index 1fde5f6a98..354b1c1fe6 100644 --- a/wcfsetup/install/files/lib/data/user/cover/photo/UserCoverPhoto.class.php +++ b/wcfsetup/install/files/lib/data/user/cover/photo/UserCoverPhoto.class.php @@ -25,7 +25,7 @@ class UserCoverPhoto implements IUserCoverPhoto { /** * user id - * @var integer + * @var int */ protected $userID; @@ -37,7 +37,7 @@ class UserCoverPhoto implements IUserCoverPhoto { /** * UserCoverPhoto constructor. * - * @param integer $userID + * @param int $userID * @param string $coverPhotoHash * @param string $coverPhotoExtension */ diff --git a/wcfsetup/install/files/lib/data/user/follow/UserFollow.class.php b/wcfsetup/install/files/lib/data/user/follow/UserFollow.class.php index e80bb8cc70..126158da74 100644 --- a/wcfsetup/install/files/lib/data/user/follow/UserFollow.class.php +++ b/wcfsetup/install/files/lib/data/user/follow/UserFollow.class.php @@ -11,17 +11,17 @@ use wcf\system\WCF; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\User\Follow * - * @property-read integer $followID unique id of the following relation - * @property-read integer $userID id of the following user - * @property-read integer $followUserID id of the followed user - * @property-read integer $time time at which following relation has been established + * @property-read int $followID unique id of the following relation + * @property-read int $userID id of the following user + * @property-read int $followUserID id of the followed user + * @property-read int $time time at which following relation has been established */ class UserFollow extends DatabaseObject { /** * Retrieves a follower. * - * @param integer $userID - * @param integer $followUserID + * @param int $userID + * @param int $followUserID * @return UserFollow */ public static function getFollow($userID, $followUserID) { diff --git a/wcfsetup/install/files/lib/data/user/group/UserGroup.class.php b/wcfsetup/install/files/lib/data/user/group/UserGroup.class.php index c0382946e4..4577922b43 100644 --- a/wcfsetup/install/files/lib/data/user/group/UserGroup.class.php +++ b/wcfsetup/install/files/lib/data/user/group/UserGroup.class.php @@ -16,17 +16,17 @@ use wcf\system\WCF; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\User\Group * - * @property-read integer $groupID unique id of the user group + * @property-read int $groupID unique id of the user group * @property-read string $groupName name of the user group or name of language * item which contains the name * @property-read string $groupDescription description of the user group or name of * language item which contains the description - * @property-read integer $groupType identifier of the type of user group - * @property-read integer $priority priority of the user group used to determine + * @property-read int $groupType identifier of the type of user group + * @property-read int $priority priority of the user group used to determine * member's user rank and online marking * @property-read string $userOnlineMarking HTML code used to print the formatted name of * a user group member - * @property-read integer $showOnTeamPage is `1` if the user group and its members + * @property-read int $showOnTeamPage is `1` if the user group and its members * should be shown on the team page, otherwise `0` * @property-read int $allowMention is `1` if the user group can be mentioned in messages, * otherwise `0` @@ -34,25 +34,25 @@ use wcf\system\WCF; class UserGroup extends DatabaseObject implements ITitledObject { /** * group type everyone user group - * @var integer + * @var int */ const EVERYONE = 1; /** * group type guests user group - * @var integer + * @var int */ const GUESTS = 2; /** * group type registered users user group - * @var integer + * @var int */ const USERS = 3; /** * group type of other user groups - * @var integer + * @var int */ const OTHER = 4; @@ -70,7 +70,7 @@ class UserGroup extends DatabaseObject implements ITitledObject { /** * list of accessible groups for active user - * @var integer[] + * @var int[] */ protected static $accessibleGroups = null; @@ -88,8 +88,8 @@ class UserGroup extends DatabaseObject implements ITitledObject { /** * Returns group ids by given type. * - * @param integer[] $types - * @return integer[] + * @param int[] $types + * @return int[] */ public static function getGroupIDsByType(array $types) { self::getCache(); @@ -108,8 +108,8 @@ class UserGroup extends DatabaseObject implements ITitledObject { /** * Returns groups by given type. Returns all groups if no types given. * - * @param integer[] $types - * @param integer[] $invalidGroupTypes + * @param int[] $types + * @param int[] $invalidGroupTypes * @return UserGroup[] */ public static function getGroupsByType(array $types = [], array $invalidGroupTypes = []) { @@ -128,8 +128,8 @@ class UserGroup extends DatabaseObject implements ITitledObject { /** * Returns a sorted list of groups filtered by given type. * - * @param integer[] $types - * @param integer[] $invalidGroupTypes + * @param int[] $types + * @param int[] $invalidGroupTypes * @return UserGroup[] * @since 5.3 */ @@ -144,7 +144,7 @@ class UserGroup extends DatabaseObject implements ITitledObject { /** * Returns unique group by given type. Only works for the default user groups. * - * @param integer $type + * @param int $type * @return UserGroup * @throws SystemException */ @@ -161,7 +161,7 @@ class UserGroup extends DatabaseObject implements ITitledObject { * Returns the user group with the given id or null if no such user group * exists. * - * @param integer $groupID + * @param int $groupID * @return UserGroup|null */ public static function getGroupByID($groupID) { @@ -177,7 +177,7 @@ class UserGroup extends DatabaseObject implements ITitledObject { /** * Returns a list of groups by group id. * - * @param integer[] $groupIDs list of group ids + * @param int[] $groupIDs list of group ids * @return UserGroup[] */ public static function getGroupsByIDs(array $groupIDs) { @@ -269,8 +269,8 @@ class UserGroup extends DatabaseObject implements ITitledObject { /** * Returns a list of accessible groups. * - * @param integer[] $groupTypes - * @param integer[] $invalidGroupTypes + * @param int[] $groupTypes + * @param int[] $invalidGroupTypes * @return UserGroup[] */ public static function getAccessibleGroups(array $groupTypes = [], array $invalidGroupTypes = []) { @@ -288,8 +288,8 @@ class UserGroup extends DatabaseObject implements ITitledObject { /** * Returns a sorted list of accessible groups. * - * @param integer[] $groupTypes - * @param integer[] $invalidGroupTypes + * @param int[] $groupTypes + * @param int[] $invalidGroupTypes * @return UserGroup[] * @since 5.2 */ diff --git a/wcfsetup/install/files/lib/data/user/group/UserGroupEditor.class.php b/wcfsetup/install/files/lib/data/user/group/UserGroupEditor.class.php index 0fbc032cae..e97d275db8 100644 --- a/wcfsetup/install/files/lib/data/user/group/UserGroupEditor.class.php +++ b/wcfsetup/install/files/lib/data/user/group/UserGroupEditor.class.php @@ -117,7 +117,7 @@ class UserGroupEditor extends DatabaseObjectEditor implements IEditableCachedObj /** * Updates the value from the accessiblegroups option. * - * @param integer $groupID this group is added or deleted in the value + * @param int $groupID this group is added or deleted in the value * @param boolean $delete flag for group deletion * @throws SystemException */ diff --git a/wcfsetup/install/files/lib/data/user/group/assignment/UserGroupAssignment.class.php b/wcfsetup/install/files/lib/data/user/group/assignment/UserGroupAssignment.class.php index fe3f105662..5bfdf69459 100644 --- a/wcfsetup/install/files/lib/data/user/group/assignment/UserGroupAssignment.class.php +++ b/wcfsetup/install/files/lib/data/user/group/assignment/UserGroupAssignment.class.php @@ -14,10 +14,10 @@ use wcf\system\request\IRouteController; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\User\Group\Assignment * - * @property-read integer $assignmentID unique id of the automatic user group assignment - * @property-read integer $groupID id of the user group to which users are automatically assigned + * @property-read int $assignmentID unique id of the automatic user group assignment + * @property-read int $groupID id of the user group to which users are automatically assigned * @property-read string $title title of the automatic user group assignment - * @property-read integer $isDisabled is `1` if the user group assignment is disabled and thus not checked for automatic assignments, otherwise `0` + * @property-read int $isDisabled is `1` if the user group assignment is disabled and thus not checked for automatic assignments, otherwise `0` */ class UserGroupAssignment extends DatabaseObject implements IRouteController { /** diff --git a/wcfsetup/install/files/lib/data/user/group/option/UserGroupOption.class.php b/wcfsetup/install/files/lib/data/user/group/option/UserGroupOption.class.php index 6867b92123..1bbe8c5e79 100644 --- a/wcfsetup/install/files/lib/data/user/group/option/UserGroupOption.class.php +++ b/wcfsetup/install/files/lib/data/user/group/option/UserGroupOption.class.php @@ -11,7 +11,7 @@ use wcf\data\option\Option; * @package WoltLabSuite\Core\Data\User\Group\Option * * @property-read string $defaultValue default value of the user option - * @property-read integer $usersOnly is `1` if the option only applies to user groups for registered users, otherwise `1` + * @property-read int $usersOnly is `1` if the option only applies to user groups for registered users, otherwise `1` */ class UserGroupOption extends Option { /** diff --git a/wcfsetup/install/files/lib/data/user/group/option/category/UserGroupOptionCategory.class.php b/wcfsetup/install/files/lib/data/user/group/option/category/UserGroupOptionCategory.class.php index c20b1efcc5..215880c4a9 100644 --- a/wcfsetup/install/files/lib/data/user/group/option/category/UserGroupOptionCategory.class.php +++ b/wcfsetup/install/files/lib/data/user/group/option/category/UserGroupOptionCategory.class.php @@ -12,11 +12,11 @@ use wcf\data\TDatabaseObjectPermissions; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\User\Group\Option\Category * - * @property-read integer $categoryID unique id of the user group options category - * @property-read integer $packageID id of the package which delivers the user group options category + * @property-read int $categoryID unique id of the user group options category + * @property-read int $packageID id of the package which delivers the user group options category * @property-read string $categoryName name and textual identifier of the user group option category * @property-read string $parentCategoryName name of the user group option category's parent category or empty if it has no parent category - * @property-read integer $showOrder position of the user group options category in relation to its siblings + * @property-read int $showOrder position of the user group options category in relation to its siblings * @property-read string $permissions comma separated list of user group permissions of which the active user needs to have at least one to see the user group options category * @property-read string $options comma separated list of options of which at least one needs to be enabled for the user group options category to be shown */ diff --git a/wcfsetup/install/files/lib/data/user/ignore/UserIgnore.class.php b/wcfsetup/install/files/lib/data/user/ignore/UserIgnore.class.php index 3773ee1d46..7ffe1c6732 100644 --- a/wcfsetup/install/files/lib/data/user/ignore/UserIgnore.class.php +++ b/wcfsetup/install/files/lib/data/user/ignore/UserIgnore.class.php @@ -11,16 +11,16 @@ use wcf\system\WCF; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\User\Ignore * - * @property-read integer $ignoreID unique id of the ignore relation - * @property-read integer $userID id of the ignoring user - * @property-read integer $ignoreUserID id of the ignored user - * @property-read integer $time time at which ignore relation has been established + * @property-read int $ignoreID unique id of the ignore relation + * @property-read int $userID id of the ignoring user + * @property-read int $ignoreUserID id of the ignored user + * @property-read int $time time at which ignore relation has been established */ class UserIgnore extends DatabaseObject { /** * Returns a UserIgnore object for given ignored user id. * - * @param integer $ignoreUserID + * @param int $ignoreUserID * @return UserIgnore */ public static function getIgnore($ignoreUserID) { diff --git a/wcfsetup/install/files/lib/data/user/menu/item/UserMenuItem.class.php b/wcfsetup/install/files/lib/data/user/menu/item/UserMenuItem.class.php index 95914e0af3..7c3ffd17db 100644 --- a/wcfsetup/install/files/lib/data/user/menu/item/UserMenuItem.class.php +++ b/wcfsetup/install/files/lib/data/user/menu/item/UserMenuItem.class.php @@ -17,13 +17,13 @@ use wcf\system\WCF; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\User\Menu\Item * - * @property-read integer $menuItemID unique id of the user menu item - * @property-read integer $packageID id of the package the which delivers the user menu item + * @property-read int $menuItemID unique id of the user menu item + * @property-read int $packageID id of the package the which delivers the user menu item * @property-read string $menuItem textual identifier of the user menu item * @property-read string $parentMenuItem textual identifier of the menu item's parent menu item or empty if it has no parent menu item * @property-read string $menuItemController class name of the user menu item's controller used to generate menu item link * @property-read string $menuItemLink additional part of the user menu item link if `$menuItemController` is set or external link - * @property-read integer $showOrder position of the user menu item in relation to its siblings + * @property-read int $showOrder position of the user menu item in relation to its siblings * @property-read string $permissions comma separated list of user group permissions of which the active user needs to have at least one to see the user menu item * @property-read string $options comma separated list of options of which at least one needs to be enabled for the user menu item to be shown * @property-read string $className name of the class implementing the user menu item provider interface or empty if there is no specific user menu item provider diff --git a/wcfsetup/install/files/lib/data/user/notification/UserNotification.class.php b/wcfsetup/install/files/lib/data/user/notification/UserNotification.class.php index 8c7b3ed4af..80ccb71920 100644 --- a/wcfsetup/install/files/lib/data/user/notification/UserNotification.class.php +++ b/wcfsetup/install/files/lib/data/user/notification/UserNotification.class.php @@ -11,19 +11,19 @@ use wcf\system\WCF; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\User\Notification * - * @property-read integer $notificationID unique id of the user notification - * @property-read integer $packageID deprecated - * @property-read integer $eventID id of the user notification event the user notification belongs to - * @property-read integer $objectID id of the object that triggered the user notification - * @property-read integer $baseObjectID id of a generic base object of object that triggered the user notification or 0 if there is no such base object + * @property-read int $notificationID unique id of the user notification + * @property-read int $packageID deprecated + * @property-read int $eventID id of the user notification event the user notification belongs to + * @property-read int $objectID id of the object that triggered the user notification + * @property-read int $baseObjectID id of a generic base object of object that triggered the user notification or 0 if there is no such base object * @property-read string $eventHash hash of the event the user notification represents, is used to stack notifications - * @property-read integer|null $authorID id of the user that triggered the user notification or null if there is no such user or the user was a guest - * @property-read integer $timesTriggered total number of times a stacked notification has been triggered by registered users and guests - * @property-read integer $guestTimesTriggered number of times a stacked notification has been triggered by guests - * @property-read integer $userID id of the user who receives the user notification - * @property-read integer $time timestamp at which the user notification has been created - * @property-read integer $mailNotified is 0 has not be notified by mail about the user notification, otherwise 1 - * @property-read integer $confirmTime timestamp at which the user notification has been marked as confirmed/read + * @property-read int|null $authorID id of the user that triggered the user notification or null if there is no such user or the user was a guest + * @property-read int $timesTriggered total number of times a stacked notification has been triggered by registered users and guests + * @property-read int $guestTimesTriggered number of times a stacked notification has been triggered by guests + * @property-read int $userID id of the user who receives the user notification + * @property-read int $time timestamp at which the user notification has been created + * @property-read int $mailNotified is 0 has not be notified by mail about the user notification, otherwise 1 + * @property-read int $confirmTime timestamp at which the user notification has been marked as confirmed/read * @property-read array $additionalData array with additional data of the user notification event */ class UserNotification extends DatabaseObject { @@ -56,9 +56,9 @@ class UserNotification extends DatabaseObject { /** * Returns an existing notification. * - * @param integer $packageID - * @param integer $eventID - * @param integer $objectID + * @param int $packageID + * @param int $eventID + * @param int $objectID * @return UserNotification */ public static function getNotification($packageID, $eventID, $objectID) { diff --git a/wcfsetup/install/files/lib/data/user/notification/event/UserNotificationEvent.class.php b/wcfsetup/install/files/lib/data/user/notification/event/UserNotificationEvent.class.php index c45c409850..8cd06d4e87 100644 --- a/wcfsetup/install/files/lib/data/user/notification/event/UserNotificationEvent.class.php +++ b/wcfsetup/install/files/lib/data/user/notification/event/UserNotificationEvent.class.php @@ -15,14 +15,14 @@ use wcf\system\user\notification\event\IUserNotificationEvent; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\User\Notification\Event * - * @property-read integer $eventID unique id of the user notification event - * @property-read integer $packageID id of the package which delivers the user notification event + * @property-read int $eventID unique id of the user notification event + * @property-read int $packageID id of the package which delivers the user notification event * @property-read string $eventName name and textual identifier (within the object type) of the user notification event - * @property-read integer $objectTypeID id of the `com.woltlab.wcf.notification.objectType` object type + * @property-read int $objectTypeID id of the `com.woltlab.wcf.notification.objectType` object type * @property-read string $className name of the PHP class implementing `wcf\system\user\notification\event\IUserNotificationEvent` * @property-read string $permissions comma separated list of user group permissions of which the active user needs to have at least one to see the user notification event setting * @property-read string $options comma separated list of options of which at least one needs to be enabled for the user notification event setting to be shown - * @property-read integer $preset is `1` if the user notification event is enabled by default otherwise `0` + * @property-read int $preset is `1` if the user notification event is enabled by default otherwise `0` * @property-read string $presetMailNotificationType default mail notification type if the user notification event is enabled by default, otherwise empty */ class UserNotificationEvent extends ProcessibleDatabaseObject { diff --git a/wcfsetup/install/files/lib/data/user/object/watch/UserObjectWatch.class.php b/wcfsetup/install/files/lib/data/user/object/watch/UserObjectWatch.class.php index 1a2c4f6894..77b7a41520 100644 --- a/wcfsetup/install/files/lib/data/user/object/watch/UserObjectWatch.class.php +++ b/wcfsetup/install/files/lib/data/user/object/watch/UserObjectWatch.class.php @@ -11,20 +11,20 @@ use wcf\system\WCF; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\User\Object\Watch * - * @property-read integer $watchID unique id of the watched object - * @property-read integer $objectTypeID id of the `com.woltlab.wcf.user.objectWatch` object type - * @property-read integer $objectID id of the watched object of the specific object type - * @property-read integer $userID id of the user watching the object - * @property-read integer $notification is `1` if the user wants to receive notifications for the watched object, otherwise `0` + * @property-read int $watchID unique id of the watched object + * @property-read int $objectTypeID id of the `com.woltlab.wcf.user.objectWatch` object type + * @property-read int $objectID id of the watched object of the specific object type + * @property-read int $userID id of the user watching the object + * @property-read int $notification is `1` if the user wants to receive notifications for the watched object, otherwise `0` */ class UserObjectWatch extends DatabaseObject { /** * Returns the UserObjectWatch with the given data or null if no such object * exists. * - * @param integer $objectTypeID - * @param integer $userID - * @param integer $objectID + * @param int $objectTypeID + * @param int $userID + * @param int $objectID * @return UserObjectWatch */ public static function getUserObjectWatch($objectTypeID, $userID, $objectID) { diff --git a/wcfsetup/install/files/lib/data/user/online/UserOnline.class.php b/wcfsetup/install/files/lib/data/user/online/UserOnline.class.php index 839854798c..1af9e5a88f 100644 --- a/wcfsetup/install/files/lib/data/user/online/UserOnline.class.php +++ b/wcfsetup/install/files/lib/data/user/online/UserOnline.class.php @@ -19,9 +19,9 @@ use wcf\util\UserUtil; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\User\Online * - * @property-read integer|null $pageID id of the last visited page - * @property-read integer|null $pageObjectID id of the object the last visited page belongs to - * @property-read integer|null $parentPageObjectID id of the parent of the object the last visited page belongs to + * @property-read int|null $pageID id of the last visited page + * @property-read int|null $pageObjectID id of the object the last visited page belongs to + * @property-read int|null $parentPageObjectID id of the parent of the object the last visited page belongs to * @property-read string|null $userOnlineMarking HTML code used to print the formatted name of a user group member */ class UserOnline extends UserProfile { diff --git a/wcfsetup/install/files/lib/data/user/online/UsersOnlineList.class.php b/wcfsetup/install/files/lib/data/user/online/UsersOnlineList.class.php index 9aed41014b..05f8be7a44 100644 --- a/wcfsetup/install/files/lib/data/user/online/UsersOnlineList.class.php +++ b/wcfsetup/install/files/lib/data/user/online/UsersOnlineList.class.php @@ -166,8 +166,8 @@ class UsersOnlineList extends SessionList { /** * Checks the 'canViewOnlineStatus' setting. * - * @param integer $userID - * @param integer $canViewOnlineStatus + * @param int $userID + * @param int $canViewOnlineStatus * @return boolean * @deprecated 5.3 Use `isVisibleUser` instead */ diff --git a/wcfsetup/install/files/lib/data/user/option/UserOption.class.php b/wcfsetup/install/files/lib/data/user/option/UserOption.class.php index ac5c8a1e5f..90a149ec94 100644 --- a/wcfsetup/install/files/lib/data/user/option/UserOption.class.php +++ b/wcfsetup/install/files/lib/data/user/option/UserOption.class.php @@ -14,86 +14,86 @@ use wcf\system\WCF; * @package WoltLabSuite\Core\Data\User\Option * * @property-read string $defaultValue default value of the user option - * @property-read integer $required is `1` if the user option has to be filled out, otherwise `0` - * @property-read integer $askDuringRegistration is `1` if the user option will be shown during registration to be filled out, otherwise `0` - * @property-read integer $editable setting for who can edit the user option, see `UserOption::EDITABILITY_*` constants - * @property-read integer $visible setting for who can see the user option, see `UserOption::VISIBILITY_*` constants + * @property-read int $required is `1` if the user option has to be filled out, otherwise `0` + * @property-read int $askDuringRegistration is `1` if the user option will be shown during registration to be filled out, otherwise `0` + * @property-read int $editable setting for who can edit the user option, see `UserOption::EDITABILITY_*` constants + * @property-read int $visible setting for who can see the user option, see `UserOption::VISIBILITY_*` constants * @property-read string $outputClass name of the PHP class implementing `wcf\system\option\user\IUserOptionOutput` for outputting the user option in the user profile - * @property-read integer $searchable is `1` if the user option can be searched, otherwise `0` - * @property-read integer $isDisabled is `1` if the user option is disabled and thus neither shown nor editable, otherwise `0` - * @property-read integer $originIsSystem is `1` if the user option was created by the system and not manually by an administrator, otherwise `0` + * @property-read int $searchable is `1` if the user option can be searched, otherwise `0` + * @property-read int $isDisabled is `1` if the user option is disabled and thus neither shown nor editable, otherwise `0` + * @property-read int $originIsSystem is `1` if the user option was created by the system and not manually by an administrator, otherwise `0` * @property-read string $labeledUrl the url, if the option type is `labeledUrl` */ class UserOption extends Option implements ITitledObject { /** * visible for no one (no valid bit) - * @var integer + * @var int */ const VISIBILITY_NONE = 0; /** * visible for the owner - * @var integer + * @var int */ const VISIBILITY_OWNER = 1; /** * visible for admins - * @var integer + * @var int */ const VISIBILITY_ADMINISTRATOR = 2; /** * visible for users - * @var integer + * @var int */ const VISIBILITY_REGISTERED = 4; /** * visible for guests - * @var integer + * @var int */ const VISIBILITY_GUEST = 8; /** * visible for all (no valid bit) - * @var integer + * @var int */ const VISIBILITY_ALL = 15; /** * editable for no one (no valid bit) - * @var integer + * @var int */ const EDITABILITY_NONE = 0; /** * editable for the owner - * @var integer + * @var int */ const EDITABILITY_OWNER = 1; /** * editable for admins - * @var integer + * @var int */ const EDITABILITY_ADMINISTRATOR = 2; /** * editable for all (no valid bit) - * @var integer + * @var int */ const EDITABILITY_ALL = 3; /** * editable for owner during registration - * @var integer + * @var int */ const EDITABILITY_OWNER_DURING_REGISTRATION = 4; /** * editable for owner during registration and admins (no valid bit) - * @var integer + * @var int */ const EDITABILITY_OWNER_DURING_REGISTRATION_AND_ADMINISTRATOR = 6; diff --git a/wcfsetup/install/files/lib/data/user/option/category/UserOptionCategory.class.php b/wcfsetup/install/files/lib/data/user/option/category/UserOptionCategory.class.php index d3de76094b..2dbe95d8ed 100644 --- a/wcfsetup/install/files/lib/data/user/option/category/UserOptionCategory.class.php +++ b/wcfsetup/install/files/lib/data/user/option/category/UserOptionCategory.class.php @@ -12,11 +12,11 @@ use wcf\system\WCF; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\User\Option\Category * - * @property-read integer $categoryID unique id of the user option category - * @property-read integer $packageID id of the package which delivers the user option category + * @property-read int $categoryID unique id of the user option category + * @property-read int $packageID id of the package which delivers the user option category * @property-read string $categoryName name and textual identifier of the user option category * @property-read string $parentCategoryName name of the user option category's parent category or empty if it has no parent category - * @property-read integer $showOrder position of the user option category in relation to its siblings + * @property-read int $showOrder position of the user option category in relation to its siblings * @property-read string $permissions comma separated list of user group permissions of which the active user needs to have at least one to see the user option category * @property-read string $options comma separated list of options of which at least one needs to be enabled for the user option category to be shown */ diff --git a/wcfsetup/install/files/lib/data/user/profile/menu/item/UserProfileMenuItem.class.php b/wcfsetup/install/files/lib/data/user/profile/menu/item/UserProfileMenuItem.class.php index 339c1940d4..314ff763d5 100644 --- a/wcfsetup/install/files/lib/data/user/profile/menu/item/UserProfileMenuItem.class.php +++ b/wcfsetup/install/files/lib/data/user/profile/menu/item/UserProfileMenuItem.class.php @@ -18,10 +18,10 @@ use wcf\system\WCF; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\User\Profile\Menu\Item * - * @property-read integer $menuItemID unique id of the user profile menu item - * @property-read integer $packageID id of the package which delivers the user profile menu item + * @property-read int $menuItemID unique id of the user profile menu item + * @property-read int $packageID id of the package which delivers the user profile menu item * @property-read string $menuItem textual identifier of the user profile menu item - * @property-read integer $showOrder position of the user profile menu item in relation to its siblings + * @property-read int $showOrder position of the user profile menu item in relation to its siblings * @property-read string $permissions comma separated list of user group permissions of which the active user needs to have at least one to see the user profile menu item * @property-read string $options comma separated list of options of which at least one needs to be enabled for the user profile menu item to be shown * @property-read string $className name of the PHP class implementing `wcf\system\menu\user\profile\content\IUserProfileMenuContent` handling outputting the content of the user profile tab diff --git a/wcfsetup/install/files/lib/data/user/profile/menu/item/UserProfileMenuItemEditor.class.php b/wcfsetup/install/files/lib/data/user/profile/menu/item/UserProfileMenuItemEditor.class.php index f61ba76bc7..78e01b2ed4 100644 --- a/wcfsetup/install/files/lib/data/user/profile/menu/item/UserProfileMenuItemEditor.class.php +++ b/wcfsetup/install/files/lib/data/user/profile/menu/item/UserProfileMenuItemEditor.class.php @@ -62,7 +62,7 @@ class UserProfileMenuItemEditor extends DatabaseObjectEditor implements IEditabl /** * Updates show order for current menu item. * - * @param integer $showOrder + * @param int $showOrder */ protected function updateShowOrder($showOrder) { if ($this->showOrder != $showOrder) { @@ -94,8 +94,8 @@ class UserProfileMenuItemEditor extends DatabaseObjectEditor implements IEditabl /** * Returns show order for a new menu item. * - * @param integer $showOrder - * @return integer + * @param int $showOrder + * @return int */ protected static function getShowOrder($showOrder = 0) { if ($showOrder == 0) { diff --git a/wcfsetup/install/files/lib/data/user/profile/visitor/UserProfileVisitor.class.php b/wcfsetup/install/files/lib/data/user/profile/visitor/UserProfileVisitor.class.php index 3d319ef467..ddac2dfda8 100644 --- a/wcfsetup/install/files/lib/data/user/profile/visitor/UserProfileVisitor.class.php +++ b/wcfsetup/install/files/lib/data/user/profile/visitor/UserProfileVisitor.class.php @@ -11,17 +11,17 @@ use wcf\system\WCF; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\User\Profile\Visitor * - * @property-read integer $visitorID unique id of the user profile visitor - * @property-read integer $ownerID id of the user whose user profile has been visited - * @property-read integer $userID id of the user visiting the user profile - * @property-read integer $time timestamp of the (latest) visit + * @property-read int $visitorID unique id of the user profile visitor + * @property-read int $ownerID id of the user whose user profile has been visited + * @property-read int $userID id of the user visiting the user profile + * @property-read int $time timestamp of the (latest) visit */ class UserProfileVisitor extends DatabaseObject { /** * Returns a profile visitor object or `null` if it does not exist. * - * @param integer $ownerID - * @param integer $userID + * @param int $ownerID + * @param int $userID * @return UserProfileVisitor|null */ public static function getObject($ownerID, $userID) { diff --git a/wcfsetup/install/files/lib/data/user/rank/UserRank.class.php b/wcfsetup/install/files/lib/data/user/rank/UserRank.class.php index c22359b026..54618a0890 100644 --- a/wcfsetup/install/files/lib/data/user/rank/UserRank.class.php +++ b/wcfsetup/install/files/lib/data/user/rank/UserRank.class.php @@ -14,15 +14,15 @@ use wcf\util\StringUtil; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\User\Rank * - * @property-read integer $rankID unique id of the user rank - * @property-read integer $groupID id of the user group to which the user rank belongs - * @property-read integer $requiredPoints minimum number of user activity points required for a user to get the user rank + * @property-read int $rankID unique id of the user rank + * @property-read int $groupID id of the user group to which the user rank belongs + * @property-read int $requiredPoints minimum number of user activity points required for a user to get the user rank * @property-read string $rankTitle title of the user rank or name of the language item which contains the rank * @property-read string $cssClassName css class name used when displaying the user rank * @property-read string $rankImage (WCF relative) path to the image displayed next to the rank or empty if no rank image exists - * @property-read integer $repeatImage number of times the rank image is displayed - * @property-read integer $requiredGender numeric representation of the user's gender required for the user rank (see `UserProfile::GENDER_*` constants) or 0 if no specific gender is required - * @property-read integer $hideTitle hides the generic title of the rank, but not custom titles, `0` to show the title at all times + * @property-read int $repeatImage number of times the rank image is displayed + * @property-read int $requiredGender numeric representation of the user's gender required for the user rank (see `UserProfile::GENDER_*` constants) or 0 if no specific gender is required + * @property-read int $hideTitle hides the generic title of the rank, but not custom titles, `0` to show the title at all times */ class UserRank extends DatabaseObject implements ITitledObject { diff --git a/wcfsetup/install/files/lib/data/user/trophy/UserTrophy.class.php b/wcfsetup/install/files/lib/data/user/trophy/UserTrophy.class.php index 385ee3b30e..5f072b9fa8 100644 --- a/wcfsetup/install/files/lib/data/user/trophy/UserTrophy.class.php +++ b/wcfsetup/install/files/lib/data/user/trophy/UserTrophy.class.php @@ -19,13 +19,13 @@ use wcf\util\StringUtil; * @package WoltLabSuite\Core\Data\User\Trophy * @since 3.1 * - * @property-read integer $userTrophyID unique id of the user trophy - * @property-read integer $trophyID trophy id - * @property-read integer $userID user id - * @property-read integer $time the time when the trophy was rewarded + * @property-read int $userTrophyID unique id of the user trophy + * @property-read int $trophyID trophy id + * @property-read int $userID user id + * @property-read int $time the time when the trophy was rewarded * @property-read string $description the custom trophy description * @property-read string $useCustomDescription `1`, if the trophy use a custom description - * @property-read integer $trophyUseHtml `1`, if the trophy use a html description + * @property-read int $trophyUseHtml `1`, if the trophy use a html description */ class UserTrophy extends DatabaseObject { /** diff --git a/wcfsetup/install/files/lib/data/user/trophy/UserTrophyList.class.php b/wcfsetup/install/files/lib/data/user/trophy/UserTrophyList.class.php index b15a9c5382..cce7c7678a 100644 --- a/wcfsetup/install/files/lib/data/user/trophy/UserTrophyList.class.php +++ b/wcfsetup/install/files/lib/data/user/trophy/UserTrophyList.class.php @@ -20,7 +20,7 @@ class UserTrophyList extends DatabaseObjectList { /** * Returns a user trophy list for a certain users. * - * @param integer[] $userIDs + * @param int[] $userIDs * @param boolean $includeDisabled * @return UserTrophy[][] */ diff --git a/wcfsetup/install/files/lib/form/AbstractModerationForm.class.php b/wcfsetup/install/files/lib/form/AbstractModerationForm.class.php index 3e70d7cc2b..c7afbd508c 100644 --- a/wcfsetup/install/files/lib/form/AbstractModerationForm.class.php +++ b/wcfsetup/install/files/lib/form/AbstractModerationForm.class.php @@ -23,7 +23,7 @@ use wcf\system\WCF; abstract class AbstractModerationForm extends AbstractForm { /** * id of the assigned user - * @var integer + * @var int */ public $assignedUserID = 0; @@ -51,13 +51,13 @@ abstract class AbstractModerationForm extends AbstractForm { /** * queue id - * @var integer + * @var int */ public $queueID = 0; /** * comment object type id - * @var integer + * @var int */ public $commentObjectTypeID = 0; diff --git a/wcfsetup/install/files/lib/form/AccountManagementForm.class.php b/wcfsetup/install/files/lib/form/AccountManagementForm.class.php index 7dadf52dc9..d95350ee16 100644 --- a/wcfsetup/install/files/lib/form/AccountManagementForm.class.php +++ b/wcfsetup/install/files/lib/form/AccountManagementForm.class.php @@ -73,67 +73,67 @@ class AccountManagementForm extends AbstractForm { /** * indicates if the user quit - * @var integer + * @var int */ public $quit = 0; /** * indicates if the user canceled their quit - * @var integer + * @var int */ public $cancelQuit = 0; /** * timestamp at which the user quit - * @var integer + * @var int */ public $quitStarted = 0; /** * indicates if the user wants to connect github - * @var integer + * @var int */ public $githubConnect = 0; /** * indicates if the user wants to disconnect github - * @var integer + * @var int */ public $githubDisconnect = 0; /** * indicates if the user wants to connect twitter - * @var integer + * @var int */ public $twitterConnect = 0; /** * indicates if the user wants to disconnect twitter - * @var integer + * @var int */ public $twitterDisconnect = 0; /** * indicates if the user wants to connect facebook - * @var integer + * @var int */ public $facebookConnect = 0; /** * indicates if the user wants to disconnect facebook - * @var integer + * @var int */ public $facebookDisconnect = 0; /** * indicates if the user wants to connect google - * @var integer + * @var int */ public $googleConnect = 0; /** * indicates if the user wants to disconnect google - * @var integer + * @var int */ public $googleDisconnect = 0; diff --git a/wcfsetup/install/files/lib/form/ContactForm.class.php b/wcfsetup/install/files/lib/form/ContactForm.class.php index 6e2dfe4a18..f83ba7ce4e 100644 --- a/wcfsetup/install/files/lib/form/ContactForm.class.php +++ b/wcfsetup/install/files/lib/form/ContactForm.class.php @@ -55,7 +55,7 @@ class ContactForm extends AbstractCaptchaForm { /** * recipient id - * @var integer + * @var int */ public $recipientID = 0; diff --git a/wcfsetup/install/files/lib/form/EmailActivationForm.class.php b/wcfsetup/install/files/lib/form/EmailActivationForm.class.php index 17b31bbd6b..a92b589289 100644 --- a/wcfsetup/install/files/lib/form/EmailActivationForm.class.php +++ b/wcfsetup/install/files/lib/form/EmailActivationForm.class.php @@ -22,13 +22,13 @@ use wcf\util\UserUtil; class EmailActivationForm extends AbstractForm { /** * user id - * @var integer + * @var int */ public $userID = null; /** * activation code - * @var integer + * @var int */ public $activationCode = ''; diff --git a/wcfsetup/install/files/lib/form/MessageForm.class.php b/wcfsetup/install/files/lib/form/MessageForm.class.php index cec8565874..165cffc551 100644 --- a/wcfsetup/install/files/lib/form/MessageForm.class.php +++ b/wcfsetup/install/files/lib/form/MessageForm.class.php @@ -31,7 +31,7 @@ abstract class MessageForm extends AbstractCaptchaForm { /** * object id for attachments - * @var integer + * @var int */ public $attachmentObjectID = 0; @@ -43,7 +43,7 @@ abstract class MessageForm extends AbstractCaptchaForm { /** * parent object id for attachments - * @var integer + * @var int */ public $attachmentParentObjectID = 0; @@ -78,13 +78,13 @@ abstract class MessageForm extends AbstractCaptchaForm { /** * content language id - * @var integer + * @var int */ public $languageID; /** * maximum text length - * @var integer + * @var int */ public $maxTextLength = 0; diff --git a/wcfsetup/install/files/lib/form/NewPasswordForm.class.php b/wcfsetup/install/files/lib/form/NewPasswordForm.class.php index a48753cd9a..d24ab85058 100644 --- a/wcfsetup/install/files/lib/form/NewPasswordForm.class.php +++ b/wcfsetup/install/files/lib/form/NewPasswordForm.class.php @@ -27,7 +27,7 @@ class NewPasswordForm extends AbstractForm { /** * user id - * @var integer + * @var int */ public $userID = 0; diff --git a/wcfsetup/install/files/lib/form/RegisterForm.class.php b/wcfsetup/install/files/lib/form/RegisterForm.class.php index f7b79165fc..9e20ccbbc9 100644 --- a/wcfsetup/install/files/lib/form/RegisterForm.class.php +++ b/wcfsetup/install/files/lib/form/RegisterForm.class.php @@ -90,7 +90,7 @@ class RegisterForm extends UserAddForm { /** * min number of seconds between form request and submit - * @var integer + * @var int */ public static $minRegistrationTime = 10; @@ -475,7 +475,7 @@ class RegisterForm extends UserAddForm { } /** - * @return integer[] + * @return int[] * @since 5.2 */ protected function getRecipientsForNotificationEvent() { diff --git a/wcfsetup/install/files/lib/form/SearchForm.class.php b/wcfsetup/install/files/lib/form/SearchForm.class.php index b54123ac00..03c4b652f0 100644 --- a/wcfsetup/install/files/lib/form/SearchForm.class.php +++ b/wcfsetup/install/files/lib/form/SearchForm.class.php @@ -32,7 +32,7 @@ class SearchForm extends AbstractCaptchaForm { /** * end date - * @var integer + * @var int */ public $endDate = ''; @@ -44,13 +44,13 @@ class SearchForm extends AbstractCaptchaForm { /** * search id used for modification - * @var integer + * @var int */ public $modifySearchID = 0; /** * require exact matches - * @var integer + * @var int */ public $nameExactly = 1; @@ -78,7 +78,7 @@ class SearchForm extends AbstractCaptchaForm { /** * user id - * @var integer + * @var int */ public $userID = 0; @@ -101,7 +101,7 @@ class SearchForm extends AbstractCaptchaForm { /** * search id - * @var integer + * @var int */ public $searchID = 0; @@ -125,13 +125,13 @@ class SearchForm extends AbstractCaptchaForm { /** * start date - * @var integer + * @var int */ public $startDate = ''; /** * search for subject only - * @var integer + * @var int */ public $subjectOnly = 0; @@ -486,7 +486,7 @@ class SearchForm extends AbstractCaptchaForm { /** * Returns user ids. * - * @return integer[] + * @return int[] */ public function getUserIDs() { $userIDs = []; diff --git a/wcfsetup/install/files/lib/form/SettingsForm.class.php b/wcfsetup/install/files/lib/form/SettingsForm.class.php index c2b099970d..e94306747a 100644 --- a/wcfsetup/install/files/lib/form/SettingsForm.class.php +++ b/wcfsetup/install/files/lib/form/SettingsForm.class.php @@ -76,25 +76,25 @@ class SettingsForm extends AbstractForm { /** * list of content language ids - * @var integer[] + * @var int[] */ public $contentLanguageIDs = []; /** * language id - * @var integer + * @var int */ public $languageID = 0; /** * style id - * @var integer + * @var int */ public $styleID = 0; /** * special trophies - * @var integer[] + * @var int[] */ public $specialTrophies = []; diff --git a/wcfsetup/install/files/lib/form/UserSearchForm.class.php b/wcfsetup/install/files/lib/form/UserSearchForm.class.php index 7220471768..24fe58b9c8 100644 --- a/wcfsetup/install/files/lib/form/UserSearchForm.class.php +++ b/wcfsetup/install/files/lib/form/UserSearchForm.class.php @@ -35,7 +35,7 @@ class UserSearchForm extends UserOptionListForm { /** * matches - * @var integer[] + * @var int[] */ public $matches = []; @@ -47,13 +47,13 @@ class UserSearchForm extends UserOptionListForm { /** * search id - * @var integer + * @var int */ public $searchID = 0; /** * number of results - * @var integer + * @var int */ public $maxResults = 1000; diff --git a/wcfsetup/install/files/lib/page/AbstractArticlePage.class.php b/wcfsetup/install/files/lib/page/AbstractArticlePage.class.php index f36838e12d..c95b617df7 100644 --- a/wcfsetup/install/files/lib/page/AbstractArticlePage.class.php +++ b/wcfsetup/install/files/lib/page/AbstractArticlePage.class.php @@ -33,7 +33,7 @@ abstract class AbstractArticlePage extends AbstractPage { /** * article content id - * @var integer + * @var int */ public $articleContentID = 0; diff --git a/wcfsetup/install/files/lib/page/AbstractFeedPage.class.php b/wcfsetup/install/files/lib/page/AbstractFeedPage.class.php index f79ef66ba0..392cb27c65 100644 --- a/wcfsetup/install/files/lib/page/AbstractFeedPage.class.php +++ b/wcfsetup/install/files/lib/page/AbstractFeedPage.class.php @@ -30,7 +30,7 @@ abstract class AbstractFeedPage extends AbstractAuthedPage { /** * parsed contents of $_REQUEST['id'] - * @var integer[] + * @var int[] */ public $objectIDs = []; diff --git a/wcfsetup/install/files/lib/page/ArticleFeedPage.class.php b/wcfsetup/install/files/lib/page/ArticleFeedPage.class.php index d9cb8d7c14..74ccc5f974 100644 --- a/wcfsetup/install/files/lib/page/ArticleFeedPage.class.php +++ b/wcfsetup/install/files/lib/page/ArticleFeedPage.class.php @@ -24,7 +24,7 @@ class ArticleFeedPage extends AbstractFeedPage { /** * id of the category the listed articles belong to - * @var integer + * @var int */ public $categoryID = 0; diff --git a/wcfsetup/install/files/lib/page/ArticleListPage.class.php b/wcfsetup/install/files/lib/page/ArticleListPage.class.php index a1d48033eb..9ac43dab4a 100644 --- a/wcfsetup/install/files/lib/page/ArticleListPage.class.php +++ b/wcfsetup/install/files/lib/page/ArticleListPage.class.php @@ -49,7 +49,7 @@ class ArticleListPage extends SortablePage { /** * label filter - * @var integer[] + * @var int[] */ public $labelIDs = []; @@ -94,7 +94,7 @@ class ArticleListPage extends SortablePage { /** * display 'Add Article' dialog on load - * @var integer + * @var int */ public $showArticleAddDialog = 0; diff --git a/wcfsetup/install/files/lib/page/ArticlePage.class.php b/wcfsetup/install/files/lib/page/ArticlePage.class.php index 231a10e5ca..dee49c2545 100644 --- a/wcfsetup/install/files/lib/page/ArticlePage.class.php +++ b/wcfsetup/install/files/lib/page/ArticlePage.class.php @@ -35,7 +35,7 @@ class ArticlePage extends AbstractArticlePage { /** * comment object type id - * @var integer + * @var int */ public $commentObjectTypeID = 0; diff --git a/wcfsetup/install/files/lib/page/AttachmentPage.class.php b/wcfsetup/install/files/lib/page/AttachmentPage.class.php index ab25f3f70a..dcc72a8be4 100644 --- a/wcfsetup/install/files/lib/page/AttachmentPage.class.php +++ b/wcfsetup/install/files/lib/page/AttachmentPage.class.php @@ -24,7 +24,7 @@ class AttachmentPage extends AbstractPage { /** * attachment id - * @var integer + * @var int */ public $attachmentID = 0; diff --git a/wcfsetup/install/files/lib/page/CategoryArticleListPage.class.php b/wcfsetup/install/files/lib/page/CategoryArticleListPage.class.php index 866ae47426..138468042c 100644 --- a/wcfsetup/install/files/lib/page/CategoryArticleListPage.class.php +++ b/wcfsetup/install/files/lib/page/CategoryArticleListPage.class.php @@ -26,7 +26,7 @@ class CategoryArticleListPage extends ArticleListPage { /** * id of the category the listed articles belong to - * @var integer + * @var int */ public $categoryID = 0; diff --git a/wcfsetup/install/files/lib/page/CmsPage.class.php b/wcfsetup/install/files/lib/page/CmsPage.class.php index 823a4d8efc..bd28fa5d1d 100644 --- a/wcfsetup/install/files/lib/page/CmsPage.class.php +++ b/wcfsetup/install/files/lib/page/CmsPage.class.php @@ -25,7 +25,7 @@ class CmsPage extends AbstractPage { public $content; /** - * @var integer + * @var int */ public $languageID; @@ -35,7 +35,7 @@ class CmsPage extends AbstractPage { public $page; /** - * @var integer + * @var int */ public $pageID; diff --git a/wcfsetup/install/files/lib/page/EditHistoryPage.class.php b/wcfsetup/install/files/lib/page/EditHistoryPage.class.php index f317c8e618..2f778adff0 100644 --- a/wcfsetup/install/files/lib/page/EditHistoryPage.class.php +++ b/wcfsetup/install/files/lib/page/EditHistoryPage.class.php @@ -36,7 +36,7 @@ class EditHistoryPage extends AbstractPage { /** * left / old version id - * @var integer + * @var int */ public $oldID = 0; @@ -48,7 +48,7 @@ class EditHistoryPage extends AbstractPage { /** * right / new version id - * @var integer + * @var int */ public $newID = 0; @@ -72,7 +72,7 @@ class EditHistoryPage extends AbstractPage { /** * id of the requested object - * @var integer + * @var int */ public $objectID = 0; diff --git a/wcfsetup/install/files/lib/page/ITrackablePage.class.php b/wcfsetup/install/files/lib/page/ITrackablePage.class.php index 7a1c37df6c..bda38b3da4 100644 --- a/wcfsetup/install/files/lib/page/ITrackablePage.class.php +++ b/wcfsetup/install/files/lib/page/ITrackablePage.class.php @@ -35,7 +35,7 @@ interface ITrackablePage { /** * Returns the parent object id. * - * @return integer + * @return int */ public function getParentObjectID(); @@ -49,7 +49,7 @@ interface ITrackablePage { /** * Returns the object id. * - * @return integer + * @return int */ public function getObjectID(); } diff --git a/wcfsetup/install/files/lib/page/MediaPage.class.php b/wcfsetup/install/files/lib/page/MediaPage.class.php index 2a922fe7dd..368b57f43e 100644 --- a/wcfsetup/install/files/lib/page/MediaPage.class.php +++ b/wcfsetup/install/files/lib/page/MediaPage.class.php @@ -39,7 +39,7 @@ class MediaPage extends AbstractPage { /** * id of the requested media file - * @var integer + * @var int */ public $mediaID = 0; diff --git a/wcfsetup/install/files/lib/page/MembersListPage.class.php b/wcfsetup/install/files/lib/page/MembersListPage.class.php index 183bed83b7..fffb677ae5 100644 --- a/wcfsetup/install/files/lib/page/MembersListPage.class.php +++ b/wcfsetup/install/files/lib/page/MembersListPage.class.php @@ -69,7 +69,7 @@ class MembersListPage extends SortablePage { /** * id of a user search - * @var integer + * @var int */ public $searchID = 0; diff --git a/wcfsetup/install/files/lib/page/ModerationListPage.class.php b/wcfsetup/install/files/lib/page/ModerationListPage.class.php index 1bf0d8b26c..779caf868f 100644 --- a/wcfsetup/install/files/lib/page/ModerationListPage.class.php +++ b/wcfsetup/install/files/lib/page/ModerationListPage.class.php @@ -21,7 +21,7 @@ use wcf\util\HeaderUtil; class ModerationListPage extends SortablePage { /** * assigned user id - * @var integer + * @var int */ public $assignedUserID = -1; @@ -43,7 +43,7 @@ class ModerationListPage extends SortablePage { /** * definition id for filtering - * @var integer + * @var int */ public $definitionID = 0; @@ -64,7 +64,7 @@ class ModerationListPage extends SortablePage { /** * status bit - * @var integer + * @var int */ public $status = -1; diff --git a/wcfsetup/install/files/lib/page/MultipleLinkPage.class.php b/wcfsetup/install/files/lib/page/MultipleLinkPage.class.php index 6fc709fdf9..495fc2a78b 100644 --- a/wcfsetup/install/files/lib/page/MultipleLinkPage.class.php +++ b/wcfsetup/install/files/lib/page/MultipleLinkPage.class.php @@ -18,37 +18,37 @@ use wcf\system\WCF; abstract class MultipleLinkPage extends AbstractPage { /** * current page number - * @var integer + * @var int */ public $pageNo = 0; /** * number of all pages - * @var integer + * @var int */ public $pages = 0; /** * number of items shown per page - * @var integer + * @var int */ public $itemsPerPage = 20; /** * number of all items - * @var integer + * @var int */ public $items = 0; /** * indicates the range of the listed items - * @var integer + * @var int */ public $startIndex = 0; /** * indicates the range of the listed items. - * @var integer + * @var int */ public $endIndex = 0; @@ -189,7 +189,7 @@ abstract class MultipleLinkPage extends AbstractPage { /** * Counts the displayed items. * - * @return integer + * @return int */ public function countItems() { // call countItems event diff --git a/wcfsetup/install/files/lib/page/SearchResultPage.class.php b/wcfsetup/install/files/lib/page/SearchResultPage.class.php index ea04dee6a5..5e1cb26918 100644 --- a/wcfsetup/install/files/lib/page/SearchResultPage.class.php +++ b/wcfsetup/install/files/lib/page/SearchResultPage.class.php @@ -41,7 +41,7 @@ class SearchResultPage extends MultipleLinkPage { /** * search id - * @var integer + * @var int */ public $searchID = 0; diff --git a/wcfsetup/install/files/lib/page/TaggedPage.class.php b/wcfsetup/install/files/lib/page/TaggedPage.class.php index 5bb968a00f..20573f0a31 100644 --- a/wcfsetup/install/files/lib/page/TaggedPage.class.php +++ b/wcfsetup/install/files/lib/page/TaggedPage.class.php @@ -35,7 +35,7 @@ class TaggedPage extends MultipleLinkPage { /** * tag id - * @var integer + * @var int */ public $tagID = 0; diff --git a/wcfsetup/install/files/lib/page/UserPage.class.php b/wcfsetup/install/files/lib/page/UserPage.class.php index 478b8198a6..26eb3743e8 100644 --- a/wcfsetup/install/files/lib/page/UserPage.class.php +++ b/wcfsetup/install/files/lib/page/UserPage.class.php @@ -48,7 +48,7 @@ class UserPage extends AbstractPage { /** * user id - * @var integer + * @var int */ public $userID = 0; diff --git a/wcfsetup/install/files/lib/system/MetaTagHandler.class.php b/wcfsetup/install/files/lib/system/MetaTagHandler.class.php index 53d436c89d..c5af8060bf 100644 --- a/wcfsetup/install/files/lib/system/MetaTagHandler.class.php +++ b/wcfsetup/install/files/lib/system/MetaTagHandler.class.php @@ -13,13 +13,13 @@ use wcf\util\StringUtil; class MetaTagHandler extends SingletonFactory implements \Countable, \Iterator { /** * current iterator index - * @var integer + * @var int */ protected $index = 0; /** * list of index to object relation - * @var integer[] + * @var int[] */ protected $indexToObject = []; diff --git a/wcfsetup/install/files/lib/system/Regex.class.php b/wcfsetup/install/files/lib/system/Regex.class.php index 2e729b17c3..203313909c 100644 --- a/wcfsetup/install/files/lib/system/Regex.class.php +++ b/wcfsetup/install/files/lib/system/Regex.class.php @@ -19,91 +19,91 @@ final class Regex { /** * indicates that no modifier is applied - * @var integer + * @var int */ const MODIFIER_NONE = 0; /** * indicates case insensitive matching - * @var integer + * @var int */ const CASE_INSENSITIVE = 1; /** * indicates ungreedy matching - * @var integer + * @var int */ const UNGREEDY = 2; /** * indicates that no extra time is spent on analysing - * @var integer + * @var int */ const NO_ANALYSE = 8; /** * indicates that whitespaces are ignored in regex - * @var integer + * @var int */ const IGNORE_WHITESPACE = 16; /** * indicates that a dot matches every char - * @var integer + * @var int */ const DOT_ALL = 32; /** * indicates that ^/$ match start and end of a line instead of the whole string - * @var integer + * @var int */ const MULTILINE = 64; /** * indicates that pattern string is treated as UTF-8. - * @var integer + * @var int */ const UTF_8 = 128; /** * indicates that no flags are set - * @var integer + * @var int */ const FLAGS_NONE = 0; /** * indicates that default flags are set - * @var integer + * @var int */ const FLAGS_DEFAULT = 1; /** * captures the offset of an match (all excluding replace) - * @var integer + * @var int */ const CAPTURE_OFFSET = 2; /** * indicates default pattern ordering (match all only) - * @var integer + * @var int */ const ORDER_MATCH_BY_PATTERN = 4; /** * indicates alternative set ordering (match all only) - * @var integer + * @var int */ const ORDER_MATCH_BY_SET = 8; /** * indicates that only non-empty pieces will be splitted (split only) - * @var integer + * @var int */ const SPLIT_NON_EMPTY_ONLY = 16; /** * indicates that the split delimiter is returned as well (split only) - * @var integer + * @var int */ const CAPTURE_SPLIT_DELIMITER = 32; @@ -123,7 +123,7 @@ final class Regex { * Creates a regex. * * @param string $regex - * @param integer $modifier + * @param int $modifier */ public function __construct($regex, $modifier = self::MODIFIER_NONE) { // escape delimiter @@ -178,8 +178,8 @@ final class Regex { * * @param string $string string to match * @param boolean $all indicates if all matches are collected - * @param integer $flags match flags - * @return integer return value of preg_match(_all) + * @param int $flags match flags + * @return int return value of preg_match(_all) */ public function match($string, $all = false, $flags = self::FLAGS_DEFAULT) { $matchFlags = 0; @@ -215,7 +215,7 @@ final class Regex { * Splits the string with the regex. * * @param string $string - * @param integer $flags + * @param int $flags * @return string[] */ public function split($string, $flags = self::FLAGS_DEFAULT) { diff --git a/wcfsetup/install/files/lib/system/WCF.class.php b/wcfsetup/install/files/lib/system/WCF.class.php index f4d623bd8c..6529ae6b11 100644 --- a/wcfsetup/install/files/lib/system/WCF.class.php +++ b/wcfsetup/install/files/lib/system/WCF.class.php @@ -78,7 +78,7 @@ if (!defined('NO_IMPORTS')) { class WCF { /** * list of supported legacy API versions - * @var integer[] + * @var int[] * @deprecated 5.2 */ private static $supportedLegacyApiVersions = [2017, 2018]; @@ -302,10 +302,10 @@ class WCF { /** * Turns PHP errors into an ErrorException. * - * @param integer $severity + * @param int $severity * @param string $message * @param string $file - * @param integer $line + * @param int $line * @throws ErrorException */ public static final function handleError($severity, $message, $file, $line) { @@ -705,7 +705,7 @@ class WCF { /** * Loads an application on runtime, do not use this outside the package installation. * - * @param integer $packageID + * @param int $packageID */ public static function loadRuntimeApplication($packageID) { $package = new Package($packageID); @@ -792,7 +792,7 @@ class WCF { /** * Changes the active language. * - * @param integer $languageID + * @param int $languageID */ public static final function setLanguage($languageID) { if (!$languageID || LanguageFactory::getInstance()->getLanguage($languageID) === null) { @@ -1051,7 +1051,7 @@ class WCF { /** * Returns number of available updates. * - * @return integer + * @return int */ public function getAvailableUpdates() { $data = PackageUpdateCacheBuilder::getInstance()->getData(); @@ -1128,7 +1128,7 @@ class WCF { /** * Returns true if the given API version is currently supported. * - * @param integer $apiVersion + * @param int $apiVersion * @return boolean * @deprecated 5.2 */ @@ -1139,7 +1139,7 @@ class WCF { /** * Returns the list of supported legacy API versions. * - * @return integer[] + * @return int[] * @deprecated 5.2 */ public static function getSupportedLegacyApiVersions() { diff --git a/wcfsetup/install/files/lib/system/WCFSetup.class.php b/wcfsetup/install/files/lib/system/WCFSetup.class.php index 5501823ac4..f4b57fb5ac 100644 --- a/wcfsetup/install/files/lib/system/WCFSetup.class.php +++ b/wcfsetup/install/files/lib/system/WCFSetup.class.php @@ -208,7 +208,7 @@ class WCFSetup extends WCF { /** * Calculates the current state of the progress bar. * - * @param integer $currentStep + * @param int $currentStep */ protected function calcProgress($currentStep) { // calculate progress @@ -820,7 +820,7 @@ class WCFSetup extends WCF { * which will be created in the next step. * * @param \wcf\system\database\Database $db - * @param integer $dbNumber + * @param int $dbNumber * @return string[] list of already existing tables */ protected function getConflictedTables($db, $dbNumber) { diff --git a/wcfsetup/install/files/lib/system/acl/ACLHandler.class.php b/wcfsetup/install/files/lib/system/acl/ACLHandler.class.php index 3017d754fc..f16b0f8bd7 100644 --- a/wcfsetup/install/files/lib/system/acl/ACLHandler.class.php +++ b/wcfsetup/install/files/lib/system/acl/ACLHandler.class.php @@ -25,7 +25,7 @@ use wcf\util\StringUtil; class ACLHandler extends SingletonFactory { /** * indicates if assignment of variables is disabled - * @var integer + * @var int */ protected $assignVariablesDisabled = false; @@ -52,7 +52,7 @@ class ACLHandler extends SingletonFactory { /** * Assigns the acl values to the template. * - * @param integer $objectTypeID + * @param int $objectTypeID */ public function assignVariables($objectTypeID) { if (WCF::getTPL()->get('aclValues') === null) { @@ -132,7 +132,7 @@ class ACLHandler extends SingletonFactory { * Note: This method primarily only exists for form builder. If you are not * using form builder, you do not need this method. * - * @param integer $objectTypeID + * @param int $objectTypeID * @param array|null $valuesSource array used to read the values from (if `null`, `$_POST['aclValues']` is used) * @since 5.2 */ @@ -170,7 +170,7 @@ class ACLHandler extends SingletonFactory { * Note: This method primarily only exists for form builder. If you are not * using form builder, you do not need this method. * - * @param integer $objectTypeID + * @param int $objectTypeID * @since 5.2 */ public function resetValues($objectTypeID) { @@ -189,7 +189,7 @@ class ACLHandler extends SingletonFactory { * Returns the id of the given acl object type. * * @param string $objectType - * @return integer + * @return int * @throws SystemException */ public function getObjectTypeID($objectType) { @@ -204,7 +204,7 @@ class ACLHandler extends SingletonFactory { * Returns the acl option category with the given object type id and name * or `null` if no such category exists. * - * @param integer $objectTypeID + * @param int $objectTypeID * @param string $categoryName * @return ACLOptionCategory|null */ @@ -219,8 +219,8 @@ class ACLHandler extends SingletonFactory { /** * Saves acl for a given object. * - * @param integer $objectID - * @param integer $objectTypeID + * @param int $objectID + * @param int $objectTypeID */ public function save($objectID, $objectTypeID) { // get options @@ -235,7 +235,7 @@ class ACLHandler extends SingletonFactory { * * @param ACLOptionList $optionList * @param string $type - * @param integer $objectID + * @param int $objectID */ protected function replaceValues(ACLOptionList $optionList, $type, $objectID) { $options = $optionList->getObjects(); @@ -288,7 +288,7 @@ class ACLHandler extends SingletonFactory { /** * Returns a list of permissions by object type id. * - * @param integer $objectTypeID + * @param int $objectTypeID * @param array $objectIDs * @param string $categoryName * @param boolean $settingsView @@ -431,7 +431,7 @@ class ACLHandler extends SingletonFactory { /** * Returns a list of options by object type id. * - * @param integer $objectTypeID + * @param int $objectTypeID * @param string $categoryName * @return ACLOptionList */ @@ -455,8 +455,8 @@ class ACLHandler extends SingletonFactory { /** * Removes ACL values from database. * - * @param integer $objectTypeID - * @param integer[] $objectIDs + * @param int $objectTypeID + * @param int[] $objectIDs * @param ACLOptionCategory $category */ public function removeValues($objectTypeID, array $objectIDs, ACLOptionCategory $category = null) { diff --git a/wcfsetup/install/files/lib/system/acl/simple/SimpleAclHandler.class.php b/wcfsetup/install/files/lib/system/acl/simple/SimpleAclHandler.class.php index 8864051984..7d05627328 100644 --- a/wcfsetup/install/files/lib/system/acl/simple/SimpleAclHandler.class.php +++ b/wcfsetup/install/files/lib/system/acl/simple/SimpleAclHandler.class.php @@ -36,7 +36,7 @@ class SimpleAclHandler extends SingletonFactory { * Returns the object type id by object type. * * @param string $objectType object type name - * @return integer object type id + * @return int object type id * @throws \InvalidArgumentException */ public function getObjectTypeID($objectType) { @@ -51,7 +51,7 @@ class SimpleAclHandler extends SingletonFactory { * Returns the user and group values for provided object type and object id. * * @param string $objectType object type name - * @param integer $objectID object id + * @param int $objectID object id * @return array array containing the keys `allowAll`, `user` and `group` */ public function getValues($objectType, $objectID) { @@ -104,7 +104,7 @@ class SimpleAclHandler extends SingletonFactory { * Sets the user and group values for provided object type and object id. * * @param string $objectType object type name - * @param integer $objectID object id + * @param int $objectID object id * @param array $values list of user and group ids * @throws \InvalidArgumentException */ diff --git a/wcfsetup/install/files/lib/system/acl/simple/SimpleAclResolver.class.php b/wcfsetup/install/files/lib/system/acl/simple/SimpleAclResolver.class.php index a0b232a7d1..44296759be 100644 --- a/wcfsetup/install/files/lib/system/acl/simple/SimpleAclResolver.class.php +++ b/wcfsetup/install/files/lib/system/acl/simple/SimpleAclResolver.class.php @@ -26,7 +26,7 @@ class SimpleAclResolver extends SingletonFactory { * one of its group is allowed. * * @param string $objectType object type name - * @param integer $objectID object id + * @param int $objectID object id * @param User|null $user user object, if `null` uses current user * @return boolean false if user is not allowed */ diff --git a/wcfsetup/install/files/lib/system/application/AbstractApplication.class.php b/wcfsetup/install/files/lib/system/application/AbstractApplication.class.php index 37ba6dee08..d7ef75cd65 100644 --- a/wcfsetup/install/files/lib/system/application/AbstractApplication.class.php +++ b/wcfsetup/install/files/lib/system/application/AbstractApplication.class.php @@ -22,13 +22,13 @@ abstract class AbstractApplication extends SingletonFactory implements IApplicat /** * evaluation end date, `0` to disable - * @var integer + * @var int */ protected $evaluationEndDate = 0; /** * WoltLab Plugin-Store file id - * @var integer + * @var int */ protected $evaluationPluginStoreID = 0; @@ -40,7 +40,7 @@ abstract class AbstractApplication extends SingletonFactory implements IApplicat /** * application's package id - * @var integer + * @var int */ protected $packageID = 0; diff --git a/wcfsetup/install/files/lib/system/application/ApplicationHandler.class.php b/wcfsetup/install/files/lib/system/application/ApplicationHandler.class.php index b3a95ffcb0..c56a657ee5 100644 --- a/wcfsetup/install/files/lib/system/application/ApplicationHandler.class.php +++ b/wcfsetup/install/files/lib/system/application/ApplicationHandler.class.php @@ -71,7 +71,7 @@ class ApplicationHandler extends SingletonFactory { * Returns an application delivered by the package with the given id or `null` * if no such application exists. * - * @param integer $packageID package id + * @param int $packageID package id * @return Application|null application object * @since 3.0 */ @@ -167,7 +167,7 @@ class ApplicationHandler extends SingletonFactory { /** * Returns abbreviation for a given package id or `null` if application is unknown. * - * @param integer $packageID unique package id + * @param int $packageID unique package id * @return string|null */ public function getAbbreviation($packageID) { diff --git a/wcfsetup/install/files/lib/system/application/IApplication.class.php b/wcfsetup/install/files/lib/system/application/IApplication.class.php index 4b9197e8cb..1bb28b8320 100644 --- a/wcfsetup/install/files/lib/system/application/IApplication.class.php +++ b/wcfsetup/install/files/lib/system/application/IApplication.class.php @@ -26,7 +26,7 @@ interface IApplication { * Returns the timestamp at which the evaluation period ends for this application. The * special value `0` indicates that there is no active evaluation period at this time. * - * @return integer + * @return int */ public function getEvaluationEndDate(); @@ -34,7 +34,7 @@ interface IApplication { * Returns the id of the WoltLab Plugin-Store file where this app is for purchase. The * special value `0` indicates that there is no such file or it is a WoltLab app. * - * @return integer + * @return int */ public function getEvaluationPluginStoreID(); diff --git a/wcfsetup/install/files/lib/system/attachment/AttachmentHandler.class.php b/wcfsetup/install/files/lib/system/attachment/AttachmentHandler.class.php index bbf1007e3e..561643bb55 100644 --- a/wcfsetup/install/files/lib/system/attachment/AttachmentHandler.class.php +++ b/wcfsetup/install/files/lib/system/attachment/AttachmentHandler.class.php @@ -31,13 +31,13 @@ class AttachmentHandler implements \Countable { /** * object id - * @var integer + * @var int */ protected $objectID = 0; /** * parent object id - * @var integer + * @var int */ protected $parentObjectID = 0; @@ -57,9 +57,9 @@ class AttachmentHandler implements \Countable { * Creates a new AttachmentHandler object. * * @param string $objectType - * @param integer $objectID + * @param int $objectID * @param string $tmpHash - * @param integer $parentObjectID + * @param int $parentObjectID * @throws SystemException */ public function __construct($objectType, $objectID, $tmpHash = '', $parentObjectID = 0) { @@ -112,7 +112,7 @@ class AttachmentHandler implements \Countable { /** * Sets the object id of temporary saved attachments. * - * @param integer $objectID + * @param int $objectID */ public function updateObjectID($objectID) { $conditions = new PreparedStatementConditionBuilder(); @@ -136,8 +136,8 @@ class AttachmentHandler implements \Countable { * Transfers attachments to a different object id of the same type (e.g. merging content) * * @param string $objectType - * @param integer $newObjectID - * @param integer[] $oldObjectIDs + * @param int $newObjectID + * @param int[] $oldObjectIDs */ public static function transferAttachments($objectType, $newObjectID, array $oldObjectIDs) { $conditions = new PreparedStatementConditionBuilder(); @@ -157,7 +157,7 @@ class AttachmentHandler implements \Countable { * Removes all attachments for given object ids by type. * * @param string $objectType - * @param integer[] $objectIDs + * @param int[] $objectIDs */ public static function removeAttachments($objectType, array $objectIDs) { $attachmentList = new AttachmentList(); @@ -270,7 +270,7 @@ class AttachmentHandler implements \Countable { * Returns the id of the object the handled attachments belong to. If the object does not * exist (yet), `0` is returned. * - * @return integer + * @return int * @since 5.2 */ public function getObjectID() { @@ -281,7 +281,7 @@ class AttachmentHandler implements \Countable { * Returns the id of the parent object of the object the handled attachments belong to. * If no such parent object exists, `0` is returned. * - * @return integer + * @return int * @since 5.2 */ public function getParentObjectID() { diff --git a/wcfsetup/install/files/lib/system/attachment/IAttachmentObjectType.class.php b/wcfsetup/install/files/lib/system/attachment/IAttachmentObjectType.class.php index 26ded85bd4..e07ea34dfc 100644 --- a/wcfsetup/install/files/lib/system/attachment/IAttachmentObjectType.class.php +++ b/wcfsetup/install/files/lib/system/attachment/IAttachmentObjectType.class.php @@ -15,7 +15,7 @@ interface IAttachmentObjectType { /** * Returns true if the active user has the permission to download attachments. * - * @param integer $objectID + * @param int $objectID * @return boolean */ public function canDownload($objectID); @@ -24,7 +24,7 @@ interface IAttachmentObjectType { * Returns true if the active user has the permission to view attachment * previews (thumbnails). * - * @param integer $objectID + * @param int $objectID * @return boolean */ public function canViewPreview($objectID); @@ -32,8 +32,8 @@ interface IAttachmentObjectType { /** * Returns true if the active user has the permission to upload attachments. * - * @param integer $objectID - * @param integer $parentObjectID + * @param int $objectID + * @param int $parentObjectID * @return boolean */ public function canUpload($objectID, $parentObjectID = 0); @@ -41,7 +41,7 @@ interface IAttachmentObjectType { /** * Returns true if the active user has the permission to delete attachments. * - * @param integer $objectID + * @param int $objectID * @return boolean */ public function canDelete($objectID); @@ -49,7 +49,7 @@ interface IAttachmentObjectType { /** * Returns the maximum filesize for an attachment. * - * @return integer + * @return int */ public function getMaxSize(); @@ -63,14 +63,14 @@ interface IAttachmentObjectType { /** * Returns the maximum number of attachments. * - * @return integer + * @return int */ public function getMaxCount(); /** * Returns the container object of an attachment or `null` if the container object does not exist. * - * @param integer $objectID + * @param int $objectID * @return IUserContent|null */ public function getObject($objectID); @@ -78,7 +78,7 @@ interface IAttachmentObjectType { /** * Caches the data of the given container objects. * - * @param integer[] $objectIDs + * @param int[] $objectIDs */ public function cacheObjects(array $objectIDs); diff --git a/wcfsetup/install/files/lib/system/bbcode/AttachmentBBCode.class.php b/wcfsetup/install/files/lib/system/bbcode/AttachmentBBCode.class.php index 427d2bddcb..ea7bc2dcf9 100644 --- a/wcfsetup/install/files/lib/system/bbcode/AttachmentBBCode.class.php +++ b/wcfsetup/install/files/lib/system/bbcode/AttachmentBBCode.class.php @@ -24,7 +24,7 @@ class AttachmentBBCode extends AbstractBBCode { /** * active object id - * @var integer + * @var int * @deprecated */ protected static $objectID = 0; @@ -194,7 +194,7 @@ class AttachmentBBCode extends AbstractBBCode { /** * Sets the active object id. * - * @param integer $objectID + * @param int $objectID * @deprecated */ public static function setObjectID($objectID) { diff --git a/wcfsetup/install/files/lib/system/benchmark/Benchmark.class.php b/wcfsetup/install/files/lib/system/benchmark/Benchmark.class.php index f5cca5226c..e07c5fb427 100644 --- a/wcfsetup/install/files/lib/system/benchmark/Benchmark.class.php +++ b/wcfsetup/install/files/lib/system/benchmark/Benchmark.class.php @@ -36,7 +36,7 @@ class Benchmark extends SingletonFactory { /** * number of executed sql queries - * @var integer + * @var int */ protected $queryCount = 0; @@ -58,8 +58,8 @@ class Benchmark extends SingletonFactory { * Starts a benchmark. * * @param string $text - * @param integer $type - * @return integer index + * @param int $type + * @return int index */ public function start($text, $type = self::TYPE_OTHER) { $newIndex = count($this->items); @@ -75,7 +75,7 @@ class Benchmark extends SingletonFactory { * Stops the benchmark with the given index. If no index is given, the * latest benchmark is stopped. * - * @param integer $index + * @param int $index */ public function stop($index = null) { if ($index === null) { @@ -134,7 +134,7 @@ class Benchmark extends SingletonFactory { /** * Returns the number of executed sql queries. * - * @return integer + * @return int */ public function getQueryCount() { return $this->queryCount; diff --git a/wcfsetup/install/files/lib/system/box/AbstractDatabaseObjectListBoxController.class.php b/wcfsetup/install/files/lib/system/box/AbstractDatabaseObjectListBoxController.class.php index d6b43744c5..6c04ff641f 100644 --- a/wcfsetup/install/files/lib/system/box/AbstractDatabaseObjectListBoxController.class.php +++ b/wcfsetup/install/files/lib/system/box/AbstractDatabaseObjectListBoxController.class.php @@ -43,7 +43,7 @@ abstract class AbstractDatabaseObjectListBoxController extends AbstractBoxContro /** * default limit value for the maximum number of shown database objects * if this property is null, setting a limit is disabled - * @var integer + * @var int */ public $defaultLimit; @@ -61,19 +61,19 @@ abstract class AbstractDatabaseObjectListBoxController extends AbstractBoxContro /** * limit value for the maximum number of shown database objects - * @var integer + * @var int */ public $limit; /** * maximum limit value, if `null` no maximum is set - * @var integer + * @var int */ public $maximumLimit; /** * minimum limit value - * @var integer + * @var int */ public $minimumLimit = 1; diff --git a/wcfsetup/install/files/lib/system/box/BoxHandler.class.php b/wcfsetup/install/files/lib/system/box/BoxHandler.class.php index 6746f4bdb4..9aabbad974 100644 --- a/wcfsetup/install/files/lib/system/box/BoxHandler.class.php +++ b/wcfsetup/install/files/lib/system/box/BoxHandler.class.php @@ -107,7 +107,7 @@ class BoxHandler extends SingletonFactory { /** * Returns the box with the given id or `null` if it does not exist. * - * @param integer $boxID + * @param int $boxID * @return Box|null */ public function getBox($boxID) { @@ -217,7 +217,7 @@ class BoxHandler extends SingletonFactory { /** * Returns the list of boxes sorted by their global and page-local show order. * - * @param integer $pageID page id + * @param int $pageID page id * @param boolean $forDisplay enables content loading and removes inaccessible boxes from view * @return Box[][] */ @@ -307,7 +307,7 @@ class BoxHandler extends SingletonFactory { /** * Returns true if provided page id uses a custom box show order. * - * @param integer $pageID page id + * @param int $pageID page id * @return boolean true if there is a custom show order for boxes */ public static function hasCustomShowOrder($pageID) { diff --git a/wcfsetup/install/files/lib/system/box/TodaysBirthdaysBoxController.class.php b/wcfsetup/install/files/lib/system/box/TodaysBirthdaysBoxController.class.php index aee80c2aef..5afb2a529d 100644 --- a/wcfsetup/install/files/lib/system/box/TodaysBirthdaysBoxController.class.php +++ b/wcfsetup/install/files/lib/system/box/TodaysBirthdaysBoxController.class.php @@ -136,7 +136,7 @@ class TodaysBirthdaysBoxController extends AbstractDatabaseObjectListBoxControll /** * Filters given user ids. * - * @param integer[] $userIDs + * @param int[] $userIDs */ protected function filterUserIDs(&$userIDs) { // does nothing, can be overwritten by child classes diff --git a/wcfsetup/install/files/lib/system/box/UserListBoxController.class.php b/wcfsetup/install/files/lib/system/box/UserListBoxController.class.php index 56797fa4d2..9894735f2c 100644 --- a/wcfsetup/install/files/lib/system/box/UserListBoxController.class.php +++ b/wcfsetup/install/files/lib/system/box/UserListBoxController.class.php @@ -47,7 +47,7 @@ class UserListBoxController extends AbstractDatabaseObjectListBoxController { /** * ids of the shown users loaded from cache - * @var integer[]|null + * @var int[]|null */ public $userIDs; diff --git a/wcfsetup/install/files/lib/system/breadcrumb/Breadcrumbs.class.php b/wcfsetup/install/files/lib/system/breadcrumb/Breadcrumbs.class.php index a20c90bad9..0161299b6f 100644 --- a/wcfsetup/install/files/lib/system/breadcrumb/Breadcrumbs.class.php +++ b/wcfsetup/install/files/lib/system/breadcrumb/Breadcrumbs.class.php @@ -57,7 +57,7 @@ class Breadcrumbs extends SingletonFactory implements \Countable, \Iterator { * Replaces a breadcrumb, returns true if replacement was successful. * * @param Breadcrumb $item - * @param integer $index + * @param int $index * @deprecated 3.0 */ public function replace(Breadcrumb $item, $index) { @@ -67,7 +67,7 @@ class Breadcrumbs extends SingletonFactory implements \Countable, \Iterator { /** * Removes a breadcrumb, returns true if deletion was successful. * - * @param integer $index + * @param int $index * @deprecated 3.0 */ public function remove($index) { diff --git a/wcfsetup/install/files/lib/system/bulk/processing/user/AbstractUserGroupsUserBulkProcessingAction.class.php b/wcfsetup/install/files/lib/system/bulk/processing/user/AbstractUserGroupsUserBulkProcessingAction.class.php index c5240cce4c..a4fc794b7c 100644 --- a/wcfsetup/install/files/lib/system/bulk/processing/user/AbstractUserGroupsUserBulkProcessingAction.class.php +++ b/wcfsetup/install/files/lib/system/bulk/processing/user/AbstractUserGroupsUserBulkProcessingAction.class.php @@ -35,7 +35,7 @@ abstract class AbstractUserGroupsUserBulkProcessingAction extends AbstractUserBu /** * ids of selected user groups - * @var integer[] + * @var int[] */ public $userGroupIDs = []; diff --git a/wcfsetup/install/files/lib/system/bulk/processing/user/SendMailUserBulkProcessingAction.class.php b/wcfsetup/install/files/lib/system/bulk/processing/user/SendMailUserBulkProcessingAction.class.php index 67df8d08b7..573aaf4b3c 100644 --- a/wcfsetup/install/files/lib/system/bulk/processing/user/SendMailUserBulkProcessingAction.class.php +++ b/wcfsetup/install/files/lib/system/bulk/processing/user/SendMailUserBulkProcessingAction.class.php @@ -19,7 +19,7 @@ use wcf\util\StringUtil; class SendMailUserBulkProcessingAction extends AbstractUserBulkProcessingAction { /** * is 1 if HTML for the email is enabled - * @var integer + * @var int */ public $enableHTML = 0; diff --git a/wcfsetup/install/files/lib/system/cache/builder/AbstractCacheBuilder.class.php b/wcfsetup/install/files/lib/system/cache/builder/AbstractCacheBuilder.class.php index 5c7e329e54..fe1fb874e8 100644 --- a/wcfsetup/install/files/lib/system/cache/builder/AbstractCacheBuilder.class.php +++ b/wcfsetup/install/files/lib/system/cache/builder/AbstractCacheBuilder.class.php @@ -21,7 +21,7 @@ abstract class AbstractCacheBuilder extends SingletonFactory implements ICacheBu /** * maximum cache lifetime in seconds, '0' equals infinite - * @var integer + * @var int */ protected $maxLifetime = 0; diff --git a/wcfsetup/install/files/lib/system/cache/builder/AbstractSortedUserCacheBuilder.class.php b/wcfsetup/install/files/lib/system/cache/builder/AbstractSortedUserCacheBuilder.class.php index 281c454818..c5678540a7 100644 --- a/wcfsetup/install/files/lib/system/cache/builder/AbstractSortedUserCacheBuilder.class.php +++ b/wcfsetup/install/files/lib/system/cache/builder/AbstractSortedUserCacheBuilder.class.php @@ -14,7 +14,7 @@ use wcf\data\user\UserList; abstract class AbstractSortedUserCacheBuilder extends AbstractCacheBuilder { /** * default limit value if no limit parameter is provided - * @var integer + * @var int */ protected $defaultLimit = 5; diff --git a/wcfsetup/install/files/lib/system/cache/builder/ICacheBuilder.class.php b/wcfsetup/install/files/lib/system/cache/builder/ICacheBuilder.class.php index 8074c1f52d..02cc3cf2a0 100644 --- a/wcfsetup/install/files/lib/system/cache/builder/ICacheBuilder.class.php +++ b/wcfsetup/install/files/lib/system/cache/builder/ICacheBuilder.class.php @@ -22,7 +22,7 @@ interface ICacheBuilder { /** * Returns maximum lifetime for cache resource. * - * @return integer + * @return int */ public function getMaxLifetime(); diff --git a/wcfsetup/install/files/lib/system/cache/builder/TagCloudCacheBuilder.class.php b/wcfsetup/install/files/lib/system/cache/builder/TagCloudCacheBuilder.class.php index 52df2f40ed..d93e5d20f7 100644 --- a/wcfsetup/install/files/lib/system/cache/builder/TagCloudCacheBuilder.class.php +++ b/wcfsetup/install/files/lib/system/cache/builder/TagCloudCacheBuilder.class.php @@ -23,7 +23,7 @@ class TagCloudCacheBuilder extends AbstractCacheBuilder { /** * language ids - * @var integer + * @var int */ protected $languageIDs = []; @@ -34,7 +34,7 @@ class TagCloudCacheBuilder extends AbstractCacheBuilder { /** * object type ids - * @var integer + * @var int */ protected $objectTypeIDs = []; @@ -59,8 +59,8 @@ class TagCloudCacheBuilder extends AbstractCacheBuilder { /** * Parses a list of language ids. If one given language id evaluates to '0' all ids will be discarded. * - * @param integer[] $parameters - * @return integer[] + * @param int[] $parameters + * @return int[] */ protected function parseLanguageIDs(array $parameters) { // handle special '0' value @@ -115,7 +115,7 @@ class TagCloudCacheBuilder extends AbstractCacheBuilder { * * @param TagCloudTag $tagA * @param TagCloudTag $tagB - * @return integer + * @return int */ protected static function compareTags($tagA, $tagB) { if ($tagA->counter > $tagB->counter) return -1; diff --git a/wcfsetup/install/files/lib/system/cache/runtime/AbstractRuntimeCache.class.php b/wcfsetup/install/files/lib/system/cache/runtime/AbstractRuntimeCache.class.php index d2bd998e2f..f6fe2a8d7c 100644 --- a/wcfsetup/install/files/lib/system/cache/runtime/AbstractRuntimeCache.class.php +++ b/wcfsetup/install/files/lib/system/cache/runtime/AbstractRuntimeCache.class.php @@ -22,7 +22,7 @@ abstract class AbstractRuntimeCache extends SingletonFactory implements IRuntime /** * ids of objects which will be fetched next - * @var integer[] + * @var int[] */ protected $objectIDs = []; diff --git a/wcfsetup/install/files/lib/system/cache/runtime/IRuntimeCache.class.php b/wcfsetup/install/files/lib/system/cache/runtime/IRuntimeCache.class.php index 117f7f31bf..9ec0677390 100644 --- a/wcfsetup/install/files/lib/system/cache/runtime/IRuntimeCache.class.php +++ b/wcfsetup/install/files/lib/system/cache/runtime/IRuntimeCache.class.php @@ -16,7 +16,7 @@ interface IRuntimeCache { * Caches the given object id so that during the next object fetch, the object with * this id will also be fetched. * - * @param integer $objectID + * @param int $objectID */ public function cacheObjectID($objectID); @@ -24,7 +24,7 @@ interface IRuntimeCache { * Caches the given object ids so that during the next object fetch, the objects with * these ids will also be fetched. * - * @param integer[] $objectIDs + * @param int[] $objectIDs */ public function cacheObjectIDs(array $objectIDs); @@ -40,7 +40,7 @@ interface IRuntimeCache { * If the given object id should not have been cached before, it will be cached * during this method call and the object, if existing, will be returned. * - * @param integer $objectID + * @param int $objectID * @return DatabaseObject|null */ public function getObject($objectID); @@ -51,7 +51,7 @@ interface IRuntimeCache { * If the given object ids should not have been cached before, they will be cached * during this method call and the objects, if existing, will be returned. * - * @param integer[] $objectIDs + * @param int[] $objectIDs * @return DatabaseObject[] */ public function getObjects(array $objectIDs); @@ -59,7 +59,7 @@ interface IRuntimeCache { /** * Removes the object with the given id from the runtime cache if it has already been loaded. * - * @param integer $objectID + * @param int $objectID */ public function removeObject($objectID); @@ -67,7 +67,7 @@ interface IRuntimeCache { /** * Removes the objects with the given ids from the runtime cache if they have already been loaded. * - * @param integer[] $objectIDs + * @param int[] $objectIDs */ public function removeObjects(array $objectIDs); } diff --git a/wcfsetup/install/files/lib/system/cache/source/DiskCacheSource.class.php b/wcfsetup/install/files/lib/system/cache/source/DiskCacheSource.class.php index ff1fb0bd4a..9a7fa539e5 100644 --- a/wcfsetup/install/files/lib/system/cache/source/DiskCacheSource.class.php +++ b/wcfsetup/install/files/lib/system/cache/source/DiskCacheSource.class.php @@ -110,7 +110,7 @@ class DiskCacheSource implements ICacheSource { * Determines whether the cache needs to be rebuild or not. * * @param string $filename - * @param integer $maxLifetime + * @param int $maxLifetime * @return boolean */ protected function needRebuild($filename, $maxLifetime) { diff --git a/wcfsetup/install/files/lib/system/cache/source/ICacheSource.class.php b/wcfsetup/install/files/lib/system/cache/source/ICacheSource.class.php index 24457fed8f..cb09a0f558 100644 --- a/wcfsetup/install/files/lib/system/cache/source/ICacheSource.class.php +++ b/wcfsetup/install/files/lib/system/cache/source/ICacheSource.class.php @@ -27,7 +27,7 @@ interface ICacheSource { * Returns a cached variable. * * @param string $cacheName - * @param integer $maxLifetime + * @param int $maxLifetime * @return mixed */ public function get($cacheName, $maxLifetime); @@ -37,7 +37,7 @@ interface ICacheSource { * * @param string $cacheName * @param mixed $value - * @param integer $maxLifetime + * @param int $maxLifetime */ public function set($cacheName, $value, $maxLifetime); } diff --git a/wcfsetup/install/files/lib/system/cache/source/MemcachedCacheSource.class.php b/wcfsetup/install/files/lib/system/cache/source/MemcachedCacheSource.class.php index 0be34026a7..f478babbae 100644 --- a/wcfsetup/install/files/lib/system/cache/source/MemcachedCacheSource.class.php +++ b/wcfsetup/install/files/lib/system/cache/source/MemcachedCacheSource.class.php @@ -152,8 +152,8 @@ class MemcachedCacheSource implements ICacheSource { /** * Returns time to live in seconds, defaults to 3 days. * - * @param integer $maxLifetime - * @return integer + * @param int $maxLifetime + * @return int */ protected function getTTL($maxLifetime = 0) { // max lifetime is a timestamp -> http://www.php.net/manual/en/memcached.expiration.php diff --git a/wcfsetup/install/files/lib/system/cache/source/RedisCacheSource.class.php b/wcfsetup/install/files/lib/system/cache/source/RedisCacheSource.class.php index 66423dc60b..0ce339034d 100644 --- a/wcfsetup/install/files/lib/system/cache/source/RedisCacheSource.class.php +++ b/wcfsetup/install/files/lib/system/cache/source/RedisCacheSource.class.php @@ -97,8 +97,8 @@ class RedisCacheSource implements ICacheSource { /** * Returns time to live in seconds, defaults to 3 days. * - * @param integer $maxLifetime - * @return integer + * @param int $maxLifetime + * @return int */ protected function getTTL($maxLifetime = 0) { if ($maxLifetime) return $maxLifetime; diff --git a/wcfsetup/install/files/lib/system/captcha/CaptchaHandler.class.php b/wcfsetup/install/files/lib/system/captcha/CaptchaHandler.class.php index d73f49458f..4d4e9d989c 100644 --- a/wcfsetup/install/files/lib/system/captcha/CaptchaHandler.class.php +++ b/wcfsetup/install/files/lib/system/captcha/CaptchaHandler.class.php @@ -40,7 +40,7 @@ class CaptchaHandler extends SingletonFactory { * Returns the captcha object type with the given id or `null` if no such * object type exists. * - * @param integer $objectTypeID + * @param int $objectTypeID * @return ObjectType|null */ public function getObjectType($objectTypeID) { diff --git a/wcfsetup/install/files/lib/system/category/AbstractCategoryType.class.php b/wcfsetup/install/files/lib/system/category/AbstractCategoryType.class.php index 7c1d474310..25cf09e5c1 100644 --- a/wcfsetup/install/files/lib/system/category/AbstractCategoryType.class.php +++ b/wcfsetup/install/files/lib/system/category/AbstractCategoryType.class.php @@ -46,7 +46,7 @@ abstract class AbstractCategoryType extends SingletonFactory implements ICategor /** * maximum category nesting label - * @var integer + * @var int */ protected $maximumNestingLevel = -1; diff --git a/wcfsetup/install/files/lib/system/category/CategoryHandler.class.php b/wcfsetup/install/files/lib/system/category/CategoryHandler.class.php index 88cee796ab..0ced76a60d 100644 --- a/wcfsetup/install/files/lib/system/category/CategoryHandler.class.php +++ b/wcfsetup/install/files/lib/system/category/CategoryHandler.class.php @@ -24,13 +24,13 @@ class CategoryHandler extends SingletonFactory { /** * category ids grouped by the object type they belong to - * @var integer[][] + * @var int[][] */ protected $objectTypeCategoryIDs = []; /** * maps the names of the category object types to the object type ids - * @var integer[] + * @var int[] */ protected $objectTypeIDs = []; @@ -66,7 +66,7 @@ class CategoryHandler extends SingletonFactory { /** * Returns the category with the given id or `null` if no such category exists. * - * @param integer $categoryID + * @param int $categoryID * @return Category|null */ public function getCategory($categoryID) { @@ -82,8 +82,8 @@ class CategoryHandler extends SingletonFactory { * * The second parameter is only needed if $categoryID is 0. * - * @param integer $categoryID - * @param integer $objectTypeID + * @param int $categoryID + * @param int $objectTypeID * @return Category[] * @throws SystemException */ @@ -105,7 +105,7 @@ class CategoryHandler extends SingletonFactory { /** * Returns the category object type with the given id or `null` if no such object type exists. * - * @param integer $objectTypeID + * @param int $objectTypeID * @return ObjectType|null */ public function getObjectType($objectTypeID) { diff --git a/wcfsetup/install/files/lib/system/category/CategoryPermissionHandler.class.php b/wcfsetup/install/files/lib/system/category/CategoryPermissionHandler.class.php index 06687e062e..9e3238577a 100644 --- a/wcfsetup/install/files/lib/system/category/CategoryPermissionHandler.class.php +++ b/wcfsetup/install/files/lib/system/category/CategoryPermissionHandler.class.php @@ -27,7 +27,7 @@ class CategoryPermissionHandler extends SingletonFactory { * * @param Category $category * @param User $user - * @return integer[] + * @return int[] */ public function getPermissions(Category $category, User $user = null) { if ($user === null) { diff --git a/wcfsetup/install/files/lib/system/category/ICategoryType.class.php b/wcfsetup/install/files/lib/system/category/ICategoryType.class.php index 267ecd8542..12499a38ba 100644 --- a/wcfsetup/install/files/lib/system/category/ICategoryType.class.php +++ b/wcfsetup/install/files/lib/system/category/ICategoryType.class.php @@ -123,7 +123,7 @@ interface ICategoryType { * Returns the maximum category nesting level for this type. "-1" means * that there is no maximum. * - * @return integer + * @return int */ public function getMaximumNestingLevel(); diff --git a/wcfsetup/install/files/lib/system/cli/command/ImportCLICommand.class.php b/wcfsetup/install/files/lib/system/cli/command/ImportCLICommand.class.php index 39544679fe..21e857af1f 100644 --- a/wcfsetup/install/files/lib/system/cli/command/ImportCLICommand.class.php +++ b/wcfsetup/install/files/lib/system/cli/command/ImportCLICommand.class.php @@ -98,7 +98,7 @@ class ImportCLICommand implements ICLICommand { /** * user merge mode - * @var integer + * @var int */ public $userMergeMode = 0; diff --git a/wcfsetup/install/files/lib/system/clipboard/ClipboardEditorItem.class.php b/wcfsetup/install/files/lib/system/clipboard/ClipboardEditorItem.class.php index 606de4fc2d..70feccf71e 100644 --- a/wcfsetup/install/files/lib/system/clipboard/ClipboardEditorItem.class.php +++ b/wcfsetup/install/files/lib/system/clipboard/ClipboardEditorItem.class.php @@ -135,7 +135,7 @@ final class ClipboardEditorItem { /** * Returns number of affected items. * - * @return integer + * @return int */ public function getCount() { if (isset($this->parameters['objectIDs'])) { diff --git a/wcfsetup/install/files/lib/system/clipboard/ClipboardHandler.class.php b/wcfsetup/install/files/lib/system/clipboard/ClipboardHandler.class.php index b179b8a9d4..6955883be6 100644 --- a/wcfsetup/install/files/lib/system/clipboard/ClipboardHandler.class.php +++ b/wcfsetup/install/files/lib/system/clipboard/ClipboardHandler.class.php @@ -54,7 +54,7 @@ class ClipboardHandler extends SingletonFactory { /** * page object id - * @var integer + * @var int */ protected $pageObjectID = 0; @@ -88,7 +88,7 @@ class ClipboardHandler extends SingletonFactory { * Marks objects as marked. * * @param array $objectIDs - * @param integer $objectTypeID + * @param int $objectTypeID */ public function mark(array $objectIDs, $objectTypeID) { // remove existing entries first, prevents conflict with INSERT @@ -111,7 +111,7 @@ class ClipboardHandler extends SingletonFactory { * Removes an object marking. * * @param array $objectIDs - * @param integer $objectTypeID + * @param int $objectTypeID */ public function unmark(array $objectIDs, $objectTypeID) { $conditions = new PreparedStatementConditionBuilder(); @@ -128,7 +128,7 @@ class ClipboardHandler extends SingletonFactory { /** * Unmarks all items of given type. * - * @param integer $objectTypeID + * @param int $objectTypeID */ public function unmarkAll($objectTypeID) { $sql = "DELETE FROM wcf".WCF_N."_clipboard_item @@ -146,7 +146,7 @@ class ClipboardHandler extends SingletonFactory { * clipboard object type exists. * * @param string $typeName - * @return integer|null + * @return int|null */ public function getObjectTypeID($typeName) { if (isset($this->cache['objectTypeNames'][$typeName])) { @@ -160,7 +160,7 @@ class ClipboardHandler extends SingletonFactory { * Returns the clipboard object type with the given id or `null` if no such * clipboard object type exists. * - * @param integer $objectTypeID + * @param int $objectTypeID * @return ObjectType|null */ public function getObjectType($objectTypeID) { @@ -176,7 +176,7 @@ class ClipboardHandler extends SingletonFactory { * clipboard object type exists. * * @param string $objectType - * @return integer|null + * @return int|null */ public function getObjectTypeByName($objectType) { foreach ($this->cache['objectTypes'] as $objectTypeID => $objectTypeObj) { @@ -191,7 +191,7 @@ class ClipboardHandler extends SingletonFactory { /** * Loads a list of marked items grouped by type name. * - * @param integer $objectTypeID + * @param int $objectTypeID * @throws SystemException */ protected function loadMarkedItems($objectTypeID = null) { @@ -281,7 +281,7 @@ class ClipboardHandler extends SingletonFactory { /** * Loads a list of marked items grouped by type name. * - * @param integer $objectTypeID + * @param int $objectTypeID * @return array */ public function getMarkedItems($objectTypeID = null) { @@ -305,7 +305,7 @@ class ClipboardHandler extends SingletonFactory { * Returns the data of the items for clipboard editor or `null` if no items are marked. * * @param string|string[] $page - * @param integer $pageObjectID + * @param int $pageObjectID * @return array|null * @throws ImplementationException */ @@ -391,7 +391,7 @@ class ClipboardHandler extends SingletonFactory { /** * Removes items from clipboard. * - * @param integer $typeID + * @param int $typeID */ public function removeItems($typeID = null) { $conditions = new PreparedStatementConditionBuilder(); @@ -407,8 +407,8 @@ class ClipboardHandler extends SingletonFactory { /** * Returns true (1) if at least one item (of the given object type) is marked. * - * @param integer $objectTypeID - * @return integer + * @param int $objectTypeID + * @return int */ public function hasMarkedItems($objectTypeID = null) { if (!WCF::getUser()->userID) return 0; @@ -440,7 +440,7 @@ class ClipboardHandler extends SingletonFactory { /** * Returns page object id. * - * @return integer + * @return int */ public function getPageObjectID() { return $this->pageObjectID; diff --git a/wcfsetup/install/files/lib/system/clipboard/action/ArticleClipboardAction.class.php b/wcfsetup/install/files/lib/system/clipboard/action/ArticleClipboardAction.class.php index be1650447f..38c18e32c6 100644 --- a/wcfsetup/install/files/lib/system/clipboard/action/ArticleClipboardAction.class.php +++ b/wcfsetup/install/files/lib/system/clipboard/action/ArticleClipboardAction.class.php @@ -90,7 +90,7 @@ class ArticleClipboardAction extends AbstractClipboardAction { /** * Returns the ids of the articles that can be deleted. * - * @return integer[] + * @return int[] */ public function validateDelete() { $objectIDs = []; @@ -108,7 +108,7 @@ class ArticleClipboardAction extends AbstractClipboardAction { /** * Returns the ids of the articles that can be published. * - * @return integer[] + * @return int[] */ public function validatePublish() { $objectIDs = []; @@ -126,7 +126,7 @@ class ArticleClipboardAction extends AbstractClipboardAction { /** * Returns the ids of the articles that can be restored. * - * @return integer[] + * @return int[] */ public function validateRestore() { return $this->validateDelete(); @@ -135,7 +135,7 @@ class ArticleClipboardAction extends AbstractClipboardAction { /** * Returns the ids of the articles whose category can be set. * - * @return integer[] + * @return int[] */ public function validateSetCategory() { if (!WCF::getSession()->getPermission('admin.content.article.canManageArticle')) { @@ -148,7 +148,7 @@ class ArticleClipboardAction extends AbstractClipboardAction { /** * Returns the ids of the articles that can be trashed. * - * @return integer[] + * @return int[] */ public function validateTrash() { $objectIDs = []; @@ -166,7 +166,7 @@ class ArticleClipboardAction extends AbstractClipboardAction { /** * Returns the ids of the articles that can be unpublished. * - * @return integer[] + * @return int[] */ public function validateUnpublish() { $objectIDs = []; diff --git a/wcfsetup/install/files/lib/system/clipboard/action/MediaClipboardAction.class.php b/wcfsetup/install/files/lib/system/clipboard/action/MediaClipboardAction.class.php index 4f3d2ae430..e292f99236 100644 --- a/wcfsetup/install/files/lib/system/clipboard/action/MediaClipboardAction.class.php +++ b/wcfsetup/install/files/lib/system/clipboard/action/MediaClipboardAction.class.php @@ -69,7 +69,7 @@ class MediaClipboardAction extends AbstractClipboardAction { /** * Returns the ids of the media files which can be deleted. * - * @return integer[] + * @return int[] */ public function validateDelete() { if (!WCF::getSession()->getPermission('admin.content.cms.canManageMedia')) { @@ -95,7 +95,7 @@ class MediaClipboardAction extends AbstractClipboardAction { /** * Returns the ids of the media files which can be inserted. * - * @return integer[] + * @return int[] */ public function validateInsert() { return array_keys($this->objects); @@ -104,7 +104,7 @@ class MediaClipboardAction extends AbstractClipboardAction { /** * Returns the ids of the media files whose category can be set. * - * @return integer[] + * @return int[] */ public function validateSetCategory() { if (!WCF::getSession()->getPermission('admin.content.cms.canManageMedia')) { diff --git a/wcfsetup/install/files/lib/system/clipboard/action/TagClipboardAction.class.php b/wcfsetup/install/files/lib/system/clipboard/action/TagClipboardAction.class.php index 681ed56ba0..f4f40d7452 100644 --- a/wcfsetup/install/files/lib/system/clipboard/action/TagClipboardAction.class.php +++ b/wcfsetup/install/files/lib/system/clipboard/action/TagClipboardAction.class.php @@ -69,7 +69,7 @@ class TagClipboardAction extends AbstractClipboardAction { /** * Returns the ids of the tags which can be deleted. * - * @return integer[] + * @return int[] */ protected function validateDelete() { if (!WCF::getSession()->getPermission('admin.content.tag.canManageTag')) { @@ -82,7 +82,7 @@ class TagClipboardAction extends AbstractClipboardAction { /** * Returns the ids of the tags which can be set as synonyms. * - * @return integer[] + * @return int[] */ protected function validateSetAsSynonyms() { if (!WCF::getSession()->getPermission('admin.content.tag.canManageTag')) { diff --git a/wcfsetup/install/files/lib/system/clipboard/action/UserClipboardAction.class.php b/wcfsetup/install/files/lib/system/clipboard/action/UserClipboardAction.class.php index b2e459d56c..2605995eac 100644 --- a/wcfsetup/install/files/lib/system/clipboard/action/UserClipboardAction.class.php +++ b/wcfsetup/install/files/lib/system/clipboard/action/UserClipboardAction.class.php @@ -88,7 +88,7 @@ class UserClipboardAction extends AbstractClipboardAction { /** * Returns the ids of the users which can be deleted. * - * @return integer[] + * @return int[] */ protected function validateDelete() { // check permissions @@ -102,7 +102,7 @@ class UserClipboardAction extends AbstractClipboardAction { /** * Returns the ids of the users which can be banned. * - * @return integer[] + * @return int[] */ protected function validateBan() { // check permissions @@ -123,9 +123,9 @@ class UserClipboardAction extends AbstractClipboardAction { /** * Validates accessible groups. * - * @param integer[] $userIDs + * @param int[] $userIDs * @param boolean $ignoreOwnUser - * @return integer[] + * @return int[] */ protected function __validateAccessibleGroups(array $userIDs, $ignoreOwnUser = true) { if ($ignoreOwnUser) { @@ -164,7 +164,7 @@ class UserClipboardAction extends AbstractClipboardAction { /** * Returns the ids of the users which can be marked as email confirmed. * - * @return integer[] + * @return int[] * @since 5.3 */ protected function validateConfirmEmail() { @@ -185,7 +185,7 @@ class UserClipboardAction extends AbstractClipboardAction { /** * Returns the ids of the users which can be unmarked as email confirmed. * - * @return integer[] + * @return int[] * @since 5.3 */ protected function validateUnconfirmEmail() { @@ -206,7 +206,7 @@ class UserClipboardAction extends AbstractClipboardAction { /** * Returns the ids of the users which can be sent new passwords. * - * @return integer[] + * @return int[] */ public function validateSendNewPassword() { // check permissions @@ -226,7 +226,7 @@ class UserClipboardAction extends AbstractClipboardAction { /** * Returns the ids of the users which can be enabled. * - * @return integer[] + * @return int[] * @since 3.0 */ protected function validateEnable() { @@ -247,7 +247,7 @@ class UserClipboardAction extends AbstractClipboardAction { /** * Returns the ids of the users which can be merge. * - * @return integer[] + * @return int[] * @since 3.0 */ protected function validateMerge() { @@ -265,7 +265,7 @@ class UserClipboardAction extends AbstractClipboardAction { /** * Returns the ids of the users which aren't activated. * - * @return integer[] + * @return int[] * @since 5.2 */ protected function validateResendActivationMail() { @@ -286,7 +286,7 @@ class UserClipboardAction extends AbstractClipboardAction { /** * Returns the ids of the users whose contents can be deleted. * - * @return integer[] + * @return int[] * @since 5.4 */ protected function validateDeleteUserContent() { diff --git a/wcfsetup/install/files/lib/system/clipboard/action/UserContentClipboardAction.class.php b/wcfsetup/install/files/lib/system/clipboard/action/UserContentClipboardAction.class.php index 64ce0b2cc9..757f5250ac 100644 --- a/wcfsetup/install/files/lib/system/clipboard/action/UserContentClipboardAction.class.php +++ b/wcfsetup/install/files/lib/system/clipboard/action/UserContentClipboardAction.class.php @@ -56,7 +56,7 @@ class UserContentClipboardAction extends AbstractClipboardAction { /** * Returns the ids of the users whose edits can be reverted. * - * @return integer[] + * @return int[] */ protected function validateRevertContentChanges() { if (!MODULE_EDIT_HISTORY) { diff --git a/wcfsetup/install/files/lib/system/comment/CommentHandler.class.php b/wcfsetup/install/files/lib/system/comment/CommentHandler.class.php index 93b984e909..4670606db3 100644 --- a/wcfsetup/install/files/lib/system/comment/CommentHandler.class.php +++ b/wcfsetup/install/files/lib/system/comment/CommentHandler.class.php @@ -57,7 +57,7 @@ class CommentHandler extends SingletonFactory { * such object type exists. * * @param string $objectType - * @return integer|null + * @return int|null */ public function getObjectTypeID($objectType) { if (isset($this->cache['objectTypeIDs'][$objectType])) { @@ -71,7 +71,7 @@ class CommentHandler extends SingletonFactory { * Returns the comment object type with the given name or `null` if no such * object type exists. * - * @param integer $objectTypeID + * @param int $objectTypeID * @return ObjectType|null */ public function getObjectType($objectTypeID) { @@ -102,8 +102,8 @@ class CommentHandler extends SingletonFactory { * Returns a comment list for a given object type and object id. * * @param ICommentManager $commentManager - * @param integer $objectTypeID - * @param integer $objectID + * @param int $objectTypeID + * @param int $objectID * @param boolean $readObjects * @return StructuredCommentList */ @@ -120,7 +120,7 @@ class CommentHandler extends SingletonFactory { * Removes all comments for given objects. * * @param string $objectType - * @param integer[] $objectIDs + * @param int[] $objectIDs */ public function deleteObjects($objectType, array $objectIDs) { $objectTypeID = $this->getObjectTypeID($objectType); @@ -207,8 +207,8 @@ class CommentHandler extends SingletonFactory { * the given ids as confirmed for the active user. * * @param string $objectType comment object type name - * @param integer[] $objectIDs ids of the objects whose comment-related notifications will be marked as confirmed - * @param integer $time only notifications older than the given timestamp will be marked as confirmed + * @param int[] $objectIDs ids of the objects whose comment-related notifications will be marked as confirmed + * @param int $time only notifications older than the given timestamp will be marked as confirmed * @throws \InvalidArgumentException if invalid comment object type name is given * @since 5.2 */ diff --git a/wcfsetup/install/files/lib/system/comment/manager/AbstractCommentManager.class.php b/wcfsetup/install/files/lib/system/comment/manager/AbstractCommentManager.class.php index 419f1f7bc9..f72e06c9a3 100644 --- a/wcfsetup/install/files/lib/system/comment/manager/AbstractCommentManager.class.php +++ b/wcfsetup/install/files/lib/system/comment/manager/AbstractCommentManager.class.php @@ -18,7 +18,7 @@ use wcf\system\WCF; abstract class AbstractCommentManager extends SingletonFactory implements ICommentManager { /** * display comments per page - * @var integer + * @var int */ public $commentsPerPage = 30; @@ -243,7 +243,7 @@ abstract class AbstractCommentManager extends SingletonFactory implements IComme /** * Returns the object ID for the given Comment or CommentResponse. * - * @return integer + * @return int */ protected final function getObjectID($commentOrResponse) { if ($commentOrResponse instanceof CommentResponse || ($commentOrResponse instanceof DatabaseObjectDecorator && $commentOrResponse->getDecoratedObject() instanceof CommentResponse)) { diff --git a/wcfsetup/install/files/lib/system/comment/manager/ICommentManager.class.php b/wcfsetup/install/files/lib/system/comment/manager/ICommentManager.class.php index 75e6ae0544..9094b2f7f9 100644 --- a/wcfsetup/install/files/lib/system/comment/manager/ICommentManager.class.php +++ b/wcfsetup/install/files/lib/system/comment/manager/ICommentManager.class.php @@ -15,7 +15,7 @@ interface ICommentManager { /** * Returns true if the current user may add comments or responses. * - * @param integer $objectID + * @param int $objectID * @return boolean */ public function canAdd($objectID); @@ -23,7 +23,7 @@ interface ICommentManager { /** * Returns true if a comment requires approval. * - * @param integer $objectID + * @param int $objectID * @return boolean */ public function canAddWithoutApproval($objectID); @@ -63,8 +63,8 @@ interface ICommentManager { * Returns true if the current user may moderated content identified by * object type id and object id. * - * @param integer $objectTypeID - * @param integer $objectID + * @param int $objectTypeID + * @param int $objectID * @return boolean */ public function canModerate($objectTypeID, $objectID); @@ -72,15 +72,15 @@ interface ICommentManager { /** * Returns the amount of comments per page. * - * @return integer + * @return int */ public function getCommentsPerPage(); /** * Returns a link to the commented object with the given object type id and object id. * - * @param integer $objectTypeID - * @param integer $objectID + * @param int $objectTypeID + * @param int $objectID * @return string */ public function getLink($objectTypeID, $objectID); @@ -104,8 +104,8 @@ interface ICommentManager { /** * Returns the title for a comment or response. * - * @param integer $objectTypeID - * @param integer $objectID + * @param int $objectTypeID + * @param int $objectID * @param boolean $isResponse * @return string */ @@ -115,7 +115,7 @@ interface ICommentManager { * Returns true if comments and responses for given object id are accessible * by current user. * - * @param integer $objectID + * @param int $objectID * @param boolean $validateWritePermission * @return boolean */ @@ -124,8 +124,8 @@ interface ICommentManager { /** * Updates total count of comments (includes responses). * - * @param integer $objectID - * @param integer $value + * @param int $objectID + * @param int $value */ public function updateCounter($objectID, $value); diff --git a/wcfsetup/install/files/lib/system/condition/AbstractCheckboxCondition.class.php b/wcfsetup/install/files/lib/system/condition/AbstractCheckboxCondition.class.php index 995faf6e73..1101976e5f 100644 --- a/wcfsetup/install/files/lib/system/condition/AbstractCheckboxCondition.class.php +++ b/wcfsetup/install/files/lib/system/condition/AbstractCheckboxCondition.class.php @@ -23,7 +23,7 @@ abstract class AbstractCheckboxCondition extends AbstractSingleFieldCondition { /** * is `1` if the checkbox is checked - * @var integer + * @var int */ protected $fieldValue = 0; diff --git a/wcfsetup/install/files/lib/system/condition/AbstractIntegerCondition.class.php b/wcfsetup/install/files/lib/system/condition/AbstractIntegerCondition.class.php index f3d89a8f44..795a2bedcd 100644 --- a/wcfsetup/install/files/lib/system/condition/AbstractIntegerCondition.class.php +++ b/wcfsetup/install/files/lib/system/condition/AbstractIntegerCondition.class.php @@ -15,7 +15,7 @@ use wcf\system\WCF; abstract class AbstractIntegerCondition extends AbstractSingleFieldCondition { /** * property value has to be greater than the given value - * @var integer + * @var int */ protected $greaterThan = null; @@ -27,19 +27,19 @@ abstract class AbstractIntegerCondition extends AbstractSingleFieldCondition { /** * property value has to be less than the given value - * @var integer + * @var int */ protected $lessThan = null; /** * maximum value the property can have - * @var integer + * @var int */ protected $maxValue = null; /** * minimum value the property can have - * @var integer + * @var int */ protected $minValue = null; @@ -136,7 +136,7 @@ HTML; * Returns the maximum value the property can have or `null` if there is no * such maximum. * - * @return integer|null + * @return int|null */ protected function getMaxValue() { if ($this->getDecoratedObject()->maxvalue !== null) { @@ -172,7 +172,7 @@ HTML; * Returns the minimum value the property can have or `null` if there is no * such minimum. * - * @return integer|null + * @return int|null */ protected function getMinValue() { if ($this->getDecoratedObject()->minvalue !== null) { diff --git a/wcfsetup/install/files/lib/system/condition/ConditionHandler.class.php b/wcfsetup/install/files/lib/system/condition/ConditionHandler.class.php index f2f97a2319..8792d4d9de 100644 --- a/wcfsetup/install/files/lib/system/condition/ConditionHandler.class.php +++ b/wcfsetup/install/files/lib/system/condition/ConditionHandler.class.php @@ -29,7 +29,7 @@ class ConditionHandler extends SingletonFactory { * Creates condition objects for the object with the given id and based * on the given condition object types. * - * @param integer $objectID + * @param int $objectID * @param ObjectType[] $conditionObjectTypes */ public function createConditions($objectID, array $conditionObjectTypes) { @@ -52,7 +52,7 @@ class ConditionHandler extends SingletonFactory { * Deletes all conditions of the objects with the given ids. * * @param string $definitionName - * @param integer[] $objectIDs + * @param int[] $objectIDs * @throws SystemException */ public function deleteConditions($definitionName, array $objectIDs) { @@ -87,7 +87,7 @@ class ConditionHandler extends SingletonFactory { * object type definition and object id. * * @param string $definitionName - * @param integer $objectID + * @param int $objectID * @return Condition[] * @throws SystemException */ @@ -114,7 +114,7 @@ class ConditionHandler extends SingletonFactory { /** * Updates the conditions for the object with the given object id. * - * @param integer $objectID + * @param int $objectID * @param Condition[] $oldConditions * @param ObjectType[] $conditionObjectTypes */ diff --git a/wcfsetup/install/files/lib/system/condition/UserAvatarCondition.class.php b/wcfsetup/install/files/lib/system/condition/UserAvatarCondition.class.php index 6fe7af969d..f0b5adfd25 100644 --- a/wcfsetup/install/files/lib/system/condition/UserAvatarCondition.class.php +++ b/wcfsetup/install/files/lib/system/condition/UserAvatarCondition.class.php @@ -30,19 +30,19 @@ class UserAvatarCondition extends AbstractSelectCondition implements IContentCon /** * value of the "user has no avatar" option - * @var integer + * @var int */ const NO_AVATAR = 0; /** * value of the "user has a custom avatar" option - * @var integer + * @var int */ const AVATAR = 1; /** * value of the "user has a gravatar" option - * @var integer + * @var int */ const GRAVATAR = 2; diff --git a/wcfsetup/install/files/lib/system/condition/UserBirthdayCondition.class.php b/wcfsetup/install/files/lib/system/condition/UserBirthdayCondition.class.php index 3e50b40359..d9422f6360 100644 --- a/wcfsetup/install/files/lib/system/condition/UserBirthdayCondition.class.php +++ b/wcfsetup/install/files/lib/system/condition/UserBirthdayCondition.class.php @@ -15,7 +15,7 @@ use wcf\system\WCF; class UserBirthdayCondition extends AbstractCondition implements IContentCondition { /** * 1 if birthday today checkbox is checked - * @var integer + * @var int */ protected $birthdayToday = 0; diff --git a/wcfsetup/install/files/lib/system/condition/UserCoverPhotoCondition.class.php b/wcfsetup/install/files/lib/system/condition/UserCoverPhotoCondition.class.php index d72861b792..42b48f5652 100644 --- a/wcfsetup/install/files/lib/system/condition/UserCoverPhotoCondition.class.php +++ b/wcfsetup/install/files/lib/system/condition/UserCoverPhotoCondition.class.php @@ -31,13 +31,13 @@ class UserCoverPhotoCondition extends AbstractSelectCondition implements IConten /** * value of the "user has no cover photo" option - * @var integer + * @var int */ const NO_COVER_PHOTO = 0; /** * value of the "user has a cover photo" option - * @var integer + * @var int */ const COVER_PHOTO = 1; diff --git a/wcfsetup/install/files/lib/system/condition/UserGroupCondition.class.php b/wcfsetup/install/files/lib/system/condition/UserGroupCondition.class.php index 4803df2d63..66ead0355d 100644 --- a/wcfsetup/install/files/lib/system/condition/UserGroupCondition.class.php +++ b/wcfsetup/install/files/lib/system/condition/UserGroupCondition.class.php @@ -33,7 +33,7 @@ class UserGroupCondition extends AbstractMultipleFieldsCondition implements ICon /** * ids of the selected user groups the user has to be member of - * @var integer[] + * @var int[] */ protected $groupIDs = []; @@ -47,7 +47,7 @@ class UserGroupCondition extends AbstractMultipleFieldsCondition implements ICon /** * ids of the selected user groups the user may not be member of - * @var integer[] + * @var int[] */ protected $notGroupIDs = []; diff --git a/wcfsetup/install/files/lib/system/condition/UserLanguageCondition.class.php b/wcfsetup/install/files/lib/system/condition/UserLanguageCondition.class.php index e9abf20892..be9f667095 100644 --- a/wcfsetup/install/files/lib/system/condition/UserLanguageCondition.class.php +++ b/wcfsetup/install/files/lib/system/condition/UserLanguageCondition.class.php @@ -28,7 +28,7 @@ class UserLanguageCondition extends AbstractSingleFieldCondition implements ICon /** * ids of the selected languages - * @var integer[] + * @var int[] */ protected $languageIDs = []; diff --git a/wcfsetup/install/files/lib/system/condition/UserMobileBrowserCondition.class.php b/wcfsetup/install/files/lib/system/condition/UserMobileBrowserCondition.class.php index 8e19efe77c..f7de17c1e7 100644 --- a/wcfsetup/install/files/lib/system/condition/UserMobileBrowserCondition.class.php +++ b/wcfsetup/install/files/lib/system/condition/UserMobileBrowserCondition.class.php @@ -21,13 +21,13 @@ class UserMobileBrowserCondition extends AbstractSingleFieldCondition implements /** * 1 if mobile browser checkbox is checked - * @var integer + * @var int */ protected $usesMobileBrowser = 0; /** * 1 if not use mobile browser checkbox is checked - * @var integer + * @var int */ protected $usesNoMobileBrowser = 0; diff --git a/wcfsetup/install/files/lib/system/condition/UserMultifactorCondition.class.php b/wcfsetup/install/files/lib/system/condition/UserMultifactorCondition.class.php index 7b9c63adcf..26091d3b63 100644 --- a/wcfsetup/install/files/lib/system/condition/UserMultifactorCondition.class.php +++ b/wcfsetup/install/files/lib/system/condition/UserMultifactorCondition.class.php @@ -27,13 +27,13 @@ class UserMultifactorCondition extends AbstractSingleFieldCondition implements I /** * 1 if multifactor active checkbox is checked - * @var integer + * @var int */ protected $multifactorActive = 0; /** * 1 if multifactor not active checkbox is checked - * @var integer + * @var int */ protected $multifactorNotActive = 0; diff --git a/wcfsetup/install/files/lib/system/condition/UserSignatureCondition.class.php b/wcfsetup/install/files/lib/system/condition/UserSignatureCondition.class.php index 857a66c65a..6daad7afbd 100644 --- a/wcfsetup/install/files/lib/system/condition/UserSignatureCondition.class.php +++ b/wcfsetup/install/files/lib/system/condition/UserSignatureCondition.class.php @@ -31,13 +31,13 @@ class UserSignatureCondition extends AbstractSelectCondition implements IContent /** * value of the "user has no signature" option - * @var integer + * @var int */ const NO_SIGNATURE = 0; /** * value of the "user has a signature" option - * @var integer + * @var int */ const SIGNATURE = 1; diff --git a/wcfsetup/install/files/lib/system/condition/UserStateCondition.class.php b/wcfsetup/install/files/lib/system/condition/UserStateCondition.class.php index d8fe860d4b..8028b778e7 100644 --- a/wcfsetup/install/files/lib/system/condition/UserStateCondition.class.php +++ b/wcfsetup/install/files/lib/system/condition/UserStateCondition.class.php @@ -26,38 +26,38 @@ class UserStateCondition extends AbstractSingleFieldCondition implements IConten /** * true if the the user has to be banned - * @var integer + * @var int */ protected $userIsBanned = 0; /** * true if the user has to be disabled - * @var integer + * @var int */ protected $userIsDisabled = 0; /** * true if the user has to be enabled - * @var integer + * @var int */ protected $userIsEnabled = 0; /** * true if the the user may not be banned - * @var integer + * @var int */ protected $userIsNotBanned = 0; /** * true if the the user has confirmed their email address * - * @var integer + * @var int */ protected $userIsEmailConfirmed = 0; /** * true if the the user has not confirmed their email address - * @var integer + * @var int */ protected $userIsNotEmailConfirmed = 0; diff --git a/wcfsetup/install/files/lib/system/condition/UserTrophyCondition.class.php b/wcfsetup/install/files/lib/system/condition/UserTrophyCondition.class.php index f7dfe6f7a1..5e0b64560f 100644 --- a/wcfsetup/install/files/lib/system/condition/UserTrophyCondition.class.php +++ b/wcfsetup/install/files/lib/system/condition/UserTrophyCondition.class.php @@ -42,13 +42,13 @@ class UserTrophyCondition extends AbstractMultipleFieldsCondition implements ICo /** * ids of the selected trophies the user has earned - * @var integer[] + * @var int[] */ protected $userTrophyIDs = []; /** * ids of the selected trophies the user has not earned - * @var integer[] + * @var int[] */ protected $notUserTrophyIDs = []; diff --git a/wcfsetup/install/files/lib/system/cronjob/CronjobScheduler.class.php b/wcfsetup/install/files/lib/system/cronjob/CronjobScheduler.class.php index 3793b1d79c..a1256282fe 100644 --- a/wcfsetup/install/files/lib/system/cronjob/CronjobScheduler.class.php +++ b/wcfsetup/install/files/lib/system/cronjob/CronjobScheduler.class.php @@ -21,7 +21,7 @@ use function wcf\functions\exception\logThrowable; class CronjobScheduler extends SingletonFactory { /** * cached times of the next and after next cronjob execution - * @var integer[] + * @var int[] */ protected $cache = []; @@ -92,7 +92,7 @@ class CronjobScheduler extends SingletonFactory { /** * Returns the next execution time. * - * @return integer + * @return int */ public function getNextExec() { return $this->cache['nextExec']; diff --git a/wcfsetup/install/files/lib/system/database/Database.class.php b/wcfsetup/install/files/lib/system/database/Database.class.php index 13f67b297d..95b1d21e91 100644 --- a/wcfsetup/install/files/lib/system/database/Database.class.php +++ b/wcfsetup/install/files/lib/system/database/Database.class.php @@ -38,7 +38,7 @@ abstract class Database { /** * sql server post - * @var integer + * @var int */ protected $port = 0; @@ -68,7 +68,7 @@ abstract class Database { /** * number of executed queries - * @var integer + * @var int */ protected $queryCount = 0; @@ -86,7 +86,7 @@ abstract class Database { /** * amount of active transactions - * @var integer + * @var int */ protected $activeTransactions = 0; @@ -109,7 +109,7 @@ abstract class Database { * @param string $user SQL database server username * @param string $password SQL database server password * @param string $database SQL database server database name - * @param integer $port SQL database server port + * @param int $port SQL database server port * @param boolean $failsafeTest * @param boolean $tryToCreateDatabase * @param array $defaultDriverOptions @@ -142,7 +142,7 @@ abstract class Database { * * @param string $table * @param string $field - * @return integer + * @return int * @throws DatabaseException */ public function getInsertID($table, $field) { @@ -244,8 +244,8 @@ abstract class Database { * Prepares a statement for execution and returns a statement object. * * @param string $statement - * @param integer $limit - * @param integer $offset + * @param int $limit + * @param int $offset * @return PreparedStatement * @throws DatabaseQueryException */ @@ -291,8 +291,8 @@ abstract class Database { * Other database implementations should override this function. * * @param string $query - * @param integer $limit - * @param integer $offset + * @param int $limit + * @param int $offset * @return string */ public function handleLimitParameter($query, $limit = 0, $offset = 0) { @@ -306,7 +306,7 @@ abstract class Database { /** * Returns the number of the last error. * - * @return integer + * @return int */ public function getErrorNumber() { if ($this->pdo !== null) return $this->pdo->errorCode(); @@ -382,7 +382,7 @@ abstract class Database { /** * Returns the amount of executed sql queries. * - * @return integer + * @return int */ public function getQueryCount() { return $this->queryCount; diff --git a/wcfsetup/install/files/lib/system/database/DatabaseException.class.php b/wcfsetup/install/files/lib/system/database/DatabaseException.class.php index 0f2ec91ac9..3d578f36dd 100644 --- a/wcfsetup/install/files/lib/system/database/DatabaseException.class.php +++ b/wcfsetup/install/files/lib/system/database/DatabaseException.class.php @@ -15,7 +15,7 @@ use wcf\system\exception\SystemException; class DatabaseException extends SystemException { /** * error number - * @var integer + * @var int */ protected $errorNumber = null; @@ -85,7 +85,7 @@ class DatabaseException extends SystemException { /** * Returns the error number of this exception. * - * @return integer + * @return int */ public function getErrorNumber() { return $this->errorNumber; diff --git a/wcfsetup/install/files/lib/system/database/Redis.class.php b/wcfsetup/install/files/lib/system/database/Redis.class.php index d0a9b70618..4aadd3d425 100644 --- a/wcfsetup/install/files/lib/system/database/Redis.class.php +++ b/wcfsetup/install/files/lib/system/database/Redis.class.php @@ -11,17 +11,17 @@ use wcf\util\StringUtil; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\System\Database * - * @method integer del($key1, $key2 = null, $key3 = null) + * @method int del($key1, $key2 = null, $key3 = null) * @method boolean expire($key, $ttl) * @method string|bool get($key) - * @method integer hDel($key, $hashKey1, $hashKey2 = null, $hashKeyN = null) + * @method int hDel($key, $hashKey1, $hashKey2 = null, $hashKeyN = null) * @method string hGet($key, $hashKey) - * @method integer hSet($key, $hashKey, $value) - * @method integer incr($key) + * @method int hSet($key, $hashKey, $value) + * @method int incr($key) * @method string info($option = null) * @method boolean setex($key, $ttl, $value) * @method boolean setnx($key, $value) - * @method integer ttl($key) + * @method int ttl($key) */ class Redis { /** diff --git a/wcfsetup/install/files/lib/system/database/statement/PreparedStatement.class.php b/wcfsetup/install/files/lib/system/database/statement/PreparedStatement.class.php index e83091bed0..41cf541d23 100644 --- a/wcfsetup/install/files/lib/system/database/statement/PreparedStatement.class.php +++ b/wcfsetup/install/files/lib/system/database/statement/PreparedStatement.class.php @@ -109,7 +109,7 @@ class PreparedStatement { /** * Fetches the next row from a result set in an array. * - * @param integer $type fetch type + * @param int $type fetch type * @return mixed */ public function fetchArray($type = null) { @@ -126,7 +126,7 @@ class PreparedStatement { * Note: It is not possible to fetch further rows after calling * this method! * - * @param integer $type fetch type + * @param int $type fetch type * @return mixed * @see \wcf\system\database\statement\PreparedStatement::fetchArray() */ @@ -144,7 +144,7 @@ class PreparedStatement { * Note: It is not possible to fetch further rows after calling * this method! * - * @param integer $columnNumber + * @param int $columnNumber * @return mixed * @see \PDOStatement::fetchColumn() */ @@ -261,7 +261,7 @@ class PreparedStatement { /** * Counts number of affected rows by the last sql statement (INSERT, UPDATE or DELETE). * - * @return integer number of affected rows + * @return int number of affected rows * @throws DatabaseQueryException */ public function getAffectedRows() { @@ -276,7 +276,7 @@ class PreparedStatement { /** * Returns the number of the last error. * - * @return integer + * @return int */ public function getErrorNumber() { if ($this->pdoStatement !== null) return $this->pdoStatement->errorCode(); diff --git a/wcfsetup/install/files/lib/system/edit/EditHistoryManager.class.php b/wcfsetup/install/files/lib/system/edit/EditHistoryManager.class.php index 1ec3fb6192..a3da42d229 100644 --- a/wcfsetup/install/files/lib/system/edit/EditHistoryManager.class.php +++ b/wcfsetup/install/files/lib/system/edit/EditHistoryManager.class.php @@ -34,7 +34,7 @@ class EditHistoryManager extends SingletonFactory { * Returns the id of the object type with the given name. * * @param string $objectType - * @return integer + * @return int * @throws SystemException */ public function getObjectTypeID($objectType) { @@ -49,13 +49,13 @@ class EditHistoryManager extends SingletonFactory { * Adds a new entry. * * @param string $objectType - * @param integer $objectID + * @param int $objectID * @param string $message - * @param integer $time - * @param integer $userID + * @param int $time + * @param int $userID * @param string $username * @param string $editReason - * @param integer $obsoletedByUserID The userID of the user that forced this entry to become outdated + * @param int $obsoletedByUserID The userID of the user that forced this entry to become outdated */ public function add($objectType, $objectID, $message, $time, $userID, $username, $editReason, $obsoletedByUserID) { // no op, if edit history is disabled @@ -73,7 +73,7 @@ class EditHistoryManager extends SingletonFactory { * Deletes edit history entries. * * @param string $objectType - * @param integer[] $objectIDs + * @param int[] $objectIDs */ public function delete($objectType, array $objectIDs) { $objectTypeID = $this->getObjectTypeID($objectType); @@ -100,8 +100,8 @@ class EditHistoryManager extends SingletonFactory { /** * Performs mass reverting of edits by the given users in the given timeframe. * - * @param integer[] $userIDs - * @param integer $timeframe + * @param int[] $userIDs + * @param int $timeframe */ public function bulkRevert(array $userIDs, $timeframe = 86400) { if (empty($userIDs)) return; diff --git a/wcfsetup/install/files/lib/system/email/mime/MultipartAlternativeMimePart.class.php b/wcfsetup/install/files/lib/system/email/mime/MultipartAlternativeMimePart.class.php index d7a5a99b85..2a494a4605 100644 --- a/wcfsetup/install/files/lib/system/email/mime/MultipartAlternativeMimePart.class.php +++ b/wcfsetup/install/files/lib/system/email/mime/MultipartAlternativeMimePart.class.php @@ -42,7 +42,7 @@ class MultipartAlternativeMimePart extends AbstractMultipartMimePart { * mime part will be further down the email (see RFC 2046, 5.1.4). * * @param AbstractMimePart $part - * @param integer $data The priority. + * @param int $data The priority. * @throws \InvalidArgumentException * @throws \DomainException */ diff --git a/wcfsetup/install/files/lib/system/email/transport/SmtpEmailTransport.class.php b/wcfsetup/install/files/lib/system/email/transport/SmtpEmailTransport.class.php index 59e710f49b..9be5597a67 100644 --- a/wcfsetup/install/files/lib/system/email/transport/SmtpEmailTransport.class.php +++ b/wcfsetup/install/files/lib/system/email/transport/SmtpEmailTransport.class.php @@ -33,7 +33,7 @@ class SmtpEmailTransport implements IEmailTransport { /** * port to use - * @var integer + * @var int */ protected $port; @@ -78,7 +78,7 @@ class SmtpEmailTransport implements IEmailTransport { * Creates a new SmtpEmailTransport using the given host. * * @param string $host host of the smtp server to use - * @param integer $port port to use + * @param int $port port to use * @param string $username username to use for authentication * @param string $password corresponding password * @param string $starttls one of 'none', 'may' and 'encrypt' @@ -157,7 +157,7 @@ class SmtpEmailTransport implements IEmailTransport { * Reads a server reply and validates it against the given expected status codes. * Returns a tuple [ status code, reply text ]. * - * @param integer[] $expectedCodes + * @param int[] $expectedCodes * @return array * @throws PermanentFailure * @throws TransientFailure @@ -227,7 +227,7 @@ class SmtpEmailTransport implements IEmailTransport { * Connects to the server and enables STARTTLS if available. Bails * out if STARTTLS is not available and connection is set to 'encrypt'. * - * @param integer $overrideTimeout + * @param int $overrideTimeout * @throws PermanentFailure */ protected function connect($overrideTimeout = null) { diff --git a/wcfsetup/install/files/lib/system/event/listener/AbstractHtmlInputNodeProcessorListener.class.php b/wcfsetup/install/files/lib/system/event/listener/AbstractHtmlInputNodeProcessorListener.class.php index 0251ee8405..430b9987b4 100644 --- a/wcfsetup/install/files/lib/system/event/listener/AbstractHtmlInputNodeProcessorListener.class.php +++ b/wcfsetup/install/files/lib/system/event/listener/AbstractHtmlInputNodeProcessorListener.class.php @@ -24,7 +24,7 @@ abstract class AbstractHtmlInputNodeProcessorListener implements IParameterizedE * * @param HtmlInputNodeProcessor $processor * @param Regex $regex - * @return integer[] + * @return int[] */ protected function getObjectIDs(HtmlInputNodeProcessor $processor, Regex $regex) { $objectIDs = []; diff --git a/wcfsetup/install/files/lib/system/exception/AJAXException.class.php b/wcfsetup/install/files/lib/system/exception/AJAXException.class.php index 3905a2b152..f92c491f6d 100644 --- a/wcfsetup/install/files/lib/system/exception/AJAXException.class.php +++ b/wcfsetup/install/files/lib/system/exception/AJAXException.class.php @@ -15,37 +15,37 @@ use wcf\util\JSON; class AJAXException extends LoggedException { /** * missing parameters - * @var integer + * @var int */ const MISSING_PARAMETERS = 400; /** * session expired - * @var integer + * @var int */ const SESSION_EXPIRED = 401; /** * insufficient permissions - * @var integer + * @var int */ const INSUFFICIENT_PERMISSIONS = 403; /** * illegal link - * @var integer + * @var int */ const ILLEGAL_LINK = 404; /** * bad parameters - * @var integer + * @var int */ const BAD_PARAMETERS = 412; /** * internal server error - * @var integer + * @var int */ const INTERNAL_ERROR = 503; @@ -53,7 +53,7 @@ class AJAXException extends LoggedException { * Throws a JSON-encoded error message * * @param string $message - * @param integer $errorType + * @param int $errorType * @param string $stacktrace * @param mixed[] $returnValues * @param string $exceptionID diff --git a/wcfsetup/install/files/lib/system/exception/SystemException.class.php b/wcfsetup/install/files/lib/system/exception/SystemException.class.php index d98d79c10d..bd7c6c5e04 100644 --- a/wcfsetup/install/files/lib/system/exception/SystemException.class.php +++ b/wcfsetup/install/files/lib/system/exception/SystemException.class.php @@ -32,7 +32,7 @@ class SystemException extends LoggedException { * Creates a new SystemException. * * @param string $message error message - * @param integer $code error code + * @param int $code error code * @param string $description description of the error * @param \Exception $previous repacked Exception */ diff --git a/wcfsetup/install/files/lib/system/exporter/AbstractExporter.class.php b/wcfsetup/install/files/lib/system/exporter/AbstractExporter.class.php index 6ae8e725aa..fb09c64f5f 100644 --- a/wcfsetup/install/files/lib/system/exporter/AbstractExporter.class.php +++ b/wcfsetup/install/files/lib/system/exporter/AbstractExporter.class.php @@ -69,13 +69,13 @@ abstract class AbstractExporter implements IExporter { /** * limits for items per run - * @var integer[] + * @var int[] */ protected $limits = []; /** * default limit for items per run - * @var integer + * @var int */ protected $defaultLimit = 1000; @@ -185,7 +185,7 @@ abstract class AbstractExporter implements IExporter { * * @param string $tableName * @param string $columnName - * @return integer + * @return int */ protected function __getMaxID($tableName, $columnName) { $sql = "SELECT MAX(".$columnName.") AS maxID diff --git a/wcfsetup/install/files/lib/system/exporter/IExporter.class.php b/wcfsetup/install/files/lib/system/exporter/IExporter.class.php index 3b5dadbec9..b54decac58 100644 --- a/wcfsetup/install/files/lib/system/exporter/IExporter.class.php +++ b/wcfsetup/install/files/lib/system/exporter/IExporter.class.php @@ -32,7 +32,7 @@ interface IExporter { * Counts the number of required loops for given type. * * @param string $objectType - * @return integer + * @return int */ public function countLoops($objectType); @@ -40,7 +40,7 @@ interface IExporter { * Runs the data export. * * @param string $objectType - * @param integer $loopCount + * @param int $loopCount */ public function exportData($objectType, $loopCount = 0); diff --git a/wcfsetup/install/files/lib/system/feed/enclosure/FeedEnclosure.class.php b/wcfsetup/install/files/lib/system/feed/enclosure/FeedEnclosure.class.php index b300c78af7..ccb79ad3cd 100644 --- a/wcfsetup/install/files/lib/system/feed/enclosure/FeedEnclosure.class.php +++ b/wcfsetup/install/files/lib/system/feed/enclosure/FeedEnclosure.class.php @@ -24,7 +24,7 @@ class FeedEnclosure { /** * size of the enclosure in bytes - * @var integer + * @var int */ protected $length = 0; @@ -33,7 +33,7 @@ class FeedEnclosure { * * @param string $url url to the enclosure * @param string $type enclosure's MIME type - * @param integer $length size of the enclosure in bytes + * @param int $length size of the enclosure in bytes */ public function __construct($url, $type, $length) { $this->url = $url; @@ -62,7 +62,7 @@ class FeedEnclosure { /** * Returns the size of the enclosure in bytes. * - * @return integer + * @return int */ public function getLength() { return $this->length; diff --git a/wcfsetup/install/files/lib/system/form/builder/TFormParentNode.class.php b/wcfsetup/install/files/lib/system/form/builder/TFormParentNode.class.php index 9db622f110..d225e0029a 100644 --- a/wcfsetup/install/files/lib/system/form/builder/TFormParentNode.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/TFormParentNode.class.php @@ -23,7 +23,7 @@ trait TFormParentNode { /** * current iterator index - * @var integer + * @var int */ protected $index = 0; diff --git a/wcfsetup/install/files/lib/system/form/builder/button/wysiwyg/WysiwygPreviewFormButton.class.php b/wcfsetup/install/files/lib/system/form/builder/button/wysiwyg/WysiwygPreviewFormButton.class.php index 212aaa4081..22e9c2ef48 100644 --- a/wcfsetup/install/files/lib/system/form/builder/button/wysiwyg/WysiwygPreviewFormButton.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/button/wysiwyg/WysiwygPreviewFormButton.class.php @@ -20,7 +20,7 @@ class WysiwygPreviewFormButton extends FormButton implements IObjectTypeFormNode /** * id of the previewed message - * @var integer + * @var int */ protected $objectId = 0; @@ -41,7 +41,7 @@ class WysiwygPreviewFormButton extends FormButton implements IObjectTypeFormNode * * By default, `0` is returned. * - * @return integer + * @return int */ public function getObjectId() { return $this->objectId; @@ -57,7 +57,7 @@ class WysiwygPreviewFormButton extends FormButton implements IObjectTypeFormNode /** * Sets the id of the previewed message and returns this button. * - * @param integer $objectId id of previewed message + * @param int $objectId id of previewed message * @return WysiwygPreviewFormButton this button */ public function objectId($objectId) { diff --git a/wcfsetup/install/files/lib/system/form/builder/container/wysiwyg/WysiwygFormContainer.class.php b/wcfsetup/install/files/lib/system/form/builder/container/wysiwyg/WysiwygFormContainer.class.php index 2ad7b5d341..ee5f0cd604 100644 --- a/wcfsetup/install/files/lib/system/form/builder/container/wysiwyg/WysiwygFormContainer.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/container/wysiwyg/WysiwygFormContainer.class.php @@ -61,7 +61,7 @@ class WysiwygFormContainer extends FormContainer { /** * id of the edited object - * @var integer + * @var int */ protected $objectId; @@ -187,7 +187,7 @@ class WysiwygFormContainer extends FormContainer { * By default, no attachment data is set. * * @param null|string $objectType name of attachment object type or `null` to unset previous attachment data - * @param integer $parentObjectID id of the parent of the object the attachments belong to or `0` if no such parent exists + * @param int $parentObjectID id of the parent of the object the attachments belong to or `0` if no such parent exists * @return WysiwygFormContainer this form container * @throws \BadMethodCallException if the attachment form field has already been initialized */ @@ -250,7 +250,7 @@ class WysiwygFormContainer extends FormContainer { /** * Returns the id of the edited object or `0` if no object is edited. * - * @return integer + * @return int */ public function getObjectId() { return $this->objectId; diff --git a/wcfsetup/install/files/lib/system/form/builder/field/IMinimumLengthFormField.class.php b/wcfsetup/install/files/lib/system/form/builder/field/IMinimumLengthFormField.class.php index e4098febab..77f3e640b1 100644 --- a/wcfsetup/install/files/lib/system/form/builder/field/IMinimumLengthFormField.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/field/IMinimumLengthFormField.class.php @@ -27,7 +27,7 @@ interface IMinimumLengthFormField extends IFormField { * @param null|int $minimumLength minimum field value length * @return static this field * - * @throws \InvalidArgumentException if the given minimum length is no integer or otherwise invalid + * @throws \InvalidArgumentException if the given minimum length is no int or otherwise invalid */ public function minimumLength($minimumLength = null); diff --git a/wcfsetup/install/files/lib/system/form/builder/field/RatingFormField.class.php b/wcfsetup/install/files/lib/system/form/builder/field/RatingFormField.class.php index 3d4437e701..094f5d116e 100644 --- a/wcfsetup/install/files/lib/system/form/builder/field/RatingFormField.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/field/RatingFormField.class.php @@ -128,7 +128,7 @@ class RatingFormField extends AbstractFormField implements IImmutableFormField, /** * Returns the sorted list of possible ratings used to generate the form field's html code. * - * @return integer[] + * @return int[] */ public function getRatings() { if (WCF::getLanguage()->get('wcf.global.pageDirection') === 'rtl') { diff --git a/wcfsetup/install/files/lib/system/html/AbstractHtmlProcessor.class.php b/wcfsetup/install/files/lib/system/html/AbstractHtmlProcessor.class.php index 03889a152a..bab38e14d8 100644 --- a/wcfsetup/install/files/lib/system/html/AbstractHtmlProcessor.class.php +++ b/wcfsetup/install/files/lib/system/html/AbstractHtmlProcessor.class.php @@ -27,7 +27,7 @@ abstract class AbstractHtmlProcessor implements IHtmlProcessor { * Sets the message context data. * * @param string $objectType object type identifier - * @param integer $objectID object id + * @param int $objectID object id * @throws InvalidObjectTypeException */ public function setContext($objectType, $objectID) { diff --git a/wcfsetup/install/files/lib/system/html/input/HtmlInputProcessor.class.php b/wcfsetup/install/files/lib/system/html/input/HtmlInputProcessor.class.php index f506ffcb69..205a212551 100644 --- a/wcfsetup/install/files/lib/system/html/input/HtmlInputProcessor.class.php +++ b/wcfsetup/install/files/lib/system/html/input/HtmlInputProcessor.class.php @@ -45,7 +45,7 @@ class HtmlInputProcessor extends AbstractHtmlProcessor { * * @param string $html html string * @param string $objectType object type identifier - * @param integer $objectID object id + * @param int $objectID object id * @param boolean $convertFromBBCode interpret input as bbcode */ public function process($html, $objectType, $objectID = 0, $convertFromBBCode = false) { @@ -92,7 +92,7 @@ class HtmlInputProcessor extends AbstractHtmlProcessor { * * @param string $html html string * @param string $objectType object type identifier - * @param integer $objectID object id + * @param int $objectID object id * @since 3.1 */ public function reprocess($html, $objectType, $objectID) { @@ -143,7 +143,7 @@ class HtmlInputProcessor extends AbstractHtmlProcessor { * * @param string $html html string * @param string $objectType object type identifier - * @param integer $objectID object id + * @param int $objectID object id * @throws \UnexpectedValueException */ public function processEmbeddedContent($html, $objectType, $objectID) { @@ -170,7 +170,7 @@ class HtmlInputProcessor extends AbstractHtmlProcessor { /** * Enforces the maximum depth of nested quotes. * - * @param integer $depth + * @param int $depth */ public function enforceQuoteDepth($depth) { $this->getHtmlInputNodeProcessor()->enforceQuoteDepth($depth); @@ -226,7 +226,7 @@ class HtmlInputProcessor extends AbstractHtmlProcessor { /** * Sets the new object id. * - * @param integer $objectID object id + * @param int $objectID object id */ public function setObjectID($objectID) { $this->context['objectID'] = $objectID; diff --git a/wcfsetup/install/files/lib/system/html/input/node/HtmlInputNodeImg.class.php b/wcfsetup/install/files/lib/system/html/input/node/HtmlInputNodeImg.class.php index df113c5314..a7837c779f 100644 --- a/wcfsetup/install/files/lib/system/html/input/node/HtmlInputNodeImg.class.php +++ b/wcfsetup/install/files/lib/system/html/input/node/HtmlInputNodeImg.class.php @@ -20,7 +20,7 @@ use wcf\util\JSON; class HtmlInputNodeImg extends AbstractHtmlInputNode { /** * number of found smilies - * @var integer + * @var int */ protected $smiliesFound = 0; @@ -80,7 +80,7 @@ class HtmlInputNodeImg extends AbstractHtmlInputNode { /** * Returns the number of smilies found within the message. * - * @return integer + * @return int */ public function getSmileyCount() { return $this->smiliesFound; diff --git a/wcfsetup/install/files/lib/system/html/input/node/HtmlInputNodeProcessor.class.php b/wcfsetup/install/files/lib/system/html/input/node/HtmlInputNodeProcessor.class.php index 67eee3d158..e01a74ab3c 100644 --- a/wcfsetup/install/files/lib/system/html/input/node/HtmlInputNodeProcessor.class.php +++ b/wcfsetup/install/files/lib/system/html/input/node/HtmlInputNodeProcessor.class.php @@ -186,7 +186,7 @@ class HtmlInputNodeProcessor extends AbstractHtmlNodeProcessor { /** * Enforces the maximum depth of nested quotes. * - * @param integer $depth + * @param int $depth */ public function enforceQuoteDepth($depth) { $quotes = []; diff --git a/wcfsetup/install/files/lib/system/html/input/node/HtmlInputNodeTextParser.class.php b/wcfsetup/install/files/lib/system/html/input/node/HtmlInputNodeTextParser.class.php index a789066f88..d1765468dc 100644 --- a/wcfsetup/install/files/lib/system/html/input/node/HtmlInputNodeTextParser.class.php +++ b/wcfsetup/install/files/lib/system/html/input/node/HtmlInputNodeTextParser.class.php @@ -40,7 +40,7 @@ class HtmlInputNodeTextParser { /** * number of found smilies - * @var integer + * @var int */ protected $smileyCount = 0; @@ -83,7 +83,7 @@ class HtmlInputNodeTextParser { * HtmlInputNodeTextParser constructor. * * @param HtmlInputNodeProcessor $htmlInputNodeProcessor - * @param integer $smileyCount + * @param int $smileyCount */ public function __construct(HtmlInputNodeProcessor $htmlInputNodeProcessor, $smileyCount = 0) { $this->htmlInputNodeProcessor = $htmlInputNodeProcessor; diff --git a/wcfsetup/install/files/lib/system/html/output/HtmlOutputProcessor.class.php b/wcfsetup/install/files/lib/system/html/output/HtmlOutputProcessor.class.php index 0a6a1296f8..67b8f047ed 100644 --- a/wcfsetup/install/files/lib/system/html/output/HtmlOutputProcessor.class.php +++ b/wcfsetup/install/files/lib/system/html/output/HtmlOutputProcessor.class.php @@ -37,7 +37,7 @@ class HtmlOutputProcessor extends AbstractHtmlProcessor { /** * content language id - * @var integer + * @var int */ protected $languageID; @@ -58,9 +58,9 @@ class HtmlOutputProcessor extends AbstractHtmlProcessor { * * @param string $html html string * @param string $objectType object type identifier - * @param integer $objectID object id + * @param int $objectID object id * @param boolean $doKeywordHighlighting enable keyword highlighting - * @param integer $languageID content language id + * @param int $languageID content language id */ public function process($html, $objectType, $objectID, $doKeywordHighlighting = true, $languageID = null) { $this->languageID = $languageID; diff --git a/wcfsetup/install/files/lib/system/html/simple/HtmlSimpleParser.class.php b/wcfsetup/install/files/lib/system/html/simple/HtmlSimpleParser.class.php index 985d85c541..8d22a3347c 100644 --- a/wcfsetup/install/files/lib/system/html/simple/HtmlSimpleParser.class.php +++ b/wcfsetup/install/files/lib/system/html/simple/HtmlSimpleParser.class.php @@ -44,7 +44,7 @@ class HtmlSimpleParser extends SingletonFactory { * Sets the embedded object context. * * @param string $objectType object type identifier - * @param integer $objectID object id + * @param int $objectID object id */ public function setContext($objectType, $objectID) { MessageEmbeddedObjectManager::getInstance()->setActiveMessage($objectType, $objectID); @@ -59,7 +59,7 @@ class HtmlSimpleParser extends SingletonFactory { * Parses a message to identify any embedded content using simple placeholders. * * @param string $objectType object type identifier - * @param integer $objectID object id + * @param int $objectID object id * @param string $message message content * @return boolean true if there is at least one embedded content found */ @@ -98,7 +98,7 @@ class HtmlSimpleParser extends SingletonFactory { * Replaces simple placeholders with embedded content data. * * @param string $objectType object type identifier - * @param integer $objectID object id + * @param int $objectID object id * @param string $message message content * @return string parsed and replaced string */ diff --git a/wcfsetup/install/files/lib/system/html/toc/HtmlTocItem.class.php b/wcfsetup/install/files/lib/system/html/toc/HtmlTocItem.class.php index 213a3f35ef..33f0cb8404 100644 --- a/wcfsetup/install/files/lib/system/html/toc/HtmlTocItem.class.php +++ b/wcfsetup/install/files/lib/system/html/toc/HtmlTocItem.class.php @@ -84,7 +84,7 @@ class HtmlTocItem implements \Countable, \RecursiveIterator { /** * Returns the number of children. * - * @return integer + * @return int */ public function count() { return count($this->children); diff --git a/wcfsetup/install/files/lib/system/image/adapter/GDImageAdapter.class.php b/wcfsetup/install/files/lib/system/image/adapter/GDImageAdapter.class.php index b8da1e045b..b3b6c9dd78 100644 --- a/wcfsetup/install/files/lib/system/image/adapter/GDImageAdapter.class.php +++ b/wcfsetup/install/files/lib/system/image/adapter/GDImageAdapter.class.php @@ -14,7 +14,7 @@ use wcf\util\StringUtil; class GDImageAdapter implements IImageAdapter { /** * active color - * @var integer + * @var int */ protected $color = null; @@ -26,7 +26,7 @@ class GDImageAdapter implements IImageAdapter { /** * image height - * @var integer + * @var int */ protected $height = 0; @@ -38,13 +38,13 @@ class GDImageAdapter implements IImageAdapter { /** * image type - * @var integer + * @var int */ protected $type = 0; /** * image width - * @var integer + * @var int */ protected $width = 0; @@ -433,13 +433,13 @@ class GDImageAdapter implements IImageAdapter { * * @param resource $dst_im destination image resource * @param resource $src_im source image resource - * @param integer $dst_x x-coordinate of destination point - * @param integer $dst_y y-coordinate of destination point - * @param integer $src_x x-coordinate of source point - * @param integer $src_y y-coordinate of source point - * @param integer $src_w source width - * @param integer $src_h source height - * @param integer $pct opacity percent + * @param int $dst_x x-coordinate of destination point + * @param int $dst_y y-coordinate of destination point + * @param int $src_x x-coordinate of source point + * @param int $src_y y-coordinate of source point + * @param int $src_w source width + * @param int $src_h source height + * @param int $pct opacity percent * @return boolean */ private function imagecopymerge_alpha($dst_im, $src_im, $dst_x, $dst_y, $src_x, $src_y, $src_w, $src_h, $pct) { // phpcs:ignore diff --git a/wcfsetup/install/files/lib/system/image/adapter/IImageAdapter.class.php b/wcfsetup/install/files/lib/system/image/adapter/IImageAdapter.class.php index 6b4b9ae4f5..faae666dbb 100644 --- a/wcfsetup/install/files/lib/system/image/adapter/IImageAdapter.class.php +++ b/wcfsetup/install/files/lib/system/image/adapter/IImageAdapter.class.php @@ -14,7 +14,7 @@ interface IImageAdapter { * Loads an image resource. * * @param mixed $image - * @param integer $type + * @param int $type */ public function load($image, $type = 0); @@ -28,16 +28,16 @@ interface IImageAdapter { /** * Creates a new empty image. * - * @param integer $width - * @param integer $height + * @param int $width + * @param int $height */ public function createEmptyImage($width, $height); /** * Creates a thumbnail from previously loaded image. * - * @param integer $maxWidth - * @param integer $maxHeight + * @param int $maxWidth + * @param int $maxHeight * @param boolean $preserveAspectRatio * @return mixed */ @@ -46,10 +46,10 @@ interface IImageAdapter { /** * Clips a part of currently loaded image, overwrites image resource within instance. * - * @param integer $originX - * @param integer $originY - * @param integer $width - * @param integer $height + * @param int $originX + * @param int $originY + * @param int $width + * @param int $height * @see \wcf\system\image\adapter\IImageAdapter::getImage() */ public function clip($originX, $originY, $width, $height); @@ -57,12 +57,12 @@ interface IImageAdapter { /** * Resizes an image with optional scaling, overwrites image resource within instance. * - * @param integer $originX - * @param integer $originY - * @param integer $originWidth - * @param integer $originHeight - * @param integer $targetWidth - * @param integer $targetHeight + * @param int $originX + * @param int $originY + * @param int $originWidth + * @param int $originHeight + * @param int $targetWidth + * @param int $targetHeight * @see \wcf\system\image\adapter\IImageAdapter::getImage() */ public function resize($originX, $originY, $originWidth, $originHeight, $targetWidth, $targetHeight); @@ -70,10 +70,10 @@ interface IImageAdapter { /** * Draws a rectangle, overwrites image resource within instance. * - * @param integer $startX - * @param integer $startY - * @param integer $endX - * @param integer $endY + * @param int $startX + * @param int $startY + * @param int $endX + * @param int $endY * @see \wcf\system\image\adapter\IImageAdapter::getImage() * @see \wcf\system\image\adapter\IImageAdapter::setColor() */ @@ -83,10 +83,10 @@ interface IImageAdapter { * Draws a line of text, overwrites image resource within instance. * * @param string $text - * @param integer $x - * @param integer $y + * @param int $x + * @param int $y * @param string $font path to TrueType font file - * @param integer $size font size + * @param int $size font size * @param float $opacity * @see \wcf\system\image\adapter\IImageAdapter::getImage() * @see \wcf\system\image\adapter\IImageAdapter::setColor() @@ -99,11 +99,11 @@ interface IImageAdapter { * * @param string $text * @param string $position - * @param integer $margin in pixels - * @param integer $offsetX - * @param integer $offsetY + * @param int $margin in pixels + * @param int $offsetX + * @param int $offsetY * @param string $font path to TrueType font file - * @param integer $size font size + * @param int $size font size * @param float $opacity */ public function drawTextRelative($text, $position, $margin, $offsetX, $offsetY, $font, $size, $opacity = 1.0); @@ -112,10 +112,10 @@ interface IImageAdapter { * Returns true if the given text fits the image. * * @param string $text - * @param integer $margin + * @param int $margin * @param string $font path to TrueType font file - * @param integer $size font size - * @return integer + * @param int $size font size + * @return int * @return boolean */ public function textFitsImage($text, $margin, $font, $size); @@ -125,19 +125,19 @@ interface IImageAdapter { * image. Returns 0 if no appropriate font size could be determined. * * @param string $text - * @param integer $margin + * @param int $margin * @param string $font path to TrueType font file - * @param integer $size font size - * @return integer + * @param int $size font size + * @return int */ public function adjustFontSize($text, $margin, $font, $size); /** * Sets active color. * - * @param integer $red - * @param integer $green - * @param integer $blue + * @param int $red + * @param int $green + * @param int $blue */ public function setColor($red, $green, $blue); @@ -151,9 +151,9 @@ interface IImageAdapter { /** * Sets a color to be transparent with alpha 0. * - * @param integer $red - * @param integer $green - * @param integer $blue + * @param int $red + * @param int $green + * @param int $blue */ public function setTransparentColor($red, $green, $blue); @@ -175,21 +175,21 @@ interface IImageAdapter { /** * Returns image width. * - * @return integer + * @return int */ public function getWidth(); /** * Returns image height * - * @return integer + * @return int */ public function getHeight(); /** * Returns the image type (GD only) * - * @return integer + * @return int */ public function getType(); @@ -205,8 +205,8 @@ interface IImageAdapter { * Overlays the given image at an absolute position. * * @param string $file - * @param integer $x - * @param integer $y + * @param int $x + * @param int $y * @param float $opacity */ public function overlayImage($file, $x, $y, $opacity); @@ -216,7 +216,7 @@ interface IImageAdapter { * * @param string $file * @param string $position - * @param integer $margin + * @param int $margin * @param float $opacity */ public function overlayImageRelative($file, $position, $margin, $opacity); diff --git a/wcfsetup/install/files/lib/system/image/adapter/IMemoryAwareImageAdapter.class.php b/wcfsetup/install/files/lib/system/image/adapter/IMemoryAwareImageAdapter.class.php index f68388ad0b..cfae232076 100644 --- a/wcfsetup/install/files/lib/system/image/adapter/IMemoryAwareImageAdapter.class.php +++ b/wcfsetup/install/files/lib/system/image/adapter/IMemoryAwareImageAdapter.class.php @@ -16,8 +16,8 @@ interface IMemoryAwareImageAdapter extends IImageAdapter { * Returns whether it is believed that sufficient memory * is available to process an image with the given properties. * - * @param integer $width - * @param integer $height + * @param int $width + * @param int $height * @param string $mimeType * @return boolean */ diff --git a/wcfsetup/install/files/lib/system/image/adapter/ImagickImageAdapter.class.php b/wcfsetup/install/files/lib/system/image/adapter/ImagickImageAdapter.class.php index 09ee4073fa..a2afcb8cfd 100644 --- a/wcfsetup/install/files/lib/system/image/adapter/ImagickImageAdapter.class.php +++ b/wcfsetup/install/files/lib/system/image/adapter/ImagickImageAdapter.class.php @@ -27,13 +27,13 @@ class ImagickImageAdapter implements IImageAdapter { /** * image height - * @var integer + * @var int */ protected $height = 0; /** * image width - * @var integer + * @var int */ protected $width = 0; diff --git a/wcfsetup/install/files/lib/system/importer/AbstractACLImporter.class.php b/wcfsetup/install/files/lib/system/importer/AbstractACLImporter.class.php index 2250ad5a77..dc780e68ae 100644 --- a/wcfsetup/install/files/lib/system/importer/AbstractACLImporter.class.php +++ b/wcfsetup/install/files/lib/system/importer/AbstractACLImporter.class.php @@ -13,13 +13,13 @@ use wcf\system\WCF; class AbstractACLImporter extends AbstractImporter { /** * object type id for options - * @var integer + * @var int */ protected $objectTypeID = 0; /** * object type name - * @var integer + * @var int */ protected $objectTypeName = ''; diff --git a/wcfsetup/install/files/lib/system/importer/AbstractAttachmentImporter.class.php b/wcfsetup/install/files/lib/system/importer/AbstractAttachmentImporter.class.php index 36b86b6b8b..cadd27cf90 100644 --- a/wcfsetup/install/files/lib/system/importer/AbstractAttachmentImporter.class.php +++ b/wcfsetup/install/files/lib/system/importer/AbstractAttachmentImporter.class.php @@ -21,7 +21,7 @@ class AbstractAttachmentImporter extends AbstractImporter { /** * object type id for attachments - * @var integer + * @var int */ protected $objectTypeID = 0; @@ -96,8 +96,8 @@ class AbstractAttachmentImporter extends AbstractImporter { * Replaces old attachment BBCodes with BBCodes with the new attachment id. * * @param string $message - * @param integer $oldID - * @param integer $newID + * @param int $oldID + * @param int $newID * @return string|boolean */ protected function fixEmbeddedAttachments($message, $oldID, $newID) { diff --git a/wcfsetup/install/files/lib/system/importer/AbstractCategoryImporter.class.php b/wcfsetup/install/files/lib/system/importer/AbstractCategoryImporter.class.php index 8288491bf6..920a6e83c2 100644 --- a/wcfsetup/install/files/lib/system/importer/AbstractCategoryImporter.class.php +++ b/wcfsetup/install/files/lib/system/importer/AbstractCategoryImporter.class.php @@ -22,13 +22,13 @@ class AbstractCategoryImporter extends AbstractImporter { /** * object type id for categories - * @var integer + * @var int */ protected $objectTypeID = 0; /** * object type name - * @var integer + * @var int */ protected $objectTypeName = ''; diff --git a/wcfsetup/install/files/lib/system/importer/AbstractCommentImporter.class.php b/wcfsetup/install/files/lib/system/importer/AbstractCommentImporter.class.php index be6cc26a8a..66a9271a4d 100644 --- a/wcfsetup/install/files/lib/system/importer/AbstractCommentImporter.class.php +++ b/wcfsetup/install/files/lib/system/importer/AbstractCommentImporter.class.php @@ -19,13 +19,13 @@ class AbstractCommentImporter extends AbstractImporter { /** * object type id for comments - * @var integer + * @var int */ protected $objectTypeID = 0; /** * object type name - * @var integer + * @var int */ protected $objectTypeName = ''; diff --git a/wcfsetup/install/files/lib/system/importer/AbstractImporter.class.php b/wcfsetup/install/files/lib/system/importer/AbstractImporter.class.php index 999a695211..7d749f8c90 100644 --- a/wcfsetup/install/files/lib/system/importer/AbstractImporter.class.php +++ b/wcfsetup/install/files/lib/system/importer/AbstractImporter.class.php @@ -59,7 +59,7 @@ abstract class AbstractImporter implements IImporter { * Returns the language category id. * * @param string $languageCategory - * @return integer + * @return int */ protected function getLanguageCategoryID($languageCategory) { static $languageCategoryIDs = []; diff --git a/wcfsetup/install/files/lib/system/importer/AbstractLikeImporter.class.php b/wcfsetup/install/files/lib/system/importer/AbstractLikeImporter.class.php index 6c7c0fd898..6875ac7fd3 100644 --- a/wcfsetup/install/files/lib/system/importer/AbstractLikeImporter.class.php +++ b/wcfsetup/install/files/lib/system/importer/AbstractLikeImporter.class.php @@ -24,12 +24,12 @@ class AbstractLikeImporter extends AbstractImporter { /** * object type id for likes - * @var integer + * @var int */ protected $objectTypeID = 0; /** - * @var integer|null + * @var int|null */ protected static $dislikeReactionTypeID; @@ -76,7 +76,7 @@ class AbstractLikeImporter extends AbstractImporter { } /** - * @return integer + * @return int */ protected static function getDislikeReactionTypeID() { if (self::$dislikeReactionTypeID === null) { diff --git a/wcfsetup/install/files/lib/system/importer/AbstractPollImporter.class.php b/wcfsetup/install/files/lib/system/importer/AbstractPollImporter.class.php index f36a167333..afd1090fcb 100644 --- a/wcfsetup/install/files/lib/system/importer/AbstractPollImporter.class.php +++ b/wcfsetup/install/files/lib/system/importer/AbstractPollImporter.class.php @@ -19,7 +19,7 @@ class AbstractPollImporter extends AbstractImporter { /** * object type id for poll - * @var integer + * @var int */ protected $objectTypeID = 0; diff --git a/wcfsetup/install/files/lib/system/importer/AbstractWatchedObjectImporter.class.php b/wcfsetup/install/files/lib/system/importer/AbstractWatchedObjectImporter.class.php index daf6e6b574..e323a83b79 100644 --- a/wcfsetup/install/files/lib/system/importer/AbstractWatchedObjectImporter.class.php +++ b/wcfsetup/install/files/lib/system/importer/AbstractWatchedObjectImporter.class.php @@ -20,7 +20,7 @@ class AbstractWatchedObjectImporter extends AbstractImporter { /** * object type id for watched objects - * @var integer + * @var int */ protected $objectTypeID = 0; diff --git a/wcfsetup/install/files/lib/system/importer/ArticleImporter.class.php b/wcfsetup/install/files/lib/system/importer/ArticleImporter.class.php index fa061a823b..7e8b7635b8 100644 --- a/wcfsetup/install/files/lib/system/importer/ArticleImporter.class.php +++ b/wcfsetup/install/files/lib/system/importer/ArticleImporter.class.php @@ -24,7 +24,7 @@ class ArticleImporter extends AbstractImporter { /** * category for orphaned articles - * @var integer + * @var int */ private $importCategoryID = 0; @@ -118,7 +118,7 @@ class ArticleImporter extends AbstractImporter { /** * Returns the id of the category used for articles without previous categories. * - * @return integer + * @return int */ private function getImportCategoryID() { if (!$this->importCategoryID) { diff --git a/wcfsetup/install/files/lib/system/importer/ImportHandler.class.php b/wcfsetup/install/files/lib/system/importer/ImportHandler.class.php index 14a3cf788a..6e01a11796 100644 --- a/wcfsetup/install/files/lib/system/importer/ImportHandler.class.php +++ b/wcfsetup/install/files/lib/system/importer/ImportHandler.class.php @@ -37,7 +37,7 @@ class ImportHandler extends SingletonFactory implements IAJAXInvokeAction { /** * user merge mode - * @var integer + * @var int */ protected $userMergeMode = 2; @@ -84,7 +84,7 @@ class ImportHandler extends SingletonFactory implements IAJAXInvokeAction { * * @param string $type * @param mixed $oldID - * @return integer $newID + * @return int $newID */ public function getNewID($type, $oldID) { if (!$oldID) return null; @@ -119,8 +119,8 @@ class ImportHandler extends SingletonFactory implements IAJAXInvokeAction { * Saves an id mapping. * * @param string $type - * @param integer $oldID - * @param integer $newID + * @param int $oldID + * @param int $newID */ public function saveNewID($type, $oldID, $newID) { $objectTypeID = $this->objectTypes[$type]->objectTypeID; @@ -159,7 +159,7 @@ class ImportHandler extends SingletonFactory implements IAJAXInvokeAction { /** * Sets the user merge mode. * - * @param integer $mode + * @param int $mode */ public function setUserMergeMode($mode) { $this->userMergeMode = $mode; @@ -168,7 +168,7 @@ class ImportHandler extends SingletonFactory implements IAJAXInvokeAction { /** * Returns the user merge mode. * - * @return integer + * @return int */ public function getUserMergeMode() { return $this->userMergeMode; diff --git a/wcfsetup/install/files/lib/system/importer/TrophyImporter.class.php b/wcfsetup/install/files/lib/system/importer/TrophyImporter.class.php index e53af3d5eb..b83948f33f 100644 --- a/wcfsetup/install/files/lib/system/importer/TrophyImporter.class.php +++ b/wcfsetup/install/files/lib/system/importer/TrophyImporter.class.php @@ -23,7 +23,7 @@ class TrophyImporter extends AbstractImporter { /** * category for orphaned trophies - * @var integer + * @var int */ private $importCategoryID = 0; @@ -97,7 +97,7 @@ class TrophyImporter extends AbstractImporter { /** * Returns a categoryID for trophies without categoryID. * - * @return integer + * @return int */ private function getImportCategoryID() { if (!$this->importCategoryID) { diff --git a/wcfsetup/install/files/lib/system/importer/UserImporter.class.php b/wcfsetup/install/files/lib/system/importer/UserImporter.class.php index a423d5d26a..642073f52d 100644 --- a/wcfsetup/install/files/lib/system/importer/UserImporter.class.php +++ b/wcfsetup/install/files/lib/system/importer/UserImporter.class.php @@ -24,7 +24,7 @@ class UserImporter extends AbstractImporter { /** * ids of default notification events - * @var integer[] + * @var int[] */ protected $eventIDs = []; diff --git a/wcfsetup/install/files/lib/system/importer/UserOptionImporter.class.php b/wcfsetup/install/files/lib/system/importer/UserOptionImporter.class.php index e9add464a6..d4dc6b9631 100644 --- a/wcfsetup/install/files/lib/system/importer/UserOptionImporter.class.php +++ b/wcfsetup/install/files/lib/system/importer/UserOptionImporter.class.php @@ -25,7 +25,7 @@ class UserOptionImporter extends AbstractImporter { /** * language category id - * @var integer + * @var int */ protected $languageCategoryID = null; diff --git a/wcfsetup/install/files/lib/system/io/FTP.class.php b/wcfsetup/install/files/lib/system/io/FTP.class.php index 66cfaae991..3f018a8457 100644 --- a/wcfsetup/install/files/lib/system/io/FTP.class.php +++ b/wcfsetup/install/files/lib/system/io/FTP.class.php @@ -21,8 +21,8 @@ class FTP { * Opens a new ftp connection to given host. * * @param string $host - * @param integer $port - * @param integer $timeout + * @param int $port + * @param int $timeout * @throws SystemException */ public function __construct($host = 'localhost', $port = 21, $timeout = 30) { diff --git a/wcfsetup/install/files/lib/system/io/File.class.php b/wcfsetup/install/files/lib/system/io/File.class.php index a6ce21834d..6b9db3474c 100644 --- a/wcfsetup/install/files/lib/system/io/File.class.php +++ b/wcfsetup/install/files/lib/system/io/File.class.php @@ -23,16 +23,16 @@ use wcf\system\exception\SystemException; * * @method boolean close() * @method boolean eof() - * @method integer filesize() + * @method int filesize() * @method string gets($length = null) * @method resource open($mode, $use_include_path = false, $context = null) - * @method integer puts($string, $length = null) alias of `write` + * @method int puts($string, $length = null) alias of `write` * @method string read($length) - * @method integer seek($offset, $whence = SEEK_SET) + * @method int seek($offset, $whence = SEEK_SET) * @method array stat() - * @method integer tell() + * @method int tell() * @method boolean touch($time = 0, $atime = 0) note: default value of `$time` actually is `time()` - * @method integer write($string, $length = null) + * @method int write($string, $length = null) */ class File { /** diff --git a/wcfsetup/install/files/lib/system/io/GZipFile.class.php b/wcfsetup/install/files/lib/system/io/GZipFile.class.php index b836a20a37..df65b02046 100644 --- a/wcfsetup/install/files/lib/system/io/GZipFile.class.php +++ b/wcfsetup/install/files/lib/system/io/GZipFile.class.php @@ -71,7 +71,7 @@ class GZipFile extends File { /** * Returns the filesize of the unzipped file. * - * @return integer + * @return int */ public function getFileSize() { $byteBlock = 1<<14; diff --git a/wcfsetup/install/files/lib/system/io/IArchive.class.php b/wcfsetup/install/files/lib/system/io/IArchive.class.php index 8f64c71a4f..d550c63e09 100644 --- a/wcfsetup/install/files/lib/system/io/IArchive.class.php +++ b/wcfsetup/install/files/lib/system/io/IArchive.class.php @@ -50,7 +50,7 @@ interface IArchive { * Returns false if not found. * * @param string $filename - * @return integer index of the requested file + * @return int index of the requested file */ public function getIndexByFilename($filename); } diff --git a/wcfsetup/install/files/lib/system/io/RemoteFile.class.php b/wcfsetup/install/files/lib/system/io/RemoteFile.class.php index 90f9b38c31..9de9955157 100644 --- a/wcfsetup/install/files/lib/system/io/RemoteFile.class.php +++ b/wcfsetup/install/files/lib/system/io/RemoteFile.class.php @@ -19,13 +19,13 @@ class RemoteFile extends File { /** * port - * @var integer + * @var int */ protected $port = 0; /** * error number - * @var integer + * @var int */ protected $errorNumber = 0; @@ -46,8 +46,8 @@ class RemoteFile extends File { * Opens a new connection to a remote host. * * @param string $host - * @param integer $port - * @param integer $timeout + * @param int $port + * @param int $timeout * @param array $options * @throws SystemException */ @@ -74,7 +74,7 @@ class RemoteFile extends File { /** * Returns the error number of the last error. * - * @return integer + * @return int */ public function getErrorNumber() { return $this->errorNumber; diff --git a/wcfsetup/install/files/lib/system/io/Tar.class.php b/wcfsetup/install/files/lib/system/io/Tar.class.php index ff2b882664..32f264ad14 100644 --- a/wcfsetup/install/files/lib/system/io/Tar.class.php +++ b/wcfsetup/install/files/lib/system/io/Tar.class.php @@ -64,7 +64,7 @@ class Tar implements IArchive { /** * chunk size for extracting - * @var integer + * @var int */ const CHUNK_SIZE = 8192; diff --git a/wcfsetup/install/files/lib/system/io/TarWriter.class.php b/wcfsetup/install/files/lib/system/io/TarWriter.class.php index 6ce864444c..c39eb6ffbd 100644 --- a/wcfsetup/install/files/lib/system/io/TarWriter.class.php +++ b/wcfsetup/install/files/lib/system/io/TarWriter.class.php @@ -201,12 +201,12 @@ class TarWriter extends Tar { * Writes header block. * * @param string $filename - * @param integer $size - * @param integer $mtime - * @param integer $permissions + * @param int $size + * @param int $mtime + * @param int $permissions * @param string $typeFlag - * @param integer $uid - * @param integer $gid + * @param int $uid + * @param int $gid * @return boolean */ public function writeHeaderBlock($filename, $size, $mtime = 0, $permissions = 0, $typeFlag = '', $uid = 0, $gid = 0) { diff --git a/wcfsetup/install/files/lib/system/io/Zip.class.php b/wcfsetup/install/files/lib/system/io/Zip.class.php index 410839e0a0..bc1a877249 100644 --- a/wcfsetup/install/files/lib/system/io/Zip.class.php +++ b/wcfsetup/install/files/lib/system/io/Zip.class.php @@ -218,7 +218,7 @@ class Zip extends File implements IArchive { * Checks whether the next record is a file. * This does not change the position of the file-pointer. * - * @param integer $offset where to start reading + * @param int $offset where to start reading * @return boolean * @throws SystemException */ @@ -238,7 +238,7 @@ class Zip extends File implements IArchive { /** * Reads a file and returns it. * - * @param integer $offset where to start reading + * @param int $offset where to start reading * @return array * @throws SystemException */ @@ -322,7 +322,7 @@ class Zip extends File implements IArchive { /** * Reads in the specified number of bytes and unpacks them. * - * @param integer $length Number of bytes to read + * @param int $length Number of bytes to read * @param string $type Which type are the bytes of * @return mixed */ diff --git a/wcfsetup/install/files/lib/system/io/ZipWriter.class.php b/wcfsetup/install/files/lib/system/io/ZipWriter.class.php index d60bf4e261..7ff781851b 100644 --- a/wcfsetup/install/files/lib/system/io/ZipWriter.class.php +++ b/wcfsetup/install/files/lib/system/io/ZipWriter.class.php @@ -22,7 +22,7 @@ class ZipWriter { * Adds a folder to the Zip archive. * * @param string $name dirname - * @param integer $date + * @param int $date */ public function addDir($name, $date = TIME_NOW) { // replace backward slashes with forward slashes in the dirname @@ -82,7 +82,7 @@ class ZipWriter { * * @param string $data content of the file * @param string $name filename - * @param integer $date file creation time as unix timestamp + * @param int $date file creation time as unix timestamp */ public function addFile($data, $name, $date = TIME_NOW) { // replace backward slashes with forward slashes in the filename @@ -188,7 +188,7 @@ class ZipWriter { /** * Converts an unix timestamp to Zip file time. * - * @param integer $date unix timestamp + * @param int $date unix timestamp * @return string */ protected static function getDosDatetime($date) { diff --git a/wcfsetup/install/files/lib/system/label/LabelHandler.class.php b/wcfsetup/install/files/lib/system/label/LabelHandler.class.php index 9c6de7bbee..bb0f7725a3 100644 --- a/wcfsetup/install/files/lib/system/label/LabelHandler.class.php +++ b/wcfsetup/install/files/lib/system/label/LabelHandler.class.php @@ -55,7 +55,7 @@ class LabelHandler extends SingletonFactory { * no such option exists. * * @param string $optionName - * @return integer + * @return int */ public function getOptionID($optionName) { foreach ($this->labelGroups['options'] as $option) { @@ -86,7 +86,7 @@ class LabelHandler extends SingletonFactory { /** * Returns an array with view permissions for the labels with the given id. * - * @param integer[] $labelIDs + * @param int[] $labelIDs * @param User $user * @return array * @see \wcf\system\label\LabelHandler::getPermissions() @@ -98,7 +98,7 @@ class LabelHandler extends SingletonFactory { /** * Returns an array with use permissions for the labels with the given id. * - * @param integer[] $labelIDs + * @param int[] $labelIDs * @param User $user * @return array * @see \wcf\system\label\LabelHandler::getPermissions() @@ -111,7 +111,7 @@ class LabelHandler extends SingletonFactory { * Returns an array with boolean values for each given label id. * * @param string $optionName - * @param integer[] $labelIDs + * @param int[] $labelIDs * @param User $user * @return array * @throws SystemException @@ -160,9 +160,9 @@ class LabelHandler extends SingletonFactory { * Sets labels for given object id, pass an empty array to remove all previously * assigned labels. * - * @param integer[] $labelIDs - * @param integer $objectTypeID - * @param integer $objectID + * @param int[] $labelIDs + * @param int $objectTypeID + * @param int $objectID * @param boolean $validatePermissions */ public function setLabels(array $labelIDs, $objectTypeID, $objectID, $validatePermissions = true) { @@ -204,10 +204,10 @@ class LabelHandler extends SingletonFactory { * label for any of the given label group is given, an existing label from this group will * be removed. * - * @param integer[] $groupIDs ids of the relevant label groups - * @param integer[] $labelIDs ids of the new labels + * @param int[] $groupIDs ids of the relevant label groups + * @param int[] $labelIDs ids of the new labels * @param string $objectType label object type of the updated object - * @param integer $objectID id of the updated object + * @param int $objectID id of the updated object * @since 5.2 */ public function replaceLabels(array $groupIDs, array $labelIDs, $objectType, $objectID) { @@ -252,8 +252,8 @@ class LabelHandler extends SingletonFactory { /** * Returns all assigned labels, optionally filtered to validate permissions. * - * @param integer $objectTypeID - * @param integer[] $objectIDs + * @param int $objectTypeID + * @param int[] $objectIDs * @param boolean $validatePermissions * @return Label[][] */ @@ -320,7 +320,7 @@ class LabelHandler extends SingletonFactory { /** * Returns given label groups by id. * - * @param integer[] $groupIDs + * @param int[] $groupIDs * @param boolean $validatePermissions * @param string $permission * @return ViewableLabelGroup[] @@ -362,7 +362,7 @@ class LabelHandler extends SingletonFactory { /** * Returns a list of accessible label ids. * - * @return integer[] + * @return int[] */ public function getAccessibleLabelIDs() { $labelIDs = []; @@ -378,7 +378,7 @@ class LabelHandler extends SingletonFactory { /** * Returns label group by id. * - * @param integer $groupID + * @param int $groupID * @return ViewableLabelGroup */ public function getLabelGroup($groupID) { @@ -392,8 +392,8 @@ class LabelHandler extends SingletonFactory { /** * Removes all assigned labels for given object ids. * - * @param integer $objectTypeID - * @param integer[] $objectIDs + * @param int $objectTypeID + * @param int[] $objectIDs */ public function removeLabels($objectTypeID, array $objectIDs) { $conditions = new PreparedStatementConditionBuilder(); diff --git a/wcfsetup/install/files/lib/system/label/object/AbstractLabelObjectHandler.class.php b/wcfsetup/install/files/lib/system/label/object/AbstractLabelObjectHandler.class.php index 494acf6cb3..77cd6051e5 100644 --- a/wcfsetup/install/files/lib/system/label/object/AbstractLabelObjectHandler.class.php +++ b/wcfsetup/install/files/lib/system/label/object/AbstractLabelObjectHandler.class.php @@ -29,7 +29,7 @@ abstract class AbstractLabelObjectHandler extends SingletonFactory implements IL /** * object type id - * @var integer + * @var int */ protected $objectTypeID = 0; diff --git a/wcfsetup/install/files/lib/system/label/object/ArticleLabelObjectHandler.class.php b/wcfsetup/install/files/lib/system/label/object/ArticleLabelObjectHandler.class.php index 6d12b85500..21c2283ff4 100644 --- a/wcfsetup/install/files/lib/system/label/object/ArticleLabelObjectHandler.class.php +++ b/wcfsetup/install/files/lib/system/label/object/ArticleLabelObjectHandler.class.php @@ -21,7 +21,7 @@ class ArticleLabelObjectHandler extends AbstractLabelObjectHandler { /** * Sets the label groups available for the categories with the given ids. * - * @param integer[] $categoryIDs + * @param int[] $categoryIDs */ public function setCategoryIDs($categoryIDs) { $labelGroupsToCategories = ArticleCategoryLabelCacheBuilder::getInstance()->getData(); diff --git a/wcfsetup/install/files/lib/system/label/object/ILabelObjectHandler.class.php b/wcfsetup/install/files/lib/system/label/object/ILabelObjectHandler.class.php index 1c48532161..5810f2402e 100644 --- a/wcfsetup/install/files/lib/system/label/object/ILabelObjectHandler.class.php +++ b/wcfsetup/install/files/lib/system/label/object/ILabelObjectHandler.class.php @@ -16,7 +16,7 @@ interface ILabelObjectHandler { * Returns a list of label group ids. * * @param array $parameters - * @return integer[] + * @return int[] */ public function getLabelGroupIDs(array $parameters = []); @@ -31,7 +31,7 @@ interface ILabelObjectHandler { /** * Returns true, if all given label ids are valid and accessible. * - * @param integer[] $labelIDs + * @param int[] $labelIDs * @param string $optionName * @param boolean $legacyReturnValue * @return mixed @@ -41,8 +41,8 @@ interface ILabelObjectHandler { /** * Assigns labels to an object. * - * @param integer[] $labelIDs - * @param integer $objectID + * @param int[] $labelIDs + * @param int $objectID * @param boolean $validatePermissions * @see \wcf\system\label\LabelHandler::setLabels() */ @@ -51,7 +51,7 @@ interface ILabelObjectHandler { /** * Removes all assigned labels. * - * @param integer $objectID + * @param int $objectID * @param boolean $validatePermissions * @see \wcf\system\label\LabelHandler::removeLabels() */ @@ -60,7 +60,7 @@ interface ILabelObjectHandler { /** * Returns a list of assigned labels. * - * @param integer[] $objectIDs + * @param int[] $objectIDs * @param boolean $validatePermissions * @return Label[] */ diff --git a/wcfsetup/install/files/lib/system/label/object/type/AbstractLabelObjectTypeHandler.class.php b/wcfsetup/install/files/lib/system/label/object/type/AbstractLabelObjectTypeHandler.class.php index 9707d61793..e6f6192216 100644 --- a/wcfsetup/install/files/lib/system/label/object/type/AbstractLabelObjectTypeHandler.class.php +++ b/wcfsetup/install/files/lib/system/label/object/type/AbstractLabelObjectTypeHandler.class.php @@ -19,7 +19,7 @@ abstract class AbstractLabelObjectTypeHandler extends SingletonFactory implement /** * object type id - * @var integer + * @var int */ public $objectTypeID = 0; diff --git a/wcfsetup/install/files/lib/system/label/object/type/ILabelObjectTypeHandler.class.php b/wcfsetup/install/files/lib/system/label/object/type/ILabelObjectTypeHandler.class.php index 7831f2271c..cd46c32386 100644 --- a/wcfsetup/install/files/lib/system/label/object/type/ILabelObjectTypeHandler.class.php +++ b/wcfsetup/install/files/lib/system/label/object/type/ILabelObjectTypeHandler.class.php @@ -13,14 +13,14 @@ interface ILabelObjectTypeHandler { /** * Sets object type id. * - * @param integer $objectTypeID + * @param int $objectTypeID */ public function setObjectTypeID($objectTypeID); /** * Returns object type id. * - * @return integer + * @return int */ public function getObjectTypeID(); diff --git a/wcfsetup/install/files/lib/system/label/object/type/LabelObjectType.class.php b/wcfsetup/install/files/lib/system/label/object/type/LabelObjectType.class.php index a3de412d70..589747c1f4 100644 --- a/wcfsetup/install/files/lib/system/label/object/type/LabelObjectType.class.php +++ b/wcfsetup/install/files/lib/system/label/object/type/LabelObjectType.class.php @@ -12,7 +12,7 @@ namespace wcf\system\label\object\type; class LabelObjectType { /** * indentation level - * @var integer + * @var int */ public $depth = 0; @@ -30,13 +30,13 @@ class LabelObjectType { /** * object id - * @var integer + * @var int */ public $objectID = 0; /** * option value - * @var integer + * @var int */ public $optionValue = 0; @@ -44,8 +44,8 @@ class LabelObjectType { * Creates a new LabelObjectType object. * * @param string $label - * @param integer $objectID - * @param integer $depth + * @param int $objectID + * @param int $depth * @param boolean $isCategory */ public function __construct($label, $objectID = 0, $depth = 0, $isCategory = false) { @@ -66,7 +66,7 @@ class LabelObjectType { /** * Returns the object id. - * @return integer + * @return int */ public function getObjectID() { return $this->objectID; @@ -84,7 +84,7 @@ class LabelObjectType { /** * Returns indentation level. * - * @return integer + * @return int */ public function getDepth() { return $this->depth; @@ -93,7 +93,7 @@ class LabelObjectType { /** * Sets option value. * - * @param integer $optionValue + * @param int $optionValue */ public function setOptionValue($optionValue) { $this->optionValue = $optionValue; @@ -102,7 +102,7 @@ class LabelObjectType { /** * Returns option value. * - * @return integer + * @return int */ public function getOptionValue() { return $this->optionValue; diff --git a/wcfsetup/install/files/lib/system/label/object/type/LabelObjectTypeContainer.class.php b/wcfsetup/install/files/lib/system/label/object/type/LabelObjectTypeContainer.class.php index 80f5b5395a..0ad0e5e7b1 100644 --- a/wcfsetup/install/files/lib/system/label/object/type/LabelObjectTypeContainer.class.php +++ b/wcfsetup/install/files/lib/system/label/object/type/LabelObjectTypeContainer.class.php @@ -19,20 +19,20 @@ class LabelObjectTypeContainer implements \Countable, \Iterator { /** * object type id - * @var integer + * @var int */ public $objectTypeID = 0; /** * iterator position - * @var integer + * @var int */ private $position = 0; /** * Creates a new LabelObjectTypeContainer object. * - * @param integer $objectTypeID + * @param int $objectTypeID */ public function __construct($objectTypeID) { $this->objectTypeID = $objectTypeID; @@ -50,7 +50,7 @@ class LabelObjectTypeContainer implements \Countable, \Iterator { /** * Returns the object type id. * - * @return integer + * @return int */ public function getObjectTypeID() { return $this->objectTypeID; diff --git a/wcfsetup/install/files/lib/system/language/I18nHandler.class.php b/wcfsetup/install/files/lib/system/language/I18nHandler.class.php index 1c10ec3b3c..ac13e1c721 100644 --- a/wcfsetup/install/files/lib/system/language/I18nHandler.class.php +++ b/wcfsetup/install/files/lib/system/language/I18nHandler.class.php @@ -282,7 +282,7 @@ class I18nHandler extends SingletonFactory { * @param string|string[] $elementID either the id of the element or externally passed array `languageID => value` * @param string $languageVariable * @param string $languageCategory - * @param integer $packageID + * @param int $packageID */ public function save($elementID, $languageVariable, $languageCategory, $packageID = PACKAGE_ID) { // get language category id @@ -405,8 +405,8 @@ class I18nHandler extends SingletonFactory { /** * Sets additional options for elements, required if updating values. * - * @param integer $elementID - * @param integer $packageID + * @param int $elementID + * @param int $packageID * @param string $value * @param string $pattern */ diff --git a/wcfsetup/install/files/lib/system/language/I18nPlural.class.php b/wcfsetup/install/files/lib/system/language/I18nPlural.class.php index 07c52e2c13..b17b2390e8 100644 --- a/wcfsetup/install/files/lib/system/language/I18nPlural.class.php +++ b/wcfsetup/install/files/lib/system/language/I18nPlural.class.php @@ -48,7 +48,7 @@ class I18nPlural { * `f` is the fractional number as a whole number (1.234 yields 234) * * @param number $n - * @return integer + * @return int */ private static function getF($n) { $n = (string)$n; @@ -64,7 +64,7 @@ class I18nPlural { * `v` represents the number of digits of the fractional part (1.234 yields 3) * * @param number $n - * @return integer + * @return int */ private static function getV($n) { return strlen(preg_replace('/^[^.]*\.?/', '', (string)$n)); diff --git a/wcfsetup/install/files/lib/system/language/I18nValue.class.php b/wcfsetup/install/files/lib/system/language/I18nValue.class.php index 758db50e2a..436f246679 100644 --- a/wcfsetup/install/files/lib/system/language/I18nValue.class.php +++ b/wcfsetup/install/files/lib/system/language/I18nValue.class.php @@ -20,7 +20,7 @@ class I18nValue { /** * bit-mask to alter validation rules - * @var integer + * @var int */ protected $flags = 0; @@ -77,7 +77,7 @@ class I18nValue { /** * Sets bit flags. * - * @param integer $flags + * @param int $flags */ public function setFlags($flags) { $this->flags = $flags; @@ -86,7 +86,7 @@ class I18nValue { /** * Returns true if given flag is set. * - * @param integer $flag + * @param int $flag * @return boolean */ public function getFlag($flag) { diff --git a/wcfsetup/install/files/lib/system/language/LanguageFactory.class.php b/wcfsetup/install/files/lib/system/language/LanguageFactory.class.php index 61525e17d2..8bf613d028 100644 --- a/wcfsetup/install/files/lib/system/language/LanguageFactory.class.php +++ b/wcfsetup/install/files/lib/system/language/LanguageFactory.class.php @@ -45,7 +45,7 @@ class LanguageFactory extends SingletonFactory { /** * Returns a Language object for the language with the given id. * - * @param integer $languageID + * @param int $languageID * @return Language */ public function getLanguage($languageID) { @@ -63,7 +63,7 @@ class LanguageFactory extends SingletonFactory { /** * Returns the preferred language of the current user. * - * @param integer $languageID + * @param int $languageID * @return Language */ public function getUserLanguage($languageID = 0) { @@ -128,7 +128,7 @@ class LanguageFactory extends SingletonFactory { /** * Returns language category by id. * - * @param integer $languageCategoryID + * @param int $languageCategoryID * @return LanguageCategory */ public function getCategoryByID($languageCategoryID) { @@ -249,7 +249,7 @@ class LanguageFactory extends SingletonFactory { /** * Returns the default language id * - * @return integer + * @return int */ public function getDefaultLanguageID() { return $this->cache['default']; @@ -283,7 +283,7 @@ class LanguageFactory extends SingletonFactory { /** * Returns the list of content language ids. * - * @return integer[] + * @return int[] * @since 3.1 */ public function getContentLanguageIDs() { @@ -300,7 +300,7 @@ class LanguageFactory extends SingletonFactory { /** * Makes given language the default language. * - * @param integer $languageID + * @param int $languageID */ public function makeDefault($languageID) { // remove old default language @@ -345,7 +345,7 @@ class LanguageFactory extends SingletonFactory { /** * Returns the number of phrases that have been automatically disabled in the past 7 days. * - * @return integer + * @return int */ public function countRecentlyDisabledCustomValues() { $sql = "SELECT COUNT(*) AS count diff --git a/wcfsetup/install/files/lib/system/like/LikeHandler.class.php b/wcfsetup/install/files/lib/system/like/LikeHandler.class.php index 3d22dff81e..87e8a40dc9 100644 --- a/wcfsetup/install/files/lib/system/like/LikeHandler.class.php +++ b/wcfsetup/install/files/lib/system/like/LikeHandler.class.php @@ -60,7 +60,7 @@ class LikeHandler extends SingletonFactory { * Returns a like object. * * @param ObjectType $objectType - * @param integer $objectID + * @param int $objectID * @return LikeObject|null */ public function getLikeObject(ObjectType $objectType, $objectID) { @@ -83,7 +83,7 @@ class LikeHandler extends SingletonFactory { * * @param ObjectType $objectType * @param array $objectIDs - * @return integer + * @return int */ public function loadLikeObjects(ObjectType $objectType, array $objectIDs) { return ReactionHandler::getInstance()->loadLikeObjects($objectType, $objectIDs); @@ -94,8 +94,8 @@ class LikeHandler extends SingletonFactory { * * @param ILikeObject $likeable * @param User $user - * @param integer $likeValue - * @param integer $time + * @param int $likeValue + * @param int $time * @return array */ public function like(ILikeObject $likeable, User $user, $likeValue, $time = TIME_NOW) { @@ -150,7 +150,7 @@ class LikeHandler extends SingletonFactory { * Removes all likes for given objects. * * @param string $objectType - * @param integer[] $objectIDs + * @param int[] $objectIDs * @param string[] $notificationObjectTypes */ public function removeLikes($objectType, array $objectIDs, array $notificationObjectTypes = []) { diff --git a/wcfsetup/install/files/lib/system/log/modification/AbstractModificationLogHandler.class.php b/wcfsetup/install/files/lib/system/log/modification/AbstractModificationLogHandler.class.php index 33b0ea01fb..518b8fb6fb 100644 --- a/wcfsetup/install/files/lib/system/log/modification/AbstractModificationLogHandler.class.php +++ b/wcfsetup/install/files/lib/system/log/modification/AbstractModificationLogHandler.class.php @@ -46,13 +46,13 @@ abstract class AbstractModificationLogHandler extends SingletonFactory { * Creates a modification log entry. * * @param string $action - * @param integer $objectID - * @param integer|null $parentObjectID + * @param int $objectID + * @param int|null $parentObjectID * @param array $additionalData - * @param integer $time - * @param integer|null $userID + * @param int $time + * @param int|null $userID * @param string|null $username - * @param integer $hidden + * @param int $hidden * @return ModificationLog */ public function createLog($action, $objectID, $parentObjectID = null, array $additionalData = [], $time = TIME_NOW, $userID = null, $username = null, $hidden = 1) { @@ -94,7 +94,7 @@ abstract class AbstractModificationLogHandler extends SingletonFactory { /** * Deletes modification log entries. * - * @param integer[] $objectIDs + * @param int[] $objectIDs * @param string[] $ignoredActions names of actions whose log entries will not be deleted */ public function deleteLogs(array $objectIDs, array $ignoredActions = []) { @@ -116,7 +116,7 @@ abstract class AbstractModificationLogHandler extends SingletonFactory { /** * Deletes modification log entries by the id of the parent object. * - * @param integer[] $parentObjectIDs + * @param int[] $parentObjectIDs */ public function deleteLogsByParentIDs(array $parentObjectIDs) { if (empty($parentObjectIDs)) return; @@ -149,8 +149,8 @@ abstract class AbstractModificationLogHandler extends SingletonFactory { /** * Updates the parent object id of modification log entries. * - * @param integer[] $objectIDs - * @param integer $newParentObjectID + * @param int[] $objectIDs + * @param int $newParentObjectID */ public function updateParentObjectID(array $objectIDs, $newParentObjectID) { if (empty($objectIDs)) return; diff --git a/wcfsetup/install/files/lib/system/log/modification/ModificationLogHandler.class.php b/wcfsetup/install/files/lib/system/log/modification/ModificationLogHandler.class.php index 41b94d7a29..53b3e3c0fc 100644 --- a/wcfsetup/install/files/lib/system/log/modification/ModificationLogHandler.class.php +++ b/wcfsetup/install/files/lib/system/log/modification/ModificationLogHandler.class.php @@ -52,11 +52,11 @@ class ModificationLogHandler extends SingletonFactory { * Adds a new entry to modification log. * * @param string $objectType - * @param integer $objectID + * @param int $objectID * @param string $action * @param array $additionalData - * @param integer $time - * @param integer $userID + * @param int $time + * @param int $userID * @param string $username * @return ModificationLog * @throws SystemException @@ -99,7 +99,7 @@ class ModificationLogHandler extends SingletonFactory { * Removes log entries. * * @param string $objectType - * @param integer[] $objectIDs + * @param int[] $objectIDs * @throws SystemException */ protected function _remove($objectType, array $objectIDs) { diff --git a/wcfsetup/install/files/lib/system/mail/Mail.class.php b/wcfsetup/install/files/lib/system/mail/Mail.class.php index 58684c1f4e..e2b783dc29 100644 --- a/wcfsetup/install/files/lib/system/mail/Mail.class.php +++ b/wcfsetup/install/files/lib/system/mail/Mail.class.php @@ -58,7 +58,7 @@ class Mail { * @param string $cc * @param string $bcc * @param array $attachments - * @param integer|string $priority + * @param int|string $priority * @param string $header */ public function __construct($to = '', $subject = '', $message = '', $from = '', $cc = '', $bcc = '', $attachments = [], $priority = '', $header = '') { @@ -312,7 +312,7 @@ class Mail { /** * Sets the priority of the mail. * - * @param integer $priority + * @param int $priority */ public function setPriority($priority) { $this->email->addHeader('x-priority', $priority); diff --git a/wcfsetup/install/files/lib/system/menu/TreeMenu.class.php b/wcfsetup/install/files/lib/system/menu/TreeMenu.class.php index 4b4d26f49c..775593ba2b 100644 --- a/wcfsetup/install/files/lib/system/menu/TreeMenu.class.php +++ b/wcfsetup/install/files/lib/system/menu/TreeMenu.class.php @@ -182,7 +182,7 @@ abstract class TreeMenu extends SingletonFactory { /** * Returns the active menu item. * - * @param integer $level + * @param int $level * @return string */ public function getActiveMenuItem($level = 0) { diff --git a/wcfsetup/install/files/lib/system/menu/user/profile/UserProfileMenu.class.php b/wcfsetup/install/files/lib/system/menu/user/profile/UserProfileMenu.class.php index 8d6746b666..b7415fa922 100644 --- a/wcfsetup/install/files/lib/system/menu/user/profile/UserProfileMenu.class.php +++ b/wcfsetup/install/files/lib/system/menu/user/profile/UserProfileMenu.class.php @@ -101,7 +101,7 @@ class UserProfileMenu extends SingletonFactory { /** * Returns the first visible menu item. * - * @param integer $userID + * @param int $userID * @return UserProfileMenuItem */ public function getActiveMenuItem($userID = 0) { diff --git a/wcfsetup/install/files/lib/system/menu/user/profile/content/CommentUserProfileMenuContent.class.php b/wcfsetup/install/files/lib/system/menu/user/profile/content/CommentUserProfileMenuContent.class.php index cccef04b99..4c80bec983 100644 --- a/wcfsetup/install/files/lib/system/menu/user/profile/content/CommentUserProfileMenuContent.class.php +++ b/wcfsetup/install/files/lib/system/menu/user/profile/content/CommentUserProfileMenuContent.class.php @@ -21,7 +21,7 @@ class CommentUserProfileMenuContent extends SingletonFactory implements IUserPro /** * object type id - * @var integer + * @var int */ public $objectTypeID = 0; diff --git a/wcfsetup/install/files/lib/system/menu/user/profile/content/IUserProfileMenuContent.class.php b/wcfsetup/install/files/lib/system/menu/user/profile/content/IUserProfileMenuContent.class.php index 1b75115453..c78d8ba4b3 100644 --- a/wcfsetup/install/files/lib/system/menu/user/profile/content/IUserProfileMenuContent.class.php +++ b/wcfsetup/install/files/lib/system/menu/user/profile/content/IUserProfileMenuContent.class.php @@ -13,7 +13,7 @@ interface IUserProfileMenuContent { /** * Returns content for this user profile menu item. * - * @param integer $userID + * @param int $userID * @return string */ public function getContent($userID); @@ -21,7 +21,7 @@ interface IUserProfileMenuContent { /** * Returns true if the associated menu item should be visible for the active user. * - * @param integer $userID + * @param int $userID * @return boolean */ public function isVisible($userID); diff --git a/wcfsetup/install/files/lib/system/message/QuickReplyManager.class.php b/wcfsetup/install/files/lib/system/message/QuickReplyManager.class.php index 81c62ce460..f7699e6d5e 100644 --- a/wcfsetup/install/files/lib/system/message/QuickReplyManager.class.php +++ b/wcfsetup/install/files/lib/system/message/QuickReplyManager.class.php @@ -34,7 +34,7 @@ class QuickReplyManager extends SingletonFactory { /** * object id - * @var integer + * @var int */ public $objectID = 0; @@ -48,7 +48,7 @@ class QuickReplyManager extends SingletonFactory { * Returns a stored message from session. * * @param string $type - * @param integer $objectID + * @param int $objectID * @return string */ public function getMessage($type, $objectID) { @@ -66,7 +66,7 @@ class QuickReplyManager extends SingletonFactory { * Stores a message in session. * * @param string $type - * @param integer $objectID + * @param int $objectID * @param string $message */ public function setMessage($type, $objectID, $message) { @@ -77,7 +77,7 @@ class QuickReplyManager extends SingletonFactory { * Removes a stored message from session. * * @param string $type - * @param integer $objectID + * @param int $objectID */ public function removeMessage($type, $objectID) { WCF::getSession()->unregister('quickReply-'.$type.'-'.$objectID); diff --git a/wcfsetup/install/files/lib/system/message/censorship/Censorship.class.php b/wcfsetup/install/files/lib/system/message/censorship/Censorship.class.php index 9b6e3082cc..1760e58adb 100644 --- a/wcfsetup/install/files/lib/system/message/censorship/Censorship.class.php +++ b/wcfsetup/install/files/lib/system/message/censorship/Censorship.class.php @@ -163,7 +163,7 @@ class Censorship extends SingletonFactory { /** * Looks behind in the word list. * - * @param integer $index + * @param int $index * @param string $search * @return boolean */ @@ -183,7 +183,7 @@ class Censorship extends SingletonFactory { /** * Looks ahead in the word list. * - * @param integer $index + * @param int $index * @param string $search * @return mixed */ diff --git a/wcfsetup/install/files/lib/system/message/embedded/object/IMessageEmbeddedObjectHandler.class.php b/wcfsetup/install/files/lib/system/message/embedded/object/IMessageEmbeddedObjectHandler.class.php index bbcc679369..23edef9e83 100644 --- a/wcfsetup/install/files/lib/system/message/embedded/object/IMessageEmbeddedObjectHandler.class.php +++ b/wcfsetup/install/files/lib/system/message/embedded/object/IMessageEmbeddedObjectHandler.class.php @@ -11,7 +11,7 @@ use wcf\system\html\input\HtmlInputProcessor; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\System\Message\Embedded\Object * - * @property-read integer $objectTypeID id of the embedded object type + * @property-read int $objectTypeID id of the embedded object type */ interface IMessageEmbeddedObjectHandler { /** @@ -21,7 +21,7 @@ interface IMessageEmbeddedObjectHandler { * * @param HtmlInputProcessor $htmlInputProcessor html input processor holding the current document * @param mixed[] $embeddedData list of found embedded data with attributes - * @return integer[] ids of found embedded objects + * @return int[] ids of found embedded objects */ public function parse(HtmlInputProcessor $htmlInputProcessor, array $embeddedData); diff --git a/wcfsetup/install/files/lib/system/message/embedded/object/ISimpleMessageEmbeddedObjectHandler.class.php b/wcfsetup/install/files/lib/system/message/embedded/object/ISimpleMessageEmbeddedObjectHandler.class.php index 39a33b3bd3..461477ed71 100644 --- a/wcfsetup/install/files/lib/system/message/embedded/object/ISimpleMessageEmbeddedObjectHandler.class.php +++ b/wcfsetup/install/files/lib/system/message/embedded/object/ISimpleMessageEmbeddedObjectHandler.class.php @@ -14,9 +14,9 @@ interface ISimpleMessageEmbeddedObjectHandler extends IMessageEmbeddedObjectHand * Validates the provided values for existence and returns the filtered list. * * @param string $objectType object type identifier - * @param integer $objectID object id - * @param integer[] $values list of value ids - * @return integer[] filtered list + * @param int $objectID object id + * @param int[] $values list of value ids + * @return int[] filtered list */ public function validateValues($objectType, $objectID, array $values); @@ -25,8 +25,8 @@ interface ISimpleMessageEmbeddedObjectHandler extends IMessageEmbeddedObjectHand * if no replacement should be performed due to invalid or missing arguments. * * @param string $objectType object type identifier - * @param integer $objectID object id - * @param integer $value value id + * @param int $objectID object id + * @param int $value value id * @param array $attributes list of additional attributes * @return string|null replacement string or null if value id is unknown */ diff --git a/wcfsetup/install/files/lib/system/message/embedded/object/MessageEmbeddedObjectManager.class.php b/wcfsetup/install/files/lib/system/message/embedded/object/MessageEmbeddedObjectManager.class.php index f7aef7d9a3..cb3c166c1f 100644 --- a/wcfsetup/install/files/lib/system/message/embedded/object/MessageEmbeddedObjectManager.class.php +++ b/wcfsetup/install/files/lib/system/message/embedded/object/MessageEmbeddedObjectManager.class.php @@ -30,19 +30,19 @@ class MessageEmbeddedObjectManager extends SingletonFactory { /** * object type of the active message - * @var integer + * @var int */ protected $activeMessageObjectTypeID; /** * id of the active message - * @var integer + * @var int */ protected $activeMessageID; /** * language id of the active message - * @var integer + * @var int */ protected $activeMessageLanguageID; @@ -54,7 +54,7 @@ class MessageEmbeddedObjectManager extends SingletonFactory { /** * content language id - * @var integer + * @var int */ protected $contentLanguageID; @@ -165,8 +165,8 @@ class MessageEmbeddedObjectManager extends SingletonFactory { * Registers the embedded objects found in a message using the simplified syntax. * * @param string $messageObjectType object type identifier - * @param integer $messageID object id - * @param integer[][] $embeddedContent list of object ids for embedded objects by object type id + * @param int $messageID object id + * @param int[][] $embeddedContent list of object ids for embedded objects by object type id * @return boolean true if at least one embedded object was found */ public function registerSimpleObjects($messageObjectType, $messageID, array $embeddedContent) { @@ -201,7 +201,7 @@ class MessageEmbeddedObjectManager extends SingletonFactory { * Removes embedded object assignments for given messages. * * @param string $messageObjectType - * @param integer[] $messageIDs + * @param int[] $messageIDs */ public function removeObjects($messageObjectType, array $messageIDs) { $conditionBuilder = new PreparedStatementConditionBuilder(); @@ -218,8 +218,8 @@ class MessageEmbeddedObjectManager extends SingletonFactory { * Loads the embedded objects for given messages. * * @param string $messageObjectType - * @param integer[] $messageIDs - * @param integer $contentLanguageID + * @param int[] $messageIDs + * @param int $contentLanguageID * @throws InvalidObjectTypeException */ public function loadObjects($messageObjectType, array $messageIDs, $contentLanguageID = null) { @@ -269,7 +269,7 @@ class MessageEmbeddedObjectManager extends SingletonFactory { /** * Returns the content language id or null. * - * @return integer + * @return int */ public function getContentLanguageID() { return $this->contentLanguageID; @@ -279,8 +279,8 @@ class MessageEmbeddedObjectManager extends SingletonFactory { * Sets active message information. * * @param string $messageObjectType - * @param integer $messageID - * @param integer $languageID + * @param int $messageID + * @param int $languageID */ public function setActiveMessage($messageObjectType, $messageID, $languageID = null) { $this->activeMessageObjectTypeID = ObjectTypeCache::getInstance()->getObjectTypeIDByName('com.woltlab.wcf.message', $messageObjectType); @@ -291,7 +291,7 @@ class MessageEmbeddedObjectManager extends SingletonFactory { /** * Returns the language id of the active message. * - * @return integer + * @return int */ public function getActiveMessageLanguageID() { return $this->activeMessageLanguageID; @@ -321,7 +321,7 @@ class MessageEmbeddedObjectManager extends SingletonFactory { * Returns a specific embedded object. * * @param string $embeddedObjectType - * @param integer $objectID + * @param int $objectID * @return \wcf\data\DatabaseObject */ public function getObject($embeddedObjectType, $objectID) { @@ -401,7 +401,7 @@ class MessageEmbeddedObjectManager extends SingletonFactory { /** * Returns a specific embedded object handler. * - * @param integer $objectTypeID + * @param int $objectTypeID * @return IMessageEmbeddedObjectHandler */ protected function getEmbeddedObjectHandler($objectTypeID) { diff --git a/wcfsetup/install/files/lib/system/message/quote/MessageQuoteManager.class.php b/wcfsetup/install/files/lib/system/message/quote/MessageQuoteManager.class.php index 2aa263f819..a0d9480761 100644 --- a/wcfsetup/install/files/lib/system/message/quote/MessageQuoteManager.class.php +++ b/wcfsetup/install/files/lib/system/message/quote/MessageQuoteManager.class.php @@ -21,7 +21,7 @@ use wcf\util\ArrayUtil; class MessageQuoteManager extends SingletonFactory { /** * current object ids - * @var integer[] + * @var int[] */ protected $objectIDs = []; @@ -51,7 +51,7 @@ class MessageQuoteManager extends SingletonFactory { /** * message id for quoting - * @var integer + * @var int */ protected $quoteMessageID = 0; @@ -86,8 +86,8 @@ class MessageQuoteManager extends SingletonFactory { * $message and $obj->getMessage() for $fullQuote. * * @param string $objectType - * @param integer $parentObjectID - * @param integer $objectID + * @param int $parentObjectID + * @param int $objectID * @param string $message * @param string $fullQuote * @param boolean $returnFalseIfExists @@ -157,7 +157,7 @@ class MessageQuoteManager extends SingletonFactory { * Returns the quote id for given quote. * * @param string $objectType - * @param integer $objectID + * @param int $objectID * @param string $message * @param string $fullQuote * @return string @@ -286,7 +286,7 @@ class MessageQuoteManager extends SingletonFactory { * Returns a list of quotes by object type and id. * * @param string $objectType - * @param integer[] $objectIDs + * @param int[] $objectIDs * @param boolean $markForRemoval * @return string[] */ @@ -326,7 +326,7 @@ class MessageQuoteManager extends SingletonFactory { * Returns a list of quotes by object type and parent object id. * * @param string $objectType - * @param integer $parentObjectID + * @param int $parentObjectID * @param boolean $markForRemoval * @return string[] */ @@ -384,7 +384,7 @@ class MessageQuoteManager extends SingletonFactory { * Returns the object id by quote id. * * @param string $quoteID - * @return integer + * @return int */ public function getObjectID($quoteID) { if (isset($this->quoteData[$quoteID])) { @@ -467,7 +467,7 @@ class MessageQuoteManager extends SingletonFactory { /** * Returns the number of stored quotes. * - * @return integer + * @return int */ public function countQuotes() { $count = 0; @@ -515,7 +515,7 @@ class MessageQuoteManager extends SingletonFactory { * Sets object type and object ids. * * @param string $objectType - * @param integer[] $objectIDs + * @param int[] $objectIDs * @throws SystemException */ public function initObjects($objectType, array $objectIDs) { @@ -589,7 +589,7 @@ class MessageQuoteManager extends SingletonFactory { /** * Returns quote message id. * - * @return integer + * @return int */ public function getQuoteMessageID() { return $this->quoteMessageID; @@ -598,7 +598,7 @@ class MessageQuoteManager extends SingletonFactory { /** * Removes orphaned quote ids * - * @param integer[] $quoteIDs + * @param int[] $quoteIDs */ public function removeOrphanedQuotes(array $quoteIDs) { foreach ($quoteIDs as $quoteID) { diff --git a/wcfsetup/install/files/lib/system/message/quote/QuotedMessage.class.php b/wcfsetup/install/files/lib/system/message/quote/QuotedMessage.class.php index 239f636784..11cbe631ba 100644 --- a/wcfsetup/install/files/lib/system/message/quote/QuotedMessage.class.php +++ b/wcfsetup/install/files/lib/system/message/quote/QuotedMessage.class.php @@ -15,9 +15,9 @@ use wcf\data\IMessage; * @method string getFormattedMessage() * @method string getLink() * @method string getMessage() - * @method integer getTime() + * @method int getTime() * @method string getTitle() - * @method integer getUserID() + * @method int getUserID() * @method string getUsername() * @method boolean isVisible() */ @@ -48,13 +48,13 @@ class QuotedMessage implements \Countable, \Iterator { /** * current iterator index - * @var integer + * @var int */ protected $index = 0; /** * list of index to object relation - * @var integer[] + * @var int[] */ protected $indexToObject = null; diff --git a/wcfsetup/install/files/lib/system/moderation/queue/AbstractCommentCommentModerationQueueHandler.class.php b/wcfsetup/install/files/lib/system/moderation/queue/AbstractCommentCommentModerationQueueHandler.class.php index b6684d431f..6747ba4703 100644 --- a/wcfsetup/install/files/lib/system/moderation/queue/AbstractCommentCommentModerationQueueHandler.class.php +++ b/wcfsetup/install/files/lib/system/moderation/queue/AbstractCommentCommentModerationQueueHandler.class.php @@ -91,7 +91,7 @@ class AbstractCommentCommentModerationQueueHandler extends AbstractModerationQue /** * Returns a comment object by comment id or null if comment id is invalid. * - * @param integer $objectID + * @param int $objectID * @return Comment|null */ protected function getComment($objectID) { diff --git a/wcfsetup/install/files/lib/system/moderation/queue/AbstractCommentResponseModerationQueueHandler.class.php b/wcfsetup/install/files/lib/system/moderation/queue/AbstractCommentResponseModerationQueueHandler.class.php index 08dd69bf54..bb626c708a 100644 --- a/wcfsetup/install/files/lib/system/moderation/queue/AbstractCommentResponseModerationQueueHandler.class.php +++ b/wcfsetup/install/files/lib/system/moderation/queue/AbstractCommentResponseModerationQueueHandler.class.php @@ -104,7 +104,7 @@ class AbstractCommentResponseModerationQueueHandler extends AbstractCommentComme /** * Returns a comment response object by response id or null if response id is invalid. * - * @param integer $objectID + * @param int $objectID * @return CommentResponse|null */ protected function getResponse($objectID) { diff --git a/wcfsetup/install/files/lib/system/moderation/queue/AbstractModerationQueueManager.class.php b/wcfsetup/install/files/lib/system/moderation/queue/AbstractModerationQueueManager.class.php index 853698b89a..547139094d 100644 --- a/wcfsetup/install/files/lib/system/moderation/queue/AbstractModerationQueueManager.class.php +++ b/wcfsetup/install/files/lib/system/moderation/queue/AbstractModerationQueueManager.class.php @@ -74,9 +74,9 @@ abstract class AbstractModerationQueueManager extends SingletonFactory implement /** * Adds an entry to moderation queue. * - * @param integer $objectTypeID - * @param integer $objectID - * @param integer $containerID + * @param int $objectTypeID + * @param int $objectID + * @param int $containerID * @param array $additionalData */ protected function addEntry($objectTypeID, $objectID, $containerID = 0, array $additionalData = []) { @@ -129,9 +129,9 @@ abstract class AbstractModerationQueueManager extends SingletonFactory implement * * This method is intended for bulk processing. * - * @param integer $objectTypeID - * @param integer[] $objectIDs - * @param integer[] $containerIDs format: `objectID => containerID` + * @param int $objectTypeID + * @param int[] $objectIDs + * @param int[] $containerIDs format: `objectID => containerID` * @param array $additionalData */ protected function addEntries($objectTypeID, array $objectIDs, array $containerIDs, array $additionalData = []) { @@ -232,8 +232,8 @@ abstract class AbstractModerationQueueManager extends SingletonFactory implement /** * Marks a list of moderation queue entries as done. * - * @param integer $objectTypeID - * @param integer[] $objectIDs + * @param int $objectTypeID + * @param int[] $objectIDs */ protected function removeEntries($objectTypeID, array $objectIDs) { $queueList = new ModerationQueueList(); diff --git a/wcfsetup/install/files/lib/system/moderation/queue/IModerationQueueHandler.class.php b/wcfsetup/install/files/lib/system/moderation/queue/IModerationQueueHandler.class.php index 29799cf695..46b82aa370 100644 --- a/wcfsetup/install/files/lib/system/moderation/queue/IModerationQueueHandler.class.php +++ b/wcfsetup/install/files/lib/system/moderation/queue/IModerationQueueHandler.class.php @@ -22,23 +22,23 @@ interface IModerationQueueHandler { /** * Returns the container id for current object id, may return 0. * - * @param integer $objectID - * @return integer + * @param int $objectID + * @return int */ public function getContainerID($objectID); /** * Validates object ids and returns orphaned queue ids. * - * @param integer[] $queues - * @return integer[] + * @param int[] $queues + * @return int[] */ public function identifyOrphans(array $queues); /** * Returns true if given object id is valid. * - * @param integer $objectID + * @param int $objectID * @return boolean */ public function isValid($objectID); @@ -71,7 +71,7 @@ interface IModerationQueueHandler { * Removes queses from database, should only be called if the referenced * object is permanently deleted. * - * @param integer[] $objectIDs + * @param int[] $objectIDs */ public function removeQueues(array $objectIDs); @@ -79,7 +79,7 @@ interface IModerationQueueHandler { * Returns true, if given user is affected by given queue entry. * * @param ModerationQueue $queue - * @param integer $userID + * @param int $userID * @return boolean */ public function isAffectedUser(ModerationQueue $queue, $userID); diff --git a/wcfsetup/install/files/lib/system/moderation/queue/IModerationQueueManager.class.php b/wcfsetup/install/files/lib/system/moderation/queue/IModerationQueueManager.class.php index c07838bdbd..6df10ef000 100644 --- a/wcfsetup/install/files/lib/system/moderation/queue/IModerationQueueManager.class.php +++ b/wcfsetup/install/files/lib/system/moderation/queue/IModerationQueueManager.class.php @@ -15,7 +15,7 @@ interface IModerationQueueManager { /** * Creates queue assignments for matching object type ids. * - * @param integer $objectTypeID + * @param int $objectTypeID * @param ModerationQueue[] $queues */ public function assignQueues($objectTypeID, array $queues); @@ -24,7 +24,7 @@ interface IModerationQueueManager { * Returns true if given object type is valid, optionally checking object id. * * @param string $objectType - * @param integer $objectID + * @param int $objectID * @return boolean */ public function isValid($objectType, $objectID = null); @@ -32,7 +32,7 @@ interface IModerationQueueManager { /** * Returns link for viewing/editing objects for this moderation type. * - * @param integer $queueID + * @param int $queueID * @return string */ public function getLink($queueID); @@ -41,7 +41,7 @@ interface IModerationQueueManager { * Returns object type id for given object type. * * @param string $objectType - * @return integer + * @return int */ public function getObjectTypeID($objectType); @@ -49,7 +49,7 @@ interface IModerationQueueManager { * Returns object type processor by object type. * * @param string $objectType - * @param integer $objectTypeID + * @param int $objectTypeID * @return object */ public function getProcessor($objectType, $objectTypeID = null); @@ -57,7 +57,7 @@ interface IModerationQueueManager { /** * Populates object properties for viewing. * - * @param integer $objectTypeID + * @param int $objectTypeID * @param ViewableModerationQueue[] $objects */ public function populate($objectTypeID, array $objects); diff --git a/wcfsetup/install/files/lib/system/moderation/queue/ModerationQueueActivationManager.class.php b/wcfsetup/install/files/lib/system/moderation/queue/ModerationQueueActivationManager.class.php index 45f3dad776..cc9b9edea4 100644 --- a/wcfsetup/install/files/lib/system/moderation/queue/ModerationQueueActivationManager.class.php +++ b/wcfsetup/install/files/lib/system/moderation/queue/ModerationQueueActivationManager.class.php @@ -52,7 +52,7 @@ class ModerationQueueActivationManager extends AbstractModerationQueueManager { * Adds an entry for moderated content. * * @param string $objectType - * @param integer $objectID + * @param int $objectID * @param array $additionalData * @throws InvalidObjectTypeException */ @@ -79,8 +79,8 @@ class ModerationQueueActivationManager extends AbstractModerationQueueManager { * This method is intended for bulk processing. * * @param string $objectType - * @param integer[] $objectID - * @poram integer[] $containerIDs format: `objectID => containerID` + * @param int[] $objectID + * @poram int[] $containerIDs format: `objectID => containerID` * @param array $additionalData * @throws InvalidObjectTypeException */ @@ -101,7 +101,7 @@ class ModerationQueueActivationManager extends AbstractModerationQueueManager { * Marks entries from moderation queue as done. * * @param string $objectType - * @param integer[] $objectIDs + * @param int[] $objectIDs * @throws InvalidObjectTypeException */ public function removeModeratedContent($objectType, array $objectIDs) { diff --git a/wcfsetup/install/files/lib/system/moderation/queue/ModerationQueueManager.class.php b/wcfsetup/install/files/lib/system/moderation/queue/ModerationQueueManager.class.php index da98f308b8..8efab673a9 100644 --- a/wcfsetup/install/files/lib/system/moderation/queue/ModerationQueueManager.class.php +++ b/wcfsetup/install/files/lib/system/moderation/queue/ModerationQueueManager.class.php @@ -35,7 +35,7 @@ class ModerationQueueManager extends SingletonFactory { /** * list of object type names categorized by type - * @var integer[][] + * @var int[][] */ protected $objectTypeNames = []; @@ -96,7 +96,7 @@ class ModerationQueueManager extends SingletonFactory { * * @param string $definitionName * @param string $objectType - * @param integer $objectTypeID + * @param int $objectTypeID * @return object */ public function getProcessor($definitionName, $objectType, $objectTypeID = null) { @@ -114,8 +114,8 @@ class ModerationQueueManager extends SingletonFactory { /** * Returns link for viewing/editing an object type. * - * @param integer $objectTypeID - * @param integer $queueID + * @param int $objectTypeID + * @param int $queueID * @return string */ public function getLink($objectTypeID, $queueID) { @@ -133,7 +133,7 @@ class ModerationQueueManager extends SingletonFactory { * * @param string $definitionName * @param string $objectType - * @return integer + * @return int */ public function getObjectTypeID($definitionName, $objectType) { if ($this->isValid($definitionName, $objectType)) { @@ -164,8 +164,8 @@ class ModerationQueueManager extends SingletonFactory { /** * Returns a list of object type ids for given definition ids. * - * @param integer[] $definitionIDs - * @return integer[] + * @param int[] $definitionIDs + * @return int[] */ public function getObjectTypeIDs(array $definitionIDs) { $objectTypeIDs = []; @@ -183,7 +183,7 @@ class ModerationQueueManager extends SingletonFactory { /** * Populates object properties for viewing. * - * @param integer $objectTypeID + * @param int $objectTypeID * @param ViewableModerationQueue[] $objects * @throws SystemException */ @@ -207,7 +207,7 @@ class ModerationQueueManager extends SingletonFactory { /** * Returns the count of outstanding moderation queue items. * - * @return integer + * @return int */ public function getOutstandingModerationCount() { // get count @@ -244,7 +244,7 @@ class ModerationQueueManager extends SingletonFactory { * Returns the count of unread moderation queue items. * * @param boolean $skipCache - * @return integer + * @return int */ public function getUnreadModerationCount($skipCache = false) { // get count @@ -373,7 +373,7 @@ class ModerationQueueManager extends SingletonFactory { /** * Removes a list of orphaned queue ids. * - * @param integer[] $queueIDs + * @param int[] $queueIDs */ public function removeOrphans(array $queueIDs) { if (!empty($queueIDs)) { @@ -391,7 +391,7 @@ class ModerationQueueManager extends SingletonFactory { /** * Resets moderation count for all users or optionally only for one user. * - * @param integer $userID + * @param int $userID */ public function resetModerationCount($userID = null) { if ($userID === null) { @@ -441,7 +441,7 @@ class ModerationQueueManager extends SingletonFactory { * Removes moderation queues, should only be called if related objects are permanently deleted. * * @param string $objectType - * @param integer[] $objectIDs + * @param int[] $objectIDs * @throws SystemException */ public function removeQueues($objectType, array $objectIDs) { diff --git a/wcfsetup/install/files/lib/system/moderation/queue/ModerationQueueReportManager.class.php b/wcfsetup/install/files/lib/system/moderation/queue/ModerationQueueReportManager.class.php index 48e6458fcf..c7a57a2e1a 100644 --- a/wcfsetup/install/files/lib/system/moderation/queue/ModerationQueueReportManager.class.php +++ b/wcfsetup/install/files/lib/system/moderation/queue/ModerationQueueReportManager.class.php @@ -25,7 +25,7 @@ class ModerationQueueReportManager extends AbstractModerationQueueManager { * Returns true if given item was already reported. * * @param string $objectType - * @param integer $objectID + * @param int $objectID * @return boolean */ public function isAlreadyReported($objectType, $objectID) { @@ -49,7 +49,7 @@ class ModerationQueueReportManager extends AbstractModerationQueueManager { * A pending report has a status other than done. * * @param string $objectType - * @param integer $objectID + * @param int $objectID * @return boolean */ public function hasPendingReport($objectType, $objectID) { @@ -75,7 +75,7 @@ class ModerationQueueReportManager extends AbstractModerationQueueManager { * Returns true if current user can report given content. * * @param string $objectType - * @param integer $objectID + * @param int $objectID * @return boolean */ public function canReport($objectType, $objectID) { @@ -106,7 +106,7 @@ class ModerationQueueReportManager extends AbstractModerationQueueManager { * Returns the reported object. * * @param string $objectType - * @param integer $objectID + * @param int $objectID * @return \wcf\data\IUserContent */ public function getReportedObject($objectType, $objectID) { @@ -117,7 +117,7 @@ class ModerationQueueReportManager extends AbstractModerationQueueManager { * Adds a report for specified content. * * @param string $objectType - * @param integer $objectID + * @param int $objectID * @param string $message * @param array $additionalData * @throws InvalidObjectTypeException diff --git a/wcfsetup/install/files/lib/system/moderation/queue/report/IModerationQueueReportHandler.class.php b/wcfsetup/install/files/lib/system/moderation/queue/report/IModerationQueueReportHandler.class.php index b56dc26819..68c4d7509a 100644 --- a/wcfsetup/install/files/lib/system/moderation/queue/report/IModerationQueueReportHandler.class.php +++ b/wcfsetup/install/files/lib/system/moderation/queue/report/IModerationQueueReportHandler.class.php @@ -15,7 +15,7 @@ interface IModerationQueueReportHandler extends IModerationQueueHandler { /** * Returns true if current user can report given content. * - * @param integer $objectID + * @param int $objectID * @return boolean */ public function canReport($objectID); @@ -31,7 +31,7 @@ interface IModerationQueueReportHandler extends IModerationQueueHandler { /** * Returns reported object. * - * @param integer $objectID + * @param int $objectID * @return \wcf\data\IUserContent */ public function getReportedObject($objectID); diff --git a/wcfsetup/install/files/lib/system/moderation/queue/report/UserModerationQueueReportHandler.class.php b/wcfsetup/install/files/lib/system/moderation/queue/report/UserModerationQueueReportHandler.class.php index 03efd7d1b2..66816b47a6 100644 --- a/wcfsetup/install/files/lib/system/moderation/queue/report/UserModerationQueueReportHandler.class.php +++ b/wcfsetup/install/files/lib/system/moderation/queue/report/UserModerationQueueReportHandler.class.php @@ -106,7 +106,7 @@ class UserModerationQueueReportHandler extends AbstractModerationQueueHandler im /** * Returns a user object by user id or null if user id is invalid. * - * @param integer $objectID + * @param int $objectID * @return User|null */ protected function getUser($objectID) { diff --git a/wcfsetup/install/files/lib/system/option/IOptionHandler.class.php b/wcfsetup/install/files/lib/system/option/IOptionHandler.class.php index 13b69c7b1d..907083fcee 100644 --- a/wcfsetup/install/files/lib/system/option/IOptionHandler.class.php +++ b/wcfsetup/install/files/lib/system/option/IOptionHandler.class.php @@ -37,7 +37,7 @@ interface IOptionHandler { * Returns the tree of options. * * @param string $parentCategoryName - * @param integer $level + * @param int $level * @return array */ public function getOptionTree($parentCategoryName = '', $level = 0); diff --git a/wcfsetup/install/files/lib/system/option/IOptionType.class.php b/wcfsetup/install/files/lib/system/option/IOptionType.class.php index 6c9c105e74..0799616da8 100644 --- a/wcfsetup/install/files/lib/system/option/IOptionType.class.php +++ b/wcfsetup/install/files/lib/system/option/IOptionType.class.php @@ -64,7 +64,7 @@ interface IOptionType { * * @param mixed $value1 * @param mixed $value2 - * @return integer + * @return int */ public function compare($value1, $value2); diff --git a/wcfsetup/install/files/lib/system/option/user/DateUserOptionOutput.class.php b/wcfsetup/install/files/lib/system/option/user/DateUserOptionOutput.class.php index 39b5abd6cc..276ffa4330 100644 --- a/wcfsetup/install/files/lib/system/option/user/DateUserOptionOutput.class.php +++ b/wcfsetup/install/files/lib/system/option/user/DateUserOptionOutput.class.php @@ -33,7 +33,7 @@ class DateUserOptionOutput implements IUserOptionOutput { * Splits the given dashed date into its components. * * @param string $value - * @return integer[] + * @return int[] */ protected static function splitDate($value) { $year = $month = $day = 0; diff --git a/wcfsetup/install/files/lib/system/package/PackageArchive.class.php b/wcfsetup/install/files/lib/system/package/PackageArchive.class.php index 7945a37569..a4b87973e2 100644 --- a/wcfsetup/install/files/lib/system/package/PackageArchive.class.php +++ b/wcfsetup/install/files/lib/system/package/PackageArchive.class.php @@ -71,7 +71,7 @@ class PackageArchive { /** * list of compatible API versions - * @var integer[] + * @var int[] * @deprecated 5.2 */ protected $compatibility = []; @@ -614,7 +614,7 @@ class PackageArchive { /** * Returns the list of compatible API versions. * - * @return integer[] + * @return int[] * @deprecated 5.2 */ public function getCompatibleVersions() { diff --git a/wcfsetup/install/files/lib/system/package/PackageInstallationDispatcher.class.php b/wcfsetup/install/files/lib/system/package/PackageInstallationDispatcher.class.php index ae209f262e..5a3cc5c960 100644 --- a/wcfsetup/install/files/lib/system/package/PackageInstallationDispatcher.class.php +++ b/wcfsetup/install/files/lib/system/package/PackageInstallationDispatcher.class.php @@ -1021,7 +1021,7 @@ class PackageInstallationDispatcher { /** * Returns current package id. * - * @return integer + * @return int */ public function getPackageID() { return $this->queue->packageID; @@ -1050,8 +1050,8 @@ class PackageInstallationDispatcher { * Opens the package installation queue and * starts the installation, update or uninstallation of the first entry. * - * @param integer $parentQueueID - * @param integer $processNo + * @param int $parentQueueID + * @param int $processNo */ public static function openQueue($parentQueueID = 0, $processNo = 0) { $conditions = new PreparedStatementConditionBuilder(); @@ -1083,7 +1083,7 @@ class PackageInstallationDispatcher { /** * Checks the package installation queue for outstanding entries. * - * @return integer + * @return int */ public static function checkPackageInstallationQueue() { $sql = "SELECT queueID @@ -1297,7 +1297,7 @@ class PackageInstallationDispatcher { * Converts shorthand byte values into an integer representing bytes. * * @param string $value - * @return integer + * @return int * @see http://www.php.net/manual/en/faq.using.php#faq.using.shorthandbytes */ protected static function convertShorthandByteValue($value) { diff --git a/wcfsetup/install/files/lib/system/package/PackageInstallationNodeBuilder.class.php b/wcfsetup/install/files/lib/system/package/PackageInstallationNodeBuilder.class.php index fa11dec9c9..72952f8c7f 100644 --- a/wcfsetup/install/files/lib/system/package/PackageInstallationNodeBuilder.class.php +++ b/wcfsetup/install/files/lib/system/package/PackageInstallationNodeBuilder.class.php @@ -49,7 +49,7 @@ class PackageInstallationNodeBuilder { /** * current sequence number within one node - * @var integer + * @var int */ public $sequenceNo = 0; @@ -136,7 +136,7 @@ class PackageInstallationNodeBuilder { /** * Returns package name associated with given queue id. * - * @param integer $queueID + * @param int $queueID * @return string */ public function getPackageNameByQueue($queueID) { @@ -157,7 +157,7 @@ class PackageInstallationNodeBuilder { /** * Returns installation type by queue id. * - * @param integer $queueID + * @param int $queueID * @return string */ public function getInstallationTypeByQueue($queueID) { @@ -234,7 +234,7 @@ class PackageInstallationNodeBuilder { * Calculates current setup process. * * @param string $node - * @return integer + * @return int */ public function calculateProgress($node) { $progress = [ @@ -274,7 +274,7 @@ class PackageInstallationNodeBuilder { * Duplicates a node by re-inserting it and moving all descendants into a new tree. * * @param string $node - * @param integer $sequenceNo + * @param int $sequenceNo */ public function cloneNode($node, $sequenceNo) { $newNode = $this->getToken(); @@ -747,9 +747,9 @@ class PackageInstallationNodeBuilder { /** * Returns queue id based upon current node. * - * @param integer $processNo + * @param int $processNo * @param string $node - * @return integer|null + * @return int|null */ public function getQueueByNode($processNo, $node) { $sql = "SELECT queueID diff --git a/wcfsetup/install/files/lib/system/package/PackageInstallationSQLParser.class.php b/wcfsetup/install/files/lib/system/package/PackageInstallationSQLParser.class.php index 47cb0fb1cd..91e1f56378 100644 --- a/wcfsetup/install/files/lib/system/package/PackageInstallationSQLParser.class.php +++ b/wcfsetup/install/files/lib/system/package/PackageInstallationSQLParser.class.php @@ -207,7 +207,7 @@ class PackageInstallationSQLParser extends SQLParser { * * @param string $tableName * @param string $columnName - * @return integer package id + * @return int package id */ protected function getColumnOwnerID($tableName, $columnName) { $sql = "SELECT packageID @@ -230,7 +230,7 @@ class PackageInstallationSQLParser extends SQLParser { * * @param string $tableName * @param string $indexName - * @return integer package id + * @return int package id */ protected function getIndexOwnerID($tableName, $indexName) { $sql = "SELECT packageID diff --git a/wcfsetup/install/files/lib/system/package/PackageInstallationScheduler.class.php b/wcfsetup/install/files/lib/system/package/PackageInstallationScheduler.class.php index 1404e51596..bbc9cb30a2 100644 --- a/wcfsetup/install/files/lib/system/package/PackageInstallationScheduler.class.php +++ b/wcfsetup/install/files/lib/system/package/PackageInstallationScheduler.class.php @@ -113,7 +113,7 @@ class PackageInstallationScheduler { * * @param string $package package identifier * @param string $version package version - * @param integer $stackPosition + * @param int $stackPosition * @param boolean $validateInstallInstructions */ protected function installPackage($package, $version = '', $stackPosition = -1, $validateInstallInstructions = false) { @@ -146,7 +146,7 @@ class PackageInstallationScheduler { * Resolves the package requirements of an package update. * Starts the installation or update to higher version of required packages. * - * @param integer $packageUpdateVersionID + * @param int $packageUpdateVersionID */ protected function resolveRequirements($packageUpdateVersionID) { // resolve requirements @@ -443,7 +443,7 @@ class PackageInstallationScheduler { /** * Updates an existing package. * - * @param integer $packageID + * @param int $packageID * @param string $version */ protected function updatePackage($packageID, $version) { @@ -618,7 +618,7 @@ class PackageInstallationScheduler { * * @param array $updateThreadListA * @param array $updateThreadListB - * @return integer + * @return int */ protected function compareUpdateThreadLists($updateThreadListA, $updateThreadListB) { $countA = count($updateThreadListA); diff --git a/wcfsetup/install/files/lib/system/package/PackageUpdateDispatcher.class.php b/wcfsetup/install/files/lib/system/package/PackageUpdateDispatcher.class.php index 742e3e6858..9e0f192330 100644 --- a/wcfsetup/install/files/lib/system/package/PackageUpdateDispatcher.class.php +++ b/wcfsetup/install/files/lib/system/package/PackageUpdateDispatcher.class.php @@ -34,7 +34,7 @@ class PackageUpdateDispatcher extends SingletonFactory { /** * Refreshes the package database. * - * @param integer[] $packageUpdateServerIDs + * @param int[] $packageUpdateServerIDs * @param boolean $ignoreCache */ public function refreshPackageDatabase(array $packageUpdateServerIDs = [], $ignoreCache = false) { @@ -477,7 +477,7 @@ class PackageUpdateDispatcher extends SingletonFactory { * Updates information parsed from a packages_update.xml into the database. * * @param array $allNewPackages - * @param integer $packageUpdateServerID + * @param int $packageUpdateServerID */ protected function savePackageUpdates(array &$allNewPackages, $packageUpdateServerID) { $excludedPackagesParameters = $fromversionParameters = $insertParameters = $optionalInserts = $requirementInserts = $compatibilityInserts = []; @@ -834,7 +834,7 @@ class PackageUpdateDispatcher extends SingletonFactory { * Removes unnecessary updates of requirements from the list of available updates. * * @param array $updates - * @param integer $packageUpdateVersionID + * @param int $packageUpdateVersionID * @return array $updates */ protected function removeUpdateRequirements(array $updates, $packageUpdateVersionID) { diff --git a/wcfsetup/install/files/lib/system/package/plugin/ACLOptionPackageInstallationPlugin.class.php b/wcfsetup/install/files/lib/system/package/plugin/ACLOptionPackageInstallationPlugin.class.php index 64e4b2f804..a1d9651567 100644 --- a/wcfsetup/install/files/lib/system/package/plugin/ACLOptionPackageInstallationPlugin.class.php +++ b/wcfsetup/install/files/lib/system/package/plugin/ACLOptionPackageInstallationPlugin.class.php @@ -36,7 +36,7 @@ class ACLOptionPackageInstallationPlugin extends AbstractOptionPackageInstallati /** * list of loaded acl object type ids sorted by their option type name - * @var integer[] + * @var int[] */ protected $optionTypeIDs = []; @@ -304,7 +304,7 @@ class ACLOptionPackageInstallationPlugin extends AbstractOptionPackageInstallati * or throws a SystemException if no such option type exists. * * @param string $optionType - * @return integer + * @return int * @throws SystemException */ protected function getObjectTypeID($optionType) { diff --git a/wcfsetup/install/files/lib/system/package/plugin/AbstractOptionPackageInstallationPlugin.class.php b/wcfsetup/install/files/lib/system/package/plugin/AbstractOptionPackageInstallationPlugin.class.php index d4395291a7..479fb7ad98 100644 --- a/wcfsetup/install/files/lib/system/package/plugin/AbstractOptionPackageInstallationPlugin.class.php +++ b/wcfsetup/install/files/lib/system/package/plugin/AbstractOptionPackageInstallationPlugin.class.php @@ -341,7 +341,7 @@ abstract class AbstractOptionPackageInstallationPlugin extends AbstractXMLPackag * * @param array $option * @param string $categoryName - * @param integer $existingOptionID + * @param int $existingOptionID */ abstract protected function saveOption($option, $categoryName, $existingOptionID = 0); diff --git a/wcfsetup/install/files/lib/system/package/plugin/AbstractXMLPackageInstallationPlugin.class.php b/wcfsetup/install/files/lib/system/package/plugin/AbstractXMLPackageInstallationPlugin.class.php index b24e1a6943..cf5997f0a9 100644 --- a/wcfsetup/install/files/lib/system/package/plugin/AbstractXMLPackageInstallationPlugin.class.php +++ b/wcfsetup/install/files/lib/system/package/plugin/AbstractXMLPackageInstallationPlugin.class.php @@ -374,11 +374,11 @@ abstract class AbstractXMLPackageInstallationPlugin extends AbstractPackageInsta /** * Returns the show order value. * - * @param null|integer $showOrder + * @param null|int $showOrder * @param string $parentName * @param string $columnName * @param string $tableNameExtension - * @return integer + * @return int */ protected function getShowOrder($showOrder, $parentName = null, $columnName = null, $tableNameExtension = '') { if ($showOrder === null) { diff --git a/wcfsetup/install/files/lib/system/package/plugin/BoxPackageInstallationPlugin.class.php b/wcfsetup/install/files/lib/system/package/plugin/BoxPackageInstallationPlugin.class.php index 215cf783af..d9a526c936 100644 --- a/wcfsetup/install/files/lib/system/package/plugin/BoxPackageInstallationPlugin.class.php +++ b/wcfsetup/install/files/lib/system/package/plugin/BoxPackageInstallationPlugin.class.php @@ -285,7 +285,7 @@ class BoxPackageInstallationPlugin extends AbstractXMLPackageInstallationPlugin * menu or parent item. * * @param string $position box position - * @return integer + * @return int */ protected function getItemOrder($position) { $sql = "SELECT MAX(showOrder) AS showOrder diff --git a/wcfsetup/install/files/lib/system/package/plugin/LanguagePackageInstallationPlugin.class.php b/wcfsetup/install/files/lib/system/package/plugin/LanguagePackageInstallationPlugin.class.php index 374a2deac7..7fef3cbf5b 100644 --- a/wcfsetup/install/files/lib/system/package/plugin/LanguagePackageInstallationPlugin.class.php +++ b/wcfsetup/install/files/lib/system/package/plugin/LanguagePackageInstallationPlugin.class.php @@ -237,7 +237,7 @@ class LanguagePackageInstallationPlugin extends AbstractXMLPackageInstallationPl * in case they are now empty. * * @param array $categoryIDs - * @param integer $packageID + * @param int $packageID */ protected function deleteEmptyCategories(array $categoryIDs, $packageID) { // Get empty categories which where changed by this package. diff --git a/wcfsetup/install/files/lib/system/package/plugin/MenuItemPackageInstallationPlugin.class.php b/wcfsetup/install/files/lib/system/package/plugin/MenuItemPackageInstallationPlugin.class.php index 167b35ba64..779dddfa14 100644 --- a/wcfsetup/install/files/lib/system/package/plugin/MenuItemPackageInstallationPlugin.class.php +++ b/wcfsetup/install/files/lib/system/package/plugin/MenuItemPackageInstallationPlugin.class.php @@ -236,9 +236,9 @@ class MenuItemPackageInstallationPlugin extends AbstractXMLPackageInstallationPl * Returns the show order for a new item that will append it to the current * menu or parent item. * - * @param integer $menuID - * @param integer $parentItemID - * @return integer + * @param int $menuID + * @param int $parentItemID + * @return int */ protected function getItemOrder($menuID, $parentItemID = null) { $sql = "SELECT MAX(showOrder) AS showOrder diff --git a/wcfsetup/install/files/lib/system/package/plugin/ObjectTypePackageInstallationPlugin.class.php b/wcfsetup/install/files/lib/system/package/plugin/ObjectTypePackageInstallationPlugin.class.php index 9452a6c2cb..50d70543a0 100644 --- a/wcfsetup/install/files/lib/system/package/plugin/ObjectTypePackageInstallationPlugin.class.php +++ b/wcfsetup/install/files/lib/system/package/plugin/ObjectTypePackageInstallationPlugin.class.php @@ -86,7 +86,7 @@ class ObjectTypePackageInstallationPlugin extends AbstractXMLPackageInstallation * Returns the id of the object type definition with the given name. * * @param string $definitionName - * @return integer + * @return int * @throws SystemException */ protected function getDefinitionID($definitionName) { diff --git a/wcfsetup/install/files/lib/system/package/plugin/UserGroupOptionPackageInstallationPlugin.class.php b/wcfsetup/install/files/lib/system/package/plugin/UserGroupOptionPackageInstallationPlugin.class.php index 941cc0b70d..768e78b957 100644 --- a/wcfsetup/install/files/lib/system/package/plugin/UserGroupOptionPackageInstallationPlugin.class.php +++ b/wcfsetup/install/files/lib/system/package/plugin/UserGroupOptionPackageInstallationPlugin.class.php @@ -34,7 +34,7 @@ use wcf\util\StringUtil; class UserGroupOptionPackageInstallationPlugin extends AbstractOptionPackageInstallationPlugin implements IGuiPackageInstallationPlugin { /** * list of group ids by type - * @var integer[][] + * @var int[][] */ protected $groupIDs = null; @@ -175,7 +175,7 @@ class UserGroupOptionPackageInstallationPlugin extends AbstractOptionPackageInst /** * Returns a list of group ids by type. * - * @return integer[][] + * @return int[][] */ protected function getGroupIDs() { if ($this->groupIDs === null) { diff --git a/wcfsetup/install/files/lib/system/package/plugin/UserNotificationEventPackageInstallationPlugin.class.php b/wcfsetup/install/files/lib/system/package/plugin/UserNotificationEventPackageInstallationPlugin.class.php index 95199f411e..dfbfe04671 100644 --- a/wcfsetup/install/files/lib/system/package/plugin/UserNotificationEventPackageInstallationPlugin.class.php +++ b/wcfsetup/install/files/lib/system/package/plugin/UserNotificationEventPackageInstallationPlugin.class.php @@ -50,7 +50,7 @@ class UserNotificationEventPackageInstallationPlugin extends AbstractXMLPackageI /** * preset event ids - * @var integer[] + * @var int[] */ protected $presetEventIDs = []; @@ -147,7 +147,7 @@ class UserNotificationEventPackageInstallationPlugin extends AbstractXMLPackageI * Gets the id of given object type id. * * @param string $objectType - * @return integer + * @return int * @throws SystemException */ protected function getObjectTypeID($objectType) { diff --git a/wcfsetup/install/files/lib/system/package/validation/PackageValidationArchive.class.php b/wcfsetup/install/files/lib/system/package/validation/PackageValidationArchive.class.php index 5b32ec9a36..1e97682e22 100644 --- a/wcfsetup/install/files/lib/system/package/validation/PackageValidationArchive.class.php +++ b/wcfsetup/install/files/lib/system/package/validation/PackageValidationArchive.class.php @@ -35,7 +35,7 @@ class PackageValidationArchive implements \RecursiveIterator { /** * nesting depth - * @var integer + * @var int */ protected $depth = 0; @@ -59,7 +59,7 @@ class PackageValidationArchive implements \RecursiveIterator { /** * children pointer - * @var integer + * @var int */ private $position = 0; @@ -68,7 +68,7 @@ class PackageValidationArchive implements \RecursiveIterator { * * @param string $archive * @param PackageValidationArchive $parent - * @param integer $depth + * @param int $depth */ public function __construct($archive, PackageValidationArchive $parent = null, $depth = 0) { $this->archive = new PackageArchive($archive); @@ -80,7 +80,7 @@ class PackageValidationArchive implements \RecursiveIterator { * Validates this package and optionally it's delivered requirements. The set validation * mode will toggle between different checks. * - * @param integer $validationMode + * @param int $validationMode * @param string $requiredVersion * @return boolean */ @@ -183,7 +183,7 @@ class PackageValidationArchive implements \RecursiveIterator { * Validates if the package has suitable install or update instructions * * @param string $requiredVersion - * @param integer $validationMode + * @param int $validationMode * @throws PackageValidationException */ protected function validateInstructions($requiredVersion, $validationMode) { @@ -431,7 +431,7 @@ class PackageValidationArchive implements \RecursiveIterator { /** * Returns nesting depth. * - * @return integer + * @return int */ public function getDepth() { return $this->depth; diff --git a/wcfsetup/install/files/lib/system/package/validation/PackageValidationException.class.php b/wcfsetup/install/files/lib/system/package/validation/PackageValidationException.class.php index bf8971d688..bfde4513d7 100644 --- a/wcfsetup/install/files/lib/system/package/validation/PackageValidationException.class.php +++ b/wcfsetup/install/files/lib/system/package/validation/PackageValidationException.class.php @@ -22,114 +22,114 @@ class PackageValidationException extends SystemException { /** * missing archive, expects the detail 'archive' and optionally 'targetArchive' (extracting archive from the archive) - * @var integer + * @var int */ const FILE_NOT_FOUND = 1; /** * missing package.xml, expects the detail 'archive' - * @var integer + * @var int */ const MISSING_PACKAGE_XML = 2; /** * package name violates WCF's schema, expects the detail 'packageName' - * @var integer + * @var int */ const INVALID_PACKAGE_NAME = 3; /** * package version violates WCF's schema, expects the detail 'packageVersion' - * @var integer + * @var int */ const INVALID_PACKAGE_VERSION = 4; /** * package contains no install instructions and an update is not possible, expects the detail 'packageName' - * @var integer + * @var int */ const NO_INSTALL_PATH = 5; /** * package is already installed and cannot be updated using current archive, expects the details 'packageName', 'packageVersion' and 'deliveredPackageVersion' - * @var integer + * @var int */ const NO_UPDATE_PATH = 6; /** * packages which exclude the current package, expects the detail 'packages' (list of \wcf\data\package\Package) - * @var integer + * @var int */ const EXCLUDING_PACKAGES = 7; /** * packages which are excluded by current package, expects the detail 'packages' (list of \wcf\data\package\Package) - * @var integer + * @var int */ const EXCLUDED_PACKAGES = 8; /** * package version is lower than the request version, expects the details 'packageName', 'packageVersion' and 'deliveredPackageVersion' - * @var integer + * @var int */ const INSUFFICIENT_VERSION = 9; /** * requirement is set but neither installed nor provided, expects the details 'packageName', 'packageVersion' and 'package' (must be * an instance of \wcf\data\package\Package or null if not installed) - * @var integer + * @var int */ const MISSING_REQUIREMENT = 10; /** * file reference for a package installation plugin is missing, expects the details 'pip', 'type' and 'value' - * @var integer + * @var int */ const MISSING_INSTRUCTION_FILE = 11; /** * the uploaded version is already installed, expects the details 'packageName' and 'packageVersion' - * @var integer + * @var int */ const ALREADY_INSTALLED = 12; /** * the provided API version string is invalid and does not fall into the range from `2017` through `2099` - * @var integer + * @var int * @deprecated 5.2 */ const INVALID_API_VERSION = 13; /** * the package is not compatible with the current API version or any other of the supported ones - * @var integer + * @var int * @deprecated 5.2 */ const INCOMPATIBLE_API_VERSION = 14; /** * the package lacks any sort of API compatibility data - * @var integer + * @var int * @deprecated 5.2 */ const MISSING_API_VERSION = 15; /** * the void is not the only instruction - * @var integer + * @var int */ const VOID_NOT_ALONE = 16; /** * the void is used during installation - * @var integer + * @var int */ const VOID_ON_INSTALL = 17; /** * Creates a new PackageArchiveValidationException. * - * @param integer $code + * @param int $code * @param string[] $details */ public function __construct($code, array $details = []) { @@ -150,7 +150,7 @@ class PackageValidationException extends SystemException { /** * Returns the readable error message. * - * @param integer $code + * @param int $code * @return string */ public function getErrorMessage($code = null) { @@ -164,7 +164,7 @@ class PackageValidationException extends SystemException { /** * Returns legacy error messages to mimic WCF 2.0.x PackageArchive's exceptions. * - * @param integer $code + * @param int $code * @return string */ protected function getLegacyMessage($code) { diff --git a/wcfsetup/install/files/lib/system/package/validation/PackageValidationManager.class.php b/wcfsetup/install/files/lib/system/package/validation/PackageValidationManager.class.php index dd0719829d..5cf3507417 100644 --- a/wcfsetup/install/files/lib/system/package/validation/PackageValidationManager.class.php +++ b/wcfsetup/install/files/lib/system/package/validation/PackageValidationManager.class.php @@ -34,19 +34,19 @@ class PackageValidationManager extends SingletonFactory { /** * validation will only check if the primary package looks like it can be installed or updated - * @var integer + * @var int */ const VALIDATION_WEAK = 0; /** * validation will recursively check dependencies - * @var integer + * @var int */ const VALIDATION_RECURSIVE = 1; /** * validation will use the previously gathered exclusions and check them - * @var integer + * @var int */ const VALIDATION_EXCLUSION = 2; diff --git a/wcfsetup/install/files/lib/system/page/PageLocationManager.class.php b/wcfsetup/install/files/lib/system/page/PageLocationManager.class.php index 0dddd3e39d..3312ef3c73 100644 --- a/wcfsetup/install/files/lib/system/page/PageLocationManager.class.php +++ b/wcfsetup/install/files/lib/system/page/PageLocationManager.class.php @@ -72,7 +72,7 @@ class PageLocationManager extends SingletonFactory { * is its assumed priority when matching suitable menu items. * * @param string $identifier internal page identifier - * @param integer $pageObjectID page object id + * @param int $pageObjectID page object id * @param ITitledLinkObject $locationObject optional label for breadcrumbs usage * @param boolean $useAsParentLocation * @throws SystemException diff --git a/wcfsetup/install/files/lib/system/page/handler/ILookupPageHandler.class.php b/wcfsetup/install/files/lib/system/page/handler/ILookupPageHandler.class.php index 5a4396d355..b1e62c76ea 100644 --- a/wcfsetup/install/files/lib/system/page/handler/ILookupPageHandler.class.php +++ b/wcfsetup/install/files/lib/system/page/handler/ILookupPageHandler.class.php @@ -15,7 +15,7 @@ interface ILookupPageHandler extends IMenuPageHandler { /** * Returns the link for a page with an object id. * - * @param integer $objectID page object id + * @param int $objectID page object id * @return string page url */ public function getLink($objectID); @@ -23,7 +23,7 @@ interface ILookupPageHandler extends IMenuPageHandler { /** * Returns true if provided object id exists and is valid. * - * @param integer $objectID page object id + * @param int $objectID page object id * @return boolean true if object id is valid */ public function isValid($objectID); diff --git a/wcfsetup/install/files/lib/system/page/handler/IMenuPageHandler.class.php b/wcfsetup/install/files/lib/system/page/handler/IMenuPageHandler.class.php index da9f8ec186..a61769eab8 100644 --- a/wcfsetup/install/files/lib/system/page/handler/IMenuPageHandler.class.php +++ b/wcfsetup/install/files/lib/system/page/handler/IMenuPageHandler.class.php @@ -15,8 +15,8 @@ interface IMenuPageHandler { * Returns the number of outstanding items for this page for display as a badge, optionally * specifying a corresponding object id to limit the scope. * - * @param integer|null $objectID optional page object id - * @return integer number of outstanding items + * @param int|null $objectID optional page object id + * @return int number of outstanding items */ public function getOutstandingItemCount($objectID = null); @@ -24,7 +24,7 @@ interface IMenuPageHandler { * Returns false if this page should be hidden from menus, but does not control the accessibility * of the page itself. The visibility can optionally be scoped to the given object id. * - * @param integer|null $objectID optional page object id + * @param int|null $objectID optional page object id * @return boolean false if the page should be hidden from menus */ public function isVisible($objectID = null); diff --git a/wcfsetup/install/files/lib/system/page/handler/TDecoratedCategoryLookupPageHandler.class.php b/wcfsetup/install/files/lib/system/page/handler/TDecoratedCategoryLookupPageHandler.class.php index 69e1aa8f97..c063b630f0 100644 --- a/wcfsetup/install/files/lib/system/page/handler/TDecoratedCategoryLookupPageHandler.class.php +++ b/wcfsetup/install/files/lib/system/page/handler/TDecoratedCategoryLookupPageHandler.class.php @@ -32,7 +32,7 @@ trait TDecoratedCategoryLookupPageHandler { /** * Returns the link for a page with an object id. * - * @param integer $objectID page object id + * @param int $objectID page object id * @return string page url * @see ILookupPageHandler::getLink() */ @@ -53,7 +53,7 @@ trait TDecoratedCategoryLookupPageHandler { /** * Returns true if provided object id exists and is valid. * - * @param integer $objectID page object id + * @param int $objectID page object id * @return boolean true if object id is valid * @see ILookupPageHandler::isValid() */ diff --git a/wcfsetup/install/files/lib/system/page/handler/TDecoratedCategoryMenuPageHandler.class.php b/wcfsetup/install/files/lib/system/page/handler/TDecoratedCategoryMenuPageHandler.class.php index 1ae4930c89..94cd55a5b2 100644 --- a/wcfsetup/install/files/lib/system/page/handler/TDecoratedCategoryMenuPageHandler.class.php +++ b/wcfsetup/install/files/lib/system/page/handler/TDecoratedCategoryMenuPageHandler.class.php @@ -24,7 +24,7 @@ trait TDecoratedCategoryMenuPageHandler { * Returns false if this page should be hidden from menus, but does not control the accessibility * of the page itself. The visibility can optionally be scoped to the given object id. * - * @param integer|null $objectID optional page object id + * @param int|null $objectID optional page object id * @return boolean false if the page should be hidden from menus * @see IMenuPageHandler::isVisible() */ diff --git a/wcfsetup/install/files/lib/system/page/handler/TUserLookupPageHandler.class.php b/wcfsetup/install/files/lib/system/page/handler/TUserLookupPageHandler.class.php index 07e1fe6a2c..38d6e85050 100644 --- a/wcfsetup/install/files/lib/system/page/handler/TUserLookupPageHandler.class.php +++ b/wcfsetup/install/files/lib/system/page/handler/TUserLookupPageHandler.class.php @@ -16,7 +16,7 @@ trait TUserLookupPageHandler { /** * Returns true if provided object id exists and is valid. * - * @param integer $objectID page object id + * @param int $objectID page object id * @return boolean true if object id is valid * @see ILookupPageHandler::isValid() */ diff --git a/wcfsetup/install/files/lib/system/payment/method/IPaymentMethod.class.php b/wcfsetup/install/files/lib/system/payment/method/IPaymentMethod.class.php index 13e857ad08..63acd31e66 100644 --- a/wcfsetup/install/files/lib/system/payment/method/IPaymentMethod.class.php +++ b/wcfsetup/install/files/lib/system/payment/method/IPaymentMethod.class.php @@ -34,7 +34,7 @@ interface IPaymentMethod { * @param string $returnURL * @param string $cancelReturnURL * @param boolean $isRecurring - * @param integer $subscriptionLength + * @param int $subscriptionLength * @param string $subscriptionLengthUnit * * @return string diff --git a/wcfsetup/install/files/lib/system/payment/type/IPaymentType.class.php b/wcfsetup/install/files/lib/system/payment/type/IPaymentType.class.php index f7601d1cf0..dfa5aa6535 100644 --- a/wcfsetup/install/files/lib/system/payment/type/IPaymentType.class.php +++ b/wcfsetup/install/files/lib/system/payment/type/IPaymentType.class.php @@ -13,7 +13,7 @@ interface IPaymentType { /** * Processes the given transaction. * - * @param integer $paymentMethodObjectTypeID + * @param int $paymentMethodObjectTypeID * @param string $token * @param float $amount * @param string $currency diff --git a/wcfsetup/install/files/lib/system/poll/PollManager.class.php b/wcfsetup/install/files/lib/system/poll/PollManager.class.php index a648e3c048..adc85c89d7 100644 --- a/wcfsetup/install/files/lib/system/poll/PollManager.class.php +++ b/wcfsetup/install/files/lib/system/poll/PollManager.class.php @@ -33,7 +33,7 @@ class PollManager extends SingletonFactory { /** * current object id - * @var integer + * @var int */ protected $objectID = 0; @@ -65,7 +65,7 @@ class PollManager extends SingletonFactory { /** * poll id - * @var integer + * @var int */ protected $pollID = 0; @@ -88,7 +88,7 @@ class PollManager extends SingletonFactory { /** * Removes a list of polls by id. * - * @param integer[] $pollIDs + * @param int[] $pollIDs */ public function removePolls(array $pollIDs) { $conditions = new PreparedStatementConditionBuilder(); @@ -104,8 +104,8 @@ class PollManager extends SingletonFactory { * Sets object data. * * @param string $objectType - * @param integer $objectID - * @param integer $pollID + * @param int $objectID + * @param int $pollID * @return boolean * @throws SystemException */ @@ -244,8 +244,8 @@ class PollManager extends SingletonFactory { * Handles poll creation, modification and deletion. Returns poll id or zero * if poll was deleted or nothing was created. * - * @param integer $objectID - * @return integer + * @param int $objectID + * @return int * @throws SystemException */ public function save($objectID = null) { @@ -307,7 +307,7 @@ class PollManager extends SingletonFactory { * * @param IPollContainer $pollContainer object the poll belongs to * @param array $pollData poll data - * @return null|integer id of the poll + * @return null|int id of the poll * @since 5.2 */ public function savePoll(IPollContainer $pollContainer, array $pollData) { @@ -376,7 +376,7 @@ class PollManager extends SingletonFactory { /** * Returns a list of polls including options and vote state for current user. * - * @param integer[] $pollIDs + * @param int[] $pollIDs * @return Poll[] */ public function getPolls(array $pollIDs) { @@ -404,7 +404,7 @@ class PollManager extends SingletonFactory { /** * Returns a list of poll options with vote state for current user. * - * @param integer[] $pollIDs + * @param int[] $pollIDs * @return PollOptionList */ public function getPollOptions(array $pollIDs) { @@ -443,7 +443,7 @@ class PollManager extends SingletonFactory { * Returns the handler object for given object type. Returns false if object type (id) * is not found, or null if no handler is assigned. * - * @param integer $objectTypeID + * @param int $objectTypeID * @param string $objectType * @return mixed * @throws SystemException diff --git a/wcfsetup/install/files/lib/system/reaction/ReactionHandler.class.php b/wcfsetup/install/files/lib/system/reaction/ReactionHandler.class.php index 7d4f7819e9..1ef5612238 100644 --- a/wcfsetup/install/files/lib/system/reaction/ReactionHandler.class.php +++ b/wcfsetup/install/files/lib/system/reaction/ReactionHandler.class.php @@ -99,7 +99,7 @@ class ReactionHandler extends SingletonFactory { /** * Returns a reaction type by id. * - * @param integer $reactionID + * @param int $reactionID * @return ReactionType|null */ public function getReactionTypeByID($reactionID) { @@ -110,7 +110,7 @@ class ReactionHandler extends SingletonFactory { * Builds the data attributes for the object container. * * @param string $objectTypeName - * @param integer $objectID + * @param int $objectID * @return string */ public function getDataAttributes($objectTypeName, $objectID) { @@ -145,7 +145,7 @@ class ReactionHandler extends SingletonFactory { * Cache likeable objects. * * @param string $objectTypeName - * @param integer[] $objectIDs + * @param int[] $objectIDs */ public function cacheLikeableObjects($objectTypeName, array $objectIDs) { $objectType = $this->getObjectType($objectTypeName); @@ -171,7 +171,7 @@ class ReactionHandler extends SingletonFactory { * Get an likeable object from the internal cache. * * @param string $objectTypeName - * @param integer $objectID + * @param int $objectID * @return ILikeObject */ public function getLikeableObject($objectTypeName, $objectID) { @@ -208,7 +208,7 @@ class ReactionHandler extends SingletonFactory { * Returns a like object. * * @param ObjectType $objectType - * @param integer $objectID + * @param int $objectID * @return LikeObject|null */ public function getLikeObject(ObjectType $objectType, $objectID) { @@ -239,7 +239,7 @@ class ReactionHandler extends SingletonFactory { * * @param ObjectType $objectType * @param array $objectIDs - * @return integer + * @return int */ public function loadLikeObjects(ObjectType $objectType, array $objectIDs) { if (empty($objectIDs)) { @@ -289,8 +289,8 @@ class ReactionHandler extends SingletonFactory { * * @param ILikeObject $likeable * @param User $user - * @param integer $reactionTypeID - * @param integer $time + * @param int $reactionTypeID + * @param int $time * @return array * @throws DatabaseQueryException */ @@ -608,7 +608,7 @@ class ReactionHandler extends SingletonFactory { * Removes all reactions for given objects. * * @param string $objectType - * @param integer[] $objectIDs + * @param int[] $objectIDs * @param string[] $notificationObjectTypes */ public function removeReactions($objectType, array $objectIDs, array $notificationObjectTypes = []) { diff --git a/wcfsetup/install/files/lib/system/registry/RegistryHandler.class.php b/wcfsetup/install/files/lib/system/registry/RegistryHandler.class.php index 0e09f55da2..c0b0a18ed4 100644 --- a/wcfsetup/install/files/lib/system/registry/RegistryHandler.class.php +++ b/wcfsetup/install/files/lib/system/registry/RegistryHandler.class.php @@ -219,7 +219,7 @@ class RegistryHandler extends SingletonFactory { * Returns the package id of the provided package. * * @param string $package - * @return integer + * @return int */ protected function getPackageID($package) { $packageObj = PackageCache::getInstance()->getPackageByIdentifier($package); diff --git a/wcfsetup/install/files/lib/system/request/ControllerMap.class.php b/wcfsetup/install/files/lib/system/request/ControllerMap.class.php index 241c179e79..294ac4bbae 100644 --- a/wcfsetup/install/files/lib/system/request/ControllerMap.class.php +++ b/wcfsetup/install/files/lib/system/request/ControllerMap.class.php @@ -203,8 +203,8 @@ class ControllerMap extends SingletonFactory { * Looks up a cms page URL, returns an array containing the application identifier * and url controller name or null if there was no match. * - * @param integer $pageID page id - * @param integer $languageID content language id + * @param int $pageID page id + * @param int $languageID content language id * @return string[]|null */ public function lookupCmsPage($pageID, $languageID) { diff --git a/wcfsetup/install/files/lib/system/request/LinkHandler.class.php b/wcfsetup/install/files/lib/system/request/LinkHandler.class.php index e015e204ab..27fde81981 100644 --- a/wcfsetup/install/files/lib/system/request/LinkHandler.class.php +++ b/wcfsetup/install/files/lib/system/request/LinkHandler.class.php @@ -267,8 +267,8 @@ class LinkHandler extends SingletonFactory { * Passing in an illegal page id will cause this method to fail silently, returning an * empty string. * - * @param integer $pageID page id - * @param integer $languageID language id, optional + * @param int $pageID page id + * @param int $languageID language id, optional * @return string full URL of empty string if `$pageID` is invalid * @since 3.0 */ diff --git a/wcfsetup/install/files/lib/system/request/Request.class.php b/wcfsetup/install/files/lib/system/request/Request.class.php index 89de7fe310..e58c171d08 100644 --- a/wcfsetup/install/files/lib/system/request/Request.class.php +++ b/wcfsetup/install/files/lib/system/request/Request.class.php @@ -30,7 +30,7 @@ class Request { /** * current page id - * @var integer + * @var int */ protected $pageID; @@ -168,7 +168,7 @@ class Request { /** * Returns the current page id. * - * @return integer current page id or `0` if unknown + * @return int current page id or `0` if unknown */ public function getPageID() { if ($this->pageID === null) { diff --git a/wcfsetup/install/files/lib/system/search/ArticleSearch.class.php b/wcfsetup/install/files/lib/system/search/ArticleSearch.class.php index 0be7f82983..454171292f 100644 --- a/wcfsetup/install/files/lib/system/search/ArticleSearch.class.php +++ b/wcfsetup/install/files/lib/system/search/ArticleSearch.class.php @@ -25,7 +25,7 @@ use wcf\util\ArrayUtil; class ArticleSearch extends AbstractSearchableObjectType { /** * ids of the selected categories - * @var integer[] + * @var int[] */ public $articleCategoryIDs = []; diff --git a/wcfsetup/install/files/lib/system/search/ISearchEngine.class.php b/wcfsetup/install/files/lib/system/search/ISearchEngine.class.php index 33e942e6e6..70c34579d1 100644 --- a/wcfsetup/install/files/lib/system/search/ISearchEngine.class.php +++ b/wcfsetup/install/files/lib/system/search/ISearchEngine.class.php @@ -33,7 +33,7 @@ interface ISearchEngine { * @param boolean $subjectOnly * @param PreparedStatementConditionBuilder $searchIndexCondition * @param string $orderBy - * @param integer $limit + * @param int $limit * @return array */ public function getInnerJoin($objectTypeName, $q, $subjectOnly = false, PreparedStatementConditionBuilder $searchIndexCondition = null, $orderBy = 'time DESC', $limit = 1000); @@ -54,7 +54,7 @@ interface ISearchEngine { * @param PreparedStatementConditionBuilder $searchIndexCondition * @param array $additionalConditions * @param string $orderBy - * @param integer $limit + * @param int $limit * @return array */ public function search($q, array $objectTypes, $subjectOnly = false, PreparedStatementConditionBuilder $searchIndexCondition = null, array $additionalConditions = [], $orderBy = 'time DESC', $limit = 1000); diff --git a/wcfsetup/install/files/lib/system/search/ISearchIndexManager.class.php b/wcfsetup/install/files/lib/system/search/ISearchIndexManager.class.php index 601c410e2b..facde5d594 100644 --- a/wcfsetup/install/files/lib/system/search/ISearchIndexManager.class.php +++ b/wcfsetup/install/files/lib/system/search/ISearchIndexManager.class.php @@ -14,13 +14,13 @@ interface ISearchIndexManager { * Adds or updates an entry. * * @param string $objectType - * @param integer $objectID + * @param int $objectID * @param string $message * @param string $subject - * @param integer $time - * @param integer $userID + * @param int $time + * @param int $userID * @param string $username - * @param integer $languageID + * @param int $languageID * @param string $metaData */ public function set($objectType, $objectID, $message, $subject, $time, $userID, $username, $languageID = null, $metaData = ''); @@ -29,13 +29,13 @@ interface ISearchIndexManager { * Adds a new entry. * * @param string $objectType - * @param integer $objectID + * @param int $objectID * @param string $message * @param string $subject - * @param integer $time - * @param integer $userID + * @param int $time + * @param int $userID * @param string $username - * @param integer $languageID + * @param int $languageID * @param string $metaData * @deprecated 3.0 - please use `set()` instead */ @@ -45,13 +45,13 @@ interface ISearchIndexManager { * Updates the search index. * * @param string $objectType - * @param integer $objectID + * @param int $objectID * @param string $message * @param string $subject - * @param integer $time - * @param integer $userID + * @param int $time + * @param int $userID * @param string $username - * @param integer $languageID + * @param int $languageID * @param string $metaData * @deprecated 3.0 - please use `set() instead` */ @@ -61,7 +61,7 @@ interface ISearchIndexManager { * Deletes search index entries. * * @param string $objectType - * @param integer[] $objectIDs + * @param int[] $objectIDs */ public function delete($objectType, array $objectIDs); diff --git a/wcfsetup/install/files/lib/system/search/ISearchableObjectType.class.php b/wcfsetup/install/files/lib/system/search/ISearchableObjectType.class.php index fd8f0cbf2c..6901728af0 100644 --- a/wcfsetup/install/files/lib/system/search/ISearchableObjectType.class.php +++ b/wcfsetup/install/files/lib/system/search/ISearchableObjectType.class.php @@ -24,7 +24,7 @@ interface ISearchableObjectType { /** * Returns the object with the given object id. * - * @param integer $objectID + * @param int $objectID * @return ISearchResultObject */ public function getObject($objectID); diff --git a/wcfsetup/install/files/lib/system/search/SearchEngine.class.php b/wcfsetup/install/files/lib/system/search/SearchEngine.class.php index b6de0a71a3..d3f1a961aa 100644 --- a/wcfsetup/install/files/lib/system/search/SearchEngine.class.php +++ b/wcfsetup/install/files/lib/system/search/SearchEngine.class.php @@ -17,7 +17,7 @@ use wcf\system\SingletonFactory; class SearchEngine extends SingletonFactory implements ISearchEngine { /** * limit for inner search limits - * @var integer + * @var int */ const INNER_SEARCH_LIMIT = 2500; diff --git a/wcfsetup/install/files/lib/system/search/SearchIndexManager.class.php b/wcfsetup/install/files/lib/system/search/SearchIndexManager.class.php index c531d49c91..620572a9e1 100644 --- a/wcfsetup/install/files/lib/system/search/SearchIndexManager.class.php +++ b/wcfsetup/install/files/lib/system/search/SearchIndexManager.class.php @@ -48,7 +48,7 @@ class SearchIndexManager extends SingletonFactory implements ISearchIndexManager * Returns the id of the object type with the given name. * * @param string $objectType - * @return integer + * @return int * @throws SystemException */ public function getObjectTypeID($objectType) { diff --git a/wcfsetup/install/files/lib/system/search/SearchResultTextParser.class.php b/wcfsetup/install/files/lib/system/search/SearchResultTextParser.class.php index 28c23c4439..2483259bc6 100644 --- a/wcfsetup/install/files/lib/system/search/SearchResultTextParser.class.php +++ b/wcfsetup/install/files/lib/system/search/SearchResultTextParser.class.php @@ -17,7 +17,7 @@ use wcf\util\StringUtil; class SearchResultTextParser extends SingletonFactory { /** * max length for message abstract - * @var integer + * @var int */ const MAX_LENGTH = 500; diff --git a/wcfsetup/install/files/lib/system/search/acp/ACPSearchHandler.class.php b/wcfsetup/install/files/lib/system/search/acp/ACPSearchHandler.class.php index 6b668a0648..300cac0989 100644 --- a/wcfsetup/install/files/lib/system/search/acp/ACPSearchHandler.class.php +++ b/wcfsetup/install/files/lib/system/search/acp/ACPSearchHandler.class.php @@ -38,7 +38,7 @@ class ACPSearchHandler extends SingletonFactory { * Returns a list of search result collections for given query. * * @param string $query - * @param integer $limit + * @param int $limit * @param string $providerName * @return ACPSearchResultList[] * @throws ImplementationException diff --git a/wcfsetup/install/files/lib/system/search/acp/ACPSearchResultList.class.php b/wcfsetup/install/files/lib/system/search/acp/ACPSearchResultList.class.php index 6ac6ac183f..2a01bdc444 100644 --- a/wcfsetup/install/files/lib/system/search/acp/ACPSearchResultList.class.php +++ b/wcfsetup/install/files/lib/system/search/acp/ACPSearchResultList.class.php @@ -13,7 +13,7 @@ use wcf\system\WCF; class ACPSearchResultList implements \Countable, \Iterator { /** * current iterator index - * @var integer + * @var int */ protected $index = 0; @@ -51,7 +51,7 @@ class ACPSearchResultList implements \Countable, \Iterator { * Reduces the result collection by given count. If the count is higher * than the actual amount of results, the results will be cleared. * - * @param integer $count + * @param int $count */ public function reduceResults($count) { // more results than available should be wiped, just set it to 0 @@ -72,7 +72,7 @@ class ACPSearchResultList implements \Countable, \Iterator { /** * Reduces the result collection to specified size. * - * @param integer $size + * @param int $size */ public function reduceResultsTo($size) { $count = count($this->results); diff --git a/wcfsetup/install/files/lib/system/search/acp/AbstractCategorizedACPSearchResultProvider.class.php b/wcfsetup/install/files/lib/system/search/acp/AbstractCategorizedACPSearchResultProvider.class.php index b80b5e43e0..caf19b1417 100644 --- a/wcfsetup/install/files/lib/system/search/acp/AbstractCategorizedACPSearchResultProvider.class.php +++ b/wcfsetup/install/files/lib/system/search/acp/AbstractCategorizedACPSearchResultProvider.class.php @@ -42,7 +42,7 @@ abstract class AbstractCategorizedACPSearchResultProvider extends AbstractACPSea * Returns a level 1 or 2 category id for given category name. * * @param string $categoryName - * @return integer + * @return int */ protected function getCategoryID($categoryName) { return $this->getTopCategory($categoryName)->categoryID; diff --git a/wcfsetup/install/files/lib/system/search/mysql/MysqlSearchEngine.class.php b/wcfsetup/install/files/lib/system/search/mysql/MysqlSearchEngine.class.php index 8aba719429..8cc5f8f3f4 100644 --- a/wcfsetup/install/files/lib/system/search/mysql/MysqlSearchEngine.class.php +++ b/wcfsetup/install/files/lib/system/search/mysql/MysqlSearchEngine.class.php @@ -20,7 +20,7 @@ use wcf\util\StringUtil; class MysqlSearchEngine extends AbstractSearchEngine { /** * MySQL's minimum word length for fulltext indices - * @var integer + * @var int */ protected $ftMinWordLen = null; diff --git a/wcfsetup/install/files/lib/system/session/SessionHandler.class.php b/wcfsetup/install/files/lib/system/session/SessionHandler.class.php index 97ab6669ce..9379a72d01 100644 --- a/wcfsetup/install/files/lib/system/session/SessionHandler.class.php +++ b/wcfsetup/install/files/lib/system/session/SessionHandler.class.php @@ -32,12 +32,12 @@ use wcf\util\UserUtil; * @package WoltLabSuite\Core\System\Session * * @property-read string $sessionID unique textual identifier of the session - * @property-read integer|null $userID id of the user the session belongs to or `null` if the session belongs to a guest - * @property-read integer|null $pageID id of the latest page visited - * @property-read integer|null $pageObjectID id of the object the latest page visited belongs to - * @property-read integer|null $parentPageID id of the parent page of latest page visited - * @property-read integer|null $parentPageObjectID id of the object the parent page of latest page visited belongs to - * @property-read integer $spiderID id of the spider the session belongs to + * @property-read int|null $userID id of the user the session belongs to or `null` if the session belongs to a guest + * @property-read int|null $pageID id of the latest page visited + * @property-read int|null $pageObjectID id of the object the latest page visited belongs to + * @property-read int|null $parentPageID id of the parent page of latest page visited + * @property-read int|null $parentPageObjectID id of the object the parent page of latest page visited belongs to + * @property-read int $spiderID id of the spider the session belongs to */ final class SessionHandler extends SingletonFactory { /** @@ -66,13 +66,13 @@ final class SessionHandler extends SingletonFactory { /** * language id for active user - * @var integer + * @var int */ protected $languageID = 0; /** * language ids for active user - * @var integer[] + * @var int[] */ protected $languageIDs = null; @@ -94,7 +94,7 @@ final class SessionHandler extends SingletonFactory { /** * style id - * @var integer + * @var int */ protected $styleID = null; @@ -763,7 +763,7 @@ final class SessionHandler extends SingletonFactory { /** * Returns language ids for active user. * - * @return integer[] + * @return int[] */ public function getLanguageIDs() { $this->loadLanguageIDs(); @@ -1178,7 +1178,7 @@ final class SessionHandler extends SingletonFactory { /** * Returns currently active language id. * - * @return integer + * @return int */ public function getLanguageID() { return $this->languageID; @@ -1187,7 +1187,7 @@ final class SessionHandler extends SingletonFactory { /** * Sets the currently active language id. * - * @param integer $languageID + * @param int $languageID */ public function setLanguageID($languageID) { $this->languageID = $languageID; @@ -1197,7 +1197,7 @@ final class SessionHandler extends SingletonFactory { /** * Returns currently active style id. * - * @return integer + * @return int */ public function getStyleID() { return $this->styleID; @@ -1206,7 +1206,7 @@ final class SessionHandler extends SingletonFactory { /** * Sets the currently active style id. * - * @param integer $styleID + * @param int $styleID */ public function setStyleID($styleID) { $this->styleID = $styleID; @@ -1216,7 +1216,7 @@ final class SessionHandler extends SingletonFactory { /** * Resets session-specific storage data. * - * @param integer[] $userIDs + * @param int[] $userIDs */ public static function resetSessions(array $userIDs = []) { if (!empty($userIDs)) { diff --git a/wcfsetup/install/files/lib/system/setup/Installer.class.php b/wcfsetup/install/files/lib/system/setup/Installer.class.php index 825c68c5ab..aec00b2f1a 100644 --- a/wcfsetup/install/files/lib/system/setup/Installer.class.php +++ b/wcfsetup/install/files/lib/system/setup/Installer.class.php @@ -101,7 +101,7 @@ class Installer { * Creates a file in the target directory. * * @param string $file - * @param integer $index + * @param int $index * @param Tar $tar */ protected function createFile($file, $index, Tar $tar) { diff --git a/wcfsetup/install/files/lib/system/stat/AbstractStatDailyHandler.class.php b/wcfsetup/install/files/lib/system/stat/AbstractStatDailyHandler.class.php index e4d7629130..55365a1c74 100644 --- a/wcfsetup/install/files/lib/system/stat/AbstractStatDailyHandler.class.php +++ b/wcfsetup/install/files/lib/system/stat/AbstractStatDailyHandler.class.php @@ -15,10 +15,10 @@ abstract class AbstractStatDailyHandler implements IStatDailyHandler { /** * Counts the number of rows for a single day. * - * @param integer $date + * @param int $date * @param string $tableName * @param string $dateColumnName - * @return integer + * @return int */ protected function getCounter($date, $tableName, $dateColumnName) { $conditionBuilder = new PreparedStatementConditionBuilder(); @@ -38,10 +38,10 @@ abstract class AbstractStatDailyHandler implements IStatDailyHandler { /** * Counts the total number of rows. * - * @param integer $date + * @param int $date * @param string $tableName * @param string $dateColumnName - * @return integer + * @return int */ protected function getTotal($date, $tableName, $dateColumnName) { $conditionBuilder = new PreparedStatementConditionBuilder(); diff --git a/wcfsetup/install/files/lib/system/stat/IStatDailyHandler.class.php b/wcfsetup/install/files/lib/system/stat/IStatDailyHandler.class.php index bdf94d3013..a1081acd6f 100644 --- a/wcfsetup/install/files/lib/system/stat/IStatDailyHandler.class.php +++ b/wcfsetup/install/files/lib/system/stat/IStatDailyHandler.class.php @@ -13,7 +13,7 @@ interface IStatDailyHandler { /** * Returns the stats. * - * @param integer $date + * @param int $date * @return array */ public function getData($date); @@ -21,7 +21,7 @@ interface IStatDailyHandler { /** * Returns a formatted counter value. * - * @param integer $counter + * @param int $counter * @return mixed */ public function getFormattedCounter($counter); diff --git a/wcfsetup/install/files/lib/system/style/StyleHandler.class.php b/wcfsetup/install/files/lib/system/style/StyleHandler.class.php index 53f8f3db11..5aa9549506 100644 --- a/wcfsetup/install/files/lib/system/style/StyleHandler.class.php +++ b/wcfsetup/install/files/lib/system/style/StyleHandler.class.php @@ -87,7 +87,7 @@ class StyleHandler extends SingletonFactory { /** * Changes the active style. * - * @param integer $styleID + * @param int $styleID * @param boolean $ignorePermissions * @throws SystemException */ @@ -162,7 +162,7 @@ class StyleHandler extends SingletonFactory { /** * Returns number of available styles. * - * @return integer + * @return int */ public function countStyles() { return count($this->getAvailableStyles()); diff --git a/wcfsetup/install/files/lib/system/tagging/TagCloud.class.php b/wcfsetup/install/files/lib/system/tagging/TagCloud.class.php index 766c92619b..29a4cd4b28 100644 --- a/wcfsetup/install/files/lib/system/tagging/TagCloud.class.php +++ b/wcfsetup/install/files/lib/system/tagging/TagCloud.class.php @@ -15,14 +15,14 @@ use wcf\system\language\LanguageFactory; class TagCloud { /** * max font size - * @var integer + * @var int * @deprecated 3.0 */ const MAX_FONT_SIZE = 170; /** * min font size - * @var integer + * @var int * @deprecated 3.0 */ const MIN_FONT_SIZE = 85; @@ -35,26 +35,26 @@ class TagCloud { /** * max value of tag counter - * @var integer + * @var int */ protected $maxCounter = 0; /** * min value of tag counter - * @var integer + * @var int */ protected $minCounter = 4294967295; /** * active language ids - * @var integer[] + * @var int[] */ protected $languageIDs = []; /** * Constructs a new TagCloud object. * - * @param integer[] $languageIDs + * @param int[] $languageIDs */ public function __construct(array $languageIDs = []) { $this->languageIDs = $languageIDs; @@ -76,7 +76,7 @@ class TagCloud { /** * Returns a list of weighted tags. * - * @param integer $slice + * @param int $slice * @return TagCloudTag[] the tags to get */ public function getTags($slice = 50) { @@ -105,7 +105,7 @@ class TagCloud { /** * Calculates the weight of the tag based on the given tag count. * - * @param integer $counter + * @param int $counter * @return float|int */ private function calculateWeight($counter) { diff --git a/wcfsetup/install/files/lib/system/tagging/TagEngine.class.php b/wcfsetup/install/files/lib/system/tagging/TagEngine.class.php index 3578026f68..aadf892ece 100644 --- a/wcfsetup/install/files/lib/system/tagging/TagEngine.class.php +++ b/wcfsetup/install/files/lib/system/tagging/TagEngine.class.php @@ -24,9 +24,9 @@ class TagEngine extends SingletonFactory { * Adds tags to a tagged object. * * @param string $objectType - * @param integer $objectID + * @param int $objectID * @param array $tags - * @param integer $languageID + * @param int $languageID * @param boolean $replace */ public function addObjectTags($objectType, $objectID, array $tags, $languageID, $replace = true) { @@ -93,8 +93,8 @@ class TagEngine extends SingletonFactory { * Deletes all tags assigned to given tagged object. * * @param string $objectType - * @param integer $objectID - * @param integer $languageID + * @param int $objectID + * @param int $languageID */ public function deleteObjectTags($objectType, $objectID, $languageID = null) { $objectTypeID = $this->getObjectTypeID($objectType); @@ -116,7 +116,7 @@ class TagEngine extends SingletonFactory { * Deletes all tags assigned to given tagged objects. * * @param string $objectType - * @param integer[] $objectIDs + * @param int[] $objectIDs */ public function deleteObjects($objectType, array $objectIDs) { $objectTypeID = $this->getObjectTypeID($objectType); @@ -135,8 +135,8 @@ class TagEngine extends SingletonFactory { * Returns all tags set for given object. * * @param string $objectType - * @param integer $objectID - * @param integer[] $languageIDs + * @param int $objectID + * @param int[] $languageIDs * @return Tag[] */ public function getObjectTags($objectType, $objectID, array $languageIDs = []) { @@ -149,8 +149,8 @@ class TagEngine extends SingletonFactory { * Returns all tags set for given objects. * * @param string $objectType - * @param integer[] $objectIDs - * @param integer[] $languageIDs + * @param int[] $objectIDs + * @param int[] $languageIDs * @return array */ public function getObjectsTags($objectType, array $objectIDs, array $languageIDs = []) { @@ -202,7 +202,7 @@ class TagEngine extends SingletonFactory { * Returns id of the object type with the given name. * * @param string $objectType - * @return integer + * @return int * @throws InvalidObjectTypeException */ public function getObjectTypeID($objectType) { @@ -223,8 +223,8 @@ class TagEngine extends SingletonFactory { * there are two or more top language ids with the same amount of tags. * * @param string $objectType - * @param integer $objectID - * @return integer|null + * @param int $objectID + * @return int|null */ public function getImplicitLanguageID($objectType, $objectID) { $existingTags = $this->getObjectTags($objectType, $objectID); diff --git a/wcfsetup/install/files/lib/system/tagging/TypedTagCloud.class.php b/wcfsetup/install/files/lib/system/tagging/TypedTagCloud.class.php index c48a5e796b..b53b202f27 100644 --- a/wcfsetup/install/files/lib/system/tagging/TypedTagCloud.class.php +++ b/wcfsetup/install/files/lib/system/tagging/TypedTagCloud.class.php @@ -14,7 +14,7 @@ use wcf\system\cache\builder\TypedTagCloudCacheBuilder; class TypedTagCloud extends TagCloud { /** * object type ids - * @var integer[] + * @var int[] */ protected $objectTypeIDs = []; @@ -22,7 +22,7 @@ class TypedTagCloud extends TagCloud { * Constructs a new TypedTagCloud object. * * @param string $objectType - * @param integer[] $languageIDs + * @param int[] $languageIDs */ public function __construct($objectType, array $languageIDs = []) { $objectTypeObj = ObjectTypeCache::getInstance()->getObjectTypeByName('com.woltlab.wcf.tagging.taggableObject', $objectType); diff --git a/wcfsetup/install/files/lib/system/template/ACPTemplateEngine.class.php b/wcfsetup/install/files/lib/system/template/ACPTemplateEngine.class.php index 062316bbf3..334a0ee4c3 100644 --- a/wcfsetup/install/files/lib/system/template/ACPTemplateEngine.class.php +++ b/wcfsetup/install/files/lib/system/template/ACPTemplateEngine.class.php @@ -52,7 +52,7 @@ class ACPTemplateEngine extends TemplateEngine { /** * This method always throws, because changing the template group is not supported. * - * @param integer $templateGroupID + * @param int $templateGroupID * @throws \BadMethodCallException */ public function setTemplateGroupID($templateGroupID) { diff --git a/wcfsetup/install/files/lib/system/template/EmailTemplateEngine.class.php b/wcfsetup/install/files/lib/system/template/EmailTemplateEngine.class.php index 92186c387b..d53d94eea5 100644 --- a/wcfsetup/install/files/lib/system/template/EmailTemplateEngine.class.php +++ b/wcfsetup/install/files/lib/system/template/EmailTemplateEngine.class.php @@ -39,7 +39,7 @@ class EmailTemplateEngine extends TemplateEngine { /** * This method always throws, because changing the template group is not supported. * - * @param integer $templateGroupID + * @param int $templateGroupID * @throws \BadMethodCallException */ public function setTemplateGroupID($templateGroupID) { diff --git a/wcfsetup/install/files/lib/system/template/TemplateEngine.class.php b/wcfsetup/install/files/lib/system/template/TemplateEngine.class.php index c72d8e2fec..11a9088c57 100755 --- a/wcfsetup/install/files/lib/system/template/TemplateEngine.class.php +++ b/wcfsetup/install/files/lib/system/template/TemplateEngine.class.php @@ -28,7 +28,7 @@ class TemplateEngine extends SingletonFactory { /** * active language id used to identify specific language versions of compiled templates - * @var integer + * @var int */ public $languageID = 0; @@ -70,7 +70,7 @@ class TemplateEngine extends SingletonFactory { /** * active template group id - * @var integer + * @var int */ protected $templateGroupID = 0; @@ -142,7 +142,7 @@ class TemplateEngine extends SingletonFactory { /** * Sets active language id. * - * @param integer $languageID + * @param int $languageID */ public function setLanguageID($languageID) { $this->languageID = $languageID; @@ -631,7 +631,7 @@ class TemplateEngine extends SingletonFactory { /** * Returns the active template group id. * - * @return integer + * @return int */ public function getTemplateGroupID() { return $this->templateGroupID; @@ -640,7 +640,7 @@ class TemplateEngine extends SingletonFactory { /** * Sets the active template group id. * - * @param integer $templateGroupID + * @param int $templateGroupID */ public function setTemplateGroupID($templateGroupID) { if ($templateGroupID && !isset($this->templateGroupCache[$templateGroupID])) { diff --git a/wcfsetup/install/files/lib/system/template/TemplateScriptingCompiler.class.php b/wcfsetup/install/files/lib/system/template/TemplateScriptingCompiler.class.php index 358a42ef27..72004e4f88 100644 --- a/wcfsetup/install/files/lib/system/template/TemplateScriptingCompiler.class.php +++ b/wcfsetup/install/files/lib/system/template/TemplateScriptingCompiler.class.php @@ -1087,7 +1087,7 @@ class TemplateScriptingCompiler { * * @param string $errorMsg * @param string $file - * @param integer $line + * @param int $line * @return string */ public static function formatSyntaxError($errorMsg, $file = null, $line = null) { @@ -1650,7 +1650,7 @@ class TemplateScriptingCompiler { /** * Returns the current line number. * - * @return integer + * @return int */ public function getCurrentLineNo() { return $this->currentLineNo; diff --git a/wcfsetup/install/files/lib/system/template/plugin/EmbeddedObjectBlockTemplatePlugin.class.php b/wcfsetup/install/files/lib/system/template/plugin/EmbeddedObjectBlockTemplatePlugin.class.php index 86b3dcff61..014eeece40 100644 --- a/wcfsetup/install/files/lib/system/template/plugin/EmbeddedObjectBlockTemplatePlugin.class.php +++ b/wcfsetup/install/files/lib/system/template/plugin/EmbeddedObjectBlockTemplatePlugin.class.php @@ -17,7 +17,7 @@ use wcf\system\template\TemplateEngine; class EmbeddedObjectBlockTemplatePlugin implements IBlockTemplatePlugin { /** * internal loop counter - * @var integer + * @var int */ protected $counter = 0; diff --git a/wcfsetup/install/files/lib/system/template/plugin/LinkBlockTemplatePlugin.class.php b/wcfsetup/install/files/lib/system/template/plugin/LinkBlockTemplatePlugin.class.php index d974460bc3..31834168ec 100644 --- a/wcfsetup/install/files/lib/system/template/plugin/LinkBlockTemplatePlugin.class.php +++ b/wcfsetup/install/files/lib/system/template/plugin/LinkBlockTemplatePlugin.class.php @@ -18,7 +18,7 @@ use wcf\util\StringUtil; class LinkBlockTemplatePlugin implements IBlockTemplatePlugin { /** * internal loop counter - * @var integer + * @var int */ protected $counter = 0; diff --git a/wcfsetup/install/files/lib/system/template/plugin/PageBlockTemplatePlugin.class.php b/wcfsetup/install/files/lib/system/template/plugin/PageBlockTemplatePlugin.class.php index 563ad50216..287f7db7a4 100644 --- a/wcfsetup/install/files/lib/system/template/plugin/PageBlockTemplatePlugin.class.php +++ b/wcfsetup/install/files/lib/system/template/plugin/PageBlockTemplatePlugin.class.php @@ -37,7 +37,7 @@ use wcf\util\StringUtil; class PageBlockTemplatePlugin implements IBlockTemplatePlugin { /** * internal loop counter - * @var integer + * @var int */ protected $counter = 0; diff --git a/wcfsetup/install/files/lib/system/template/plugin/PagesFunctionTemplatePlugin.class.php b/wcfsetup/install/files/lib/system/template/plugin/PagesFunctionTemplatePlugin.class.php index 1f803bf2ef..4b5428e724 100644 --- a/wcfsetup/install/files/lib/system/template/plugin/PagesFunctionTemplatePlugin.class.php +++ b/wcfsetup/install/files/lib/system/template/plugin/PagesFunctionTemplatePlugin.class.php @@ -37,7 +37,7 @@ class PagesFunctionTemplatePlugin implements IFunctionTemplatePlugin { * Inserts the page number into the link. * * @param string $link - * @param integer $pageNo + * @param int $pageNo * @return string final link */ protected static function insertPageNumber($link, $pageNo) { @@ -50,9 +50,9 @@ class PagesFunctionTemplatePlugin implements IFunctionTemplatePlugin { * Generates HTML code for a link. * * @param string $link - * @param integer $pageNo - * @param integer $activePage - * @param integer $pages + * @param int $pageNo + * @param int $activePage + * @param int $pages * @return string */ protected function makeLink($link, $pageNo, $activePage, $pages) { @@ -69,7 +69,7 @@ class PagesFunctionTemplatePlugin implements IFunctionTemplatePlugin { * Generates HTML code for 'previous' link. * * @param string $link - * @param integer $pageNo + * @param int $pageNo * @return string */ protected function makePreviousLink($link, $pageNo) { @@ -85,8 +85,8 @@ class PagesFunctionTemplatePlugin implements IFunctionTemplatePlugin { * Generates HTML code for 'next' link. * * @param string $link - * @param integer $pageNo - * @param integer $pages + * @param int $pageNo + * @param int $pages * @return string */ protected function makeNextLink($link, $pageNo, $pages) { diff --git a/wcfsetup/install/files/lib/system/trophy/condition/TrophyConditionHandler.class.php b/wcfsetup/install/files/lib/system/trophy/condition/TrophyConditionHandler.class.php index 4c4c33561c..007df17ed1 100644 --- a/wcfsetup/install/files/lib/system/trophy/condition/TrophyConditionHandler.class.php +++ b/wcfsetup/install/files/lib/system/trophy/condition/TrophyConditionHandler.class.php @@ -59,7 +59,7 @@ class TrophyConditionHandler extends SingletonFactory { /** * Assign trophies based on rules. * - * @param integer $maxAssigns + * @param int $maxAssigns */ public function assignTrophies($maxAssigns = 500) { $trophyList = new TrophyList(); @@ -88,7 +88,7 @@ class TrophyConditionHandler extends SingletonFactory { /** * Revoke user trophies which are not longer fulfills the conditions. * - * @param integer $maxRevokes + * @param int $maxRevokes * @since 5.2 */ public function revokeTrophies($maxRevokes = 500) { @@ -114,7 +114,7 @@ class TrophyConditionHandler extends SingletonFactory { * Returns the users who fulfill all conditions of the given trophy. * * @param Trophy $trophy - * @return integer[] + * @return int[] * @since 5.2 */ private function getUserIDs(Trophy $trophy) { @@ -137,8 +137,8 @@ class TrophyConditionHandler extends SingletonFactory { * Returns the userTrophyIDs of the users, which no longer fulfills the trophy conditions. * * @param Trophy $trophy - * @param integer $maxTrophyIDs maximum number of trophies that are processed - * @return integer[] + * @param int $maxTrophyIDs maximum number of trophies that are processed + * @return int[] * @since 5.2 */ private function getRevocableUserTrophyIDs(Trophy $trophy, $maxTrophyIDs) { diff --git a/wcfsetup/install/files/lib/system/upload/AvatarUploadFileSaveStrategy.class.php b/wcfsetup/install/files/lib/system/upload/AvatarUploadFileSaveStrategy.class.php index 9dcfe383f9..e049e9c7ae 100644 --- a/wcfsetup/install/files/lib/system/upload/AvatarUploadFileSaveStrategy.class.php +++ b/wcfsetup/install/files/lib/system/upload/AvatarUploadFileSaveStrategy.class.php @@ -22,7 +22,7 @@ use wcf\util\ImageUtil; */ class AvatarUploadFileSaveStrategy implements IUploadFileSaveStrategy { /** - * @var integer + * @var int */ protected $userID = 0; @@ -39,7 +39,7 @@ class AvatarUploadFileSaveStrategy implements IUploadFileSaveStrategy { /** * Creates a new instance of AvatarUploadFileSaveStrategy. * - * @param integer $userID + * @param int $userID */ public function __construct($userID = null) { $this->userID = ($userID ?: WCF::getUser()->userID); diff --git a/wcfsetup/install/files/lib/system/upload/DefaultUploadFileValidationStrategy.class.php b/wcfsetup/install/files/lib/system/upload/DefaultUploadFileValidationStrategy.class.php index 05b6125350..a4be4fc0ee 100644 --- a/wcfsetup/install/files/lib/system/upload/DefaultUploadFileValidationStrategy.class.php +++ b/wcfsetup/install/files/lib/system/upload/DefaultUploadFileValidationStrategy.class.php @@ -12,7 +12,7 @@ namespace wcf\system\upload; class DefaultUploadFileValidationStrategy implements IUploadFileValidationStrategy { /** * allowed max size - * @var integer + * @var int */ protected $maxFilesize = 0; @@ -31,7 +31,7 @@ class DefaultUploadFileValidationStrategy implements IUploadFileValidationStrate /** * Creates a new DefaultUploadFileValidationStrategy object. * - * @param integer $maxFilesize + * @param int $maxFilesize * @param string[] $fileExtensions */ public function __construct($maxFilesize, array $fileExtensions) { diff --git a/wcfsetup/install/files/lib/system/upload/TrophyImageUploadFileValidationStrategy.class.php b/wcfsetup/install/files/lib/system/upload/TrophyImageUploadFileValidationStrategy.class.php index c27b2a826b..b3ec3e4ad6 100644 --- a/wcfsetup/install/files/lib/system/upload/TrophyImageUploadFileValidationStrategy.class.php +++ b/wcfsetup/install/files/lib/system/upload/TrophyImageUploadFileValidationStrategy.class.php @@ -14,7 +14,7 @@ use wcf\util\ImageUtil; class TrophyImageUploadFileValidationStrategy implements IUploadFileValidationStrategy { /** * minimum trophy image width and height - * @var integer + * @var int */ const MIN_TROPHY_IMAGE_SIZE = 64; diff --git a/wcfsetup/install/files/lib/system/upload/UploadFile.class.php b/wcfsetup/install/files/lib/system/upload/UploadFile.class.php index dae483b6e0..acad42a88d 100644 --- a/wcfsetup/install/files/lib/system/upload/UploadFile.class.php +++ b/wcfsetup/install/files/lib/system/upload/UploadFile.class.php @@ -18,7 +18,7 @@ class UploadFile { /** * internal file id - * @var integer + * @var int */ protected $internalFileID = 0; @@ -30,13 +30,13 @@ class UploadFile { /** * file size - * @var integer + * @var int */ protected $filesize = 0; /** * file upload error code - * @var integer + * @var int */ protected $errorCode = 0; @@ -63,8 +63,8 @@ class UploadFile { * * @param string $filename * @param string $location - * @param integer $filesize - * @param integer $errorCode + * @param int $filesize + * @param int $errorCode * @param string $mimeType * * @throws \Exception if an error occurred during upload and debug mode is enabled @@ -119,7 +119,7 @@ class UploadFile { /** * Returns internal file id. * - * @return integer + * @return int */ public function getInternalFileID() { return $this->internalFileID; @@ -150,7 +150,7 @@ class UploadFile { /** * Returns the file size. * - * @return integer + * @return int */ public function getFilesize() { return $this->filesize; @@ -168,7 +168,7 @@ class UploadFile { /** * Returns the error code. * - * @return integer + * @return int */ public function getErrorCode() { return $this->errorCode; diff --git a/wcfsetup/install/files/lib/system/upload/UserCoverPhotoUploadFileSaveStrategy.class.php b/wcfsetup/install/files/lib/system/upload/UserCoverPhotoUploadFileSaveStrategy.class.php index c7d578598a..4adcaa22d0 100644 --- a/wcfsetup/install/files/lib/system/upload/UserCoverPhotoUploadFileSaveStrategy.class.php +++ b/wcfsetup/install/files/lib/system/upload/UserCoverPhotoUploadFileSaveStrategy.class.php @@ -22,7 +22,7 @@ use wcf\util\StringUtil; */ class UserCoverPhotoUploadFileSaveStrategy implements IUploadFileSaveStrategy { /** - * @var integer + * @var int */ protected $userID = 0; @@ -39,7 +39,7 @@ class UserCoverPhotoUploadFileSaveStrategy implements IUploadFileSaveStrategy { /** * Creates a new instance of UserCoverPhotoUploadFileSaveStrategy. * - * @param integer $userID + * @param int $userID */ public function __construct($userID = null) { $this->userID = ($userID ?: WCF::getUser()->userID); diff --git a/wcfsetup/install/files/lib/system/user/GroupedUserList.class.php b/wcfsetup/install/files/lib/system/user/GroupedUserList.class.php index 9516fd8229..fbfff1c4f3 100644 --- a/wcfsetup/install/files/lib/system/user/GroupedUserList.class.php +++ b/wcfsetup/install/files/lib/system/user/GroupedUserList.class.php @@ -26,7 +26,7 @@ class GroupedUserList implements \Countable, \Iterator { /** * current iterator index - * @var integer + * @var int */ protected $index = 0; @@ -38,7 +38,7 @@ class GroupedUserList implements \Countable, \Iterator { /** * list of user ids assigned for this group - * @var integer[] + * @var int[] */ protected $userIDs = []; @@ -81,7 +81,7 @@ class GroupedUserList implements \Countable, \Iterator { /** * Adds a list of user ids to this group. * - * @param integer[] $userIDs + * @param int[] $userIDs */ public function addUserIDs(array $userIDs) { foreach ($userIDs as $userID) { diff --git a/wcfsetup/install/files/lib/system/user/UserBirthdayCache.class.php b/wcfsetup/install/files/lib/system/user/UserBirthdayCache.class.php index db22c9e89a..b1db1d0d7f 100644 --- a/wcfsetup/install/files/lib/system/user/UserBirthdayCache.class.php +++ b/wcfsetup/install/files/lib/system/user/UserBirthdayCache.class.php @@ -15,20 +15,20 @@ use wcf\system\SingletonFactory; class UserBirthdayCache extends SingletonFactory { /** * loaded months - * @var integer[] + * @var int[] */ protected $monthsLoaded = []; /** * user birthdays - * @var integer[][] + * @var int[][] */ protected $birthdays = []; /** * Loads the birthday cache. * - * @param integer $month + * @param int $month */ protected function loadMonth($month) { if (!isset($this->monthsLoaded[$month])) { @@ -47,9 +47,9 @@ class UserBirthdayCache extends SingletonFactory { /** * Returns the user birthdays for a specific day. * - * @param integer $month - * @param integer $day - * @return integer[] list of user ids + * @param int $month + * @param int $day + * @return int[] list of user ids */ public function getBirthdays($month, $day) { $this->loadMonth($month); diff --git a/wcfsetup/install/files/lib/system/user/activity/event/UserActivityEventHandler.class.php b/wcfsetup/install/files/lib/system/user/activity/event/UserActivityEventHandler.class.php index 8f46089edb..5bfa491d12 100644 --- a/wcfsetup/install/files/lib/system/user/activity/event/UserActivityEventHandler.class.php +++ b/wcfsetup/install/files/lib/system/user/activity/event/UserActivityEventHandler.class.php @@ -39,7 +39,7 @@ class UserActivityEventHandler extends SingletonFactory { /** * Returns an object type by id. * - * @param integer $objectTypeID + * @param int $objectTypeID * @return ObjectType */ public function getObjectType($objectTypeID) { @@ -54,7 +54,7 @@ class UserActivityEventHandler extends SingletonFactory { * Returns an object type id by object type name. * * @param string $objectType - * @return integer + * @return int */ public function getObjectTypeID($objectType) { if (isset($this->objectTypes['names'][$objectType])) { @@ -68,10 +68,10 @@ class UserActivityEventHandler extends SingletonFactory { * Fires a new activity event. * * @param string $objectType - * @param integer $objectID - * @param integer $languageID - * @param integer $userID - * @param integer $time + * @param int $objectID + * @param int $languageID + * @param int $userID + * @param int $time * @param array $additionalData * @return \wcf\data\user\activity\event\UserActivityEvent * @throws SystemException @@ -145,9 +145,9 @@ class UserActivityEventHandler extends SingletonFactory { /** * Removes an activity event. * - * @param integer $objectType - * @param integer $objectID - * @param integer $userID + * @param int $objectType + * @param int $objectID + * @param int $userID * @throws SystemException */ public function removeEvent($objectType, $objectID, $userID = null) { @@ -174,7 +174,7 @@ class UserActivityEventHandler extends SingletonFactory { * Removes activity events. * * @param string $objectType - * @param integer[] $objectIDs + * @param int[] $objectIDs * @throws SystemException */ public function removeEvents($objectType, array $objectIDs) { diff --git a/wcfsetup/install/files/lib/system/user/activity/point/UserActivityPointHandler.class.php b/wcfsetup/install/files/lib/system/user/activity/point/UserActivityPointHandler.class.php index 474912e985..09763f9c8c 100644 --- a/wcfsetup/install/files/lib/system/user/activity/point/UserActivityPointHandler.class.php +++ b/wcfsetup/install/files/lib/system/user/activity/point/UserActivityPointHandler.class.php @@ -46,8 +46,8 @@ class UserActivityPointHandler extends SingletonFactory { * Adds a new user activity point event. * * @param string $objectType - * @param integer $objectID - * @param integer $userID + * @param int $objectID + * @param int $userID * @param mixed[] $additionalData * @throws InvalidObjectTypeException * @throws SystemException @@ -101,7 +101,7 @@ class UserActivityPointHandler extends SingletonFactory { * ) * * @param string $objectType - * @param integer[] $itemsToUser + * @param int[] $itemsToUser * @param boolean $updateUsers * @throws InvalidObjectTypeException */ @@ -152,7 +152,7 @@ class UserActivityPointHandler extends SingletonFactory { * Removes activity point events. * * @param string $objectType - * @param integer[] $userToItems + * @param int[] $userToItems * @throws InvalidObjectTypeException */ public function removeEvents($objectType, array $userToItems) { @@ -188,7 +188,7 @@ class UserActivityPointHandler extends SingletonFactory { /** * Updates total activity points and ranks for given user ids. * - * @param integer[] $userIDs + * @param int[] $userIDs */ public function updateUsers(array $userIDs) { $userIDs = array_unique($userIDs); @@ -235,7 +235,7 @@ class UserActivityPointHandler extends SingletonFactory { * Returns the user activity point event object type with the given id or * null if no such object type exists. * - * @param integer $objectTypeID + * @param int $objectTypeID * @return ObjectType */ public function getObjectType($objectTypeID) { @@ -264,7 +264,7 @@ class UserActivityPointHandler extends SingletonFactory { /** * Updates the user ranks for the given users. * - * @param integer[] $userIDs + * @param int[] $userIDs */ protected function updateUserRanks(array $userIDs) { $action = new UserProfileAction($userIDs, 'updateUserRank'); diff --git a/wcfsetup/install/files/lib/system/user/collapsible/content/UserCollapsibleContentHandler.class.php b/wcfsetup/install/files/lib/system/user/collapsible/content/UserCollapsibleContentHandler.class.php index 58bcc2ea6d..331d95d54f 100644 --- a/wcfsetup/install/files/lib/system/user/collapsible/content/UserCollapsibleContentHandler.class.php +++ b/wcfsetup/install/files/lib/system/user/collapsible/content/UserCollapsibleContentHandler.class.php @@ -24,7 +24,7 @@ class UserCollapsibleContentHandler extends SingletonFactory { /** * list of collapsed object ids per object type id - * @var integer[][] + * @var int[][] */ protected $collapsedContent = []; @@ -66,7 +66,7 @@ class UserCollapsibleContentHandler extends SingletonFactory { * null, if object type is unknown. * * @param string $objectType - * @return integer + * @return int */ public function getObjectTypeID($objectType) { if (isset($this->cache['objectTypeIDs'][$objectType])) { @@ -79,8 +79,8 @@ class UserCollapsibleContentHandler extends SingletonFactory { /** * Returns a list of object ids being collapsed by current user. * - * @param integer $objectTypeID - * @return integer[] + * @param int $objectTypeID + * @return int[] */ public function getCollapsedContent($objectTypeID) { if (!isset($this->collapsedContent[$objectTypeID])) { @@ -125,7 +125,7 @@ class UserCollapsibleContentHandler extends SingletonFactory { /** * Marks content as collapsed. * - * @param integer $objectTypeID + * @param int $objectTypeID * @param string $objectID */ public function markAsCollapsed($objectTypeID, $objectID) { @@ -176,7 +176,7 @@ class UserCollapsibleContentHandler extends SingletonFactory { /** * Marks content as opened, thus removing the collapsed marking. * - * @param integer $objectTypeID + * @param int $objectTypeID * @param string $objectID */ public function markAsOpened($objectTypeID, $objectID) { @@ -216,7 +216,7 @@ class UserCollapsibleContentHandler extends SingletonFactory { /** * Deletes all saved states for a specific object type. * - * @param integer $objectTypeID + * @param int $objectTypeID */ public function reset($objectTypeID) { if (WCF::getUser()->userID) { @@ -251,7 +251,7 @@ class UserCollapsibleContentHandler extends SingletonFactory { * specific object type for all users. * * @param string $objectType - * @param integer $objectID + * @param int $objectID * @throws InvalidObjectTypeException */ public function resetAll($objectType, $objectID = null) { diff --git a/wcfsetup/install/files/lib/system/user/group/assignment/UserGroupAssignmentHandler.class.php b/wcfsetup/install/files/lib/system/user/group/assignment/UserGroupAssignmentHandler.class.php index 6fd7ff93ff..3ab3a9662d 100644 --- a/wcfsetup/install/files/lib/system/user/group/assignment/UserGroupAssignmentHandler.class.php +++ b/wcfsetup/install/files/lib/system/user/group/assignment/UserGroupAssignmentHandler.class.php @@ -31,7 +31,7 @@ class UserGroupAssignmentHandler extends SingletonFactory { * Note: This method uses the user ids as a parameter instead of user objects * on purpose to make sure the latest data of the users are fetched. * - * @param integer[] $userIDs + * @param int[] $userIDs */ public function checkUsers(array $userIDs) { if (empty($userIDs)) return; @@ -91,7 +91,7 @@ class UserGroupAssignmentHandler extends SingletonFactory { * assignment. * * @param UserGroupAssignment $assignment - * @param integer $maxUsers + * @param int $maxUsers * @return User[] */ public function getUsers(UserGroupAssignment $assignment, $maxUsers = null) { diff --git a/wcfsetup/install/files/lib/system/user/notification/TestableUserNotificationEventHandler.class.php b/wcfsetup/install/files/lib/system/user/notification/TestableUserNotificationEventHandler.class.php index fc3c6ddcf2..5f0346dfb8 100644 --- a/wcfsetup/install/files/lib/system/user/notification/TestableUserNotificationEventHandler.class.php +++ b/wcfsetup/install/files/lib/system/user/notification/TestableUserNotificationEventHandler.class.php @@ -175,8 +175,8 @@ class TestableUserNotificationEventHandler extends SingletonFactory { * Returns a new user notification object based on the given data. * * @param UserProfile $author - * @param integer $timesTriggered - * @param integer $guestTimesTriggered + * @param int $timesTriggered + * @param int $guestTimesTriggered * @param array $additionalData * @return UserNotification */ diff --git a/wcfsetup/install/files/lib/system/user/notification/UserNotificationHandler.class.php b/wcfsetup/install/files/lib/system/user/notification/UserNotificationHandler.class.php index f8e8a49d0f..e524b5b563 100644 --- a/wcfsetup/install/files/lib/system/user/notification/UserNotificationHandler.class.php +++ b/wcfsetup/install/files/lib/system/user/notification/UserNotificationHandler.class.php @@ -53,7 +53,7 @@ class UserNotificationHandler extends SingletonFactory { /** * number of outstanding notifications - * @var integer + * @var int */ protected $notificationCount = null; @@ -83,9 +83,9 @@ class UserNotificationHandler extends SingletonFactory { * @param string $eventName * @param string $objectType * @param IUserNotificationObject $notificationObject - * @param integer[] $recipientIDs + * @param int[] $recipientIDs * @param mixed[] $additionalData - * @param integer $baseObjectID + * @param int $baseObjectID * @throws SystemException */ public function fireEvent($eventName, $objectType, IUserNotificationObject $notificationObject, array $recipientIDs, array $additionalData = [], $baseObjectID = 0) { @@ -290,7 +290,7 @@ class UserNotificationHandler extends SingletonFactory { * Returns the number of outstanding notifications for the active user. * * @param boolean $skipCache - * @return integer + * @return int */ public function getNotificationCount($skipCache = false) { if ($this->notificationCount === null || $skipCache) { @@ -328,7 +328,7 @@ class UserNotificationHandler extends SingletonFactory { /** * Counts all existing notifications for current user and returns it. * - * @return integer + * @return int */ public function countAllNotifications() { $sql = "SELECT COUNT(*) @@ -343,8 +343,8 @@ class UserNotificationHandler extends SingletonFactory { /** * Returns a list of notifications. * - * @param integer $limit - * @param integer $offset + * @param int $limit + * @param int $offset * @param boolean $showConfirmedNotifications DEPRECATED * @return mixed[] */ @@ -384,8 +384,8 @@ class UserNotificationHandler extends SingletonFactory { /** * Fetches a list of notifications based upon given conditions. * - * @param integer $limit - * @param integer $offset + * @param int $limit + * @param int $offset * @param mixed $filterByConfirmed * @return UserNotification[] */ @@ -591,11 +591,11 @@ class UserNotificationHandler extends SingletonFactory { /** * Retrieves a notification id. * - * @param integer $eventID - * @param integer $objectID - * @param integer $authorID - * @param integer $time - * @return integer + * @param int $eventID + * @param int $objectID + * @param int $authorID + * @param int $time + * @return int * @throws SystemException */ public function getNotificationID($eventID, $objectID, $authorID = null, $time = null) { @@ -642,7 +642,7 @@ class UserNotificationHandler extends SingletonFactory { * Returns object type id by name. * * @param string $objectType - * @return integer + * @return int */ public function getObjectTypeID($objectType) { if (isset($this->objectTypes[$objectType])) { @@ -759,8 +759,8 @@ class UserNotificationHandler extends SingletonFactory { * * @param string $eventName * @param string $objectType - * @param integer[] $recipientIDs - * @param integer[] $objectIDs + * @param int[] $recipientIDs + * @param int[] $objectIDs */ public function deleteNotifications($eventName, $objectType, array $recipientIDs, array $objectIDs = []) { $this->markAsConfirmed($eventName, $objectType, $recipientIDs, $objectIDs); @@ -770,7 +770,7 @@ class UserNotificationHandler extends SingletonFactory { * Removes notifications, this method should only be invoked for delete objects. * * @param string $objectType - * @param integer[] $objectIDs + * @param int[] $objectIDs * @throws SystemException */ public function removeNotifications($objectType, array $objectIDs) { @@ -828,8 +828,8 @@ class UserNotificationHandler extends SingletonFactory { * * @param string $eventName * @param string $objectType - * @param integer[] $recipientIDs - * @param integer[] $objectIDs + * @param int[] $recipientIDs + * @param int[] $objectIDs * @throws SystemException */ public function markAsConfirmed($eventName, $objectType, array $recipientIDs, array $objectIDs = []) { @@ -886,7 +886,7 @@ class UserNotificationHandler extends SingletonFactory { /** * Marks a single notification id as confirmed. * - * @param integer $notificationID + * @param int $notificationID * @deprecated 5.2 Please use `UserNotificationHandler::markAsConfirmedByIDs()` instead. */ public function markAsConfirmedByID($notificationID) { @@ -896,7 +896,7 @@ class UserNotificationHandler extends SingletonFactory { /** * Marks a list of notification ids as confirmed. * - * @param integer[] $notificationIDs + * @param int[] $notificationIDs */ public function markAsConfirmedByIDs(array $notificationIDs) { if (empty($notificationIDs)) { @@ -956,7 +956,7 @@ class UserNotificationHandler extends SingletonFactory { * that is both unread and newer than `$lastRequestTimestamp`. May return an * empty array if there is no new notification. * - * @param integer $lastRequestTimestamp + * @param int $lastRequestTimestamp * @return string[] */ public function getLatestNotification($lastRequestTimestamp) { diff --git a/wcfsetup/install/files/lib/system/user/notification/event/IUserNotificationEvent.class.php b/wcfsetup/install/files/lib/system/user/notification/event/IUserNotificationEvent.class.php index 2e534c50e6..5a2250659a 100644 --- a/wcfsetup/install/files/lib/system/user/notification/event/IUserNotificationEvent.class.php +++ b/wcfsetup/install/files/lib/system/user/notification/event/IUserNotificationEvent.class.php @@ -76,7 +76,7 @@ interface IUserNotificationEvent extends IDatabaseObjectProcessor { /** * Returns the author id for this notification event. * - * @return integer + * @return int */ public function getAuthorID(); diff --git a/wcfsetup/install/files/lib/system/user/notification/event/UserProfileCommentLikeUserNotificationEvent.class.php b/wcfsetup/install/files/lib/system/user/notification/event/UserProfileCommentLikeUserNotificationEvent.class.php index e761464c13..3271c96129 100644 --- a/wcfsetup/install/files/lib/system/user/notification/event/UserProfileCommentLikeUserNotificationEvent.class.php +++ b/wcfsetup/install/files/lib/system/user/notification/event/UserProfileCommentLikeUserNotificationEvent.class.php @@ -115,7 +115,7 @@ class UserProfileCommentLikeUserNotificationEvent extends AbstractSharedUserNoti /** * Returns the liked comment's id. * - * @return integer + * @return int */ protected function getCommentID() { // this is the `wcfN_like.objectID` value diff --git a/wcfsetup/install/files/lib/system/user/notification/event/UserProfileCommentResponseLikeUserNotificationEvent.class.php b/wcfsetup/install/files/lib/system/user/notification/event/UserProfileCommentResponseLikeUserNotificationEvent.class.php index a927a1b726..d887c2411f 100644 --- a/wcfsetup/install/files/lib/system/user/notification/event/UserProfileCommentResponseLikeUserNotificationEvent.class.php +++ b/wcfsetup/install/files/lib/system/user/notification/event/UserProfileCommentResponseLikeUserNotificationEvent.class.php @@ -122,7 +122,7 @@ class UserProfileCommentResponseLikeUserNotificationEvent extends AbstractShared /** * Returns the liked response's id. * - * @return integer + * @return int */ protected function getResponseID() { // this is the `wcfN_like.objectID` value diff --git a/wcfsetup/install/files/lib/system/user/notification/object/IStackableUserNotificationObject.class.php b/wcfsetup/install/files/lib/system/user/notification/object/IStackableUserNotificationObject.class.php index 2cb4e4093f..95028c16fd 100644 --- a/wcfsetup/install/files/lib/system/user/notification/object/IStackableUserNotificationObject.class.php +++ b/wcfsetup/install/files/lib/system/user/notification/object/IStackableUserNotificationObject.class.php @@ -14,7 +14,7 @@ interface IStackableUserNotificationObject extends IUserNotificationObject { /** * Returns the ID of the related object. * - * @return integer + * @return int */ public function getRelatedObjectID(); } diff --git a/wcfsetup/install/files/lib/system/user/notification/object/IUserNotificationObject.class.php b/wcfsetup/install/files/lib/system/user/notification/object/IUserNotificationObject.class.php index 3d19ff8967..f3962965ee 100644 --- a/wcfsetup/install/files/lib/system/user/notification/object/IUserNotificationObject.class.php +++ b/wcfsetup/install/files/lib/system/user/notification/object/IUserNotificationObject.class.php @@ -23,7 +23,7 @@ interface IUserNotificationObject extends IDatabaseObjectProcessor, IIDObject, I /** * Returns the user id of the author of this object. * - * @return integer + * @return int */ public function getAuthorID(); } diff --git a/wcfsetup/install/files/lib/system/user/notification/object/type/ICommentUserNotificationObjectType.class.php b/wcfsetup/install/files/lib/system/user/notification/object/type/ICommentUserNotificationObjectType.class.php index 27d8abed58..ebc17ab476 100644 --- a/wcfsetup/install/files/lib/system/user/notification/object/type/ICommentUserNotificationObjectType.class.php +++ b/wcfsetup/install/files/lib/system/user/notification/object/type/ICommentUserNotificationObjectType.class.php @@ -13,8 +13,8 @@ interface ICommentUserNotificationObjectType { /** * Returns owner id of comment context. * - * @param integer $objectID - * @return integer + * @param int $objectID + * @return int */ public function getOwnerID($objectID); } diff --git a/wcfsetup/install/files/lib/system/user/notification/object/type/IMultiRecipientCommentResponseOwnerUserNotificationObjectType.class.php b/wcfsetup/install/files/lib/system/user/notification/object/type/IMultiRecipientCommentResponseOwnerUserNotificationObjectType.class.php index b3b92be48d..2f40d7cbbf 100644 --- a/wcfsetup/install/files/lib/system/user/notification/object/type/IMultiRecipientCommentResponseOwnerUserNotificationObjectType.class.php +++ b/wcfsetup/install/files/lib/system/user/notification/object/type/IMultiRecipientCommentResponseOwnerUserNotificationObjectType.class.php @@ -20,7 +20,7 @@ interface IMultiRecipientCommentResponseOwnerUserNotificationObjectType { * Returns the user id of the comment owner. * * @param Comment $comment - * @return integer + * @return int */ public function getCommentOwnerID(Comment $comment); } diff --git a/wcfsetup/install/files/lib/system/user/notification/object/type/IMultiRecipientCommentUserNotificationObjectType.class.php b/wcfsetup/install/files/lib/system/user/notification/object/type/IMultiRecipientCommentUserNotificationObjectType.class.php index 1082a8989c..63d3dd3de8 100644 --- a/wcfsetup/install/files/lib/system/user/notification/object/type/IMultiRecipientCommentUserNotificationObjectType.class.php +++ b/wcfsetup/install/files/lib/system/user/notification/object/type/IMultiRecipientCommentUserNotificationObjectType.class.php @@ -26,7 +26,7 @@ interface IMultiRecipientCommentUserNotificationObjectType { * is returned, no notifications should be sent. * * @param Comment $comment - * @return integer[] + * @return int[] */ public function getRecipientIDs(Comment $comment); } diff --git a/wcfsetup/install/files/lib/system/user/notification/object/type/IUserNotificationObjectType.class.php b/wcfsetup/install/files/lib/system/user/notification/object/type/IUserNotificationObjectType.class.php index bdd20ecc6e..d526ce2d14 100644 --- a/wcfsetup/install/files/lib/system/user/notification/object/type/IUserNotificationObjectType.class.php +++ b/wcfsetup/install/files/lib/system/user/notification/object/type/IUserNotificationObjectType.class.php @@ -15,7 +15,7 @@ interface IUserNotificationObjectType extends IDatabaseObjectProcessor { /** * Returns notification objects by their IDs. * - * @param integer[] $objectIDs + * @param int[] $objectIDs * @return IUserNotificationObject[] */ public function getObjectsByIDs(array $objectIDs); diff --git a/wcfsetup/install/files/lib/system/user/object/watch/IUserObjectWatch.class.php b/wcfsetup/install/files/lib/system/user/object/watch/IUserObjectWatch.class.php index 56fa5527c8..de0cbe4b86 100644 --- a/wcfsetup/install/files/lib/system/user/object/watch/IUserObjectWatch.class.php +++ b/wcfsetup/install/files/lib/system/user/object/watch/IUserObjectWatch.class.php @@ -13,7 +13,7 @@ interface IUserObjectWatch { /** * Validates the given object id. Throws an exception on error. * - * @param integer $objectID + * @param int $objectID * @throws \wcf\system\exception\UserException */ public function validateObjectID($objectID); @@ -21,7 +21,7 @@ interface IUserObjectWatch { /** * Resets the user storage for given users. * - * @param integer[] $userIDs + * @param int[] $userIDs */ public function resetUserStorage(array $userIDs); } diff --git a/wcfsetup/install/files/lib/system/user/object/watch/UserObjectWatchHandler.class.php b/wcfsetup/install/files/lib/system/user/object/watch/UserObjectWatchHandler.class.php index 5e578f2320..d0bbfd581b 100644 --- a/wcfsetup/install/files/lib/system/user/object/watch/UserObjectWatchHandler.class.php +++ b/wcfsetup/install/files/lib/system/user/object/watch/UserObjectWatchHandler.class.php @@ -21,7 +21,7 @@ class UserObjectWatchHandler extends SingletonFactory { * Returns the id of the given object type. * * @param string $objectTypeName - * @return integer + * @return int * @throws SystemException */ public function getObjectTypeID($objectTypeName) { @@ -44,7 +44,7 @@ class UserObjectWatchHandler extends SingletonFactory { * Resets the object watch cache for all subscriber of the given object. * * @param string $objectType - * @param integer[] $objectIDs + * @param int[] $objectIDs */ public function resetObjects($objectType, array $objectIDs) { // get object type id @@ -71,8 +71,8 @@ class UserObjectWatchHandler extends SingletonFactory { * Deletes the given objects. * * @param string $objectType - * @param integer[] $objectIDs - * @param integer[] $userIDs + * @param int[] $objectIDs + * @param int[] $userIDs */ public function deleteObjects($objectType, array $objectIDs, array $userIDs = []) { // get object type id @@ -94,7 +94,7 @@ class UserObjectWatchHandler extends SingletonFactory { * Updates a watched object for all subscriber. * * @param string $objectType - * @param integer $objectID + * @param int $objectID * @param string $notificationEventName * @param string $notificationObjectType * @param IUserNotificationObject $notificationObject diff --git a/wcfsetup/install/files/lib/system/user/signature/SignatureCache.class.php b/wcfsetup/install/files/lib/system/user/signature/SignatureCache.class.php index ce9e8080e4..e6cc8ba6d0 100644 --- a/wcfsetup/install/files/lib/system/user/signature/SignatureCache.class.php +++ b/wcfsetup/install/files/lib/system/user/signature/SignatureCache.class.php @@ -27,7 +27,7 @@ class SignatureCache extends SingletonFactory { /** * The userIDs which are cached by the message embedded object manager. - * @var integer[] + * @var int[] */ protected $cachedUserIDs = []; @@ -58,7 +58,7 @@ class SignatureCache extends SingletonFactory { /** * Loads the embedded objects for the given users. * - * @param integer[] $userIDs + * @param int[] $userIDs * @since 5.2 */ public function cacheUserSignature(array $userIDs) { diff --git a/wcfsetup/install/files/lib/system/user/storage/UserStorageHandler.class.php b/wcfsetup/install/files/lib/system/user/storage/UserStorageHandler.class.php index 9ca9ffe257..78a53592ab 100644 --- a/wcfsetup/install/files/lib/system/user/storage/UserStorageHandler.class.php +++ b/wcfsetup/install/files/lib/system/user/storage/UserStorageHandler.class.php @@ -46,7 +46,7 @@ class UserStorageHandler extends SingletonFactory { /** * Loads storage for a given set of users. * - * @param integer[] $userIDs + * @param int[] $userIDs */ public function loadStorage(array $userIDs) { $this->validateUserIDs($userIDs); @@ -95,7 +95,7 @@ class UserStorageHandler extends SingletonFactory { /** * Returns stored data for given users. * - * @param integer[] $userIDs + * @param int[] $userIDs * @param string $field * @return mixed[] */ @@ -134,7 +134,7 @@ class UserStorageHandler extends SingletonFactory { * data for the user has been loaded yet! * * @param string $field - * @param integer $userID + * @param int $userID * @return mixed */ public function getField($field, $userID = null) { @@ -167,7 +167,7 @@ class UserStorageHandler extends SingletonFactory { /** * Inserts new data records into database. * - * @param integer $userID + * @param int $userID * @param string $field * @param string $fieldValue */ @@ -194,7 +194,7 @@ class UserStorageHandler extends SingletonFactory { /** * Removes a data record from database. * - * @param integer[] $userIDs + * @param int[] $userIDs * @param string $field */ public function reset(array $userIDs, $field) { diff --git a/wcfsetup/install/files/lib/system/version/VersionTracker.class.php b/wcfsetup/install/files/lib/system/version/VersionTracker.class.php index 0acf7c6a0a..cab6276435 100644 --- a/wcfsetup/install/files/lib/system/version/VersionTracker.class.php +++ b/wcfsetup/install/files/lib/system/version/VersionTracker.class.php @@ -92,8 +92,8 @@ class VersionTracker extends SingletonFactory implements IAJAXInvokeAction { * Returns the number of stored versions for provided object type and object id. * * @param string $objectTypeName object type name - * @param integer $objectID target object id - * @return integer number of stored versions + * @param int $objectID target object id + * @return int number of stored versions */ public function countVersions($objectTypeName, $objectID) { $objectType = $this->getObjectType($objectTypeName); @@ -111,7 +111,7 @@ class VersionTracker extends SingletonFactory implements IAJAXInvokeAction { * Returns the last stored version. * * @param string $objectTypeName object type name - * @param integer $objectID target object id + * @param int $objectID target object id * @return VersionTrackerEntry|null|DatabaseObject */ public function getLastVersion($objectTypeName, $objectID) { @@ -131,7 +131,7 @@ class VersionTracker extends SingletonFactory implements IAJAXInvokeAction { * Returns the list of stored versions. * * @param string $objectTypeName object type name - * @param integer $objectID target object id + * @param int $objectID target object id * @return VersionTrackerEntry[] */ public function getVersions($objectTypeName, $objectID) { @@ -155,7 +155,7 @@ class VersionTracker extends SingletonFactory implements IAJAXInvokeAction { * Returns a version including the contents of the data column. * * @param string $objectTypeName object type name - * @param integer $versionID version id + * @param int $versionID version id * @return VersionTrackerEntry|null|DatabaseObject */ public function getVersion($objectTypeName, $versionID) { @@ -256,7 +256,7 @@ class VersionTracker extends SingletonFactory implements IAJAXInvokeAction { * Resets the entire history for provided object id. * * @param string $objectTypeName object type name - * @param integer $objectID object id + * @param int $objectID object id */ public function reset($objectTypeName, $objectID) { $objectType = $this->getObjectType($objectTypeName); diff --git a/wcfsetup/install/files/lib/system/version/VersionTrackerEntry.class.php b/wcfsetup/install/files/lib/system/version/VersionTrackerEntry.class.php index 96d44beed5..8477928feb 100644 --- a/wcfsetup/install/files/lib/system/version/VersionTrackerEntry.class.php +++ b/wcfsetup/install/files/lib/system/version/VersionTrackerEntry.class.php @@ -10,11 +10,11 @@ namespace wcf\system\version; * @package WoltLabSuite\Core\System\Version * @since 3.1 * - * @property-read integer $versionID unique id of the tracked version entry - * @property-read integer $objectID id of the edited object - * @property-read integer|null $userID id of the user who has created the previous version of the object or `null` if the user does not exist anymore or if the previous version has been created by a guest + * @property-read int $versionID unique id of the tracked version entry + * @property-read int $objectID id of the edited object + * @property-read int|null $userID id of the user who has created the previous version of the object or `null` if the user does not exist anymore or if the previous version has been created by a guest * @property-read string $username name of the user who has created the previous version of the object - * @property-read integer $time timestamp at which the original version has been created + * @property-read int $time timestamp at which the original version has been created */ class VersionTrackerEntry { /** @@ -32,7 +32,7 @@ class VersionTrackerEntry { /** * VersionTrackerEntry constructor. * - * @param integer $id id + * @param int $id id * @param array $data version data */ public function __construct($id, array $data) { @@ -83,7 +83,7 @@ class VersionTrackerEntry { * Returns the stored value of a property or null if unknown. * * @param string $property property name - * @param integer $languageID language id + * @param int $languageID language id * @return string */ public function getPayload($property, $languageID) { @@ -99,7 +99,7 @@ class VersionTrackerEntry { * properties will be set to an empty string. * * @param string[] $properties list of property names - * @param integer $languageID language id + * @param int $languageID language id * @return string[] */ public function getPayloadForProperties(array $properties, $languageID) { @@ -118,7 +118,7 @@ class VersionTrackerEntry { /** * Returns the list of language ids. * - * @return integer[] + * @return int[] */ public function getLanguageIDs() { return array_keys($this->payload); diff --git a/wcfsetup/install/files/lib/system/visitTracker/VisitTracker.class.php b/wcfsetup/install/files/lib/system/visitTracker/VisitTracker.class.php index 2ce897bf75..a55aacc5c7 100644 --- a/wcfsetup/install/files/lib/system/visitTracker/VisitTracker.class.php +++ b/wcfsetup/install/files/lib/system/visitTracker/VisitTracker.class.php @@ -17,7 +17,7 @@ use wcf\system\WCF; class VisitTracker extends SingletonFactory { /** * default tracking lifetime - * @var integer + * @var int */ const DEFAULT_LIFETIME = 604800; // = one week @@ -45,7 +45,7 @@ class VisitTracker extends SingletonFactory { * Returns the object type id of the given visit tracker object type. * * @param string $objectType - * @return integer + * @return int * @throws SystemException */ public function getObjectTypeID($objectType) { @@ -60,7 +60,7 @@ class VisitTracker extends SingletonFactory { * Returns the last visit time for a whole object type. * * @param string $objectType - * @return integer + * @return int */ public function getVisitTime($objectType) { $objectTypeID = $this->getObjectTypeID($objectType); @@ -113,8 +113,8 @@ class VisitTracker extends SingletonFactory { * Returns the last visit time for a specific object. * * @param string $objectType - * @param integer $objectID - * @return integer + * @param int $objectID + * @return int */ public function getObjectVisitTime($objectType, $objectID) { if (WCF::getUser()->userID) { @@ -156,8 +156,8 @@ class VisitTracker extends SingletonFactory { * Tracks an object visit for the users with the given ids. * * @param string $objectType - * @param integer $objectID - * @param integer[] $userIDs + * @param int $objectID + * @param int[] $userIDs * @param int $time */ public function trackObjectVisitByUserIDs($objectType, $objectID, array $userIDs, $time = TIME_NOW) { @@ -180,8 +180,8 @@ class VisitTracker extends SingletonFactory { * Tracks an object visit. * * @param string $objectType - * @param integer $objectID - * @param integer $time + * @param int $objectID + * @param int $time */ public function trackObjectVisit($objectType, $objectID, $time = TIME_NOW) { if (WCF::getUser()->userID) { @@ -201,7 +201,7 @@ class VisitTracker extends SingletonFactory { * Tracks an object type visit. * * @param string $objectType - * @param integer $time + * @param int $time */ public function trackTypeVisit($objectType, $time = TIME_NOW) { if (WCF::getUser()->userID) { diff --git a/wcfsetup/install/files/lib/system/worker/AbstractRebuildDataWorker.class.php b/wcfsetup/install/files/lib/system/worker/AbstractRebuildDataWorker.class.php index ff97ffbecf..c41b6a1843 100644 --- a/wcfsetup/install/files/lib/system/worker/AbstractRebuildDataWorker.class.php +++ b/wcfsetup/install/files/lib/system/worker/AbstractRebuildDataWorker.class.php @@ -108,7 +108,7 @@ abstract class AbstractRebuildDataWorker extends AbstractWorker implements IRebu * Returns the value of the permissions for the provided user ids. The special index `0` is * automatically added and represents a guest user. * - * @param integer[] $userIDs + * @param int[] $userIDs * @param string[] $permissions * @return mixed[] permission value per user id */ @@ -156,7 +156,7 @@ abstract class AbstractRebuildDataWorker extends AbstractWorker implements IRebu * with the return value of `getBulkUserPermissions()`. * * @param mixed[] $userPermissions - * @param integer $userID + * @param int $userID * @param string $permission * @return mixed */ diff --git a/wcfsetup/install/files/lib/system/worker/AbstractWorker.class.php b/wcfsetup/install/files/lib/system/worker/AbstractWorker.class.php index 585528ac6e..eed8acb739 100644 --- a/wcfsetup/install/files/lib/system/worker/AbstractWorker.class.php +++ b/wcfsetup/install/files/lib/system/worker/AbstractWorker.class.php @@ -12,19 +12,19 @@ namespace wcf\system\worker; abstract class AbstractWorker implements IWorker { /** * count of total actions (limited by $limit per loop) - * @var integer + * @var int */ protected $count = null; /** * limit of actions per loop - * @var integer + * @var int */ protected $limit = 0; /** * current loop count - * @var integer + * @var int */ protected $loopCount = 0; diff --git a/wcfsetup/install/files/lib/system/worker/IWorker.class.php b/wcfsetup/install/files/lib/system/worker/IWorker.class.php index fe762f8d80..5253afa87c 100644 --- a/wcfsetup/install/files/lib/system/worker/IWorker.class.php +++ b/wcfsetup/install/files/lib/system/worker/IWorker.class.php @@ -20,15 +20,15 @@ interface IWorker { /** * Sets current loop count. * - * @param integer $loopCount + * @param int $loopCount */ public function setLoopCount($loopCount); /** - * Returns current process of the worker, an integer between 0 and 100. + * Returns current process of the worker, an int between 0 and 100. * If the progress hits 100, the worker will terminate. * - * @return integer + * @return int */ public function getProgress(); diff --git a/wcfsetup/install/files/lib/system/worker/StatDailyRebuildDataWorker.class.php b/wcfsetup/install/files/lib/system/worker/StatDailyRebuildDataWorker.class.php index 4b349601f5..9ae71b2feb 100644 --- a/wcfsetup/install/files/lib/system/worker/StatDailyRebuildDataWorker.class.php +++ b/wcfsetup/install/files/lib/system/worker/StatDailyRebuildDataWorker.class.php @@ -21,7 +21,7 @@ class StatDailyRebuildDataWorker extends AbstractRebuildDataWorker { /** * start timestamp - * @var integer + * @var int */ protected $startDate = 0; diff --git a/wcfsetup/install/files/lib/util/CLIUtil.class.php b/wcfsetup/install/files/lib/util/CLIUtil.class.php index 9da1df245f..9b1b22ae5a 100644 --- a/wcfsetup/install/files/lib/util/CLIUtil.class.php +++ b/wcfsetup/install/files/lib/util/CLIUtil.class.php @@ -74,7 +74,7 @@ final class CLIUtil { /** * Formats time. * - * @param integer $timestamp + * @param int $timestamp * @return string */ public static function formatTime($timestamp) { @@ -88,7 +88,7 @@ final class CLIUtil { /** * Formats dates. * - * @param integer $timestamp + * @param int $timestamp * @return string */ public static function formatDate($timestamp) { diff --git a/wcfsetup/install/files/lib/util/CronjobUtil.class.php b/wcfsetup/install/files/lib/util/CronjobUtil.class.php index a3b252c159..ffc13dc8b9 100644 --- a/wcfsetup/install/files/lib/util/CronjobUtil.class.php +++ b/wcfsetup/install/files/lib/util/CronjobUtil.class.php @@ -31,20 +31,20 @@ final class CronjobUtil { /** * result date - * @var integer[] + * @var int[] */ protected static $result = []; /** * time base used as reference for finding the next execution time - * @var integer + * @var int */ protected static $timeBase = 0; /** * valid ranges for each known field (range for 'day of month' is missing * since it varies from month to month) - * @var integer[] + * @var int[] */ public static $ranges = [ 'minute' => [0, 59], @@ -62,8 +62,8 @@ final class CronjobUtil { * @param string $dom * @param string $month * @param string $dow - * @param integer $timeBase - * @return integer + * @param int $timeBase + * @return int */ public static function calculateNextExec($minute, $hour, $dom, $month, $dow, $timeBase = TIME_NOW) { // using the native `date()` and `mktime()` functions is dangerous @@ -162,8 +162,8 @@ final class CronjobUtil { /** * Calculates the next month and year to match given criteria. * - * @param integer $month - * @param integer $year + * @param int $month + * @param int $year * @param array $values * @return array */ @@ -271,10 +271,10 @@ final class CronjobUtil { /** * Calculates the date of next execution based upon a given set for day of week. * - * @param integer $month - * @param integer $year + * @param int $month + * @param int $year * @param array $values - * @param integer $day + * @param int $day * @return array */ protected static function calculateDow($month, $year, array &$values, $day = 1) { @@ -301,10 +301,10 @@ final class CronjobUtil { /** * Calculates the date of next execution based upon a given set for day of month. * - * @param integer $month - * @param integer $year + * @param int $month + * @param int $year * @param array $values - * @param integer $day + * @param int $day * @return array */ protected static function calculateDom($month, $year, array &$values, $day = 1) { @@ -330,8 +330,8 @@ final class CronjobUtil { * had been added in order to match expression for hour and minutes. * * @param array $values - * @param integer $timeBase - * @return integer + * @param int $timeBase + * @return int */ protected static function calculateHour(array &$values, &$timeBase) { $addAnDay = false; @@ -370,7 +370,7 @@ final class CronjobUtil { * is past the current hour, thus requires to add at least one hour. * * @param array $values - * @param integer $timeBase + * @param int $timeBase * @param boolean $addAnDay * @return boolean */ @@ -403,7 +403,7 @@ final class CronjobUtil { * needle. If $continue is not set to false and foreach-loop is out of bounds, * then the array-index '0' is returned, referring the first item. * - * @param integer $needle + * @param int $needle * @param array $haystack * @param boolean $continue * @return mixed @@ -506,9 +506,9 @@ final class CronjobUtil { /** * Calculates all values for a given range. * - * @param integer $startValue - * @param integer $endValue - * @param integer $step + * @param int $startValue + * @param int $endValue + * @param int $step * @return array */ protected static function calculateRange($startValue, $endValue, $step = 1) { diff --git a/wcfsetup/install/files/lib/util/DateUtil.class.php b/wcfsetup/install/files/lib/util/DateUtil.class.php index b09fd32331..1a897ae2e6 100644 --- a/wcfsetup/install/files/lib/util/DateUtil.class.php +++ b/wcfsetup/install/files/lib/util/DateUtil.class.php @@ -28,19 +28,19 @@ final class DateUtil { /** * format the interval to be used as a standalone phrase - * @var integer + * @var int */ const FORMAT_DEFAULT = 1; /** * format the interval to be used as a phrase in a sentence - * @var integer + * @var int */ const FORMAT_SENTENCE = 2; /** * format the interval without direction - * @var integer + * @var int */ const FORMAT_PLAIN = 3; @@ -150,7 +150,7 @@ final class DateUtil { * first day of the week * 0=sunday * 1=monday - * @var integer + * @var int */ private static $firstDayOfTheWeek = null; @@ -199,7 +199,7 @@ final class DateUtil { * * @param \DateInterval $interval interval to be formatted * @param boolean $fullInterval if `true`, the complete interval is returned, otherwise a rounded interval is used - * @param integer $formatType format type for the interval, use the class constant FORMAT_DEFAULT, FORMAT_SENTENCE or FORMAT_PLAIN + * @param int $formatType format type for the interval, use the class constant FORMAT_DEFAULT, FORMAT_SENTENCE or FORMAT_PLAIN * @return string */ public static function formatInterval(\DateInterval $interval, $fullInterval = false, $formatType = self::FORMAT_DEFAULT) { @@ -364,7 +364,7 @@ final class DateUtil { /** * Creates a DateTime object with the given unix timestamp. * - * @param integer $timestamp + * @param int $timestamp * @return \DateTime */ public static function getDateTimeByTimestamp($timestamp) { @@ -384,7 +384,7 @@ final class DateUtil { * Calculates the age of a given date. * * @param string $date format YYYY-MM-DD - * @return integer + * @return int */ public static function getAge($date) { // split date @@ -425,7 +425,7 @@ final class DateUtil { /** * Returns the first day of the week. * - * @return integer + * @return int */ public static function getFirstDayOfTheWeek() { if (self::$firstDayOfTheWeek === null) { @@ -507,8 +507,8 @@ final class DateUtil { /** * Returns the number of weeks in the given year. * - * @param integer $year - * @return integer + * @param int $year + * @return int */ public static function getWeeksInYear($year) { $date = new \DateTime(); @@ -521,7 +521,7 @@ final class DateUtil { * through JavaScript. * * @param \DateTime $dateTimeObject target date object - * @param integer $timestamp target timestamp + * @param int $timestamp target timestamp * @param string $date localized date * @param string $time localized time * @param boolean $isFutureDate true if timestamp is in the future diff --git a/wcfsetup/install/files/lib/util/Diff.class.php b/wcfsetup/install/files/lib/util/Diff.class.php index edc57cffe4..0561750282 100644 --- a/wcfsetup/install/files/lib/util/Diff.class.php +++ b/wcfsetup/install/files/lib/util/Diff.class.php @@ -44,13 +44,13 @@ class Diff { /** * size of a - * @var integer + * @var int */ protected $sizeA = 0; /** * size of b - * @var integer + * @var int */ protected $sizeB = 0; @@ -233,7 +233,7 @@ class Diff { /** * Returns a string like the one generated by unix diff. * - * @param integer $context + * @param int $context * @return string */ public function getUnixDiff($context = 2) { diff --git a/wcfsetup/install/files/lib/util/DirectoryUtil.class.php b/wcfsetup/install/files/lib/util/DirectoryUtil.class.php index 0852c6ab24..6404c69d13 100644 --- a/wcfsetup/install/files/lib/util/DirectoryUtil.class.php +++ b/wcfsetup/install/files/lib/util/DirectoryUtil.class.php @@ -31,7 +31,7 @@ final class DirectoryUtil { /** * directory size in bytes - * @var integer + * @var int */ protected $size = 0; @@ -49,7 +49,7 @@ final class DirectoryUtil { /** * indicates that files won't be sorted - * @var integer + * @var int */ const SORT_NONE = -1; @@ -117,7 +117,7 @@ final class DirectoryUtil { /** * Returns a sorted list of files. * - * @param integer $order sort-order + * @param int $order sort-order * @param Regex $pattern pattern to match * @param boolean $negativeMatch true if the pattern should be inversed * @return string[] @@ -154,7 +154,7 @@ final class DirectoryUtil { /** * Returns a sorted list of files, with DirectoryIterator object as value * - * @param integer $order sort order + * @param int $order sort order * @param Regex $pattern pattern to match * @param boolean $negativeMatch should the pattern be inversed * @return \DirectoryIterator[] @@ -309,7 +309,7 @@ final class DirectoryUtil { /** * Calculates the size of the directory. * - * @return integer directory size in bytes + * @return int directory size in bytes * @throws SystemException */ public function getSize() { diff --git a/wcfsetup/install/files/lib/util/ExifUtil.class.php b/wcfsetup/install/files/lib/util/ExifUtil.class.php index 3b4274099c..32194c61fa 100644 --- a/wcfsetup/install/files/lib/util/ExifUtil.class.php +++ b/wcfsetup/install/files/lib/util/ExifUtil.class.php @@ -13,56 +13,56 @@ final class ExifUtil { /** * orientation value for the original orientation * @see http://jpegclub.org/exif_orientation.html - * @var integer + * @var int */ const ORIENTATION_ORIGINAL = 1; /** * orientation value of a horizontal flip * @see http://jpegclub.org/exif_orientation.html - * @var integer + * @var int */ const ORIENTATION_HORIZONTAL_FLIP = 2; /** * orientation value of a 180 degree rotation * @see http://jpegclub.org/exif_orientation.html - * @var integer + * @var int */ const ORIENTATION_180_ROTATE = 3; /** * orientation value of a vertical flip * @see http://jpegclub.org/exif_orientation.html - * @var integer + * @var int */ const ORIENTATION_VERTICAL_FLIP = 4; /** * orientation value of a vertical flip and a 270 degree rotation * @see http://jpegclub.org/exif_orientation.html - * @var integer + * @var int */ const ORIENTATION_VERTICAL_FLIP_270_ROTATE = 5; /** * orientation value of a 90 degree rotation * @see http://jpegclub.org/exif_orientation.html - * @var integer + * @var int */ const ORIENTATION_90_ROTATE = 6; /** * orientation value of a horizontal flip and a 270 degree rotation * @see http://jpegclub.org/exif_orientation.html - * @var integer + * @var int */ const ORIENTATION_HORIZONTAL_FLIP_270_ROTATE = 7; /** * orientation value of a 270 degree rotation * @see http://jpegclub.org/exif_orientation.html - * @var integer + * @var int */ const ORIENTATION_270_ROTATE = 8; @@ -226,7 +226,7 @@ final class ExifUtil { * Returns the orientation of the image based on the given exif data. * * @param array $exifData - * @return integer + * @return int */ public static function getOrientation(array $exifData) { $orientation = self::ORIENTATION_ORIGINAL; diff --git a/wcfsetup/install/files/lib/util/FileReader.class.php b/wcfsetup/install/files/lib/util/FileReader.class.php index 4eb33ecc92..23c3ff728a 100644 --- a/wcfsetup/install/files/lib/util/FileReader.class.php +++ b/wcfsetup/install/files/lib/util/FileReader.class.php @@ -42,13 +42,13 @@ class FileReader { /** * start byte - * @var integer + * @var int */ protected $startByte = 0; /** * end byte - * @var integer + * @var int */ protected $endByte = 0; diff --git a/wcfsetup/install/files/lib/util/FileUtil.class.php b/wcfsetup/install/files/lib/util/FileUtil.class.php index 2e4887656d..2fb87168a1 100644 --- a/wcfsetup/install/files/lib/util/FileUtil.class.php +++ b/wcfsetup/install/files/lib/util/FileUtil.class.php @@ -22,7 +22,7 @@ final class FileUtil { /** * memory limit in bytes - * @var integer + * @var int */ protected static $memoryLimit = null; @@ -355,8 +355,8 @@ final class FileUtil { /** * Formats the given filesize. * - * @param integer $byte - * @param integer $precision + * @param int $byte + * @param int $precision * @return string */ public static function formatFilesize($byte, $precision = 2) { @@ -386,8 +386,8 @@ final class FileUtil { * * For more information: * - * @param integer $byte - * @param integer $precision + * @param int $byte + * @param int $precision * @return string */ public static function formatFilesizeBinary($byte, $precision = 2) { @@ -593,7 +593,7 @@ final class FileUtil { /** * Returns memory limit in bytes. * - * @return integer + * @return int */ public static function getMemoryLimit() { if (self::$memoryLimit === null) { @@ -635,7 +635,7 @@ final class FileUtil { /** * Returns true if the given amount of memory is available. * - * @param integer $neededMemory + * @param int $neededMemory * @return boolean */ public static function checkMemoryLimit($neededMemory) { diff --git a/wcfsetup/install/files/lib/util/HeaderUtil.class.php b/wcfsetup/install/files/lib/util/HeaderUtil.class.php index 0ca4c32d03..ae34c09e8b 100644 --- a/wcfsetup/install/files/lib/util/HeaderUtil.class.php +++ b/wcfsetup/install/files/lib/util/HeaderUtil.class.php @@ -32,7 +32,7 @@ final class HeaderUtil { * * @param string $name * @param string $value - * @param integer $expire + * @param int $expire */ public static function setCookie($name, $value = '', $expire = 0) { $cookieDomain = self::getCookieDomain(); @@ -154,7 +154,7 @@ final class HeaderUtil { * * @param string $location * @param string $message - * @param integer $delay + * @param int $delay * @param string $status */ public static function delayedRedirect($location, $message, $delay = 5, $status = 'success') { diff --git a/wcfsetup/install/files/lib/util/ImageUtil.class.php b/wcfsetup/install/files/lib/util/ImageUtil.class.php index 9bfa60939d..52d9a7bb67 100644 --- a/wcfsetup/install/files/lib/util/ImageUtil.class.php +++ b/wcfsetup/install/files/lib/util/ImageUtil.class.php @@ -103,8 +103,8 @@ final class ImageUtil { * Enforces dimensions for given image. * * @param string $filename - * @param integer $maxWidth - * @param integer $maxHeight + * @param int $maxWidth + * @param int $maxHeight * @param boolean $obtainDimensions * @return string new filename if file was changed, otherwise old filename * @since 5.2 diff --git a/wcfsetup/install/files/lib/util/JSON.class.php b/wcfsetup/install/files/lib/util/JSON.class.php index 10899468e8..e2fdd541fe 100644 --- a/wcfsetup/install/files/lib/util/JSON.class.php +++ b/wcfsetup/install/files/lib/util/JSON.class.php @@ -15,7 +15,7 @@ final class JSON { * Returns the JSON representation of a value. * * @param mixed $data - * @param integer $options + * @param int $options * @return string */ public static function encode($data, $options = 0) { @@ -44,7 +44,7 @@ final class JSON { /** * Returns the last error occurred. * - * @return integer + * @return int */ public static function getLastError() { return json_last_error(); diff --git a/wcfsetup/install/files/lib/util/MathUtil.class.php b/wcfsetup/install/files/lib/util/MathUtil.class.php index 4b7bb41cea..3bd9bddea1 100644 --- a/wcfsetup/install/files/lib/util/MathUtil.class.php +++ b/wcfsetup/install/files/lib/util/MathUtil.class.php @@ -13,9 +13,9 @@ final class MathUtil { /** * Generates a random value. * - * @param integer $min - * @param integer $max - * @return integer + * @param int $min + * @param int $max + * @return int */ public static function getRandomValue($min = null, $max = null) { // generate random value diff --git a/wcfsetup/install/files/lib/util/MessageUtil.class.php b/wcfsetup/install/files/lib/util/MessageUtil.class.php index cde876f57a..0e93e17139 100644 --- a/wcfsetup/install/files/lib/util/MessageUtil.class.php +++ b/wcfsetup/install/files/lib/util/MessageUtil.class.php @@ -204,7 +204,7 @@ class MessageUtil { * Truncates a formatted message and keeps the HTML syntax intact. * * @param string $message string which shall be truncated - * @param integer $maxLength string length after truncating + * @param int $maxLength string length after truncating * @return string truncated string */ public static function truncateFormattedMessage($message, $maxLength = 1000) { diff --git a/wcfsetup/install/files/lib/util/PasswordUtil.class.php b/wcfsetup/install/files/lib/util/PasswordUtil.class.php index 30dfd20953..071a5b5ebd 100644 --- a/wcfsetup/install/files/lib/util/PasswordUtil.class.php +++ b/wcfsetup/install/files/lib/util/PasswordUtil.class.php @@ -195,7 +195,7 @@ final class PasswordUtil { /** * Generates a random alphanumeric user password with the given character length. * - * @param integer $length + * @param int $length * @return string */ public static function getRandomPassword($length = 12) { diff --git a/wcfsetup/install/files/lib/util/StringStack.class.php b/wcfsetup/install/files/lib/util/StringStack.class.php index 9f347c9588..4f4f77c043 100644 --- a/wcfsetup/install/files/lib/util/StringStack.class.php +++ b/wcfsetup/install/files/lib/util/StringStack.class.php @@ -12,7 +12,7 @@ namespace wcf\util; final class StringStack { /** * hash index - * @var integer + * @var int */ protected static $i = 0; diff --git a/wcfsetup/install/files/lib/util/StringUtil.class.php b/wcfsetup/install/files/lib/util/StringUtil.class.php index c47c347fc4..38aa41af0b 100644 --- a/wcfsetup/install/files/lib/util/StringUtil.class.php +++ b/wcfsetup/install/files/lib/util/StringUtil.class.php @@ -180,7 +180,7 @@ final class StringUtil { /** * Formats an integer. * - * @param integer $integer + * @param int $integer * @return string */ public static function formatInteger($integer) { @@ -196,7 +196,7 @@ final class StringUtil { * Formats a double. * * @param double $double - * @param integer $maxDecimals + * @param int $maxDecimals * @return string */ public static function formatDouble($double, $maxDecimals = 0) { @@ -286,7 +286,7 @@ final class StringUtil { * @param string $search * @param string $replace * @param string $subject - * @param integer $count + * @param int $count * @return string */ public static function replaceIgnoreCase($search, $replace, $subject, &$count = 0) { @@ -303,7 +303,7 @@ final class StringUtil { * Alias to php str_split() function with multibyte support. * * @param string $string - * @param integer $length + * @param int $length * @return string[] */ public static function split($string, $length = 1) { @@ -354,9 +354,9 @@ final class StringUtil { * Alias to php str_pad function with multibyte support. * * @param string $input - * @param integer $padLength + * @param int $padLength * @param string $padString - * @param integer $padType + * @param int $padType * @return string */ public static function pad($input, $padLength, $padString = ' ', $padType = STR_PAD_RIGHT) { @@ -382,7 +382,7 @@ final class StringUtil { /** * Takes a numeric HTML entity value and returns the appropriate UTF-8 bytes. * - * @param integer $dec html entity value + * @param int $dec html entity value * @return string utf-8 bytes */ public static function getCharacter($dec) { @@ -406,7 +406,7 @@ final class StringUtil { * @see http://www1.tip.nl/~t876506/utf8tbl.html * * @param string $c - * @return integer + * @return int */ public static function getCharValue($c) { $ud = 0; @@ -548,7 +548,7 @@ final class StringUtil { * Truncates the given string to a certain number of characters. * * @param string $string string which shall be truncated - * @param integer $length string length after truncating + * @param int $length string length after truncating * @param string $etc string to append when $string is truncated * @param boolean $breakWords should words be broken in the middle * @return string truncated string @@ -576,7 +576,7 @@ final class StringUtil { * Truncates a string containing HTML code and keeps the HTML syntax intact. * * @param string $string string which shall be truncated - * @param integer $length string length after truncating + * @param int $length string length after truncating * @param string $etc ending string which will be appended after truncating * @param boolean $breakWords if false words will not be split and the return string might be shorter than $length * @return string truncated string @@ -726,7 +726,7 @@ final class StringUtil { * Splits given string into smaller chunks. * * @param string $string - * @param integer $length + * @param int $length * @param string $break * @return string */ @@ -738,7 +738,7 @@ final class StringUtil { * Simple multi-byte safe wordwrap() function. * * @param string $string - * @param integer $width + * @param int $width * @param string $break * @return string */ @@ -769,7 +769,7 @@ final class StringUtil { /** * Shortens numbers larger than 1000 by using unit suffixes. * - * @param integer $number + * @param int $number * @return string */ public static function getShortUnit($number) { diff --git a/wcfsetup/install/files/lib/util/Url.class.php b/wcfsetup/install/files/lib/util/Url.class.php index 7272357672..376c9b9748 100644 --- a/wcfsetup/install/files/lib/util/Url.class.php +++ b/wcfsetup/install/files/lib/util/Url.class.php @@ -24,7 +24,7 @@ final class Url implements \ArrayAccess { /** * maps properties to the array indices - * @var integer[] + * @var int[] */ private static $propertyMap = [ PHP_URL_SCHEME => 'scheme', @@ -78,7 +78,7 @@ final class Url implements \ArrayAccess { * that they're non-empty. * * @param string $url - * @param integer[] $components + * @param int[] $components * @return boolean */ public static function contains($url, array $components) { @@ -138,12 +138,12 @@ final class Url implements \ArrayAccess { } /** - * Attempts to resolve string properties and maps them to their integer-based + * Attempts to resolve string properties and maps them to their int-based * component indices. Will throw an exception if the property is unknown, * making it easier to spot typos. * * @param mixed $property - * @return integer + * @return int * @throws \RuntimeException */ private function getIndex($property) { diff --git a/wcfsetup/install/files/lib/util/UserRegistrationUtil.class.php b/wcfsetup/install/files/lib/util/UserRegistrationUtil.class.php index 0489122143..2a54438801 100644 --- a/wcfsetup/install/files/lib/util/UserRegistrationUtil.class.php +++ b/wcfsetup/install/files/lib/util/UserRegistrationUtil.class.php @@ -91,8 +91,8 @@ final class UserRegistrationUtil { * Generates a random activation code with the given length. * Warning: A length greater than 9 is out of integer range. * - * @param integer $length - * @return integer + * @param int $length + * @return int */ public static function getActivationCode($length = 9) { return random_int(pow(10, $length - 1), pow(10, $length) - 1); diff --git a/wcfsetup/install/files/lib/util/XMLWriter.class.php b/wcfsetup/install/files/lib/util/XMLWriter.class.php index 82e9a872ed..a40e1d39d3 100644 --- a/wcfsetup/install/files/lib/util/XMLWriter.class.php +++ b/wcfsetup/install/files/lib/util/XMLWriter.class.php @@ -19,7 +19,7 @@ class XMLWriter { /** * number of open elements - * @var integer + * @var int */ protected $openElements = 0; -- 2.20.1