From: Matthias Schmidt Date: Thu, 7 Apr 2016 06:55:03 +0000 (+0200) Subject: Unify array documentation X-Git-Tag: 3.0.0_Beta_1~1956 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7a23a7069b141c0a4e21055a1c43eee1bf08d1fe;p=GitHub%2FWoltLab%2FWCF.git Unify array documentation … for autocompletion and proper phpdoc recognition. --- diff --git a/wcfsetup/install/files/lib/acp/action/UserQuickSearchAction.class.php b/wcfsetup/install/files/lib/acp/action/UserQuickSearchAction.class.php index a031b79b24..5bed3552b7 100644 --- a/wcfsetup/install/files/lib/acp/action/UserQuickSearchAction.class.php +++ b/wcfsetup/install/files/lib/acp/action/UserQuickSearchAction.class.php @@ -32,7 +32,7 @@ class UserQuickSearchAction extends AbstractAction { /** * matches - * @var array + * @var integer[] */ public $matches = array(); @@ -44,7 +44,7 @@ class UserQuickSearchAction extends AbstractAction { /** * shown columns - * @var array + * @var string[] */ public $columns = array('registrationDate', 'lastActivityTime'); diff --git a/wcfsetup/install/files/lib/acp/form/AbstractBulkProcessingForm.class.php b/wcfsetup/install/files/lib/acp/form/AbstractBulkProcessingForm.class.php index 94f5bea1be..6dc51d4210 100644 --- a/wcfsetup/install/files/lib/acp/form/AbstractBulkProcessingForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/AbstractBulkProcessingForm.class.php @@ -1,5 +1,6 @@ + * @var ObjectType[] */ public $actions = array(); @@ -33,7 +34,7 @@ abstract class AbstractBulkProcessingForm extends AbstractForm { /** * object condition object type types - * @var array<\wcf\data\object\type\ObjectType> + * @var ObjectType[] */ public $conditions = array(); diff --git a/wcfsetup/install/files/lib/acp/form/AdAddForm.class.php b/wcfsetup/install/files/lib/acp/form/AdAddForm.class.php index 86aeb4be49..44ac49b26c 100644 --- a/wcfsetup/install/files/lib/acp/form/AdAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/AdAddForm.class.php @@ -1,5 +1,6 @@ + * @var ObjectType[] */ public $locationObjectTypes = array(); /** * list of available locations - * @var array + * @var string[] */ public $locations = array(); diff --git a/wcfsetup/install/files/lib/acp/form/BBCodeAddForm.class.php b/wcfsetup/install/files/lib/acp/form/BBCodeAddForm.class.php index 2afb39a636..f5c9585985 100644 --- a/wcfsetup/install/files/lib/acp/form/BBCodeAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/BBCodeAddForm.class.php @@ -35,7 +35,7 @@ class BBCodeAddForm extends AbstractForm { /** * list of attributes - * @var array + * @var object[] */ public $attributes = array(); diff --git a/wcfsetup/install/files/lib/acp/form/BBCodeEditForm.class.php b/wcfsetup/install/files/lib/acp/form/BBCodeEditForm.class.php index b279320f0d..67b38a10e3 100644 --- a/wcfsetup/install/files/lib/acp/form/BBCodeEditForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/BBCodeEditForm.class.php @@ -44,7 +44,7 @@ class BBCodeEditForm extends BBCodeAddForm { /** * list of native bbcodes - * @var array + * @var string[] */ public static $nativeBBCodes = array('b', 'i', 'u', 's', 'sub', 'sup', 'list', 'align', 'color', 'size', 'font', 'url', 'img', 'email', 'table'); diff --git a/wcfsetup/install/files/lib/acp/form/DashboardOptionForm.class.php b/wcfsetup/install/files/lib/acp/form/DashboardOptionForm.class.php index b039f447ed..838147956d 100644 --- a/wcfsetup/install/files/lib/acp/form/DashboardOptionForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/DashboardOptionForm.class.php @@ -1,5 +1,6 @@ + * @var DashboardBox[] */ public $boxes = array(); /** * list of enabled box ids - * @var array + * @var integer[] */ public $enabledBoxes = array(); diff --git a/wcfsetup/install/files/lib/acp/form/DataImportForm.class.php b/wcfsetup/install/files/lib/acp/form/DataImportForm.class.php index 7c0450b27f..25806aa3a1 100644 --- a/wcfsetup/install/files/lib/acp/form/DataImportForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/DataImportForm.class.php @@ -57,7 +57,7 @@ class DataImportForm extends AbstractForm { /** * list of available importers - * @var array + * @var string[] */ public $importers = array(); diff --git a/wcfsetup/install/files/lib/acp/form/LabelGroupAddForm.class.php b/wcfsetup/install/files/lib/acp/form/LabelGroupAddForm.class.php index 76e012f3ac..2a75f9ccdc 100644 --- a/wcfsetup/install/files/lib/acp/form/LabelGroupAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/LabelGroupAddForm.class.php @@ -6,6 +6,8 @@ use wcf\data\object\type\ObjectTypeCache; use wcf\form\AbstractForm; use wcf\system\acl\ACLHandler; use wcf\system\exception\UserInputException; +use wcf\system\label\object\type\ILabelObjectTypeHandler; +use wcf\system\label\object\type\LabelObjectTypeContainer; use wcf\system\language\I18nHandler; use wcf\system\WCF; use wcf\util\StringUtil; @@ -51,13 +53,13 @@ class LabelGroupAddForm extends AbstractForm { /** * list of label object type handlers - * @var array<\wcf\system\label\object\type\ILabelObjectTypeHandler> + * @var ILabelObjectTypeHandler[] */ public $labelObjectTypes = array(); /** * list of label object type containers - * @var array<\wcf\system\label\object\type\LabelObjectTypeContainer> + * @var LabelObjectTypeContainer[] */ public $labelObjectTypeContainers = array(); diff --git a/wcfsetup/install/files/lib/acp/form/LanguageAddForm.class.php b/wcfsetup/install/files/lib/acp/form/LanguageAddForm.class.php index 9f39f4fff3..3af0c507b4 100644 --- a/wcfsetup/install/files/lib/acp/form/LanguageAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/LanguageAddForm.class.php @@ -1,5 +1,6 @@ + * @var Language[] */ public $languages = array(); diff --git a/wcfsetup/install/files/lib/acp/form/LanguageExportForm.class.php b/wcfsetup/install/files/lib/acp/form/LanguageExportForm.class.php index e2b133b8a3..58ba4eaf34 100644 --- a/wcfsetup/install/files/lib/acp/form/LanguageExportForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/LanguageExportForm.class.php @@ -44,13 +44,13 @@ class LanguageExportForm extends AbstractForm { /** * selected packages - * @var array + * @var string[] */ public $selectedPackages = array(); /** * available packages - * @var array + * @var string[] */ public $packages = array(); diff --git a/wcfsetup/install/files/lib/acp/form/LanguageImportForm.class.php b/wcfsetup/install/files/lib/acp/form/LanguageImportForm.class.php index 72da1477ab..3e71883f6f 100644 --- a/wcfsetup/install/files/lib/acp/form/LanguageImportForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/LanguageImportForm.class.php @@ -1,5 +1,6 @@ + * @var Language[] */ public $languages = array(); diff --git a/wcfsetup/install/files/lib/acp/form/LanguageMultilingualismForm.class.php b/wcfsetup/install/files/lib/acp/form/LanguageMultilingualismForm.class.php index 7af4cb5384..9f2b31a4c0 100644 --- a/wcfsetup/install/files/lib/acp/form/LanguageMultilingualismForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/LanguageMultilingualismForm.class.php @@ -1,5 +1,6 @@ + * @var integer[] */ public $languageIDs = array(); /** * list of available content languages - * @var array<\wcf\data\language\Language> + * @var Language[] */ public $languages = array(); diff --git a/wcfsetup/install/files/lib/acp/form/NoticeAddForm.class.php b/wcfsetup/install/files/lib/acp/form/NoticeAddForm.class.php index 1e5e0fe11c..28a56d3b30 100644 --- a/wcfsetup/install/files/lib/acp/form/NoticeAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/NoticeAddForm.class.php @@ -29,7 +29,7 @@ class NoticeAddForm extends AbstractForm { /** * list pf pre-defined CSS class names - * @var array + * @var string[] */ public $availableCssClassNames = array( 'info', diff --git a/wcfsetup/install/files/lib/acp/form/NotificationPresetSettingsForm.class.php b/wcfsetup/install/files/lib/acp/form/NotificationPresetSettingsForm.class.php index 18e28e9b10..ecc3691ea9 100644 --- a/wcfsetup/install/files/lib/acp/form/NotificationPresetSettingsForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/NotificationPresetSettingsForm.class.php @@ -6,6 +6,7 @@ use wcf\data\user\notification\event\UserNotificationEventEditor; use wcf\form\AbstractForm; use wcf\system\cache\builder\UserNotificationEventCacheBuilder; use wcf\system\exception\UserInputException; +use wcf\system\user\notification\event\IUserNotificationEvent; use wcf\system\user\notification\UserNotificationHandler; use wcf\system\WCF; @@ -32,13 +33,13 @@ class NotificationPresetSettingsForm extends AbstractForm { /** * list of notification events - * @var array + * @var IUserNotificationEvent[][] */ public $events = null; /** * list of settings by event - * @var array + * @var mixed[][] */ public $settings = array(); @@ -50,7 +51,7 @@ class NotificationPresetSettingsForm extends AbstractForm { /** * list of valid options for the mail notification type. - * @var array + * @var string[] */ protected static $validMailNotificationTypes = array('none', 'instant', 'daily'); diff --git a/wcfsetup/install/files/lib/acp/form/PackageStartInstallForm.class.php b/wcfsetup/install/files/lib/acp/form/PackageStartInstallForm.class.php index b936ccb9ea..9ae5931c4e 100755 --- a/wcfsetup/install/files/lib/acp/form/PackageStartInstallForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/PackageStartInstallForm.class.php @@ -36,7 +36,7 @@ class PackageStartInstallForm extends AbstractForm { /** * data of the uploaded package - * @var array + * @var string[] */ public $uploadPackage = ''; diff --git a/wcfsetup/install/files/lib/acp/form/PaidSubscriptionAddForm.class.php b/wcfsetup/install/files/lib/acp/form/PaidSubscriptionAddForm.class.php index afed0ac75a..f200282bd3 100644 --- a/wcfsetup/install/files/lib/acp/form/PaidSubscriptionAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/PaidSubscriptionAddForm.class.php @@ -106,13 +106,13 @@ class PaidSubscriptionAddForm extends AbstractForm { /** * list of group ids - * @var array + * @var integer[] */ public $groupIDs = array(); /** * list of excluded subscriptions - * @var array + * @var integer[] */ public $excludedSubscriptionIDs = array(); @@ -124,7 +124,7 @@ class PaidSubscriptionAddForm extends AbstractForm { /** * list of available currencies - * @var array + * @var string[] */ public $availableCurrencies = array(); diff --git a/wcfsetup/install/files/lib/acp/form/StyleAddForm.class.php b/wcfsetup/install/files/lib/acp/form/StyleAddForm.class.php index 26759a6457..ce21a2b76b 100644 --- a/wcfsetup/install/files/lib/acp/form/StyleAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/StyleAddForm.class.php @@ -3,6 +3,7 @@ namespace wcf\acp\form; use wcf\data\package\Package; use wcf\data\style\StyleAction; use wcf\data\style\StyleEditor; +use wcf\data\template\group\TemplateGroup; use wcf\data\template\group\TemplateGroupList; use wcf\form\AbstractForm; use wcf\system\event\EventHandler; @@ -45,7 +46,7 @@ class StyleAddForm extends AbstractForm { /** * list of available font families - * @var array + * @var string[] */ public $availableFontFamilies = [ 'Arial, Helvetica, sans-serif' => 'Arial', @@ -66,13 +67,13 @@ class StyleAddForm extends AbstractForm { /** * list of available template groups - * @var array<\wcf\data\template\group\TemplateGroup> + * @var TemplateGroup[] */ public $availableTemplateGroups = []; /** * list of available units - * @var array + * @var string[] */ public $availableUnits = ['px', 'em', '%', 'pt']; @@ -80,7 +81,7 @@ class StyleAddForm extends AbstractForm { /** * list of color variables - * @var array + * @var string[] */ public $colors = []; @@ -163,13 +164,13 @@ class StyleAddForm extends AbstractForm { /** * list of variables and their value - * @var array + * @var string[] */ public $variables = []; /** * list of specialized variables - * @var array + * @var string[] */ public $specialVariables = []; diff --git a/wcfsetup/install/files/lib/acp/form/StyleImportForm.class.php b/wcfsetup/install/files/lib/acp/form/StyleImportForm.class.php index dee8aea17b..afbfbf3af6 100644 --- a/wcfsetup/install/files/lib/acp/form/StyleImportForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/StyleImportForm.class.php @@ -34,7 +34,7 @@ class StyleImportForm extends AbstractForm { /** * upload data - * @var array + * @var string[] */ public $source = array(); diff --git a/wcfsetup/install/files/lib/acp/form/TagAddForm.class.php b/wcfsetup/install/files/lib/acp/form/TagAddForm.class.php index e14f04058c..f803adeb6f 100644 --- a/wcfsetup/install/files/lib/acp/form/TagAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/TagAddForm.class.php @@ -56,7 +56,7 @@ class TagAddForm extends AbstractForm { /** * synonyms - * @var array + * @var string[] */ public $synonyms = array(); diff --git a/wcfsetup/install/files/lib/acp/form/UserActivityPointOptionForm.class.php b/wcfsetup/install/files/lib/acp/form/UserActivityPointOptionForm.class.php index 0af95705c4..a6431970d0 100644 --- a/wcfsetup/install/files/lib/acp/form/UserActivityPointOptionForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/UserActivityPointOptionForm.class.php @@ -1,5 +1,6 @@ + * @var integer[] */ public $points = array(); /** * valid object types - * @var array<\wcf\data\object\type\ObjectType> + * @var ObjectType[] */ public $objectTypes = array(); diff --git a/wcfsetup/install/files/lib/acp/form/UserAddForm.class.php b/wcfsetup/install/files/lib/acp/form/UserAddForm.class.php index d36091e500..42bd53cd29 100644 --- a/wcfsetup/install/files/lib/acp/form/UserAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/UserAddForm.class.php @@ -64,7 +64,7 @@ class UserAddForm extends UserOptionListForm { /** * user group ids - * @var array + * @var integer[] */ public $groupIDs = []; @@ -76,7 +76,7 @@ class UserAddForm extends UserOptionListForm { /** * visible languages - * @var array + * @var integer[] */ public $visibleLanguages = []; diff --git a/wcfsetup/install/files/lib/acp/form/UserAssignToGroupForm.class.php b/wcfsetup/install/files/lib/acp/form/UserAssignToGroupForm.class.php index b90a122505..538af5542a 100755 --- a/wcfsetup/install/files/lib/acp/form/UserAssignToGroupForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/UserAssignToGroupForm.class.php @@ -1,6 +1,7 @@ + * @var integer[] */ public $userIDs = array(); /** * ids of the assigned user groups - * @var array + * @var integer[] */ public $groupIDs = array(); /** * relevant users - * @var array<\wcf\data\user\User> + * @var User[] */ public $users = array(); /** * assigned user groups - * @var array<\wcf\data\user\group\UserGroup> + * @var UserGroup[] */ public $groups = array(); diff --git a/wcfsetup/install/files/lib/acp/form/UserContentRevertChangesForm.class.php b/wcfsetup/install/files/lib/acp/form/UserContentRevertChangesForm.class.php index 8dcffe168e..112c3aa6a7 100644 --- a/wcfsetup/install/files/lib/acp/form/UserContentRevertChangesForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/UserContentRevertChangesForm.class.php @@ -1,5 +1,6 @@ + * @var integer[] */ public $userIDs = array(); /** * relevant users - * @var array<\wcf\data\user\User> + * @var User[] */ public $users = array(); diff --git a/wcfsetup/install/files/lib/acp/form/UserEmailAddressExportForm.class.php b/wcfsetup/install/files/lib/acp/form/UserEmailAddressExportForm.class.php index 265bd5319a..9f417217a5 100755 --- a/wcfsetup/install/files/lib/acp/form/UserEmailAddressExportForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/UserEmailAddressExportForm.class.php @@ -1,5 +1,6 @@ + * @var integer[] */ public $userIDs = array(); @@ -55,7 +56,7 @@ class UserEmailAddressExportForm extends AbstractForm { /** * users whose email addresses are exported - * @var array<\wcf\data\user\User> + * @var User[] */ public $users = array(); diff --git a/wcfsetup/install/files/lib/acp/form/UserGroupAssignmentAddForm.class.php b/wcfsetup/install/files/lib/acp/form/UserGroupAssignmentAddForm.class.php index 1101c60114..e233844196 100644 --- a/wcfsetup/install/files/lib/acp/form/UserGroupAssignmentAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/UserGroupAssignmentAddForm.class.php @@ -56,7 +56,7 @@ class UserGroupAssignmentAddForm extends AbstractForm { /** * list of selectable user groups - * @var array<\wcf\data\user\group\UserGroup> + * @var UserGroup[] */ public $userGroups = array(); diff --git a/wcfsetup/install/files/lib/acp/form/UserGroupOptionForm.class.php b/wcfsetup/install/files/lib/acp/form/UserGroupOptionForm.class.php index 6150d7e5d0..0aa8d47e22 100644 --- a/wcfsetup/install/files/lib/acp/form/UserGroupOptionForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/UserGroupOptionForm.class.php @@ -1,5 +1,6 @@ + * @var string[] */ public $formElements = array(); /** * list of accessible groups - * @var array<\wcf\data\user\group\UserGroup> + * @var UserGroup[] */ public $groups = array(); @@ -54,7 +55,7 @@ class UserGroupOptionForm extends AbstractForm { /** * list of parent categories - * @var array<\wcf\data\user\group\option\category\UserGroupOptionCategory> + * @var UserGroupOptionCategory[] */ public $parentCategories = array(); diff --git a/wcfsetup/install/files/lib/acp/form/UserMailForm.class.php b/wcfsetup/install/files/lib/acp/form/UserMailForm.class.php index b659c2a831..fea1aa4919 100755 --- a/wcfsetup/install/files/lib/acp/form/UserMailForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/UserMailForm.class.php @@ -36,13 +36,13 @@ class UserMailForm extends AbstractForm { /** * list of group ids - * @var array + * @var integer[] */ public $groupIDs = array(); /** * list of groups - * @var array<\wcf\data\user\group\UserGroup> + * @var UserGroup[] */ public $groups = array(); @@ -65,7 +65,7 @@ class UserMailForm extends AbstractForm { /** * list of user ids - * @var array + * @var integer[] */ public $userIDs = array(); diff --git a/wcfsetup/install/files/lib/acp/form/UserMergeForm.class.php b/wcfsetup/install/files/lib/acp/form/UserMergeForm.class.php index 42bc0d21f8..e44eeaca0f 100644 --- a/wcfsetup/install/files/lib/acp/form/UserMergeForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/UserMergeForm.class.php @@ -1,6 +1,7 @@ + * @var integer[] */ public $userIDs = array(); /** * relevant users - * @var array<\wcf\data\user\User> + * @var User[] */ public $users = array(); @@ -51,7 +52,7 @@ class UserMergeForm extends AbstractForm { /** * ids of merge users (without destination user) - * @var array + * @var integer[] */ public $mergedUserIDs = array(); diff --git a/wcfsetup/install/files/lib/acp/form/UserRankAddForm.class.php b/wcfsetup/install/files/lib/acp/form/UserRankAddForm.class.php index ea828a2b45..a5d508a319 100644 --- a/wcfsetup/install/files/lib/acp/form/UserRankAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/UserRankAddForm.class.php @@ -86,7 +86,7 @@ class UserRankAddForm extends AbstractForm { /** * list of pre-defined css class names - * @var array + * @var string[] */ public $availableCssClassNames = array( 'yellow', diff --git a/wcfsetup/install/files/lib/acp/form/UserSearchForm.class.php b/wcfsetup/install/files/lib/acp/form/UserSearchForm.class.php index 0631346fb9..e270a5576b 100755 --- a/wcfsetup/install/files/lib/acp/form/UserSearchForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/UserSearchForm.class.php @@ -73,7 +73,7 @@ class UserSearchForm extends UserOptionListForm { /** * shown columns - * @var array + * @var string[] */ public $columns = array('registrationDate', 'lastActivityTime'); diff --git a/wcfsetup/install/files/lib/acp/page/AttachmentListPage.class.php b/wcfsetup/install/files/lib/acp/page/AttachmentListPage.class.php index cb54c8108e..ae057582d1 100644 --- a/wcfsetup/install/files/lib/acp/page/AttachmentListPage.class.php +++ b/wcfsetup/install/files/lib/acp/page/AttachmentListPage.class.php @@ -67,7 +67,7 @@ class AttachmentListPage extends SortablePage { /** * available file types - * @var array + * @var string[] */ public $availableFileTypes = array(); diff --git a/wcfsetup/install/files/lib/acp/page/DashboardListPage.class.php b/wcfsetup/install/files/lib/acp/page/DashboardListPage.class.php index a86559fa5c..59bda9435c 100644 --- a/wcfsetup/install/files/lib/acp/page/DashboardListPage.class.php +++ b/wcfsetup/install/files/lib/acp/page/DashboardListPage.class.php @@ -1,5 +1,6 @@ + * @var ObjectType[] */ public $objectTypes = array(); diff --git a/wcfsetup/install/files/lib/acp/page/ExceptionLogViewPage.class.php b/wcfsetup/install/files/lib/acp/page/ExceptionLogViewPage.class.php index 315cf89120..750b034a87 100644 --- a/wcfsetup/install/files/lib/acp/page/ExceptionLogViewPage.class.php +++ b/wcfsetup/install/files/lib/acp/page/ExceptionLogViewPage.class.php @@ -49,7 +49,7 @@ class ExceptionLogViewPage extends MultipleLinkPage { /** * available logfiles - * @var array + * @var string[] */ public $logFiles = array(); diff --git a/wcfsetup/install/files/lib/acp/page/PluginStorePurchasedItemsPage.class.php b/wcfsetup/install/files/lib/acp/page/PluginStorePurchasedItemsPage.class.php index e6075d1584..1204e66a63 100644 --- a/wcfsetup/install/files/lib/acp/page/PluginStorePurchasedItemsPage.class.php +++ b/wcfsetup/install/files/lib/acp/page/PluginStorePurchasedItemsPage.class.php @@ -1,5 +1,6 @@ + * @var PackageUpdateServer[] */ public $updateServers = array(); /** * list of supported WCF major releases (Plugin-Store) - * @var array + * @var string[] */ public $wcfMajorReleases = array(); diff --git a/wcfsetup/install/files/lib/acp/page/SmileyListPage.class.php b/wcfsetup/install/files/lib/acp/page/SmileyListPage.class.php index 710e6db861..94c595c24d 100644 --- a/wcfsetup/install/files/lib/acp/page/SmileyListPage.class.php +++ b/wcfsetup/install/files/lib/acp/page/SmileyListPage.class.php @@ -1,6 +1,7 @@ + * @var SmileyCategory[] */ public $categories = array(); diff --git a/wcfsetup/install/files/lib/action/AJAXProxyAction.class.php b/wcfsetup/install/files/lib/action/AJAXProxyAction.class.php index 0d5ebddf11..1863fa6b82 100644 --- a/wcfsetup/install/files/lib/action/AJAXProxyAction.class.php +++ b/wcfsetup/install/files/lib/action/AJAXProxyAction.class.php @@ -30,13 +30,13 @@ class AJAXProxyAction extends AJAXInvokeAction { /** * list of object ids - * @var array + * @var integer[] */ protected $objectIDs = array(); /** * additional parameters - * @var array + * @var mixed[] */ protected $parameters = array(); diff --git a/wcfsetup/install/files/lib/action/AbstractAction.class.php b/wcfsetup/install/files/lib/action/AbstractAction.class.php index 64cbc1da0f..445f49583c 100644 --- a/wcfsetup/install/files/lib/action/AbstractAction.class.php +++ b/wcfsetup/install/files/lib/action/AbstractAction.class.php @@ -25,13 +25,13 @@ abstract class AbstractAction implements IAction { /** * needed modules to execute this action - * @var array + * @var string[] */ public $neededModules = array(); /** * needed permissions to execute this action - * @var array + * @var string[] */ public $neededPermissions = array(); diff --git a/wcfsetup/install/files/lib/action/MessageQuoteAction.class.php b/wcfsetup/install/files/lib/action/MessageQuoteAction.class.php index 04e4bcd427..0c9e976c4c 100644 --- a/wcfsetup/install/files/lib/action/MessageQuoteAction.class.php +++ b/wcfsetup/install/files/lib/action/MessageQuoteAction.class.php @@ -28,13 +28,13 @@ class MessageQuoteAction extends AJAXProxyAction { /** * list of quote ids - * @var array + * @var string[] */ public $quoteIDs = array(); /** * list of object types - * @var array + * @var string[] */ public $objectTypes = array(); diff --git a/wcfsetup/install/files/lib/action/PollAction.class.php b/wcfsetup/install/files/lib/action/PollAction.class.php index 94b3ab5bc2..738f9e0556 100644 --- a/wcfsetup/install/files/lib/action/PollAction.class.php +++ b/wcfsetup/install/files/lib/action/PollAction.class.php @@ -28,7 +28,7 @@ class PollAction extends AJAXProxyAction { /** * list of option ids - * @var array + * @var integer[] */ public $optionIDs = array(); @@ -181,7 +181,7 @@ class PollAction extends AJAXProxyAction { /** * Adds a user vote. * - * @param array $returnValues + * @param mixed[] $returnValues */ protected function vote(array &$returnValues) { $pollAction = new \wcf\data\poll\PollAction(array($this->poll), 'vote', array('optionIDs' => $this->optionIDs)); diff --git a/wcfsetup/install/files/lib/data/AbstractDatabaseObjectAction.class.php b/wcfsetup/install/files/lib/data/AbstractDatabaseObjectAction.class.php index 2e593fe198..22459e0a1d 100644 --- a/wcfsetup/install/files/lib/data/AbstractDatabaseObjectAction.class.php +++ b/wcfsetup/install/files/lib/data/AbstractDatabaseObjectAction.class.php @@ -35,49 +35,49 @@ abstract class AbstractDatabaseObjectAction implements IDatabaseObjectAction, ID /** * list of object ids - * @var array + * @var integer[] */ protected $objectIDs = array(); /** * list of object editors - * @var array<\wcf\data\DatabaseObjectEditor> + * @var DatabaseObjectEditor[] */ protected $objects = array(); /** * multi-dimensional array of parameters required by an action - * @var array + * @var mixed[][] */ protected $parameters = array(); /** * list of permissions required to create objects - * @var array + * @var string[] */ protected $permissionsCreate = array(); /** * list of permissions required to delete objects - * @var array + * @var string[] */ protected $permissionsDelete = array(); /** * list of permissions required to update objects - * @var array + * @var string[] */ protected $permissionsUpdate = array(); /** * disallow requests for specified methods if the origin is not the ACP - * @var array + * @var string[] */ protected $requireACP = array(); /** * Resets cache if any of the listed actions is invoked - * @var array + * @var string[] */ protected $resetCache = array('create', 'delete', 'toggle', 'update', 'updatePosition'); @@ -90,7 +90,7 @@ abstract class AbstractDatabaseObjectAction implements IDatabaseObjectAction, ID /** * allows guest access for all specified methods, by default guest access * is completely disabled - * @var array + * @var string[] */ protected $allowGuestAccess = array(); @@ -105,7 +105,7 @@ abstract class AbstractDatabaseObjectAction implements IDatabaseObjectAction, ID /** * Initialize a new DatabaseObject-related action. * - * @param array $objects + * @param mixed[] $objects * @param string $action * @param array $parameters * @throws SystemException @@ -236,7 +236,7 @@ abstract class AbstractDatabaseObjectAction implements IDatabaseObjectAction, ID /** * Sets the database objects. * - * @param array<\wcf\data\DatabaseObject> $objects + * @param DatabaseObject[] $objects */ public function setObjects(array $objects) { $this->objects = $objects; @@ -628,7 +628,7 @@ abstract class AbstractDatabaseObjectAction implements IDatabaseObjectAction, ID /** * Returns a list of currently loaded objects. * - * @return array<\wcf\data\IEditableObject> + * @return DatabaseObjectEditor[] */ public function getObjects() { return $this->objects; diff --git a/wcfsetup/install/files/lib/data/DatabaseObjectList.class.php b/wcfsetup/install/files/lib/data/DatabaseObjectList.class.php index f59a281c0b..104e343885 100644 --- a/wcfsetup/install/files/lib/data/DatabaseObjectList.class.php +++ b/wcfsetup/install/files/lib/data/DatabaseObjectList.class.php @@ -36,13 +36,13 @@ abstract class DatabaseObjectList implements \Countable, ITraversableObject { /** * result objects - * @var array<\wcf\data\DatabaseObject> + * @var DatabaseObject[] */ public $objects = array(); /** * ids of result objects - * @var array + * @var integer[] */ public $objectIDs = null; @@ -102,7 +102,7 @@ abstract class DatabaseObjectList implements \Countable, ITraversableObject { /** * list of index to object relation - * @var array + * @var integer[] */ protected $indexToObject = null; @@ -223,7 +223,7 @@ abstract class DatabaseObjectList implements \Countable, ITraversableObject { /** * Returns the object ids of the list. * - * @return array + * @return integer[] */ public function getObjectIDs() { return $this->objectIDs; @@ -232,7 +232,7 @@ abstract class DatabaseObjectList implements \Countable, ITraversableObject { /** * Sets the object ids. * - * @param array $objectIDs + * @param integer[] $objectIDs */ public function setObjectIDs(array $objectIDs) { $this->objectIDs = array_merge($objectIDs); @@ -241,7 +241,7 @@ abstract class DatabaseObjectList implements \Countable, ITraversableObject { /** * Returns the objects of the list. * - * @return array<\wcf\data\DatabaseObject> + * @return DatabaseObject[] */ public function getObjects() { return $this->objects; diff --git a/wcfsetup/install/files/lib/data/IDatabaseObjectAction.class.php b/wcfsetup/install/files/lib/data/IDatabaseObjectAction.class.php index f82835bb72..58216cbafc 100644 --- a/wcfsetup/install/files/lib/data/IDatabaseObjectAction.class.php +++ b/wcfsetup/install/files/lib/data/IDatabaseObjectAction.class.php @@ -32,14 +32,14 @@ interface IDatabaseObjectAction { /** * Returns DatabaseObject-related object ids. * - * @return array + * @return integer[] */ public function getObjectIDs(); /** * Returns action-related parameters. * - * @return array + * @return mixed[] */ public function getParameters(); diff --git a/wcfsetup/install/files/lib/data/IFeedEntry.class.php b/wcfsetup/install/files/lib/data/IFeedEntry.class.php index 2c6c093fa1..327ba1d0e6 100644 --- a/wcfsetup/install/files/lib/data/IFeedEntry.class.php +++ b/wcfsetup/install/files/lib/data/IFeedEntry.class.php @@ -22,7 +22,7 @@ interface IFeedEntry extends IMessage { /** * Returns a list of category names. * - * @return array + * @return string[] */ public function getCategories(); } diff --git a/wcfsetup/install/files/lib/data/IPermissionObject.class.php b/wcfsetup/install/files/lib/data/IPermissionObject.class.php index 8598bb2c93..1271f84834 100644 --- a/wcfsetup/install/files/lib/data/IPermissionObject.class.php +++ b/wcfsetup/install/files/lib/data/IPermissionObject.class.php @@ -16,7 +16,7 @@ interface IPermissionObject { * Checks if the active user has the given permissions for this object and * throws a PermissionDeniedException if they don't have one of the permissions. * - * @param array $permissions + * @param string[] $permissions */ public function checkPermissions(array $permissions); diff --git a/wcfsetup/install/files/lib/data/IStorableObject.class.php b/wcfsetup/install/files/lib/data/IStorableObject.class.php index a6ee64bc69..ea2c725c0e 100644 --- a/wcfsetup/install/files/lib/data/IStorableObject.class.php +++ b/wcfsetup/install/files/lib/data/IStorableObject.class.php @@ -33,7 +33,7 @@ interface IStorableObject { * Returns the value of all object data variables. * * @deprecated This method was introduced for a function in AJAXProxy that is deprecated. - * @return array array + * @return mixed[] */ public function getData(); diff --git a/wcfsetup/install/files/lib/data/acp/session/ACPSessionEditor.class.php b/wcfsetup/install/files/lib/data/acp/session/ACPSessionEditor.class.php index 498ba65e61..7b107e39d2 100644 --- a/wcfsetup/install/files/lib/data/acp/session/ACPSessionEditor.class.php +++ b/wcfsetup/install/files/lib/data/acp/session/ACPSessionEditor.class.php @@ -45,7 +45,7 @@ class ACPSessionEditor extends DatabaseObjectEditor { /** * Deletes active sessions of the given users. * - * @param array $userIDs + * @param integer[] $userIDs */ public static function deleteUserSessions(array $userIDs = array()) { $conditionBuilder = new PreparedStatementConditionBuilder(); diff --git a/wcfsetup/install/files/lib/data/ad/Ad.class.php b/wcfsetup/install/files/lib/data/ad/Ad.class.php index 29b3713737..0bbb386713 100644 --- a/wcfsetup/install/files/lib/data/ad/Ad.class.php +++ b/wcfsetup/install/files/lib/data/ad/Ad.class.php @@ -1,5 +1,6 @@ + * @return Condition[] */ public function getConditions() { return ConditionHandler::getInstance()->getConditions('com.woltlab.wcf.condition.ad', $this->adID); diff --git a/wcfsetup/install/files/lib/data/application/Application.class.php b/wcfsetup/install/files/lib/data/application/Application.class.php index a8ba50f585..3acbd8d475 100644 --- a/wcfsetup/install/files/lib/data/application/Application.class.php +++ b/wcfsetup/install/files/lib/data/application/Application.class.php @@ -55,7 +55,7 @@ class Application extends DatabaseObject { /** * list of all available application directories - * @var array + * @var string[] */ protected static $directories = null; diff --git a/wcfsetup/install/files/lib/data/attachment/AdministrativeAttachmentList.class.php b/wcfsetup/install/files/lib/data/attachment/AdministrativeAttachmentList.class.php index 9d9e8201dc..fad7fd16b3 100644 --- a/wcfsetup/install/files/lib/data/attachment/AdministrativeAttachmentList.class.php +++ b/wcfsetup/install/files/lib/data/attachment/AdministrativeAttachmentList.class.php @@ -51,7 +51,7 @@ class AdministrativeAttachmentList extends AttachmentList { /** * Returns a list of available mime types. * - * @return array + * @return string[] */ public function getAvailableFileTypes() { $fileTypes = array(); @@ -72,7 +72,7 @@ class AdministrativeAttachmentList extends AttachmentList { /** * Returns attachment statistics. * - * @return array + * @return integer[] */ public function getStats() { $sql = "SELECT COUNT(*) AS count, diff --git a/wcfsetup/install/files/lib/data/attachment/GroupedAttachmentList.class.php b/wcfsetup/install/files/lib/data/attachment/GroupedAttachmentList.class.php index cf78867aeb..5b47102e2c 100644 --- a/wcfsetup/install/files/lib/data/attachment/GroupedAttachmentList.class.php +++ b/wcfsetup/install/files/lib/data/attachment/GroupedAttachmentList.class.php @@ -71,7 +71,7 @@ class GroupedAttachmentList extends AttachmentList { /** * Sets the permissions for attachment access. * - * @param array $permissions + * @param boolean[] $permissions */ public function setPermissions(array $permissions) { foreach ($this->objects as $attachment) { @@ -82,7 +82,7 @@ class GroupedAttachmentList extends AttachmentList { /** * Returns the objects of the list. * - * @return array<\wcf\data\DatabaseObject> + * @return Attachment[] */ public function getGroupedObjects($objectID) { if (isset($this->groupedObjects[$objectID])) { diff --git a/wcfsetup/install/files/lib/data/bbcode/BBCodeCache.class.php b/wcfsetup/install/files/lib/data/bbcode/BBCodeCache.class.php index b7348ec6ec..16a9a26c80 100644 --- a/wcfsetup/install/files/lib/data/bbcode/BBCodeCache.class.php +++ b/wcfsetup/install/files/lib/data/bbcode/BBCodeCache.class.php @@ -1,5 +1,6 @@ + * @var BBCode[] */ protected $cachedBBCodes = array(); /** * list of known highlighters - * @var array + * @var string[] */ protected $highlighters = array(); @@ -37,7 +38,7 @@ class BBCodeCache extends SingletonFactory { /** * Returns all bbcodes. * - * @return array<\wcf\data\bbcode\BBCode> + * @return BBCode[] */ public function getBBCodes() { return $this->cachedBBCodes; @@ -61,7 +62,7 @@ class BBCodeCache extends SingletonFactory { * Returns all attributes of a bbcode. * * @param string $tag - * @return array<\wcf\data\bbcode\attribute\BBCodeAttribute> + * @return BBCodeAttribute[] */ public function getBBCodeAttributes($tag) { return $this->cachedBBCodes[$tag]->getAttributes(); @@ -70,7 +71,7 @@ class BBCodeCache extends SingletonFactory { /** * Returns a list of known highlighters. * - * @return array + * @return string[] */ public function getHighlighters() { if (empty($this->highlighters)) { 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 515d15bc33..dcb1328fd6 100644 --- a/wcfsetup/install/files/lib/data/bbcode/attribute/BBCodeAttribute.class.php +++ b/wcfsetup/install/files/lib/data/bbcode/attribute/BBCodeAttribute.class.php @@ -36,7 +36,7 @@ class BBCodeAttribute extends DatabaseObject { * Reads attributes by assigned bbcode. * * @param \wcf\data\bbcode\BBCode $bbcode - * @return array<\wcf\data\bbcode\attribute\BBCodeAttribute> + * @return BBCodeAttribute[] */ public static function getAttributesByBBCode(BBCode $bbcode) { $attributeList = new BBCodeAttributeList(); 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 639732211c..f2ee078cf9 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 @@ -34,14 +34,14 @@ class BBCodeMediaProvider extends DatabaseObject implements IRouteController { /** * cached providers - * @var array<\wcf\data\bbcode\media\MediaProvider> + * @var BBCodeMediaProvider[] */ protected static $cache = null; /** * Loads the provider cache. * - * @return array<\wcf\data\bbcode\media\MediaProvider> + * @return BBCodeMediaProvider[] */ public static function getCache() { if (self::$cache === null) { diff --git a/wcfsetup/install/files/lib/data/category/AbstractDecoratedCategory.class.php b/wcfsetup/install/files/lib/data/category/AbstractDecoratedCategory.class.php index 00bf71513f..4cbbf4d2d2 100644 --- a/wcfsetup/install/files/lib/data/category/AbstractDecoratedCategory.class.php +++ b/wcfsetup/install/files/lib/data/category/AbstractDecoratedCategory.class.php @@ -17,13 +17,13 @@ use wcf\system\exception\PermissionDeniedException; abstract class AbstractDecoratedCategory extends DatabaseObjectDecorator { /** * list of all child categories of this category - * @var array<\wcf\data\category\Category> + * @var Category[] */ protected $childCategories = null; /** * list of all parent category generations of this category - * @var array<\wcf\data\category\AbstractDecoratedCategory> + * @var AbstractDecoratedCategory[] */ protected $parentCategories = null; diff --git a/wcfsetup/install/files/lib/data/category/Category.class.php b/wcfsetup/install/files/lib/data/category/Category.class.php index 5144c15d95..b8bad41e52 100644 --- a/wcfsetup/install/files/lib/data/category/Category.class.php +++ b/wcfsetup/install/files/lib/data/category/Category.class.php @@ -32,13 +32,13 @@ use wcf\system\WCF; class Category extends ProcessibleDatabaseObject implements IPermissionObject, IRouteController { /** * list of all child categories of this category - * @var array<\wcf\data\category\Category> + * @var Category[] */ protected $childCategories = null; /** * list of all parent category generations of this category - * @var array<\wcf\data\category\Category> + * @var Category[] */ protected $parentCategories = null; @@ -51,7 +51,7 @@ class Category extends ProcessibleDatabaseObject implements IPermissionObject, I /** * acl permissions of this category for the active user * @deprecated - * @var array + * @var boolean[] */ protected $permissions = null; @@ -127,7 +127,7 @@ class Category extends ProcessibleDatabaseObject implements IPermissionObject, I /** * Returns the child categories of this category. * - * @return array<\wcf\data\category\Category> + * @return Category[] */ public function getChildCategories() { if ($this->childCategories === null) { @@ -153,7 +153,7 @@ class Category extends ProcessibleDatabaseObject implements IPermissionObject, I /** * Returns the parent categories of this category. * - * @return array<\wcf\data\category\Category> + * @return Category[] */ public function getParentCategories() { if ($this->parentCategories === null) { diff --git a/wcfsetup/install/files/lib/data/category/CategoryNode.class.php b/wcfsetup/install/files/lib/data/category/CategoryNode.class.php index 3b1b42d278..2ac11f11ee 100644 --- a/wcfsetup/install/files/lib/data/category/CategoryNode.class.php +++ b/wcfsetup/install/files/lib/data/category/CategoryNode.class.php @@ -15,7 +15,7 @@ use wcf\data\DatabaseObjectDecorator; class CategoryNode extends DatabaseObjectDecorator implements \RecursiveIterator, \Countable { /** * child category nodes - * @var array<\wcf\data\category\CategoryNode> + * @var CategoryNode[] */ protected $children = array(); diff --git a/wcfsetup/install/files/lib/data/category/UncachedCategoryNodeTree.class.php b/wcfsetup/install/files/lib/data/category/UncachedCategoryNodeTree.class.php index 38d9f1cec8..b53fca2f15 100644 --- a/wcfsetup/install/files/lib/data/category/UncachedCategoryNodeTree.class.php +++ b/wcfsetup/install/files/lib/data/category/UncachedCategoryNodeTree.class.php @@ -15,7 +15,7 @@ use wcf\system\category\CategoryHandler; class UncachedCategoryNodeTree extends CategoryNodeTree { /** * locally cached categories - * @var array<\wcf\data\category\Category> + * @var Category[] */ protected $categoryCache = array(); 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 3238e283cd..dfda53652d 100644 --- a/wcfsetup/install/files/lib/data/clipboard/item/ClipboardItemAction.class.php +++ b/wcfsetup/install/files/lib/data/clipboard/item/ClipboardItemAction.class.php @@ -52,7 +52,7 @@ class ClipboardItemAction extends AbstractDatabaseObjectAction { /** * Sets an item as marked. * - * @return array + * @return mixed[] */ public function mark() { ClipboardHandler::getInstance()->mark($this->parameters['objectIDs'], $this->objectTypeID); @@ -70,7 +70,7 @@ class ClipboardItemAction extends AbstractDatabaseObjectAction { /** * Unsets an item as marked. * - * @return array + * @return mixed[] */ public function unmark() { ClipboardHandler::getInstance()->unmark($this->parameters['objectIDs'], $this->objectTypeID); @@ -88,7 +88,7 @@ class ClipboardItemAction extends AbstractDatabaseObjectAction { /** * Returns the list of marked items. * - * @return array + * @return mixed[] */ public function getMarkedItems() { return $this->getEditorItems(); @@ -104,7 +104,7 @@ class ClipboardItemAction extends AbstractDatabaseObjectAction { /** * Unmarks all items of a type. * - * @return array + * @return string[] */ public function unmarkAll() { ClipboardHandler::getInstance()->unmarkAll($this->objectTypeID); @@ -137,7 +137,7 @@ class ClipboardItemAction extends AbstractDatabaseObjectAction { /** * Returns a list of clipboard editor items grouped by type name. * - * @return array + * @return mixed[] */ protected function getEditorItems() { $data = ClipboardHandler::getInstance()->getEditorItems($this->parameters['pageClassName'], $this->parameters['pageObjectID']); diff --git a/wcfsetup/install/files/lib/data/cronjob/CronjobEditor.class.php b/wcfsetup/install/files/lib/data/cronjob/CronjobEditor.class.php index e13a5475ff..9ac7b9eb6b 100644 --- a/wcfsetup/install/files/lib/data/cronjob/CronjobEditor.class.php +++ b/wcfsetup/install/files/lib/data/cronjob/CronjobEditor.class.php @@ -52,7 +52,7 @@ class CronjobEditor extends DatabaseObjectEditor implements IEditableCachedObjec /** * Saves the descriptions of the cronjob in language items. * - * @param array $descriptions + * @param string[] $descriptions * @param boolean $deleteOldDescriptions * @since 2.2 */ diff --git a/wcfsetup/install/files/lib/data/dashboard/box/DashboardBoxAction.class.php b/wcfsetup/install/files/lib/data/dashboard/box/DashboardBoxAction.class.php index 7d69b22883..c1e217ef34 100644 --- a/wcfsetup/install/files/lib/data/dashboard/box/DashboardBoxAction.class.php +++ b/wcfsetup/install/files/lib/data/dashboard/box/DashboardBoxAction.class.php @@ -22,13 +22,13 @@ use wcf\util\ArrayUtil; class DashboardBoxAction extends AbstractDatabaseObjectAction implements ISortableAction { /** * list of available dashboard boxes - * @var array<\wcf\data\dashboard\box\DashboardBox> + * @var DashboardBox[] */ public $boxes = array(); /** * box structure - * @var array + * @var integer[] */ public $boxStructure = array(); 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 4e76c4c1f3..79993ab7a8 100644 --- a/wcfsetup/install/files/lib/data/event/listener/EventListener.class.php +++ b/wcfsetup/install/files/lib/data/event/listener/EventListener.class.php @@ -50,7 +50,7 @@ class EventListener extends DatabaseObject { /** * Returns the names of all events listened to. * - * @return array + * @return string[] * @since 2.2 */ public function getEventNames() { 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 102df89cd6..2619b2095e 100644 --- a/wcfsetup/install/files/lib/data/label/group/ViewableLabelGroup.class.php +++ b/wcfsetup/install/files/lib/data/label/group/ViewableLabelGroup.class.php @@ -24,13 +24,13 @@ class ViewableLabelGroup extends DatabaseObjectDecorator implements \Countable, /** * list of labels - * @var array<\wcf\data\label\Label> + * @var Label[] */ protected $labels = array(); /** * list of permissions by type - * @var array + * @var integer[][] */ protected $permissions = array( 'group' => array(), @@ -45,7 +45,7 @@ class ViewableLabelGroup extends DatabaseObjectDecorator implements \Countable, /** * list of index to object relation - * @var array + * @var integer[] */ protected $indexToObject = null; @@ -120,7 +120,7 @@ class ViewableLabelGroup extends DatabaseObjectDecorator implements \Countable, /** * Returns a list of label ids. * - * @return array + * @return integer[] */ public function getLabelIDs() { return array_keys($this->labels); @@ -129,7 +129,7 @@ class ViewableLabelGroup extends DatabaseObjectDecorator implements \Countable, /** * Returns a list of labels. * - * @return array<\wcf\data\label\Label> + * @return Label[] */ public function getLabels() { return $this->labels; diff --git a/wcfsetup/install/files/lib/data/language/Language.class.php b/wcfsetup/install/files/lib/data/language/Language.class.php index de4c5c0095..94ac7f2549 100644 --- a/wcfsetup/install/files/lib/data/language/Language.class.php +++ b/wcfsetup/install/files/lib/data/language/Language.class.php @@ -34,13 +34,13 @@ class Language extends DatabaseObject { /** * list of language items - * @var array + * @var string[] */ protected $items = array(); /** * list of dynamic language items - * @var array + * @var string[] */ protected $dynamicItems = array(); @@ -199,7 +199,7 @@ class Language extends DatabaseObject { /** * Returns a list of available languages. * - * @return array<\wcf\data\language\Language> + * @return Language[] */ public function getLanguages() { return LanguageFactory::getInstance()->getLanguages(); diff --git a/wcfsetup/install/files/lib/data/language/LanguageEditor.class.php b/wcfsetup/install/files/lib/data/language/LanguageEditor.class.php index 90c012382a..72684e6c59 100644 --- a/wcfsetup/install/files/lib/data/language/LanguageEditor.class.php +++ b/wcfsetup/install/files/lib/data/language/LanguageEditor.class.php @@ -55,7 +55,7 @@ class LanguageEditor extends DatabaseObjectEditor implements IEditableCachedObje /** * Write the languages files. * - * @param array $languageCategoryIDs + * @param integer[] $languageCategoryIDs */ protected function writeLanguageFiles(array $languageCategoryIDs) { $conditions = new PreparedStatementConditionBuilder(); diff --git a/wcfsetup/install/files/lib/data/like/LikeAction.class.php b/wcfsetup/install/files/lib/data/like/LikeAction.class.php index 790aa9ba84..f1541cee31 100644 --- a/wcfsetup/install/files/lib/data/like/LikeAction.class.php +++ b/wcfsetup/install/files/lib/data/like/LikeAction.class.php @@ -63,7 +63,7 @@ class LikeAction extends AbstractDatabaseObjectAction implements IGroupedUserLis /** * Returns like details. * - * @return array + * @return string[] */ public function getLikeDetails() { $sql = "SELECT userID, likeValue diff --git a/wcfsetup/install/files/lib/data/moderation/queue/ModerationQueueAction.class.php b/wcfsetup/install/files/lib/data/moderation/queue/ModerationQueueAction.class.php index b311318bb1..941fc79f16 100644 --- a/wcfsetup/install/files/lib/data/moderation/queue/ModerationQueueAction.class.php +++ b/wcfsetup/install/files/lib/data/moderation/queue/ModerationQueueAction.class.php @@ -98,7 +98,7 @@ class ModerationQueueAction extends AbstractDatabaseObjectAction { /** * Returns a list of outstanding queues. * - * @return array + * @return string[] */ public function getOutstandingQueues() { $objectTypeIDs = ModerationQueueManager::getInstance()->getObjectTypeIDs(array_keys(ModerationQueueManager::getInstance()->getDefinitions())); @@ -190,7 +190,7 @@ class ModerationQueueAction extends AbstractDatabaseObjectAction { /** * Returns the user assign form. * - * @return array + * @return string[] */ public function getAssignUserForm() { $assignedUser = ($this->moderationQueueEditor->assignedUserID) ? new User($this->moderationQueueEditor->assignedUserID) : null; @@ -244,7 +244,7 @@ class ModerationQueueAction extends AbstractDatabaseObjectAction { /** * Returns the data for the newly assigned user. * - * @return array + * @return string[] */ public function assignUser() { $data = array('assignedUserID' => ($this->parameters['assignedUserID'] ?: null)); diff --git a/wcfsetup/install/files/lib/data/notice/NoticeAction.class.php b/wcfsetup/install/files/lib/data/notice/NoticeAction.class.php index 1d762191a3..aa6179dd69 100644 --- a/wcfsetup/install/files/lib/data/notice/NoticeAction.class.php +++ b/wcfsetup/install/files/lib/data/notice/NoticeAction.class.php @@ -68,7 +68,7 @@ class NoticeAction extends AbstractDatabaseObjectAction implements ISortableActi /** * Dismisses a certain notice. * - * @return array + * @return integer[] */ public function dismiss() { if (WCF::getUser()->userID) { 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 cf667ac73e..6b3182935c 100644 --- a/wcfsetup/install/files/lib/data/object/type/IObjectTypeProvider.class.php +++ b/wcfsetup/install/files/lib/data/object/type/IObjectTypeProvider.class.php @@ -1,5 +1,6 @@ $objectIDs - * @return array<\wcf\data\DatabaseObject> + * @param integer[] $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 228372c058..7f68acacca 100644 --- a/wcfsetup/install/files/lib/data/object/type/ObjectType.class.php +++ b/wcfsetup/install/files/lib/data/object/type/ObjectType.class.php @@ -55,7 +55,7 @@ class ObjectType extends ProcessibleDatabaseObject { /** * Returns the names of proporties that should be serialized. * - * @return array + * @return string[] */ public final function __sleep() { // 'processor' isn't returned since it can be an instance of 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 1dbeb1aa56..27c0571692 100644 --- a/wcfsetup/install/files/lib/data/object/type/ObjectTypeCache.class.php +++ b/wcfsetup/install/files/lib/data/object/type/ObjectTypeCache.class.php @@ -1,5 +1,6 @@ + * @var ObjectTypeDefinition[] */ protected $definitions = array(); /** * object type definition ids grouped by category name - * @var array + * @var integer[] */ protected $definitionsByCategory = array(); /** * object type definitions sorted by name - * @var array<\wcf\data\object\type\definition\ObjectTypeDefinition> + * @var ObjectTypeDefinition[] */ protected $definitionsByName = array(); /** * object types - * @var array<\wcf\data\object\type\ObjectType> + * @var ObjectType[] */ protected $objectTypes = array(); @@ -95,7 +96,7 @@ class ObjectTypeCache extends SingletonFactory { * category name is invalid. * * @param string $categoryName - * @return array<\wcf\data\object\type\definition\ObjectTypeDefinition> + * @return ObjectTypeDefinition[] */ public function getDefinitionsByCategory($categoryName) { if (isset($this->definitionsByCategory[$categoryName])) { @@ -129,7 +130,7 @@ class ObjectTypeCache extends SingletonFactory { * Returns the list of object type with the given definition name. * * @param string $definitionName - * @return array<\wcf\data\object\type\ObjectType> + * @return ObjectType[] */ public function getObjectTypes($definitionName) { if (isset($this->groupedObjectTypes[$definitionName])) { diff --git a/wcfsetup/install/files/lib/data/option/Option.class.php b/wcfsetup/install/files/lib/data/option/Option.class.php index f4c799574b..802f39ae69 100644 --- a/wcfsetup/install/files/lib/data/option/Option.class.php +++ b/wcfsetup/install/files/lib/data/option/Option.class.php @@ -76,7 +76,7 @@ class Option extends DatabaseObject { /** * Returns a list of options. * - * @return array<\wcf\data\option\Option> + * @return Option[] */ public static function getOptions() { $sql = "SELECT * diff --git a/wcfsetup/install/files/lib/data/package/Package.class.php b/wcfsetup/install/files/lib/data/package/Package.class.php index ca16b9a08e..a2217e9477 100644 --- a/wcfsetup/install/files/lib/data/package/Package.class.php +++ b/wcfsetup/install/files/lib/data/package/Package.class.php @@ -32,13 +32,13 @@ use wcf\util\FileUtil; class Package extends DatabaseObject { /** * list of packages that this package requires - * @var array<\wcf\data\package\Package> + * @var Package[] */ protected $dependencies = null; /** * list of packages that require this package - * @var array<\wcf\data\package\Package> + * @var Package[] */ protected $dependentPackages = null; @@ -50,7 +50,7 @@ class Package extends DatabaseObject { /** * list of packages that were given as required packages during installation - * @var array<\wcf\data\package\Package> + * @var Package[] */ protected $requiredPackages = null; @@ -66,7 +66,7 @@ class Package extends DatabaseObject { /** * list of ids of packages which are required by another package - * @var array + * @var integer[] */ protected static $requiredPackageIDs = null; @@ -132,7 +132,7 @@ class Package extends DatabaseObject { * returned packages are the packages given in the tag * in the package.xml of this package. * - * @return array<\wcf\data\package\Package> + * @return Package[] */ public function getRequiredPackages() { if ($this->requiredPackages === null) { @@ -175,7 +175,7 @@ class Package extends DatabaseObject { /** * Returns a list of packages dependent from current package. * - * @return array<\wcf\data\package\Package> + * @return Package[] */ public function getDependentPackages() { if ($this->dependentPackages === null) { diff --git a/wcfsetup/install/files/lib/data/package/PackageCache.class.php b/wcfsetup/install/files/lib/data/package/PackageCache.class.php index bca039ccf0..7ff190f157 100644 --- a/wcfsetup/install/files/lib/data/package/PackageCache.class.php +++ b/wcfsetup/install/files/lib/data/package/PackageCache.class.php @@ -16,7 +16,7 @@ use wcf\system\SingletonFactory; class PackageCache extends SingletonFactory { /** * list of cached packages - * @var array + * @var mixed[][] */ protected $packages = array(); @@ -58,7 +58,7 @@ class PackageCache extends SingletonFactory { /** * Returns all packages. * - * @return array<\wcf\data\package\Package> + * @return Package[] */ public function getPackages() { return $this->packages; 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 8e8e0326e6..0849eb0b60 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 @@ -59,7 +59,7 @@ class PackageInstallationQueueAction extends AbstractDatabaseObjectAction { /** * Prepares a new package installation queue. * - * @return array + * @return integer[] */ public function prepareQueue() { $processNo = PackageInstallationQueue::getNewProcessNo(); 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 8544fce71b..2fec461a23 100644 --- a/wcfsetup/install/files/lib/data/paid/subscription/PaidSubscription.class.php +++ b/wcfsetup/install/files/lib/data/paid/subscription/PaidSubscription.class.php @@ -43,7 +43,7 @@ class PaidSubscription extends DatabaseObject { /** * Returns list of purchase buttons. * - * @return array + * @return string[] */ public function getPurchaseButtons() { $objectTypeID = ObjectTypeCache::getInstance()->getObjectTypeIDByName('com.woltlab.wcf.payment.type', 'com.woltlab.wcf.payment.type.paidSubscription'); diff --git a/wcfsetup/install/files/lib/data/poll/Poll.class.php b/wcfsetup/install/files/lib/data/poll/Poll.class.php index f777806e3a..e411a6ee7e 100644 --- a/wcfsetup/install/files/lib/data/poll/Poll.class.php +++ b/wcfsetup/install/files/lib/data/poll/Poll.class.php @@ -48,7 +48,7 @@ class Poll extends DatabaseObject { /** * list of poll options - * @var array<\wcf\data\poll\option\PollOption> + * @var PollOption[] */ protected $options = array(); @@ -77,7 +77,7 @@ class Poll extends DatabaseObject { * Returns a list of poll options. * * @param boolean $isResultDisplay - * @return array<\wcf\data\poll\option\PollOption> + * @return PollOption[] */ public function getOptions($isResultDisplay = false) { $this->loadOptions(); diff --git a/wcfsetup/install/files/lib/data/session/SessionAction.class.php b/wcfsetup/install/files/lib/data/session/SessionAction.class.php index 8642162759..e55c4c8fa0 100644 --- a/wcfsetup/install/files/lib/data/session/SessionAction.class.php +++ b/wcfsetup/install/files/lib/data/session/SessionAction.class.php @@ -29,7 +29,7 @@ class SessionAction extends AbstractDatabaseObjectAction { /** * list of data values returned upon a keep alive request - * @var array + * @var mixed[] */ public $keepAliveData = array(); @@ -44,7 +44,7 @@ class SessionAction extends AbstractDatabaseObjectAction { * Updates session's last activity time to prevent it from expiring. In addition this method * will return updated counters for notifications and 3rd party components. * - * @return array + * @return mixed[] */ public function keepAlive() { // ignore sessions created by this request diff --git a/wcfsetup/install/files/lib/data/smiley/SmileyCache.class.php b/wcfsetup/install/files/lib/data/smiley/SmileyCache.class.php index 513b1d961e..0a1343c4b7 100644 --- a/wcfsetup/install/files/lib/data/smiley/SmileyCache.class.php +++ b/wcfsetup/install/files/lib/data/smiley/SmileyCache.class.php @@ -25,13 +25,13 @@ class SmileyCache extends SingletonFactory { /** * cached smiley categories - * @var array<\wcf\data\smiley\category\SmileyCategory> + * @var SmileyCategory[] */ protected $cachedCategories = array(); /** * enabled smiley categories with at least one smiley - * @var array<\wcf\data\smiley\category\SmileyCategory> + * @var SmileyCategory[] */ protected $visibleCategories = null; @@ -69,7 +69,7 @@ class SmileyCache extends SingletonFactory { /** * Returns all smiley categories. * - * @return array<\wcf\data\smiley\category\SmileyCategory> + * @return SmileyCategory[] */ public function getCategories() { return $this->cachedCategories; @@ -78,7 +78,7 @@ class SmileyCache extends SingletonFactory { /** * Returns all enabled smiley categories with at least one smiley. * - * @return array<\wcf\data\smiley\category\SmileyCategory> + * @return SmileyCategory[] */ public function getVisibleCategories() { if ($this->visibleCategories === 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 0afa94ff2d..4ce504ac42 100644 --- a/wcfsetup/install/files/lib/data/smiley/category/SmileyCategory.class.php +++ b/wcfsetup/install/files/lib/data/smiley/category/SmileyCategory.class.php @@ -1,6 +1,7 @@ + * @var integer[] */ protected $indexToObject = null; /** * list of assigned smilies - * @var array<\wcf\data\smiley\Smiley> + * @var Smiley[] */ public $smilies = null; diff --git a/wcfsetup/install/files/lib/data/style/Style.class.php b/wcfsetup/install/files/lib/data/style/Style.class.php index 07f607cbf5..462ad4a56b 100644 --- a/wcfsetup/install/files/lib/data/style/Style.class.php +++ b/wcfsetup/install/files/lib/data/style/Style.class.php @@ -44,7 +44,7 @@ class Style extends DatabaseObject { /** * list of style variables - * @var array + * @var string[] */ protected $variables = array(); @@ -63,7 +63,7 @@ class Style extends DatabaseObject { /** * Returns the styles variables of this style. * - * @return array + * @return string[] */ public function getVariables() { $this->loadVariables(); diff --git a/wcfsetup/install/files/lib/data/style/StyleAction.class.php b/wcfsetup/install/files/lib/data/style/StyleAction.class.php index c462ddd68d..6e74f416f3 100644 --- a/wcfsetup/install/files/lib/data/style/StyleAction.class.php +++ b/wcfsetup/install/files/lib/data/style/StyleAction.class.php @@ -594,7 +594,7 @@ class StyleAction extends AbstractDatabaseObjectAction implements IToggleAction, /** * Changes user style. * - * @return array + * @return string[] */ public function changeStyle() { StyleHandler::getInstance()->changeStyle($this->style->styleID); diff --git a/wcfsetup/install/files/lib/data/style/StyleEditor.class.php b/wcfsetup/install/files/lib/data/style/StyleEditor.class.php index 34cbd7d476..9d81404fff 100644 --- a/wcfsetup/install/files/lib/data/style/StyleEditor.class.php +++ b/wcfsetup/install/files/lib/data/style/StyleEditor.class.php @@ -525,7 +525,7 @@ class StyleEditor extends DatabaseObjectEditor implements IEditableCachedObject * Saves localized style descriptions. * * @param \wcf\data\style\StyleEditor $styleEditor - * @param array $descriptions + * @param string[] $descriptions */ protected static function saveLocalizedDescriptions(StyleEditor $styleEditor, array $descriptions) { // localize package information @@ -809,7 +809,7 @@ class StyleEditor extends DatabaseObjectEditor implements IEditableCachedObject /** * Sets the variables of a style. * - * @param array $variables + * @param string[] $variables */ public function setVariables(array $variables = array()) { // delete old variables diff --git a/wcfsetup/install/files/lib/data/tag/Tag.class.php b/wcfsetup/install/files/lib/data/tag/Tag.class.php index 9a02e59dab..d0e8a0bc00 100644 --- a/wcfsetup/install/files/lib/data/tag/Tag.class.php +++ b/wcfsetup/install/files/lib/data/tag/Tag.class.php @@ -56,7 +56,7 @@ class Tag extends DatabaseObject implements IRouteController { * * @param string $tags * @param string $separators - * @return array + * @return string[] */ public static function splitString($tags, $separators = ',;') { return array_unique(ArrayUtil::trim(preg_split('/['.preg_quote($separators).']/', $tags))); @@ -65,7 +65,7 @@ class Tag extends DatabaseObject implements IRouteController { /** * Takes a list of tags and builds a comma separated string from it. * - * @param array $tags + * @param mixed[] $tags * @param string $separator * @return string */ diff --git a/wcfsetup/install/files/lib/data/tag/TagAction.class.php b/wcfsetup/install/files/lib/data/tag/TagAction.class.php index 5691b8712a..b2fcee0534 100644 --- a/wcfsetup/install/files/lib/data/tag/TagAction.class.php +++ b/wcfsetup/install/files/lib/data/tag/TagAction.class.php @@ -148,7 +148,7 @@ class TagAction extends AbstractDatabaseObjectAction implements ISearchAction { /** * Unmarks tags. * - * @param array $tagIDs + * @param integer[] $tagIDs * @since 2.2 */ protected function unmarkItems(array $tagIDs = array()) { 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 4ab71dc500..663a0d8c66 100644 --- a/wcfsetup/install/files/lib/data/template/group/TemplateGroup.class.php +++ b/wcfsetup/install/files/lib/data/template/group/TemplateGroup.class.php @@ -36,7 +36,7 @@ class TemplateGroup extends DatabaseObject { /** * Creates a select list of all template groups. * - * @param array $ignore Array of template group ids that should be excluded with all of their children + * @param integer[] $ignore Array of template group ids that should be excluded with all of their children * @param integer $initialDepth Specifies the initial indentation depth of the list * @return array */ diff --git a/wcfsetup/install/files/lib/data/user/TeamList.class.php b/wcfsetup/install/files/lib/data/user/TeamList.class.php index e08129b484..0b89b4d684 100644 --- a/wcfsetup/install/files/lib/data/user/TeamList.class.php +++ b/wcfsetup/install/files/lib/data/user/TeamList.class.php @@ -17,7 +17,7 @@ use wcf\system\WCF; class TeamList extends UserProfileList { /** * teams included in the list - * @var array<\wcf\data\user\group\Team> + * @var Team[] */ protected $teams = array(); @@ -85,7 +85,7 @@ class TeamList extends UserProfileList { /** * Returns the teams in the list. * - * @return array<\wcf\data\user\group\Team> + * @return Team[] */ public function getTeams() { return $this->teams; diff --git a/wcfsetup/install/files/lib/data/user/User.class.php b/wcfsetup/install/files/lib/data/user/User.class.php index 51e2a13eff..93519df6a1 100644 --- a/wcfsetup/install/files/lib/data/user/User.class.php +++ b/wcfsetup/install/files/lib/data/user/User.class.php @@ -1,5 +1,6 @@ + * @var mixed[][] */ protected $groupData = null; 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 cec33890d0..e9f95fdd50 100644 --- a/wcfsetup/install/files/lib/data/user/avatar/Gravatar.class.php +++ b/wcfsetup/install/files/lib/data/user/avatar/Gravatar.class.php @@ -56,7 +56,7 @@ class Gravatar extends DefaultAvatar { /** * urls of this gravatar - * @var array + * @var string[] */ protected $url = array(); 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 a7adfd6f73..77c9df921a 100644 --- a/wcfsetup/install/files/lib/data/user/avatar/UserAvatar.class.php +++ b/wcfsetup/install/files/lib/data/user/avatar/UserAvatar.class.php @@ -27,7 +27,7 @@ use wcf\system\WCF; class UserAvatar extends DatabaseObject implements IUserAvatar { /** * needed avatar thumbnail sizes - * @var array + * @var integer[] */ public static $avatarThumbnailSizes = array(32, 96, 128); diff --git a/wcfsetup/install/files/lib/data/user/group/Team.class.php b/wcfsetup/install/files/lib/data/user/group/Team.class.php index eae49284ac..64f51e4317 100644 --- a/wcfsetup/install/files/lib/data/user/group/Team.class.php +++ b/wcfsetup/install/files/lib/data/user/group/Team.class.php @@ -21,7 +21,7 @@ class Team extends DatabaseObjectDecorator { /** * list of user group members - * @var array<\wcf\data\user\UserProfile> + * @var UserProfile[] */ protected $members = array(); @@ -37,7 +37,7 @@ class Team extends DatabaseObjectDecorator { /** * Returns the list of user group members * - * @return array<\wcf\data\user\UserProfile> + * @return UserProfile[] */ public function getMembers() { return $this->members; 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 6e807890c5..18f528b4e3 100644 --- a/wcfsetup/install/files/lib/data/user/group/UserGroup.class.php +++ b/wcfsetup/install/files/lib/data/user/group/UserGroup.class.php @@ -62,27 +62,27 @@ class UserGroup extends DatabaseObject { /** * group cache - * @var array<\wcf\data\user\group\UserGroup> + * @var UserGroup[] */ protected static $cache = null; /** * list of accessible groups for active user - * @var array + * @var integer[] */ protected static $accessibleGroups = null; /** * group options of this group - * @var array + * @var mixed[][] */ protected $groupOptions = null; /** * Returns group ids by given type. * - * @param array $types - * @return array + * @param integer[] $types + * @return integer[] */ public static function getGroupIDsByType(array $types) { self::getCache(); @@ -101,9 +101,9 @@ class UserGroup extends DatabaseObject { /** * Returns groups by given type. Returns all groups if no types given. * - * @param array $types - * @param array $invalidGroupTypes - * @return array<\wcf\data\user\group\UserGroup> + * @param integer[] $types + * @param integer[] $invalidGroupTypes + * @return UserGroup[] */ public static function getGroupsByType(array $types = array(), array $invalidGroupTypes = array()) { self::getCache(); @@ -200,9 +200,9 @@ class UserGroup extends DatabaseObject { /** * Returns a list of accessible groups. * - * @param array $groupTypes - * @param array $invalidGroupTypes - * @return array<\wcf\data\user\group\UserGroup> + * @param integer[] $groupTypes + * @param integer[] $invalidGroupTypes + * @return UserGroup[] */ public static function getAccessibleGroups(array $groupTypes = array(), array $invalidGroupTypes = array()) { $groups = self::getGroupsByType($groupTypes, $invalidGroupTypes); 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 1e2d4e1379..974e366fd6 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 @@ -1,5 +1,6 @@ + * @return Condition[] */ public function getConditions() { return ConditionHandler::getInstance()->getConditions('com.woltlab.wcf.condition.userGroupAssignment', $this->assignmentID); diff --git a/wcfsetup/install/files/lib/data/user/notification/UserNotificationAction.class.php b/wcfsetup/install/files/lib/data/user/notification/UserNotificationAction.class.php index 904f132607..cc293910ab 100644 --- a/wcfsetup/install/files/lib/data/user/notification/UserNotificationAction.class.php +++ b/wcfsetup/install/files/lib/data/user/notification/UserNotificationAction.class.php @@ -44,7 +44,7 @@ class UserNotificationAction extends AbstractDatabaseObjectAction { /** * Creates a simple notification without stacking support, applies to legacy notifications too. * - * @return array + * @return mixed[][] */ public function createDefault() { $notifications = []; @@ -81,7 +81,7 @@ class UserNotificationAction extends AbstractDatabaseObjectAction { /** * Creates a notification or adds another author to an existing one. * - * @return array + * @return mixed[][] */ public function createStackable() { // get existing notifications @@ -170,7 +170,7 @@ class UserNotificationAction extends AbstractDatabaseObjectAction { /** * Loads user notifications. * - * @return array + * @return mixed[] */ public function getOutstandingNotifications() { $notifications = UserNotificationHandler::getInstance()->getMixedNotifications(); diff --git a/wcfsetup/install/files/lib/data/user/option/ViewableUserOption.class.php b/wcfsetup/install/files/lib/data/user/option/ViewableUserOption.class.php index 49d2d46a02..5d3a642ed6 100644 --- a/wcfsetup/install/files/lib/data/user/option/ViewableUserOption.class.php +++ b/wcfsetup/install/files/lib/data/user/option/ViewableUserOption.class.php @@ -4,6 +4,7 @@ use wcf\data\user\User; use wcf\data\DatabaseObjectDecorator; use wcf\system\cache\builder\UserOptionCacheBuilder; use wcf\system\exception\SystemException; +use wcf\system\option\user\IUserOptionOutput; use wcf\util\StringUtil; /** @@ -24,13 +25,13 @@ class ViewableUserOption extends DatabaseObjectDecorator { /** * list of output objects - * @var array<\wcf\system\option\user\IUserOptionOutput> + * @var IUserOptionOutput[] */ public static $outputObjects = array(); /** * cached user options - * @var array<\wcf\data\user\option\ViewableUserOption> + * @var ViewableUserOption[] */ public static $userOptions = array(); diff --git a/wcfsetup/install/files/lib/form/AbstractForm.class.php b/wcfsetup/install/files/lib/form/AbstractForm.class.php index fd9cd0579f..c1eca91d77 100644 --- a/wcfsetup/install/files/lib/form/AbstractForm.class.php +++ b/wcfsetup/install/files/lib/form/AbstractForm.class.php @@ -44,7 +44,7 @@ abstract class AbstractForm extends AbstractPage implements IForm { /** * additional fields - * @var array + * @var mixed[] */ public $additionalFields = array(); diff --git a/wcfsetup/install/files/lib/form/MessageForm.class.php b/wcfsetup/install/files/lib/form/MessageForm.class.php index c69e436945..677de11f4a 100644 --- a/wcfsetup/install/files/lib/form/MessageForm.class.php +++ b/wcfsetup/install/files/lib/form/MessageForm.class.php @@ -1,5 +1,8 @@ + * @var Language[] */ public $availableContentLanguages = array(); /** * list of default smilies - * @var array<\wcf\data\smiley\Smiley> + * @var Smiley[] */ public $defaultSmilies = array(); @@ -141,7 +144,7 @@ abstract class MessageForm extends AbstractCaptchaForm { /** * list of smiley categories - * @var array<\wcf\data\smiley\category\SmileyCategory> + * @var SmileyCategory[] */ public $smileyCategories = array(); diff --git a/wcfsetup/install/files/lib/form/NotificationSettingsForm.class.php b/wcfsetup/install/files/lib/form/NotificationSettingsForm.class.php index 7ba90fb403..8e5e9a7cc7 100644 --- a/wcfsetup/install/files/lib/form/NotificationSettingsForm.class.php +++ b/wcfsetup/install/files/lib/form/NotificationSettingsForm.class.php @@ -3,6 +3,7 @@ namespace wcf\form; use wcf\data\object\type\ObjectTypeCache; use wcf\system\exception\UserInputException; use wcf\system\menu\user\UserMenu; +use wcf\system\user\notification\event\IUserNotificationEvent; use wcf\system\user\notification\UserNotificationHandler; use wcf\system\WCF; @@ -24,19 +25,19 @@ class NotificationSettingsForm extends AbstractForm { /** * list of notification events - * @var array + * @var IUserNotificationEvent[] */ public $events = null; /** * list of settings by event - * @var array + * @var mixed[][] */ public $settings = array(); /** * list of valid options for the mail notification type. - * @var array + * @var string[] */ protected static $validMailNotificationTypes = array('none', 'instant', 'daily'); diff --git a/wcfsetup/install/files/lib/form/SearchForm.class.php b/wcfsetup/install/files/lib/form/SearchForm.class.php index 6e51248796..6bb83176e2 100644 --- a/wcfsetup/install/files/lib/form/SearchForm.class.php +++ b/wcfsetup/install/files/lib/form/SearchForm.class.php @@ -29,7 +29,7 @@ use wcf\util\StringUtil; class SearchForm extends AbstractCaptchaForm { /** * list of additional conditions - * @var array + * @var string[] */ public $additionalConditions = array(); @@ -122,7 +122,7 @@ class SearchForm extends AbstractCaptchaForm { /** * selected object types - * @var array + * @var string[] */ public $selectedObjectTypes = array(); @@ -483,7 +483,7 @@ class SearchForm extends AbstractCaptchaForm { /** * Returns user ids. * - * @return array + * @return integer[] */ public function getUserIDs() { $userIDs = array(); diff --git a/wcfsetup/install/files/lib/form/SettingsForm.class.php b/wcfsetup/install/files/lib/form/SettingsForm.class.php index a29b1741e9..63739b77ca 100644 --- a/wcfsetup/install/files/lib/form/SettingsForm.class.php +++ b/wcfsetup/install/files/lib/form/SettingsForm.class.php @@ -1,5 +1,7 @@ + * @var Language[] */ public $availableContentLanguages = array(); /** * list of available languages - * @var array<\wcf\data\language\Language> + * @var Language[] */ public $availableLanguages = array(); /** * list of available styles - * @var array<\wcf\data\style\Style> + * @var Style[] */ public $availableStyles = array(); /** * list of content language ids - * @var array + * @var integer[] */ public $contentLanguageIDs = array(); diff --git a/wcfsetup/install/files/lib/page/AbstractFeedPage.class.php b/wcfsetup/install/files/lib/page/AbstractFeedPage.class.php index 18239e47ee..4fd64e6b99 100644 --- a/wcfsetup/install/files/lib/page/AbstractFeedPage.class.php +++ b/wcfsetup/install/files/lib/page/AbstractFeedPage.class.php @@ -32,7 +32,7 @@ abstract class AbstractFeedPage extends AbstractAuthedPage { /** * parsed contents of $_REQUEST['id'] - * @var array + * @var integer[] */ public $objectIDs = array(); diff --git a/wcfsetup/install/files/lib/page/AbstractPage.class.php b/wcfsetup/install/files/lib/page/AbstractPage.class.php index a682dddd7f..648ae54363 100644 --- a/wcfsetup/install/files/lib/page/AbstractPage.class.php +++ b/wcfsetup/install/files/lib/page/AbstractPage.class.php @@ -63,13 +63,13 @@ abstract class AbstractPage implements IPage, ITrackablePage { /** * needed modules to view this page - * @var array + * @var string[] */ public $neededModules = array(); /** * needed permissions to view this page - * @var array + * @var string[] */ public $neededPermissions = array(); diff --git a/wcfsetup/install/files/lib/page/AttachmentPage.class.php b/wcfsetup/install/files/lib/page/AttachmentPage.class.php index c14f499ae7..fc3637437f 100644 --- a/wcfsetup/install/files/lib/page/AttachmentPage.class.php +++ b/wcfsetup/install/files/lib/page/AttachmentPage.class.php @@ -56,7 +56,7 @@ class AttachmentPage extends AbstractPage { /** * list of mime types which belong to files that are displayed inline - * @var array + * @var string[] */ public static $inlineMimeTypes = array('image/gif', 'image/jpeg', 'image/png', 'image/x-png', 'application/pdf', 'image/pjpeg'); diff --git a/wcfsetup/install/files/lib/page/ModerationListPage.class.php b/wcfsetup/install/files/lib/page/ModerationListPage.class.php index 873051ed59..95f311b518 100644 --- a/wcfsetup/install/files/lib/page/ModerationListPage.class.php +++ b/wcfsetup/install/files/lib/page/ModerationListPage.class.php @@ -24,7 +24,7 @@ class ModerationListPage extends SortablePage { /** * list of available definitions - * @var array + * @var string[] */ public $availableDefinitions = array(); diff --git a/wcfsetup/install/files/lib/page/NotificationListPage.class.php b/wcfsetup/install/files/lib/page/NotificationListPage.class.php index 29fc7f92e5..37887bcbbc 100644 --- a/wcfsetup/install/files/lib/page/NotificationListPage.class.php +++ b/wcfsetup/install/files/lib/page/NotificationListPage.class.php @@ -22,7 +22,7 @@ class NotificationListPage extends MultipleLinkPage { /** * list of outstanding notifications - * @var array + * @var mixed[][] */ public $notifications = array(); diff --git a/wcfsetup/install/files/lib/page/SortablePage.class.php b/wcfsetup/install/files/lib/page/SortablePage.class.php index 80119d1af9..8c71eaf317 100644 --- a/wcfsetup/install/files/lib/page/SortablePage.class.php +++ b/wcfsetup/install/files/lib/page/SortablePage.class.php @@ -29,7 +29,7 @@ abstract class SortablePage extends MultipleLinkPage { /** * list of valid sort fields - * @var array + * @var string[] */ public $validSortFields = array(); diff --git a/wcfsetup/install/files/lib/page/TaggedPage.class.php b/wcfsetup/install/files/lib/page/TaggedPage.class.php index 298805917d..546519f8a6 100644 --- a/wcfsetup/install/files/lib/page/TaggedPage.class.php +++ b/wcfsetup/install/files/lib/page/TaggedPage.class.php @@ -1,5 +1,6 @@ + * @var ObjectType[] */ public $availableObjectTypes = array(); diff --git a/wcfsetup/install/files/lib/system/MetaTagHandler.class.php b/wcfsetup/install/files/lib/system/MetaTagHandler.class.php index 4b46a8426d..101ce038b6 100644 --- a/wcfsetup/install/files/lib/system/MetaTagHandler.class.php +++ b/wcfsetup/install/files/lib/system/MetaTagHandler.class.php @@ -21,7 +21,7 @@ class MetaTagHandler extends SingletonFactory implements \Countable, \Iterator { /** * list of index to object relation - * @var array + * @var integer[] */ protected $indexToObject = null; diff --git a/wcfsetup/install/files/lib/system/Regex.class.php b/wcfsetup/install/files/lib/system/Regex.class.php index 8ebc8c7e04..3d95a73f17 100644 --- a/wcfsetup/install/files/lib/system/Regex.class.php +++ b/wcfsetup/install/files/lib/system/Regex.class.php @@ -229,7 +229,7 @@ final class Regex { * * @param string $string * @param integer $flags - * @return array + * @return string[] */ public function split($string, $flags = self::FLAGS_DEFAULT) { $splitFlags = 0; diff --git a/wcfsetup/install/files/lib/system/WCF.class.php b/wcfsetup/install/files/lib/system/WCF.class.php index 5fa4dbbbdc..b00f975c83 100644 --- a/wcfsetup/install/files/lib/system/WCF.class.php +++ b/wcfsetup/install/files/lib/system/WCF.class.php @@ -71,7 +71,7 @@ class WCF { /** * list of currently loaded application objects - * @var array<\wcf\system\application\IApplication> + * @var IApplication[] */ protected static $applicationObjects = array(); @@ -83,13 +83,13 @@ class WCF { /** * list of unique instances of each core object - * @var array<\wcf\system\SingletonFactory> + * @var SingletonFactory[] */ protected static $coreObject = array(); /** * list of cached core objects - * @var array + * @var string[] */ protected static $coreObjectCache = array(); diff --git a/wcfsetup/install/files/lib/system/acl/ACLHandler.class.php b/wcfsetup/install/files/lib/system/acl/ACLHandler.class.php index e478d395e5..4fa5589ad8 100644 --- a/wcfsetup/install/files/lib/system/acl/ACLHandler.class.php +++ b/wcfsetup/install/files/lib/system/acl/ACLHandler.class.php @@ -39,7 +39,7 @@ class ACLHandler extends SingletonFactory { /** * list of acl option categories sorted by their object type id and name - * @var array + * @var ACLOptionCategory[][] */ protected $categories = array(); @@ -389,7 +389,7 @@ class ACLHandler extends SingletonFactory { * Removes ACL values from database. * * @param integer $objectTypeID - * @param array $objectIDs + * @param integer[] $objectIDs * @param \wcf\data\acl\option\category\ACLOptionCategory $category */ public function removeValues($objectTypeID, array $objectIDs, ACLOptionCategory $category = null) { diff --git a/wcfsetup/install/files/lib/system/ad/AdHandler.class.php b/wcfsetup/install/files/lib/system/ad/AdHandler.class.php index 94045a6c18..333950d183 100644 --- a/wcfsetup/install/files/lib/system/ad/AdHandler.class.php +++ b/wcfsetup/install/files/lib/system/ad/AdHandler.class.php @@ -1,5 +1,6 @@ + * @var ObjectType[] */ protected $objectTypes = array(); @@ -67,7 +68,7 @@ class AdHandler extends SingletonFactory { /** * Returns all available ad location object types. * - * @return array<\wcf\data\object\type\ObjectType> + * @return ObjectType[] */ public function getLocationObjectTypes($categoryName = null) { if ($categoryName === null) { @@ -87,7 +88,7 @@ class AdHandler extends SingletonFactory { /** * Returns the list of available locations used to be used for selections. * - * @return array + * @return string[] */ public function getLocationSelection() { $objectTypes = $this->objectTypes; diff --git a/wcfsetup/install/files/lib/system/attachment/AbstractAttachmentObjectType.class.php b/wcfsetup/install/files/lib/system/attachment/AbstractAttachmentObjectType.class.php index a5e3f1737b..4135689735 100644 --- a/wcfsetup/install/files/lib/system/attachment/AbstractAttachmentObjectType.class.php +++ b/wcfsetup/install/files/lib/system/attachment/AbstractAttachmentObjectType.class.php @@ -1,5 +1,6 @@ + * @var DatabaseObject[] */ protected $cachedObjects = array(); diff --git a/wcfsetup/install/files/lib/system/attachment/AttachmentHandler.class.php b/wcfsetup/install/files/lib/system/attachment/AttachmentHandler.class.php index a94d5acccf..3c38fb7a2b 100644 --- a/wcfsetup/install/files/lib/system/attachment/AttachmentHandler.class.php +++ b/wcfsetup/install/files/lib/system/attachment/AttachmentHandler.class.php @@ -123,7 +123,7 @@ class AttachmentHandler implements \Countable { * * @param string $objectType * @param integer $newObjectID - * @param array $oldObjectIDs + * @param integer[] $oldObjectIDs */ public static function transferAttachments($objectType, $newObjectID, array $oldObjectIDs) { $conditions = new PreparedStatementConditionBuilder(); @@ -143,7 +143,7 @@ class AttachmentHandler implements \Countable { * Removes all attachments for given object ids by type. * * @param string $objectType - * @param array $objectIDs + * @param integer[] $objectIDs */ public static function removeAttachments($objectType, array $objectIDs) { $attachmentList = new AttachmentList(); @@ -174,7 +174,7 @@ class AttachmentHandler implements \Countable { /** * Returns a formatted list of the allowed file extensions. * - * @return array + * @return string[] */ public function getFormattedAllowedExtensions() { $extensions = $this->getAllowedExtensions(); diff --git a/wcfsetup/install/files/lib/system/attachment/IAttachmentObjectType.class.php b/wcfsetup/install/files/lib/system/attachment/IAttachmentObjectType.class.php index f1e0c95b5c..a2c75e7ea9 100644 --- a/wcfsetup/install/files/lib/system/attachment/IAttachmentObjectType.class.php +++ b/wcfsetup/install/files/lib/system/attachment/IAttachmentObjectType.class.php @@ -1,5 +1,6 @@ + * @return string[] */ public function getAllowedExtensions(); @@ -78,14 +79,14 @@ interface IAttachmentObjectType { /** * Caches the data of the given container objects. * - * @param array $objectIDs + * @param integer[] $objectIDs */ public function cacheObjects(array $objectIDs); /** * Loads the permissions for given attachments. * - * @param array<\wcf\data\attachment\Attachment> $attachments + * @param Attachment[] $attachments */ public function setPermissions(array $attachments); } diff --git a/wcfsetup/install/files/lib/system/bbcode/BBCodeHandler.class.php b/wcfsetup/install/files/lib/system/bbcode/BBCodeHandler.class.php index 0a64c0ebf2..71437a12bb 100644 --- a/wcfsetup/install/files/lib/system/bbcode/BBCodeHandler.class.php +++ b/wcfsetup/install/files/lib/system/bbcode/BBCodeHandler.class.php @@ -1,5 +1,6 @@ + * @var BBCode[] */ protected $allowedBBCodes = array(); /** * list of BBCodes displayed as buttons - * @var array<\wcf\data\bbcode\BBCode> + * @var BBCode[] */ protected $buttonBBCodes = array(); /** * list of BBCodes which contain raw code (disabled BBCode parsing) - * @var array<\wcf\data\bbcode\BBCode> + * @var BBCode[] */ protected $sourceBBCodes = null; @@ -68,7 +69,7 @@ class BBCodeHandler extends SingletonFactory { /** * Returns all bbcodes. * - * @return array<\wcf\data\bbcode\BBCode> + * @return BBCode[] */ public function getBBCodes() { return BBCodeCache::getInstance()->getBBCodes(); @@ -77,7 +78,7 @@ class BBCodeHandler extends SingletonFactory { /** * Returns a list of BBCodes displayed as buttons. * - * @return array<\wcf\data\bbcode\BBCode> + * @return BBCode[] */ public function getButtonBBCodes() { $buttons = array(); @@ -93,7 +94,7 @@ class BBCodeHandler extends SingletonFactory { /** * Sets the allowed BBCodes. * - * @param array + * @param string[] */ public function setAllowedBBCodes(array $bbCodes) { $this->allowedBBCodes = $bbCodes; @@ -102,7 +103,7 @@ class BBCodeHandler extends SingletonFactory { /** * Returns a list of BBCodes which contain raw code (disabled BBCode parsing) * - * @return array<\wcf\data\bbcode\BBCode> + * @return BBCode[] */ public function getSourceBBCodes() { if (empty($this->allowedBBCodes)) { @@ -129,7 +130,7 @@ class BBCodeHandler extends SingletonFactory { /** * Returns a list of known highlighters. * - * @return array + * @return string[] */ public function getHighlighters() { return BBCodeCache::getInstance()->getHighlighters(); diff --git a/wcfsetup/install/files/lib/system/bbcode/BBCodeParser.class.php b/wcfsetup/install/files/lib/system/bbcode/BBCodeParser.class.php index cec9aafa77..3c55b501b5 100644 --- a/wcfsetup/install/files/lib/system/bbcode/BBCodeParser.class.php +++ b/wcfsetup/install/files/lib/system/bbcode/BBCodeParser.class.php @@ -1,6 +1,7 @@ + * @var BBCode[] */ protected $bbcodes = array(); @@ -522,8 +523,8 @@ class BBCodeParser extends SingletonFactory { * BBCodes and returns a list of used disallowed BBCodes. * * @param string $text - * @param array $allowedBBCodes - * @return array + * @param string[] $allowedBBCodes + * @return string[] */ public function validateBBCodes($text, array $allowedBBCodes) { // if all BBCodes are allowed, return directly diff --git a/wcfsetup/install/files/lib/system/bbcode/CodeBBCode.class.php b/wcfsetup/install/files/lib/system/bbcode/CodeBBCode.class.php index eee48377e4..e31744b39c 100644 --- a/wcfsetup/install/files/lib/system/bbcode/CodeBBCode.class.php +++ b/wcfsetup/install/files/lib/system/bbcode/CodeBBCode.class.php @@ -35,7 +35,7 @@ class CodeBBCode extends AbstractBBCode { /** * already used ids for line numbers to prevent duplicate ids in the output - * @var array + * @var string[] */ private static $codeIDs = array(); diff --git a/wcfsetup/install/files/lib/system/bbcode/KeywordHighlighter.class.php b/wcfsetup/install/files/lib/system/bbcode/KeywordHighlighter.class.php index c9ea142c88..ce84858ed9 100644 --- a/wcfsetup/install/files/lib/system/bbcode/KeywordHighlighter.class.php +++ b/wcfsetup/install/files/lib/system/bbcode/KeywordHighlighter.class.php @@ -17,13 +17,13 @@ use wcf\util\StringUtil; class KeywordHighlighter extends SingletonFactory { /** * search keywords - * @var array + * @var string[] */ protected $keywords = array(); /** * search query parameters - * @var array + * @var string[] */ protected static $searchQueryKeys = array( 'q', // google, msn, altavista diff --git a/wcfsetup/install/files/lib/system/bbcode/MessageParser.class.php b/wcfsetup/install/files/lib/system/bbcode/MessageParser.class.php index 0a4d202725..c49affbdd5 100644 --- a/wcfsetup/install/files/lib/system/bbcode/MessageParser.class.php +++ b/wcfsetup/install/files/lib/system/bbcode/MessageParser.class.php @@ -1,6 +1,7 @@ + * @var Smiley[] */ protected $smilies = array(); diff --git a/wcfsetup/install/files/lib/system/bbcode/PreParser.class.php b/wcfsetup/install/files/lib/system/bbcode/PreParser.class.php index d73ba68617..477aba1ee5 100644 --- a/wcfsetup/install/files/lib/system/bbcode/PreParser.class.php +++ b/wcfsetup/install/files/lib/system/bbcode/PreParser.class.php @@ -30,7 +30,7 @@ class PreParser extends SingletonFactory { /** * list of allowed bbcode tags - * @var array + * @var string[] */ public $allowedBBCodes = null; @@ -61,7 +61,7 @@ class PreParser extends SingletonFactory { * Preparses the given text. * * @param string $text - * @param array $allowedBBCodes + * @param string[] $allowedBBCodes * @return string */ public function parse($text, array $allowedBBCodes = null) { diff --git a/wcfsetup/install/files/lib/system/bbcode/SimpleMessageParser.class.php b/wcfsetup/install/files/lib/system/bbcode/SimpleMessageParser.class.php index 8e438748e0..7c793d46c7 100644 --- a/wcfsetup/install/files/lib/system/bbcode/SimpleMessageParser.class.php +++ b/wcfsetup/install/files/lib/system/bbcode/SimpleMessageParser.class.php @@ -1,5 +1,6 @@ + * @var Smiley[] */ protected $smilies = array(); /** * cached URLs - * @var array + * @var string[] */ protected $cachedURLs = array(); /** * cached e-mails - * @var array + * @var string[] */ protected $cachedEmails = array(); diff --git a/wcfsetup/install/files/lib/system/bbcode/highlighter/CssHighlighter.class.php b/wcfsetup/install/files/lib/system/bbcode/highlighter/CssHighlighter.class.php index 89c70b84de..f26ec9fefc 100644 --- a/wcfsetup/install/files/lib/system/bbcode/highlighter/CssHighlighter.class.php +++ b/wcfsetup/install/files/lib/system/bbcode/highlighter/CssHighlighter.class.php @@ -14,7 +14,7 @@ namespace wcf\system\bbcode\highlighter; class CssHighlighter extends Highlighter { /** * temporary string replacement map for properties that can also be tags - * @var array + * @var string[] */ public static $duplicates = array( 'table:' => 't@@able:', diff --git a/wcfsetup/install/files/lib/system/bbcode/highlighter/DiffHighlighter.class.php b/wcfsetup/install/files/lib/system/bbcode/highlighter/DiffHighlighter.class.php index 03425ba141..65f160036b 100644 --- a/wcfsetup/install/files/lib/system/bbcode/highlighter/DiffHighlighter.class.php +++ b/wcfsetup/install/files/lib/system/bbcode/highlighter/DiffHighlighter.class.php @@ -16,27 +16,27 @@ class DiffHighlighter extends Highlighter { /** * keywords for an added line, the + is used in unified diffs, the > in * normal diffs - * @var array + * @var string[] */ protected $add = array("+", ">"); /** * keywords for an deleted line, the - is used in unified diff, the < in * normal diffs - * @var array + * @var string[] */ protected $delete = array("-", "<"); /** * splitter in changes for normal diff - * @var array + * @var string[] */ protected $splitter = array("---"); /** * keywords for the line info, the @ is used in unified diffs, the numbers * in normal diffs - * @var array + * @var string[] */ protected $info = array("@", '0', '1', '2', '3', '4', '5', '6', '7', '8', '9'); diff --git a/wcfsetup/install/files/lib/system/bbcode/highlighter/Highlighter.class.php b/wcfsetup/install/files/lib/system/bbcode/highlighter/Highlighter.class.php index bd084db77a..d507d8814d 100644 --- a/wcfsetup/install/files/lib/system/bbcode/highlighter/Highlighter.class.php +++ b/wcfsetup/install/files/lib/system/bbcode/highlighter/Highlighter.class.php @@ -26,73 +26,73 @@ abstract class Highlighter extends SingletonFactory { /** * comment end delimiter - * @var array + * @var string[] */ protected $commentEnd = array("*/"); /** * comment start delimiter - * @var array + * @var string[] */ protected $commentStart = array("/*"); /** * escape sequence - * @var array + * @var string[] */ protected $escapeSequence = array("\\"); /** * categorized keywords - * @var array + * @var string[] */ protected $keywords1 = array(); /** * categorized keywords - * @var array + * @var string[] */ protected $keywords2 = array(); /** * categorized keywords - * @var array + * @var string[] */ protected $keywords3 = array(); /** * categorized keywords - * @var array + * @var string[] */ protected $keywords4 = array(); /** * categorized keywords - * @var array + * @var string[] */ protected $keywords5 = array(); /** * list of arithmetic operators - * @var array + * @var string[] */ protected $operators = array(); /** * list of quote marks - * @var array + * @var string[] */ protected $quotes = array("'", '"'); /** * list of separator sequences - * @var array + * @var string[] */ protected $separators = array(); /** * inline comment sequence - * @var array + * @var string[] */ protected $singleLineComment = array("//"); 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 b5809b3d9e..e9eddd6007 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 @@ -25,7 +25,7 @@ use wcf\util\ArrayUtil; abstract class AbstractUserGroupsUserBulkProcessingAction extends AbstractUserBulkProcessingAction { /** * list of available user groups - * @var array<\wcf\data\user\group\UserGroup> + * @var UserGroup[] */ public $availableUserGroups = [ ]; @@ -37,7 +37,7 @@ abstract class AbstractUserGroupsUserBulkProcessingAction extends AbstractUserBu /** * ids of selected user groups - * @var array + * @var integer[] */ public $userGroupIDs = [ ]; diff --git a/wcfsetup/install/files/lib/system/cache/builder/ACPMenuCacheBuilder.class.php b/wcfsetup/install/files/lib/system/cache/builder/ACPMenuCacheBuilder.class.php index 3647527273..ec539946b3 100644 --- a/wcfsetup/install/files/lib/system/cache/builder/ACPMenuCacheBuilder.class.php +++ b/wcfsetup/install/files/lib/system/cache/builder/ACPMenuCacheBuilder.class.php @@ -19,13 +19,13 @@ use wcf\data\option\OptionList; class ACPMenuCacheBuilder extends AbstractCacheBuilder { /** * list of option categories which directly contain options - * @var array + * @var string[] */ protected $categoriesWithOptions = array(); /** * list of option categories grouped by the name of their parent category - * @var array<\wcf\data\option\category\OptionCategory> + * @var OptionCategory[] */ protected $categoryStructure = array(); @@ -62,7 +62,7 @@ class ACPMenuCacheBuilder extends AbstractCacheBuilder { /** * Returns the list with top option categories which contain options. * - * @return array<\wcf\data\option\category\OptionCategory> + * @return OptionCategory[] */ protected function getTopOptionCategories() { $optionCategoryList = new OptionCategoryList(); 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 b054b3c48a..9e8499c0cd 100644 --- a/wcfsetup/install/files/lib/system/cache/builder/AbstractCacheBuilder.class.php +++ b/wcfsetup/install/files/lib/system/cache/builder/AbstractCacheBuilder.class.php @@ -17,7 +17,7 @@ use wcf\system\SingletonFactory; abstract class AbstractCacheBuilder extends SingletonFactory implements ICacheBuilder { /** * list of cache resources by index - * @var array + * @var mixed[][] */ protected $cache = array(); 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 9fb6a90fff..3811b9bbc6 100644 --- a/wcfsetup/install/files/lib/system/cache/builder/TagCloudCacheBuilder.class.php +++ b/wcfsetup/install/files/lib/system/cache/builder/TagCloudCacheBuilder.class.php @@ -19,7 +19,7 @@ use wcf\system\WCF; class TagCloudCacheBuilder extends AbstractCacheBuilder { /** * list of tags - * @var array<\wcf\data\tag\TagCloudTag> + * @var TagCloudTag[] */ protected $tags = array(); @@ -61,8 +61,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 array $parameters - * @return array + * @param integer[] $parameters + * @return integer[] */ protected function parseLanguageIDs(array $parameters) { // handle special '0' value diff --git a/wcfsetup/install/files/lib/system/cache/builder/UserGroupPermissionCacheBuilder.class.php b/wcfsetup/install/files/lib/system/cache/builder/UserGroupPermissionCacheBuilder.class.php index 63d5636363..df0f49fc79 100644 --- a/wcfsetup/install/files/lib/system/cache/builder/UserGroupPermissionCacheBuilder.class.php +++ b/wcfsetup/install/files/lib/system/cache/builder/UserGroupPermissionCacheBuilder.class.php @@ -2,6 +2,7 @@ namespace wcf\system\cache\builder; use wcf\system\database\util\PreparedStatementConditionBuilder; use wcf\system\exception\SystemException; +use wcf\system\option\user\group\IUserGroupOptionType; use wcf\system\WCF; use wcf\util\StringUtil; @@ -18,7 +19,7 @@ use wcf\util\StringUtil; class UserGroupPermissionCacheBuilder extends AbstractCacheBuilder { /** * list of used group option type objects - * @var array<\wcf\system\option\group\IGroupOptionType> + * @var IUserGroupOptionType[] */ protected $typeObjects = []; diff --git a/wcfsetup/install/files/lib/system/category/AbstractCategoryType.class.php b/wcfsetup/install/files/lib/system/category/AbstractCategoryType.class.php index 0f4d014296..79252f952d 100644 --- a/wcfsetup/install/files/lib/system/category/AbstractCategoryType.class.php +++ b/wcfsetup/install/files/lib/system/category/AbstractCategoryType.class.php @@ -55,7 +55,7 @@ abstract class AbstractCategoryType extends SingletonFactory implements ICategor /** * name of the object types associated with categories of this type (the * key is the definition name and value the object type name) - * @var array + * @var string[] */ protected $objectTypes = array(); diff --git a/wcfsetup/install/files/lib/system/category/CategoryHandler.class.php b/wcfsetup/install/files/lib/system/category/CategoryHandler.class.php index bddc8fe46a..b0e3d62795 100644 --- a/wcfsetup/install/files/lib/system/category/CategoryHandler.class.php +++ b/wcfsetup/install/files/lib/system/category/CategoryHandler.class.php @@ -1,6 +1,7 @@ + * @var Category[] */ protected $categories = array(); /** * category ids grouped by the object type they belong to - * @var array + * @var integer[][] */ protected $objectTypeCategoryIDs = array(); /** * mapes the names of the category object types to the object type ids - * @var array + * @var integer[] */ protected $objectTypeIDs = array(); /** * list of category object types - * @var array<\wcf\data\object\type> + * @var ObjectType[] */ protected $objectTypes = array(); @@ -46,7 +47,7 @@ class CategoryHandler extends SingletonFactory { * type is given, all categories grouped by object type are returned. * * @param string $objectType - * @return array + * @return mixed[] */ public function getCategories($objectType = null) { $categories = array(); @@ -134,7 +135,7 @@ class CategoryHandler extends SingletonFactory { /** * Returns all category object types. * - * @return array<\wcf\data\object\type\ObjectType> + * @return ObjectType[] */ public function getObjectTypes() { return $this->objectTypes; diff --git a/wcfsetup/install/files/lib/system/cli/command/CLICommandHandler.class.php b/wcfsetup/install/files/lib/system/cli/command/CLICommandHandler.class.php index d19536a02d..52ca66289d 100644 --- a/wcfsetup/install/files/lib/system/cli/command/CLICommandHandler.class.php +++ b/wcfsetup/install/files/lib/system/cli/command/CLICommandHandler.class.php @@ -19,14 +19,14 @@ use wcf\util\StringUtil; class CLICommandHandler { /** * list of all available commands - * @var array<\wcf\system\cli\command\ICLICommand> + * @var ICLICommand[] */ private static $commands = array(); /** * Returns all available commands. * - * @return array<\wcf\system\cli\command\ICLICommand> + * @return ICLICommand[] */ public static function getCommands() { if (empty(self::$commands)) { @@ -87,7 +87,7 @@ class CLICommandHandler { * Returns the parameterlist of the given line. * * @param string $line - * @return array + * @return string[] */ public static function getParameters($line) { list ($command, $parameters) = explode(' ', $line.' ', 2); diff --git a/wcfsetup/install/files/lib/system/cli/command/CLICommandNameCompleter.class.php b/wcfsetup/install/files/lib/system/cli/command/CLICommandNameCompleter.class.php index 85f6a51c83..0d3c9a536f 100644 --- a/wcfsetup/install/files/lib/system/cli/command/CLICommandNameCompleter.class.php +++ b/wcfsetup/install/files/lib/system/cli/command/CLICommandNameCompleter.class.php @@ -15,7 +15,7 @@ use phpline\console\completer\Completer; class CLICommandNameCompleter implements Completer { /** * names of all available commands - * @var array + * @var string[] */ private $commands = array(); 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 ecbd52f27d..ead08affa5 100644 --- a/wcfsetup/install/files/lib/system/cli/command/ImportCLICommand.class.php +++ b/wcfsetup/install/files/lib/system/cli/command/ImportCLICommand.class.php @@ -1,5 +1,6 @@ + * @var ObjectType[] */ protected $exporters = array(); @@ -75,7 +76,7 @@ class ImportCLICommand implements ICLICommand { /** * list of available importers - * @var array + * @var string[] */ public $importers = array(); @@ -87,7 +88,7 @@ class ImportCLICommand implements ICLICommand { /** * selected data types - * @var array + * @var string[] */ public $selectedData = array(); diff --git a/wcfsetup/install/files/lib/system/clipboard/ClipboardHandler.class.php b/wcfsetup/install/files/lib/system/clipboard/ClipboardHandler.class.php index e42061f246..7de50d708e 100644 --- a/wcfsetup/install/files/lib/system/clipboard/ClipboardHandler.class.php +++ b/wcfsetup/install/files/lib/system/clipboard/ClipboardHandler.class.php @@ -1,6 +1,7 @@ + * @var mixed[][] */ protected $cache = null; /** * list of marked items - * @var array + * @var DatabaseObject[][] */ protected $markedItems = null; @@ -290,7 +291,7 @@ class ClipboardHandler extends SingletonFactory { * * @param string $page * @param integer $pageObjectID - * @return array + * @return mixed[][] * @throws SystemException */ public function getEditorItems($page, $pageObjectID) { diff --git a/wcfsetup/install/files/lib/system/clipboard/action/AbstractClipboardAction.class.php b/wcfsetup/install/files/lib/system/clipboard/action/AbstractClipboardAction.class.php index 378346456e..38505aa1a5 100644 --- a/wcfsetup/install/files/lib/system/clipboard/action/AbstractClipboardAction.class.php +++ b/wcfsetup/install/files/lib/system/clipboard/action/AbstractClipboardAction.class.php @@ -1,6 +1,7 @@ + * @var string[] */ protected $actionClassActions = array(); /** * relevant database objects - * @var array<\wcf\data\DatabaseObject> + * @var DatabaseObject[] */ protected $objects = array(); /** * list of the supported clipboard actions - * @var array + * @var string[] */ protected $supportedActions = array(); diff --git a/wcfsetup/install/files/lib/system/clipboard/action/IClipboardAction.class.php b/wcfsetup/install/files/lib/system/clipboard/action/IClipboardAction.class.php index 0a035faea0..3492cf6f46 100644 --- a/wcfsetup/install/files/lib/system/clipboard/action/IClipboardAction.class.php +++ b/wcfsetup/install/files/lib/system/clipboard/action/IClipboardAction.class.php @@ -1,6 +1,7 @@ $objects + * @param DatabaseObject[] $objects * @param \wcf\data\clipboard\action\ClipboardAction $action * @return \wcf\system\clipboard\ClipboardEditorItem */ 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 ed542688e4..dc15c2dce8 100644 --- a/wcfsetup/install/files/lib/system/clipboard/action/TagClipboardAction.class.php +++ b/wcfsetup/install/files/lib/system/clipboard/action/TagClipboardAction.class.php @@ -70,7 +70,7 @@ class TagClipboardAction extends AbstractClipboardAction { /** * Returns the ids of the tags which can be deleted. * - * @return array + * @return integer[] */ protected function validateDelete() { if (!WCF::getSession()->getPermission('admin.content.tag.canManageTag')) { @@ -83,7 +83,7 @@ class TagClipboardAction extends AbstractClipboardAction { /** * Returns the ids of the tags which can be set as synonyms. * - * @return array + * @return integer[] */ 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 ce69cea265..52e791b428 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 array + * @return integer[] */ protected function validateDelete() { // check permissions @@ -102,7 +102,7 @@ class UserClipboardAction extends AbstractClipboardAction { /** * Returns the ids of the users which can be banned. * - * @return array + * @return integer[] */ protected function validateBan() { // check permissions @@ -116,7 +116,7 @@ class UserClipboardAction extends AbstractClipboardAction { /** * Validates accessible groups. * - * @return array + * @return integer[] */ protected function __validateAccessibleGroups(array $userIDs, $ignoreOwnUser = true) { if ($ignoreOwnUser) { @@ -162,7 +162,7 @@ class UserClipboardAction extends AbstractClipboardAction { /** * Returns the ids of the users which can be sent new passwords. * - * @return array + * @return integer[] */ public function validateSendNewPassword() { // check permissions @@ -176,7 +176,7 @@ class UserClipboardAction extends AbstractClipboardAction { /** * Returns the ids of the users which can be enabled. * - * @return array + * @return integer[] * @since 2.2 */ protected function validateEnable() { @@ -196,7 +196,7 @@ class UserClipboardAction extends AbstractClipboardAction { /** * Returns the ids of the users which can be merge. * - * @return array + * @return integer[] * @since 2.2 */ protected function validateMerge() { 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 f6909f1cf2..6103e289d5 100644 --- a/wcfsetup/install/files/lib/system/clipboard/action/UserContentClipboardAction.class.php +++ b/wcfsetup/install/files/lib/system/clipboard/action/UserContentClipboardAction.class.php @@ -57,7 +57,7 @@ class UserContentClipboardAction extends AbstractClipboardAction { /** * Returns the ids of the users whose edits can be reverted. * - * @return array + * @return integer[] */ 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 49c71fca29..7244f4bd00 100644 --- a/wcfsetup/install/files/lib/system/comment/CommentHandler.class.php +++ b/wcfsetup/install/files/lib/system/comment/CommentHandler.class.php @@ -4,6 +4,7 @@ use wcf\data\comment\response\CommentResponseList; use wcf\data\comment\CommentEditor; use wcf\data\comment\CommentList; use wcf\data\comment\StructuredCommentList; +use wcf\data\object\type\ObjectType; use wcf\data\object\type\ObjectTypeCache; use wcf\system\comment\manager\ICommentManager; use wcf\system\exception\NamedUserException; @@ -29,7 +30,7 @@ use wcf\system\WCF; class CommentHandler extends SingletonFactory { /** * cached object types - * @var array + * @var mixed[][] */ protected $cache = null; diff --git a/wcfsetup/install/files/lib/system/condition/AbstractSelectCondition.class.php b/wcfsetup/install/files/lib/system/condition/AbstractSelectCondition.class.php index 72af5d845d..86632ea2a5 100644 --- a/wcfsetup/install/files/lib/system/condition/AbstractSelectCondition.class.php +++ b/wcfsetup/install/files/lib/system/condition/AbstractSelectCondition.class.php @@ -70,7 +70,7 @@ abstract class AbstractSelectCondition extends AbstractSingleFieldCondition { * Returns the html code for an opt group. * * @param string $label - * @param array $options + * @param string[] $options * @return string */ protected function getOptGroupCode($label, array $options) { diff --git a/wcfsetup/install/files/lib/system/condition/ConditionHandler.class.php b/wcfsetup/install/files/lib/system/condition/ConditionHandler.class.php index 97f3543b42..30c1cf9fb5 100644 --- a/wcfsetup/install/files/lib/system/condition/ConditionHandler.class.php +++ b/wcfsetup/install/files/lib/system/condition/ConditionHandler.class.php @@ -3,6 +3,7 @@ namespace wcf\system\condition; use wcf\data\condition\Condition; use wcf\data\condition\ConditionAction; use wcf\data\condition\ConditionList; +use wcf\data\object\type\ObjectType; use wcf\data\object\type\ObjectTypeCache; use wcf\system\cache\builder\ConditionCacheBuilder; use wcf\system\exception\SystemException; @@ -30,8 +31,8 @@ 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 array<\wcf\data\object\type\ObjectType> $conditionObjectTypes + * @param integer $objectID + * @param ObjectType[] $conditionObjectTypes */ public function createConditions($objectID, array $conditionObjectTypes) { foreach ($conditionObjectTypes as $objectType) { @@ -115,9 +116,9 @@ class ConditionHandler extends SingletonFactory { /** * Updates the conditions for the object with the given object id. * - * @param integer $objectID - * @param array<\wcf\data\condition\Condition> $oldConditions - * @param array<\wcf\data\object\type\ObjectType> $conditionObjectTypes + * @param integer $objectID + * @param Condition[] $oldConditions + * @param ObjectType[] $conditionObjectTypes */ public function updateConditions($objectID, array $oldConditions, array $conditionObjectTypes) { // delete old conditions first diff --git a/wcfsetup/install/files/lib/system/condition/UserGroupCondition.class.php b/wcfsetup/install/files/lib/system/condition/UserGroupCondition.class.php index 0e6ef75f8e..08ce692aa1 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 array + * @var integer[] */ protected $groupIDs = array(); @@ -47,13 +47,13 @@ class UserGroupCondition extends AbstractMultipleFieldsCondition implements ICon /** * ids of the selected user groups the user may not be member of - * @var array + * @var integer[] */ protected $notGroupIDs = array(); /** * selectable user groups - * @var array<\wcf\data\user\group\UserGroup> + * @var UserGroup[] */ protected $userGroups = null; @@ -151,7 +151,7 @@ HTML; /** * Returns the selectable user groups. * - * @return array<\wcf\data\user\group\UserGroup> + * @return UserGroup[] */ protected function getUserGroups() { if ($this->userGroups == null) { diff --git a/wcfsetup/install/files/lib/system/condition/UserLanguageCondition.class.php b/wcfsetup/install/files/lib/system/condition/UserLanguageCondition.class.php index 334977f4cb..07b402e61c 100644 --- a/wcfsetup/install/files/lib/system/condition/UserLanguageCondition.class.php +++ b/wcfsetup/install/files/lib/system/condition/UserLanguageCondition.class.php @@ -29,7 +29,7 @@ class UserLanguageCondition extends AbstractSingleFieldCondition implements ICon /** * ids of the selected languages - * @var array + * @var integer[] */ protected $languageIDs = array(); diff --git a/wcfsetup/install/files/lib/system/cronjob/CronjobScheduler.class.php b/wcfsetup/install/files/lib/system/cronjob/CronjobScheduler.class.php index 87ff2c92e1..f295fd8784 100644 --- a/wcfsetup/install/files/lib/system/cronjob/CronjobScheduler.class.php +++ b/wcfsetup/install/files/lib/system/cronjob/CronjobScheduler.class.php @@ -21,13 +21,13 @@ use wcf\system\WCF; class CronjobScheduler extends SingletonFactory { /** * cached times of the next and after next cronjob execution - * @var array + * @var integer[] */ protected $cache = array(); /** * list of editors for outstanding cronjobs - * @var array<\wcf\data\cronjob\CronjobEditor> + * @var CronjobEditor[] */ protected $cronjobEditors = array(); diff --git a/wcfsetup/install/files/lib/system/dashboard/DashboardHandler.class.php b/wcfsetup/install/files/lib/system/dashboard/DashboardHandler.class.php index 1c1656abee..55f45330a7 100644 --- a/wcfsetup/install/files/lib/system/dashboard/DashboardHandler.class.php +++ b/wcfsetup/install/files/lib/system/dashboard/DashboardHandler.class.php @@ -22,13 +22,13 @@ use wcf\system\WCF; class DashboardHandler extends SingletonFactory { /** * list of cached dashboard boxes - * @var array<\wcf\data\dashboard\box\DashboardBox> + * @var DashboardBox[] */ protected $boxCache = null; /** * configuration options for pages - * @var array + * @var integer[][] */ protected $pageCache = null; 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 ff509b0502..c60e9422e3 100644 --- a/wcfsetup/install/files/lib/system/database/statement/PreparedStatement.class.php +++ b/wcfsetup/install/files/lib/system/database/statement/PreparedStatement.class.php @@ -1,5 +1,6 @@ + * @return DatabaseObject[] */ public function fetchObjects($className) { $objects = array(); diff --git a/wcfsetup/install/files/lib/system/database/util/SQLParser.class.php b/wcfsetup/install/files/lib/system/database/util/SQLParser.class.php index aa9681fd03..e2debfe752 100644 --- a/wcfsetup/install/files/lib/system/database/util/SQLParser.class.php +++ b/wcfsetup/install/files/lib/system/database/util/SQLParser.class.php @@ -19,7 +19,7 @@ use wcf\util\StringUtil; class SQLParser { /** * list of sql queries - * @var array + * @var string[] */ protected $queryArray = array(); diff --git a/wcfsetup/install/files/lib/system/edit/EditHistoryManager.class.php b/wcfsetup/install/files/lib/system/edit/EditHistoryManager.class.php index 2a2cc93db0..8aa0f280c5 100644 --- a/wcfsetup/install/files/lib/system/edit/EditHistoryManager.class.php +++ b/wcfsetup/install/files/lib/system/edit/EditHistoryManager.class.php @@ -74,7 +74,7 @@ class EditHistoryManager extends SingletonFactory { * Deletes edit history entries. * * @param string $objectType - * @param array $objectIDs + * @param integer[] $objectIDs */ public function delete($objectType, array $objectIDs) { $objectTypeID = $this->getObjectTypeID($objectType); @@ -93,7 +93,7 @@ class EditHistoryManager extends SingletonFactory { /** * Performs mass reverting of edits by the given users in the given timeframe. * - * @param array $userIDs + * @param integer[] $userIDs * @param integer $timeframe */ public function bulkRevert(array $userIDs, $timeframe = 86400) { diff --git a/wcfsetup/install/files/lib/system/email/Email.class.php b/wcfsetup/install/files/lib/system/email/Email.class.php index 00b2070380..09a5996f60 100644 --- a/wcfsetup/install/files/lib/system/email/Email.class.php +++ b/wcfsetup/install/files/lib/system/email/Email.class.php @@ -1,5 +1,6 @@ + * @var Mailbox[] */ protected $references = [ ]; /** * In-Reply-To header - * @var array<\wcf\system\email\Mailbox> + * @var Mailbox[] */ protected $inReplyTo = [ ]; @@ -236,7 +237,7 @@ class Email { /** * Returns the email's 'In-Reply-To' message ids. * - * @return array + * @return string[] */ public function getInReplyTo() { return $this->inReplyTo; @@ -268,7 +269,7 @@ class Email { /** * Returns the email's 'References' message ids. * - * @return array + * @return string[] */ public function getReferences() { return $this->references; @@ -415,7 +416,7 @@ class Email { /** * Returns the text mime parts of this email. * - * @return array<\wcf\system\email\mime\TextMimePart> + * @return array */ public function getText() { return $this->text; @@ -424,7 +425,7 @@ class Email { /** * Returns the attachments (i.e. the mime parts that are not a TextMimePart) of this email. * - * @return array<\wcf\system\email\mime\AbstractMimePart> + * @return array */ public function getAttachments() { return $this->attachments; @@ -595,7 +596,7 @@ class Email { /** * Returns needed AbstractBackgroundJobs to deliver this email to every recipient. * - * @return array<\wcf\system\background\job\AbstractBackgroundJob> + * @return AbstractBackgroundJob[] */ public function getJobs() { $jobs = [ ]; 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 f59f0b337b..b31d245a8d 100644 --- a/wcfsetup/install/files/lib/system/email/transport/SmtpEmailTransport.class.php +++ b/wcfsetup/install/files/lib/system/email/transport/SmtpEmailTransport.class.php @@ -64,7 +64,7 @@ class SmtpEmailTransport implements EmailTransport { /** * ESMTP features advertised by the server - * @var array + * @var string[] */ protected $features = [ ]; diff --git a/wcfsetup/install/files/lib/system/exception/AJAXException.class.php b/wcfsetup/install/files/lib/system/exception/AJAXException.class.php index 4099d55943..88f5b9c690 100644 --- a/wcfsetup/install/files/lib/system/exception/AJAXException.class.php +++ b/wcfsetup/install/files/lib/system/exception/AJAXException.class.php @@ -56,9 +56,8 @@ class AJAXException extends LoggedException { * @param string $message * @param integer $errorType * @param string $stacktrace - * @param array $returnValues + * @param mixed[] $returnValues * @param string $exceptionID - * @param array $returnValues */ public function __construct($message, $errorType = self::INTERNAL_ERROR, $stacktrace = null, $returnValues = array(), $exceptionID = '') { if ($stacktrace === null) $stacktrace = $this->getTraceAsString(); diff --git a/wcfsetup/install/files/lib/system/exception/IExtraInformationException.class.php b/wcfsetup/install/files/lib/system/exception/IExtraInformationException.class.php index 7ad6f1c545..cbeee8350f 100644 --- a/wcfsetup/install/files/lib/system/exception/IExtraInformationException.class.php +++ b/wcfsetup/install/files/lib/system/exception/IExtraInformationException.class.php @@ -18,7 +18,7 @@ interface IExtraInformationException { * in the human readable error log. * Avoid including sensitive information (such as private keys or passwords). * - * @return array + * @return mixed[][] */ public function getExtraInformation(); } diff --git a/wcfsetup/install/files/lib/system/exporter/AbstractExporter.class.php b/wcfsetup/install/files/lib/system/exporter/AbstractExporter.class.php index b5336b33b3..7093d15c4a 100644 --- a/wcfsetup/install/files/lib/system/exporter/AbstractExporter.class.php +++ b/wcfsetup/install/files/lib/system/exporter/AbstractExporter.class.php @@ -71,7 +71,7 @@ abstract class AbstractExporter implements IExporter { /** * limits for items per run - * @var array + * @var integer[] */ protected $limits = array(); diff --git a/wcfsetup/install/files/lib/system/exporter/IExporter.class.php b/wcfsetup/install/files/lib/system/exporter/IExporter.class.php index 7e6ebcfc05..3e00a7b987 100644 --- a/wcfsetup/install/files/lib/system/exporter/IExporter.class.php +++ b/wcfsetup/install/files/lib/system/exporter/IExporter.class.php @@ -78,7 +78,7 @@ interface IExporter { /** * Returns the supported data types. * - * @return array + * @return string[] */ public function getSupportedData(); diff --git a/wcfsetup/install/files/lib/system/form/FormDocument.class.php b/wcfsetup/install/files/lib/system/form/FormDocument.class.php index 9658468b49..4320d1ee53 100644 --- a/wcfsetup/install/files/lib/system/form/FormDocument.class.php +++ b/wcfsetup/install/files/lib/system/form/FormDocument.class.php @@ -15,7 +15,7 @@ use wcf\util\StringUtil; class FormDocument { /** * list of FormElementContainer objects - * @var array<\wcf\system\form\IFormElementContainer> + * @var IFormElementContainer[] */ protected $containers = array(); @@ -64,7 +64,7 @@ class FormDocument { /** * Returns assigned FormElementContainer objects. * - * @return array<\wcf\system\form\IFormElementContainer> + * @return IFormElementContainer[] */ public function getContainers() { return $this->containers; diff --git a/wcfsetup/install/files/lib/system/form/IFormElementContainer.class.php b/wcfsetup/install/files/lib/system/form/IFormElementContainer.class.php index 60f36f801a..95e86dca9d 100644 --- a/wcfsetup/install/files/lib/system/form/IFormElementContainer.class.php +++ b/wcfsetup/install/files/lib/system/form/IFormElementContainer.class.php @@ -51,7 +51,7 @@ interface IFormElementContainer { /** * Returns a list of child elements. * - * @return array<\wcf\system\form\IFormElement> + * @return IFormElement[] */ public function getChildren(); diff --git a/wcfsetup/install/files/lib/system/form/container/AbstractFormElementContainer.class.php b/wcfsetup/install/files/lib/system/form/container/AbstractFormElementContainer.class.php index 35ae3bd783..00faca3023 100644 --- a/wcfsetup/install/files/lib/system/form/container/AbstractFormElementContainer.class.php +++ b/wcfsetup/install/files/lib/system/form/container/AbstractFormElementContainer.class.php @@ -18,7 +18,7 @@ use wcf\util\StringUtil; abstract class AbstractFormElementContainer implements IFormElementContainer { /** * list of IFormElement objects - * @var array<\wcf\system\form\IFormElement> + * @var IFormElement[] */ protected $children = array(); diff --git a/wcfsetup/install/files/lib/system/image/ImageHandler.class.php b/wcfsetup/install/files/lib/system/image/ImageHandler.class.php index 1ee2404479..a9758fb2e1 100644 --- a/wcfsetup/install/files/lib/system/image/ImageHandler.class.php +++ b/wcfsetup/install/files/lib/system/image/ImageHandler.class.php @@ -17,7 +17,7 @@ use wcf\system\SingletonFactory; class ImageHandler extends SingletonFactory { /** * list of valid image adapters. - * @var array + * @var string[] */ protected $imageAdapters = array( 'gd' => 'wcf\system\image\adapter\GDImageAdapter', diff --git a/wcfsetup/install/files/lib/system/image/adapter/ImageAdapter.class.php b/wcfsetup/install/files/lib/system/image/adapter/ImageAdapter.class.php index f9edb189ea..6a24392caa 100644 --- a/wcfsetup/install/files/lib/system/image/adapter/ImageAdapter.class.php +++ b/wcfsetup/install/files/lib/system/image/adapter/ImageAdapter.class.php @@ -21,7 +21,7 @@ class ImageAdapter implements IImageAdapter { /** * supported relative positions - * @var array + * @var string[] */ protected $relativePositions = array( 'topLeft', diff --git a/wcfsetup/install/files/lib/system/importer/ImportHandler.class.php b/wcfsetup/install/files/lib/system/importer/ImportHandler.class.php index 40de8e9665..e7864512f7 100644 --- a/wcfsetup/install/files/lib/system/importer/ImportHandler.class.php +++ b/wcfsetup/install/files/lib/system/importer/ImportHandler.class.php @@ -51,7 +51,7 @@ class ImportHandler extends SingletonFactory implements IAJAXInvokeAction { /** * list of methods allowed for remote invoke - * @var array + * @var string[] */ public static $allowInvoke = array('resetMapping'); diff --git a/wcfsetup/install/files/lib/system/importer/SmileyImporter.class.php b/wcfsetup/install/files/lib/system/importer/SmileyImporter.class.php index 11163843cf..4587454b15 100644 --- a/wcfsetup/install/files/lib/system/importer/SmileyImporter.class.php +++ b/wcfsetup/install/files/lib/system/importer/SmileyImporter.class.php @@ -23,7 +23,7 @@ class SmileyImporter extends AbstractImporter { /** * known smiley codes * - * @var array + * @var string[] */ public $knownCodes = array(); diff --git a/wcfsetup/install/files/lib/system/importer/UserImporter.class.php b/wcfsetup/install/files/lib/system/importer/UserImporter.class.php index ae58bcc9e9..123dbe7875 100644 --- a/wcfsetup/install/files/lib/system/importer/UserImporter.class.php +++ b/wcfsetup/install/files/lib/system/importer/UserImporter.class.php @@ -1,6 +1,7 @@ + * @var integer[] */ protected $eventIDs = array(); /** * list of user options - * @var array<\wcf\data\user\option\UserOption> + * @var UserOption[] */ protected $userOptions = array(); diff --git a/wcfsetup/install/files/lib/system/importer/UserOptionImporter.class.php b/wcfsetup/install/files/lib/system/importer/UserOptionImporter.class.php index 271d20ed8b..0e8fcf42db 100644 --- a/wcfsetup/install/files/lib/system/importer/UserOptionImporter.class.php +++ b/wcfsetup/install/files/lib/system/importer/UserOptionImporter.class.php @@ -32,7 +32,7 @@ class UserOptionImporter extends AbstractImporter { /** * list of available user option categories - * @var array + * @var string[] */ protected $categoryCache = null; diff --git a/wcfsetup/install/files/lib/system/label/LabelHandler.class.php b/wcfsetup/install/files/lib/system/label/LabelHandler.class.php index d38ae2bea1..8d11f3014a 100644 --- a/wcfsetup/install/files/lib/system/label/LabelHandler.class.php +++ b/wcfsetup/install/files/lib/system/label/LabelHandler.class.php @@ -21,13 +21,13 @@ use wcf\system\WCF; class LabelHandler extends SingletonFactory { /** * cached list of object types - * @var array + * @var mixed[][] */ protected $cache = null; /** * list of label groups - * @var array<\wcf\data\label\group\ViewableLabelGroup> + * @var ViewableLabelGroup[] */ protected $labelGroups = null; @@ -85,7 +85,7 @@ class LabelHandler extends SingletonFactory { /** * Returns an array with view permissions for the labels with the given id. * - * @param array $labelIDs + * @param integer[] $labelIDs * @return array * @see \wcf\system\label\LabelHandler::getPermissions() */ @@ -96,7 +96,7 @@ class LabelHandler extends SingletonFactory { /** * Returns an array with use permissions for the labels with the given id. * - * @param array $labelIDs + * @param integer[] $labelIDs * @return array * @see \wcf\system\label\LabelHandler::getPermissions() */ @@ -156,7 +156,7 @@ class LabelHandler extends SingletonFactory { * Sets labels for given object id, pass an empty array to remove all previously * assigned labels. * - * @param array $labelIDs + * @param integer[] $labelIDs * @param integer $objectTypeID * @param integer $objectID * @param boolean $validatePermissions @@ -198,7 +198,7 @@ class LabelHandler extends SingletonFactory { * Returns all assigned labels, optionally filtered to validate permissions. * * @param integer $objectTypeID - * @param array $objectIds + * @param integer[] $objectIds * @param boolean $validatePermissions * @return array */ @@ -313,7 +313,7 @@ class LabelHandler extends SingletonFactory { /** * Returns a list of accessible label ids. * - * @return array + * @return integer[] */ public function getAccessibleLabelIDs() { $labelIDs = array(); @@ -344,7 +344,7 @@ class LabelHandler extends SingletonFactory { * Removes all assigned labels for given object ids. * * @param integer $objectTypeID - * @param array $objectID + * @param integer[] $objectID */ 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 31d1cb3f53..1a30785186 100644 --- a/wcfsetup/install/files/lib/system/label/object/AbstractLabelObjectHandler.class.php +++ b/wcfsetup/install/files/lib/system/label/object/AbstractLabelObjectHandler.class.php @@ -1,5 +1,6 @@ + * @var ViewableLabelGroup[] */ protected $labelGroups = array(); 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 095626ee90..24ffba519b 100644 --- a/wcfsetup/install/files/lib/system/label/object/ILabelObjectHandler.class.php +++ b/wcfsetup/install/files/lib/system/label/object/ILabelObjectHandler.class.php @@ -1,5 +1,6 @@ + * @return integer[] */ public function getLabelGroupIDs(array $parameters = array()); @@ -24,7 +25,7 @@ interface ILabelObjectHandler { * Returns a list of label groups. * * @param array $parameters - * @return array<\wcf\data\label\group\ViewableLabelGroup> + * @return ViewableLabelGroup[] */ public function getLabelGroups(array $parameters = array()); @@ -41,7 +42,7 @@ interface ILabelObjectHandler { /** * Assigns labels to an object. * - * @param array $labelIDs + * @param integer[] $labelIDs * @param integer $objectID * @param boolean $validatePermissions * @see \wcf\system\label\LabelHandler::setLabels() @@ -60,9 +61,9 @@ interface ILabelObjectHandler { /** * Returns a list of assigned labels. * - * @param array $objectIDs + * @param integer[] $objectIDs * @param boolean $validatePermissions - * @return array + * @return Label[] */ public function getAssignedLabels(array $objectIDs, $validatePermissions = true); } 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 af44fed890..159c5825fd 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 @@ -1,5 +1,6 @@ + * @var ObjectType[] */ public $objectTypes = array(); diff --git a/wcfsetup/install/files/lib/system/language/I18nHandler.class.php b/wcfsetup/install/files/lib/system/language/I18nHandler.class.php index b3dcdedf02..21fb708472 100644 --- a/wcfsetup/install/files/lib/system/language/I18nHandler.class.php +++ b/wcfsetup/install/files/lib/system/language/I18nHandler.class.php @@ -45,7 +45,7 @@ class I18nHandler extends SingletonFactory { /** * element options - * @var array + * @var mixed[][] */ protected $elementOptions = []; diff --git a/wcfsetup/install/files/lib/system/language/LanguageFactory.class.php b/wcfsetup/install/files/lib/system/language/LanguageFactory.class.php index 649d435043..a1e0b62093 100644 --- a/wcfsetup/install/files/lib/system/language/LanguageFactory.class.php +++ b/wcfsetup/install/files/lib/system/language/LanguageFactory.class.php @@ -21,7 +21,7 @@ use wcf\system\WCF; class LanguageFactory extends SingletonFactory { /** * language cache - * @var array + * @var mixed[] */ protected $cache = null; diff --git a/wcfsetup/install/files/lib/system/language/LanguageServerProcessor.class.php b/wcfsetup/install/files/lib/system/language/LanguageServerProcessor.class.php index 565d4d5618..4184c3ae86 100644 --- a/wcfsetup/install/files/lib/system/language/LanguageServerProcessor.class.php +++ b/wcfsetup/install/files/lib/system/language/LanguageServerProcessor.class.php @@ -1,5 +1,6 @@ $languageServers + * @param \wcf\data\language\Language $language + * @param LanguageServer[] $languageServers */ public function import(Language $language, array $languageServers) { if (empty($languageServers)) return; @@ -46,7 +47,7 @@ class LanguageServerProcessor extends SingletonFactory { /** * Returns list of installed packages and their associated version. * - * @return array + * @return string[] */ protected function getPackageList() { $sql = "SELECT package, packageVersion @@ -212,7 +213,7 @@ class LanguageServerProcessor extends SingletonFactory { * Imports language variables and categories. * * @param array $variables - * @param array $packages + * @param integer[] $packages */ protected function importVariables(array $variables, array $packages) { $categories = $this->importCategories($variables); diff --git a/wcfsetup/install/files/lib/system/like/IViewableLikeProvider.class.php b/wcfsetup/install/files/lib/system/like/IViewableLikeProvider.class.php index 2323599bdc..1b08983ebb 100644 --- a/wcfsetup/install/files/lib/system/like/IViewableLikeProvider.class.php +++ b/wcfsetup/install/files/lib/system/like/IViewableLikeProvider.class.php @@ -1,5 +1,6 @@ $likes + * @param ViewableLike[] $likes */ public function prepare(array $likes); } diff --git a/wcfsetup/install/files/lib/system/like/LikeHandler.class.php b/wcfsetup/install/files/lib/system/like/LikeHandler.class.php index b97817b1dc..5892881af1 100644 --- a/wcfsetup/install/files/lib/system/like/LikeHandler.class.php +++ b/wcfsetup/install/files/lib/system/like/LikeHandler.class.php @@ -40,13 +40,13 @@ use wcf\system\WCF; class LikeHandler extends SingletonFactory { /** * loaded like objects - * @var array + * @var LikeObject[][] */ protected $likeObjectCache = array(); /** * cached object types - * @var array + * @var ObjectType[] */ protected $cache = null; @@ -90,7 +90,7 @@ class LikeHandler extends SingletonFactory { * Gets the like objects of a specific object type. * * @param \wcf\data\object\type\ObjectType $objectType - * @return array<\wcf\data\like\object\LikeObject> + * @return LikeObject[] */ public function getLikeObjects(ObjectType $objectType) { if (isset($this->likeObjectCache[$objectType->objectTypeID])) { @@ -419,8 +419,8 @@ class LikeHandler extends SingletonFactory { * Removes all likes for given objects. * * @param string $objectType - * @param array $objectIDs - * @param array $notificationObjectTypes + * @param integer[] $objectIDs + * @param string[] $notificationObjectTypes */ public function removeLikes($objectType, array $objectIDs, array $notificationObjectTypes = array()) { $objectTypeObj = $this->getObjectType($objectType); 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 70429327d7..6583ec3b03 100644 --- a/wcfsetup/install/files/lib/system/log/modification/ModificationLogHandler.class.php +++ b/wcfsetup/install/files/lib/system/log/modification/ModificationLogHandler.class.php @@ -2,6 +2,7 @@ namespace wcf\system\log\modification; use wcf\data\modification\log\ModificationLog; use wcf\data\modification\log\ModificationLogEditor; +use wcf\data\object\type\ObjectType; use wcf\data\object\type\ObjectTypeCache; use wcf\system\database\util\PreparedStatementConditionBuilder; use wcf\system\exception\SystemException; @@ -22,7 +23,7 @@ use wcf\system\WCF; class ModificationLogHandler extends SingletonFactory { /** * list of object types - * @var array<\wcf\data\object\type\ObjectType> + * @var ObjectType[] */ protected $cache = array(); diff --git a/wcfsetup/install/files/lib/system/mail/Mail.class.php b/wcfsetup/install/files/lib/system/mail/Mail.class.php index 61e7990257..e81109a684 100644 --- a/wcfsetup/install/files/lib/system/mail/Mail.class.php +++ b/wcfsetup/install/files/lib/system/mail/Mail.class.php @@ -43,7 +43,7 @@ class Mail { /** * mail recipients - * @var array + * @var string[] */ protected $to = array(); @@ -67,13 +67,13 @@ class Mail { /** * mail carbon copy - * @var array + * @var string[] */ protected $cc = array(); /** * mail blind carbon copy - * @var array + * @var string[] */ protected $bcc = array(); diff --git a/wcfsetup/install/files/lib/system/menu/TreeMenu.class.php b/wcfsetup/install/files/lib/system/menu/TreeMenu.class.php index e35977943a..8831a90cca 100644 --- a/wcfsetup/install/files/lib/system/menu/TreeMenu.class.php +++ b/wcfsetup/install/files/lib/system/menu/TreeMenu.class.php @@ -17,19 +17,19 @@ use wcf\system\WCF; abstract class TreeMenu extends SingletonFactory { /** * list of visible menu items - * @var array<\wcf\system\menu\ITreeMenuItem> + * @var ITreeMenuItem[] */ public $menuItemList = array(); /** * list of the names of the active menu items - * @var array + * @var string[] */ public $activeMenuItems = array(); /** * list of all menu items - * @var array<\wcf\system\menu\ITreeMenuItem> + * @var ITreeMenuItem[] */ public $menuItems = null; diff --git a/wcfsetup/install/files/lib/system/message/MessageFormSettingsHandler.class.php b/wcfsetup/install/files/lib/system/message/MessageFormSettingsHandler.class.php index 4b2c8798fb..067af85f1e 100644 --- a/wcfsetup/install/files/lib/system/message/MessageFormSettingsHandler.class.php +++ b/wcfsetup/install/files/lib/system/message/MessageFormSettingsHandler.class.php @@ -18,7 +18,7 @@ class MessageFormSettingsHandler { * Computes the settings for BBCodes, Smilies and pre parsing. Optionally accepts the corresponding DatabaseObject * whose values will be used in case the settings did not contain the individual values (legacy support). * - * @param array $parameters + * @param mixed[][] $parameters * @param \wcf\data\DatabaseObject $object * @param string $permissionCanUseBBCodes * @param string $permissionCanUseSmilies diff --git a/wcfsetup/install/files/lib/system/message/QuickReplyManager.class.php b/wcfsetup/install/files/lib/system/message/QuickReplyManager.class.php index fff3f31b1f..8b3c01d798 100644 --- a/wcfsetup/install/files/lib/system/message/QuickReplyManager.class.php +++ b/wcfsetup/install/files/lib/system/message/QuickReplyManager.class.php @@ -27,7 +27,7 @@ use wcf\util\StringUtil; class QuickReplyManager extends SingletonFactory { /** * list of allowed bbcodes - * @var array + * @var string[] */ public $allowedBBodes = null; @@ -91,7 +91,7 @@ class QuickReplyManager extends SingletonFactory { /** * Sets the allowed bbcodes. * - * @param array $allowedBBCodes + * @param string[] $allowedBBCodes */ public function setAllowedBBCodes(array $allowedBBCodes = null) { $this->allowedBBodes = $allowedBBCodes; @@ -101,7 +101,7 @@ class QuickReplyManager extends SingletonFactory { * Validates parameters for current request. * * @param IMessageQuickReplyAction $object - * @param array $parameters + * @param mixed[][] $parameters * @param string $containerClassName * @param string $containerDecoratorClassName * @throws SystemException @@ -169,7 +169,7 @@ class QuickReplyManager extends SingletonFactory { * Creates a new message and returns the parsed template. * * @param \wcf\data\IMessageQuickReplyAction $object - * @param array $parameters + * @param mixed[][] $parameters * @param string $containerActionClassName * @param string $sortOrder * @param string $templateName 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 55f8866c54..4b5f7a3f82 100644 --- a/wcfsetup/install/files/lib/system/message/censorship/Censorship.class.php +++ b/wcfsetup/install/files/lib/system/message/censorship/Censorship.class.php @@ -16,7 +16,7 @@ use wcf\util\StringUtil; class Censorship extends SingletonFactory { /** * censored words - * @var array + * @var string[] */ protected $censoredWords = array(); @@ -28,7 +28,7 @@ class Censorship extends SingletonFactory { /** * list of words - * @var array + * @var string[] */ protected $words = array(); 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 bed3602fc3..3e29e611f6 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 @@ -1,5 +1,6 @@ + * @return integer[] */ public function parseMessage($message); @@ -25,7 +26,7 @@ interface IMessageEmbeddedObjectHandler { * Loads and returns embedded objects. * * @param array $objectIDs - * @return array<\wcf\data\DatabaseObject> + * @return DatabaseObject[] */ public function loadObjects(array $objectIDs); } 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 e53402486a..fc9796879f 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 @@ -92,7 +92,7 @@ class MessageEmbeddedObjectManager extends SingletonFactory { * Removes embedded object assigments for given messages. * * @param string $messageObjectType - * @param array $messageIDs + * @param integer[] $messageIDs */ public function removeObjects($messageObjectType, array $messageIDs) { $conditionBuilder = new PreparedStatementConditionBuilder(); @@ -109,7 +109,7 @@ class MessageEmbeddedObjectManager extends SingletonFactory { * Loads the embedded objects for given messages. * * @param string $messageObjectType - * @param array $messageIDs + * @param integer[] $messageIDs */ public function loadObjects($messageObjectType, array $messageIDs) { $conditionBuilder = new PreparedStatementConditionBuilder(); diff --git a/wcfsetup/install/files/lib/system/message/quote/AbstractMessageQuoteHandler.class.php b/wcfsetup/install/files/lib/system/message/quote/AbstractMessageQuoteHandler.class.php index 3552d97483..5a738a8046 100644 --- a/wcfsetup/install/files/lib/system/message/quote/AbstractMessageQuoteHandler.class.php +++ b/wcfsetup/install/files/lib/system/message/quote/AbstractMessageQuoteHandler.class.php @@ -23,7 +23,7 @@ abstract class AbstractMessageQuoteHandler extends SingletonFactory implements I /** * list of quoted message - * @var array<\wcf\system\message\quote\QuotedMessage> + * @var QuotedMessage[] */ public $quotedMessages = array(); @@ -79,8 +79,8 @@ abstract class AbstractMessageQuoteHandler extends SingletonFactory implements I /** * Returns a list of QuotedMessage objects. * - * @param array $data - * @return array<\wcf\system\message\quote\QuotedMessage> + * @param mixed[][] $data + * @return QuotedMessage[] */ abstract protected function getMessages(array $data); } diff --git a/wcfsetup/install/files/lib/system/message/quote/IMessageQuoteHandler.class.php b/wcfsetup/install/files/lib/system/message/quote/IMessageQuoteHandler.class.php index 9f5ea1822b..1d9e3285c5 100644 --- a/wcfsetup/install/files/lib/system/message/quote/IMessageQuoteHandler.class.php +++ b/wcfsetup/install/files/lib/system/message/quote/IMessageQuoteHandler.class.php @@ -24,9 +24,9 @@ interface IMessageQuoteHandler { /** * Renders a list of quotes for insertation. * - * @param array $data + * @param mixed[][] $data * @param boolean $render - * @return array + * @return string[] */ public function renderQuotes(array $data, $render = true); } 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 715de46720..03f404b4fb 100644 --- a/wcfsetup/install/files/lib/system/message/quote/MessageQuoteManager.class.php +++ b/wcfsetup/install/files/lib/system/message/quote/MessageQuoteManager.class.php @@ -46,7 +46,7 @@ class MessageQuoteManager extends SingletonFactory { /** * list of stored quotes - * @var array + * @var mixed[][] */ protected $quotes = []; @@ -476,7 +476,7 @@ class MessageQuoteManager extends SingletonFactory { * Returns a list of full quotes by object id for given object types. * * @param string[] $objectTypes - * @return array + * @return mixed[][] * @throws SystemException */ public function getFullQuoteObjectIDs(array $objectTypes) { 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 5bb2d31191..ab4a4de0fa 100644 --- a/wcfsetup/install/files/lib/system/moderation/queue/AbstractModerationQueueManager.class.php +++ b/wcfsetup/install/files/lib/system/moderation/queue/AbstractModerationQueueManager.class.php @@ -125,7 +125,7 @@ abstract class AbstractModerationQueueManager extends SingletonFactory implement * Marks a list of moderation queue entries as done. * * @param integer $objectTypeID - * @param array $objectIDs + * @param integer[] $objectIDs */ protected function removeEntries($objectTypeID, array $objectIDs) { $queueList = new ModerationQueueList(); 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 1404a98236..1501e00d2f 100644 --- a/wcfsetup/install/files/lib/system/moderation/queue/IModerationQueueManager.class.php +++ b/wcfsetup/install/files/lib/system/moderation/queue/IModerationQueueManager.class.php @@ -1,6 +1,7 @@ $queues + * @param integer $objectTypeID + * @param ModerationQueue[] $queues */ public function assignQueues($objectTypeID, array $queues); @@ -58,8 +59,8 @@ interface IModerationQueueManager { /** * Populates object properties for viewing. * - * @param integer $objectTypeID - * @param array<\wcf\data\moderation\queue\ViewableModerationQueue> $objects + * @param integer $objectTypeID + * @param ViewableModerationQueue[] $objects */ public function populate($objectTypeID, array $objects); 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 d2576de55e..ac003f0cbc 100644 --- a/wcfsetup/install/files/lib/system/moderation/queue/ModerationQueueManager.class.php +++ b/wcfsetup/install/files/lib/system/moderation/queue/ModerationQueueManager.class.php @@ -3,6 +3,7 @@ namespace wcf\system\moderation\queue; use wcf\data\moderation\queue\ModerationQueue; use wcf\data\moderation\queue\ModerationQueueList; use wcf\data\moderation\queue\ViewableModerationQueue; +use wcf\data\object\type\ObjectType; use wcf\data\object\type\ObjectTypeCache; use wcf\system\database\util\PreparedStatementConditionBuilder; use wcf\system\exception\SystemException; @@ -24,25 +25,25 @@ use wcf\system\WCF; class ModerationQueueManager extends SingletonFactory { /** * list of definition names by definition id - * @var array + * @var string[] */ protected $definitions = array(); /** * list of moderation types - * @var array<\wcf\data\object\type\ObjectType> + * @var ObjectType[] */ protected $moderationTypes = array(); /** * list of object type names categorized by type - * @var array + * @var integer[][] */ protected $objectTypeNames = array(); /** * list of object types - * @var array<\wcf\data\object\type\ObjectType> + * @var ObjectType[] */ protected $objectTypes = array(); @@ -147,7 +148,7 @@ class ModerationQueueManager extends SingletonFactory { /** * Returns a list of moderation types. * - * @return array + * @return string[] */ public function getModerationTypes() { return array_keys($this->objectTypeNames); @@ -156,7 +157,7 @@ class ModerationQueueManager extends SingletonFactory { /** * Returns a list of available definitions. * - * @return array + * @return string[] */ public function getDefinitions() { return $this->definitions; @@ -165,8 +166,8 @@ class ModerationQueueManager extends SingletonFactory { /** * Returns a list of object type ids for given definiton ids. * - * @param array $definitionIDs - * @return array + * @param integer[] $definitionIDs + * @return integer[] */ public function getObjectTypeIDs(array $definitionIDs) { $objectTypeIDs = array(); @@ -314,7 +315,7 @@ class ModerationQueueManager extends SingletonFactory { /** * Saves moderation queue assignments. * - * @param array $assignments + * @param boolean[] $assignments */ public function setAssignment(array $assignments) { $sql = "INSERT IGNORE INTO wcf".WCF_N."_moderation_queue_to_user @@ -374,7 +375,7 @@ class ModerationQueueManager extends SingletonFactory { /** * Removes a list of orphaned queue ids. * - * @param array $queueIDs + * @param integer[] $queueIDs */ public function removeOrphans(array $queueIDs) { if (!empty($queueIDs)) { @@ -408,7 +409,7 @@ class ModerationQueueManager extends SingletonFactory { /** * Returns a list of object type ids and their parent definition name. * - * @return array + * @return string[] */ public function getDefinitionNamesByObjectTypeIDs() { $definitionNames = array(); @@ -425,7 +426,7 @@ class ModerationQueueManager extends SingletonFactory { * Returns a list of definition names associated with the specified object type. * * @param string $objectType - * @return array + * @return string[] */ public function getDefinitionNamesByObjectType($objectType) { $definitionNames = array(); diff --git a/wcfsetup/install/files/lib/system/notice/NoticeHandler.class.php b/wcfsetup/install/files/lib/system/notice/NoticeHandler.class.php index 4b92f9558f..0cdb23acab 100644 --- a/wcfsetup/install/files/lib/system/notice/NoticeHandler.class.php +++ b/wcfsetup/install/files/lib/system/notice/NoticeHandler.class.php @@ -1,5 +1,6 @@ + * @var Notice[] */ protected $notices = array(); @@ -30,7 +31,7 @@ class NoticeHandler extends SingletonFactory { /** * Returns the notices which are visible for the active user. * - * @return array<\wcf\data\notice\Notice> + * @return Notice[] */ public function getVisibleNotices() { $notices = array(); diff --git a/wcfsetup/install/files/lib/system/option/FileOptionType.class.php b/wcfsetup/install/files/lib/system/option/FileOptionType.class.php index 67ead5acd5..8eaab3080e 100644 --- a/wcfsetup/install/files/lib/system/option/FileOptionType.class.php +++ b/wcfsetup/install/files/lib/system/option/FileOptionType.class.php @@ -22,7 +22,7 @@ use wcf\util\FileUtil; class FileOptionType extends AbstractOptionType { /** * upload handler for option files - * @var array<\wcf\system\upload\UploadHandler> + * @var UploadHandler[] */ protected $uploadHandlers = array(); diff --git a/wcfsetup/install/files/lib/system/option/OptionHandler.class.php b/wcfsetup/install/files/lib/system/option/OptionHandler.class.php index 8092ef94d4..34f50ca548 100644 --- a/wcfsetup/install/files/lib/system/option/OptionHandler.class.php +++ b/wcfsetup/install/files/lib/system/option/OptionHandler.class.php @@ -22,7 +22,7 @@ use wcf\util\StringUtil; class OptionHandler implements IOptionHandler { /** * list of application abbreviations - * @var array + * @var string[] */ protected $abbreviations = null; @@ -34,13 +34,13 @@ class OptionHandler implements IOptionHandler { /** * list of all option categories - * @var array<\wcf\data\option\category\OptionCategory> + * @var OptionCategory[] */ public $cachedCategories = null; /** * list of all options - * @var array<\wcf\data\option\Option> + * @var Option[] */ public $cachedOptions = null; @@ -64,13 +64,13 @@ class OptionHandler implements IOptionHandler { /** * options of the active category - * @var array