From: Matthias Schmidt Date: Tue, 19 Jan 2021 07:49:50 +0000 (+0100) Subject: Replace `boolean` with `bool` in PHP documentation X-Git-Tag: 5.4.0_Alpha_1~424 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1524f8c00d45ac52225265d7571e23254b9b8118;p=GitHub%2FWoltLab%2FWCF.git Replace `boolean` with `bool` in PHP documentation --- diff --git a/wcfsetup/install.php b/wcfsetup/install.php index 16b74fdf31..f581aabed3 100644 --- a/wcfsetup/install.php +++ b/wcfsetup/install.php @@ -720,7 +720,7 @@ class BasicFileUtil { * necessary. * * @param string $path - * @return boolean + * @return bool */ public static function makePath($path) { // directory already exists, abort @@ -783,13 +783,13 @@ class Tar { /** * indicates if tar file is opened - * @var boolean + * @var bool */ protected $opened = false; /** * indicates if file content has been read - * @var boolean + * @var bool */ protected $read = false; @@ -801,7 +801,7 @@ class Tar { /** * indicates if the tar file is (g)zipped - * @var boolean + * @var bool */ protected $isZipped = false; @@ -1030,7 +1030,7 @@ class Tar { * Unpacks file header for one file entry. * * @param string $binaryData - * @return array|boolean + * @return array|bool */ protected function readHeader($binaryData) { if (strlen($binaryData) != 512) { @@ -1095,7 +1095,7 @@ class Tar { /** * Returns true if this tar is (g)zipped. * - * @return boolean + * @return bool */ public function isZipped() { return $this->isZipped; @@ -1172,7 +1172,7 @@ class GZipFile extends File { /** * checks if gz*64 functions are available instead of gz* * https://bugs.php.net/bug.php?id=53829 - * @var boolean + * @var bool */ protected static $gzopen64 = null; diff --git a/wcfsetup/install/files/lib/acp/form/AbstractCustomOptionForm.class.php b/wcfsetup/install/files/lib/acp/form/AbstractCustomOptionForm.class.php index bfeb51333f..7a04dcf5b1 100644 --- a/wcfsetup/install/files/lib/acp/form/AbstractCustomOptionForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/AbstractCustomOptionForm.class.php @@ -54,7 +54,7 @@ abstract class AbstractCustomOptionForm extends AbstractAcpForm { /** * field is required - * @var boolean + * @var bool */ public $required = 0; @@ -66,7 +66,7 @@ abstract class AbstractCustomOptionForm extends AbstractAcpForm { /** * 1 if the option is disabled - * @var boolean + * @var bool * @since 5.2 */ public $isDisabled = 0; diff --git a/wcfsetup/install/files/lib/acp/form/AbstractOptionListForm.class.php b/wcfsetup/install/files/lib/acp/form/AbstractOptionListForm.class.php index f52ae01ca5..1adda55b13 100755 --- a/wcfsetup/install/files/lib/acp/form/AbstractOptionListForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/AbstractOptionListForm.class.php @@ -49,7 +49,7 @@ abstract class AbstractOptionListForm extends AbstractForm { /** * true if option supports i18n - * @var boolean + * @var bool */ public $supportI18n = true; diff --git a/wcfsetup/install/files/lib/acp/form/ArticleAddForm.class.php b/wcfsetup/install/files/lib/acp/form/ArticleAddForm.class.php index 94ab297ecd..4ac2f5e892 100644 --- a/wcfsetup/install/files/lib/acp/form/ArticleAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/ArticleAddForm.class.php @@ -50,7 +50,7 @@ class ArticleAddForm extends AbstractForm { /** * true if created article is multi-lingual - * @var boolean + * @var bool */ public $isMultilingual = 0; @@ -104,7 +104,7 @@ class ArticleAddForm extends AbstractForm { /** * enables the comment function - * @var boolean + * @var bool */ public $enableComments = ARTICLE_ENABLE_COMMENTS_DEFAULT_VALUE; diff --git a/wcfsetup/install/files/lib/acp/form/BBCodeAddForm.class.php b/wcfsetup/install/files/lib/acp/form/BBCodeAddForm.class.php index dcf057b03b..52ec7aba92 100644 --- a/wcfsetup/install/files/lib/acp/form/BBCodeAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/BBCodeAddForm.class.php @@ -70,13 +70,13 @@ class BBCodeAddForm extends AbstractForm { /** * true if bbcode is a block element - * @var boolean + * @var bool */ public $isBlockElement = false; /** * true, if bbcode contains source code - * @var boolean + * @var bool */ public $isSourceCode = false; @@ -92,7 +92,7 @@ class BBCodeAddForm extends AbstractForm { /** * show editor button - * @var boolean + * @var bool */ public $showButton = false; diff --git a/wcfsetup/install/files/lib/acp/form/BoxAddForm.class.php b/wcfsetup/install/files/lib/acp/form/BoxAddForm.class.php index f32363d265..9c73df6399 100644 --- a/wcfsetup/install/files/lib/acp/form/BoxAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/BoxAddForm.class.php @@ -49,7 +49,7 @@ class BoxAddForm extends AbstractForm { /** * true if created box is multi-lingual - * @var boolean + * @var bool */ public $isMultilingual = 0; @@ -73,7 +73,7 @@ class BoxAddForm extends AbstractForm { /** * true if created box is visible everywhere - * @var boolean + * @var bool */ public $visibleEverywhere = 1; @@ -85,7 +85,7 @@ class BoxAddForm extends AbstractForm { /** * true if box header is visible - * @var boolean + * @var bool */ public $showHeader = 1; diff --git a/wcfsetup/install/files/lib/acp/form/DataImportForm.class.php b/wcfsetup/install/files/lib/acp/form/DataImportForm.class.php index 7072ce8d20..55234991ef 100644 --- a/wcfsetup/install/files/lib/acp/form/DataImportForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/DataImportForm.class.php @@ -109,7 +109,7 @@ class DataImportForm extends AbstractForm { /** * display notice for existing import mappings - * @var boolean + * @var bool */ public $showMappingNotice = false; diff --git a/wcfsetup/install/files/lib/acp/form/LabelGroupAddForm.class.php b/wcfsetup/install/files/lib/acp/form/LabelGroupAddForm.class.php index afd086c50d..1507b93f33 100644 --- a/wcfsetup/install/files/lib/acp/form/LabelGroupAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/LabelGroupAddForm.class.php @@ -34,7 +34,7 @@ class LabelGroupAddForm extends AbstractForm { /** * force users to select a label - * @var boolean + * @var bool */ public $forceSelection = false; diff --git a/wcfsetup/install/files/lib/acp/form/LanguageExportForm.class.php b/wcfsetup/install/files/lib/acp/form/LanguageExportForm.class.php index 1cce022086..6c775af767 100644 --- a/wcfsetup/install/files/lib/acp/form/LanguageExportForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/LanguageExportForm.class.php @@ -54,7 +54,7 @@ class LanguageExportForm extends AbstractForm { /** * true to export custom variables - * @var boolean + * @var bool */ public $exportCustomValues = false; diff --git a/wcfsetup/install/files/lib/acp/form/MenuAddForm.class.php b/wcfsetup/install/files/lib/acp/form/MenuAddForm.class.php index 7148538a82..1fb7b6060b 100644 --- a/wcfsetup/install/files/lib/acp/form/MenuAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/MenuAddForm.class.php @@ -55,7 +55,7 @@ class MenuAddForm extends AbstractForm { /** * true if created box is visible everywhere - * @var boolean + * @var bool */ public $visibleEverywhere = 1; @@ -67,7 +67,7 @@ class MenuAddForm extends AbstractForm { /** * true if box header is visible - * @var boolean + * @var bool */ public $showHeader = 1; diff --git a/wcfsetup/install/files/lib/acp/form/MenuItemAddForm.class.php b/wcfsetup/install/files/lib/acp/form/MenuItemAddForm.class.php index 118aef192b..a605999ac7 100644 --- a/wcfsetup/install/files/lib/acp/form/MenuItemAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/MenuItemAddForm.class.php @@ -50,13 +50,13 @@ class MenuItemAddForm extends AbstractForm { /** * activation state - * @var boolean + * @var bool */ public $isDisabled = false; /** * internal link - * @var boolean + * @var bool */ public $isInternalLink = true; diff --git a/wcfsetup/install/files/lib/acp/form/NotificationPresetSettingsForm.class.php b/wcfsetup/install/files/lib/acp/form/NotificationPresetSettingsForm.class.php index 19dc4f0aed..02127a88d5 100644 --- a/wcfsetup/install/files/lib/acp/form/NotificationPresetSettingsForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/NotificationPresetSettingsForm.class.php @@ -43,7 +43,7 @@ class NotificationPresetSettingsForm extends AbstractForm { /** * true to apply change to existing users - * @var boolean + * @var bool */ public $applyChangesToExistingUsers = 0; diff --git a/wcfsetup/install/files/lib/acp/form/PageAddForm.class.php b/wcfsetup/install/files/lib/acp/form/PageAddForm.class.php index 7038cc86a2..7cc03908d0 100644 --- a/wcfsetup/install/files/lib/acp/form/PageAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/PageAddForm.class.php @@ -52,7 +52,7 @@ class PageAddForm extends AbstractForm { /** * true if created page is multi-lingual - * @var boolean + * @var bool */ public $isMultilingual = 0; @@ -76,13 +76,13 @@ class PageAddForm extends AbstractForm { /** * true if page is disabled - * @var boolean + * @var bool */ public $isDisabled = 0; /** * true if page is landing page - * @var boolean + * @var bool */ public $isLandingPage = 0; @@ -159,19 +159,19 @@ class PageAddForm extends AbstractForm { /** * true if the page is available during offline mode - * @var boolean + * @var bool */ public $availableDuringOfflineMode = 0; /** * true if the page is accessible for search spiders - * @var boolean + * @var bool */ public $allowSpidersToIndex = 1; /** * true if page should be added to the main menu - * @var boolean + * @var bool */ public $addPageToMainMenu = 0; diff --git a/wcfsetup/install/files/lib/acp/form/PaidSubscriptionAddForm.class.php b/wcfsetup/install/files/lib/acp/form/PaidSubscriptionAddForm.class.php index f2b1b88ba4..411e1b3bac 100644 --- a/wcfsetup/install/files/lib/acp/form/PaidSubscriptionAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/PaidSubscriptionAddForm.class.php @@ -57,7 +57,7 @@ class PaidSubscriptionAddForm extends AbstractForm { /** * indicates if the subscription is disabled - * @var boolean + * @var bool */ public $isDisabled = 0; @@ -81,7 +81,7 @@ class PaidSubscriptionAddForm extends AbstractForm { /** * indicates if the subscription is permanent - * @var boolean + * @var bool */ public $subscriptionLengthPermanent = 0; @@ -99,7 +99,7 @@ class PaidSubscriptionAddForm extends AbstractForm { /** * indicates if the subscription is a recurring payment - * @var boolean + * @var bool */ public $isRecurring = 0; diff --git a/wcfsetup/install/files/lib/acp/form/StyleAddForm.class.php b/wcfsetup/install/files/lib/acp/form/StyleAddForm.class.php index 18336b88c8..9961428e50 100644 --- a/wcfsetup/install/files/lib/acp/form/StyleAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/StyleAddForm.class.php @@ -115,7 +115,7 @@ class StyleAddForm extends AbstractForm { /** * tainted style - * @var boolean + * @var bool */ public $isTainted = true; diff --git a/wcfsetup/install/files/lib/acp/form/StyleExportForm.class.php b/wcfsetup/install/files/lib/acp/form/StyleExportForm.class.php index b7bbda546d..6273f37d82 100644 --- a/wcfsetup/install/files/lib/acp/form/StyleExportForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/StyleExportForm.class.php @@ -22,25 +22,25 @@ class StyleExportForm extends AbstractForm { /** * true, if style has custom images - * @var boolean + * @var bool */ public $canExportImages = false; /** * true, if style has custom templates - * @var boolean + * @var bool */ public $canExportTemplates = false; /** * export style as installable package - * @var boolean + * @var bool */ public $exportAsPackage = false; /** * true, if templates should be exported - * @var boolean + * @var bool */ public $exportTemplates = false; diff --git a/wcfsetup/install/files/lib/acp/form/UserAddForm.class.php b/wcfsetup/install/files/lib/acp/form/UserAddForm.class.php index b3d2a3454e..224dd695f4 100644 --- a/wcfsetup/install/files/lib/acp/form/UserAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/UserAddForm.class.php @@ -100,7 +100,7 @@ class UserAddForm extends UserOptionListForm { /** * true to disable this signature - * @var boolean + * @var bool */ public $disableSignature = 0; diff --git a/wcfsetup/install/files/lib/acp/form/UserEditForm.class.php b/wcfsetup/install/files/lib/acp/form/UserEditForm.class.php index 6da105026c..29b8192567 100755 --- a/wcfsetup/install/files/lib/acp/form/UserEditForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/UserEditForm.class.php @@ -54,7 +54,7 @@ class UserEditForm extends UserAddForm { /** * ban status - * @var boolean + * @var bool */ public $banned = 0; @@ -84,7 +84,7 @@ class UserEditForm extends UserAddForm { /** * true to disable this avatar - * @var boolean + * @var bool */ public $disableAvatar = 0; @@ -108,7 +108,7 @@ class UserEditForm extends UserAddForm { /** * true to disable this cover photo - * @var boolean + * @var bool */ public $disableCoverPhoto = 0; @@ -126,19 +126,19 @@ class UserEditForm extends UserAddForm { /** * true to delete the current cover photo - * @var boolean + * @var bool */ public $deleteCoverPhoto = 0; /** * true to delete the current auth data - * @var boolean + * @var bool */ public $disconnect3rdParty = 0; /** * true to disable multifactor authentication - * @var boolean + * @var bool */ public $multifactorDisable = 0; diff --git a/wcfsetup/install/files/lib/acp/form/UserMailForm.class.php b/wcfsetup/install/files/lib/acp/form/UserMailForm.class.php index f92cfe0c45..c85775a32c 100755 --- a/wcfsetup/install/files/lib/acp/form/UserMailForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/UserMailForm.class.php @@ -23,7 +23,7 @@ use wcf\util\StringUtil; class UserMailForm extends AbstractForm { /** * enable html for message body - * @var boolean + * @var bool */ public $enableHTML = false; diff --git a/wcfsetup/install/files/lib/acp/form/UserOptionAddForm.class.php b/wcfsetup/install/files/lib/acp/form/UserOptionAddForm.class.php index 654abf8ec4..34b4a78d34 100644 --- a/wcfsetup/install/files/lib/acp/form/UserOptionAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/UserOptionAddForm.class.php @@ -85,13 +85,13 @@ class UserOptionAddForm extends AbstractForm { /** * field is required - * @var boolean + * @var bool */ public $required = 0; /** * shows this field in the registration process - * @var boolean + * @var bool */ public $askDuringRegistration = 0; @@ -109,7 +109,7 @@ class UserOptionAddForm extends AbstractForm { /** * field is searchable - * @var boolean + * @var bool */ public $searchable = 0; diff --git a/wcfsetup/install/files/lib/acp/form/UserOptionSetDefaultsForm.class.php b/wcfsetup/install/files/lib/acp/form/UserOptionSetDefaultsForm.class.php index 808d0f2c47..8bbc856993 100644 --- a/wcfsetup/install/files/lib/acp/form/UserOptionSetDefaultsForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/UserOptionSetDefaultsForm.class.php @@ -32,7 +32,7 @@ class UserOptionSetDefaultsForm extends AbstractForm { /** * true to apply change to existing users - * @var boolean + * @var bool */ public $applyChangesToExistingUsers = 0; diff --git a/wcfsetup/install/files/lib/acp/page/BoxListPage.class.php b/wcfsetup/install/files/lib/acp/page/BoxListPage.class.php index 5cb2d076ac..ea30ea9d2d 100644 --- a/wcfsetup/install/files/lib/acp/page/BoxListPage.class.php +++ b/wcfsetup/install/files/lib/acp/page/BoxListPage.class.php @@ -87,7 +87,7 @@ class BoxListPage extends SortablePage { /** * filters the list of boxes showing only custom boxes - * @var boolean + * @var bool */ public $originIsNotSystem = 0; diff --git a/wcfsetup/install/files/lib/acp/page/LanguageItemListPage.class.php b/wcfsetup/install/files/lib/acp/page/LanguageItemListPage.class.php index d6f49cfb20..69994ea5be 100644 --- a/wcfsetup/install/files/lib/acp/page/LanguageItemListPage.class.php +++ b/wcfsetup/install/files/lib/acp/page/LanguageItemListPage.class.php @@ -68,19 +68,19 @@ class LanguageItemListPage extends SortablePage { /** * search for custom values - * @var boolean + * @var bool */ public $hasCustomValue = 0; /** * search for disabled custom values - * @var boolean + * @var bool */ public $hasDisabledCustomValue = 0; /** * search for disabled custom values that have been automatically disabled in the past 7 days - * @var boolean + * @var bool */ public $hasRecentlyDisabledCustomValue = 0; diff --git a/wcfsetup/install/files/lib/acp/page/PackageInstallationConfirmPage.class.php b/wcfsetup/install/files/lib/acp/page/PackageInstallationConfirmPage.class.php index e8192d8c5f..8b303318be 100644 --- a/wcfsetup/install/files/lib/acp/page/PackageInstallationConfirmPage.class.php +++ b/wcfsetup/install/files/lib/acp/page/PackageInstallationConfirmPage.class.php @@ -42,14 +42,14 @@ class PackageInstallationConfirmPage extends AbstractPage { /** * package validation result - * @var boolean + * @var bool */ public $validationPassed = false; /** * true if the package to be installed was uploaded via the import style * form - * @var boolean + * @var bool */ public $installingImportedStyle = false; diff --git a/wcfsetup/install/files/lib/acp/page/PageListPage.class.php b/wcfsetup/install/files/lib/acp/page/PageListPage.class.php index ba23585fb3..6b21ce1b1d 100644 --- a/wcfsetup/install/files/lib/acp/page/PageListPage.class.php +++ b/wcfsetup/install/files/lib/acp/page/PageListPage.class.php @@ -88,19 +88,19 @@ class PageListPage extends SortablePage { /** * display 'Add Page' dialog on load - * @var boolean + * @var bool */ public $showPageAddDialog = 0; /** * filters the list of pages showing only custom pages - * @var boolean + * @var bool */ public $originIsNotSystem = 0; /** * filters the list of pages showing only pages with custom urls - * @var boolean + * @var bool */ public $controllerCustomURL = 0; diff --git a/wcfsetup/install/files/lib/acp/page/RebuildDataPage.class.php b/wcfsetup/install/files/lib/acp/page/RebuildDataPage.class.php index 392c23b394..569b4cb3fb 100644 --- a/wcfsetup/install/files/lib/acp/page/RebuildDataPage.class.php +++ b/wcfsetup/install/files/lib/acp/page/RebuildDataPage.class.php @@ -20,7 +20,7 @@ class RebuildDataPage extends AbstractPage { /** * disallow any rebuild actions unless `wcfN_user_storage` uses `utf8mb4` - * @var boolean + * @var bool */ public $convertEncoding = false; diff --git a/wcfsetup/install/files/lib/action/AJAXInvokeAction.class.php b/wcfsetup/install/files/lib/action/AJAXInvokeAction.class.php index 8bf9ff3520..7d118162b1 100644 --- a/wcfsetup/install/files/lib/action/AJAXInvokeAction.class.php +++ b/wcfsetup/install/files/lib/action/AJAXInvokeAction.class.php @@ -43,7 +43,7 @@ class AJAXInvokeAction extends AbstractSecureAction { /** * enables debug mode - * @var boolean + * @var bool */ public $inDebugMode = false; diff --git a/wcfsetup/install/files/lib/action/AbstractAction.class.php b/wcfsetup/install/files/lib/action/AbstractAction.class.php index 9dada94ccb..2ec46234bd 100644 --- a/wcfsetup/install/files/lib/action/AbstractAction.class.php +++ b/wcfsetup/install/files/lib/action/AbstractAction.class.php @@ -17,7 +17,7 @@ use wcf\system\WCF; abstract class AbstractAction implements IAction { /** * indicates if you need to be logged in to execute this action - * @var boolean + * @var bool */ public $loginRequired = false; diff --git a/wcfsetup/install/files/lib/core.functions.php b/wcfsetup/install/files/lib/core.functions.php index c3485c6104..1e66cdc709 100644 --- a/wcfsetup/install/files/lib/core.functions.php +++ b/wcfsetup/install/files/lib/core.functions.php @@ -606,7 +606,7 @@ EXPLANATION; * information removed. * * @param \Throwable|\Exception $e - * @param boolean $ignorePaths If set to `true`: Don't call `sanitizePath`. + * @param bool $ignorePaths If set to `true`: Don't call `sanitizePath`. * @return mixed[] */ function sanitizeStacktrace($e, $ignorePaths = false) { diff --git a/wcfsetup/install/files/lib/data/AbstractDatabaseObjectAction.class.php b/wcfsetup/install/files/lib/data/AbstractDatabaseObjectAction.class.php index 90a4071bf4..f621f887a5 100644 --- a/wcfsetup/install/files/lib/data/AbstractDatabaseObjectAction.class.php +++ b/wcfsetup/install/files/lib/data/AbstractDatabaseObjectAction.class.php @@ -424,7 +424,7 @@ abstract class AbstractDatabaseObjectAction implements IDatabaseObjectAction, ID * Reads an integer value and validates it. * * @param string $variableName - * @param boolean $allowEmpty + * @param bool $allowEmpty * @param string $arrayIndex */ protected function readInteger($variableName, $allowEmpty = false, $arrayIndex = '') { @@ -435,7 +435,7 @@ abstract class AbstractDatabaseObjectAction implements IDatabaseObjectAction, ID * Reads an integer array and validates it. * * @param string $variableName - * @param boolean $allowEmpty + * @param bool $allowEmpty * @param string $arrayIndex * @since 3.0 */ @@ -447,7 +447,7 @@ abstract class AbstractDatabaseObjectAction implements IDatabaseObjectAction, ID * Reads a string value and validates it. * * @param string $variableName - * @param boolean $allowEmpty + * @param bool $allowEmpty * @param string $arrayIndex */ protected function readString($variableName, $allowEmpty = false, $arrayIndex = '') { @@ -458,7 +458,7 @@ abstract class AbstractDatabaseObjectAction implements IDatabaseObjectAction, ID * Reads a string array and validates it. * * @param string $variableName - * @param boolean $allowEmpty + * @param bool $allowEmpty * @param string $arrayIndex * @since 3.0 */ @@ -470,7 +470,7 @@ abstract class AbstractDatabaseObjectAction implements IDatabaseObjectAction, ID * Reads a boolean value and validates it. * * @param string $variableName - * @param boolean $allowEmpty + * @param bool $allowEmpty * @param string $arrayIndex */ protected function readBoolean($variableName, $allowEmpty = false, $arrayIndex = '') { @@ -481,7 +481,7 @@ abstract class AbstractDatabaseObjectAction implements IDatabaseObjectAction, ID * Reads a json-encoded value and validates it. * * @param string $variableName - * @param boolean $allowEmpty + * @param bool $allowEmpty * @param string $arrayIndex */ protected function readJSON($variableName, $allowEmpty = false, $arrayIndex = '') { @@ -494,7 +494,7 @@ abstract class AbstractDatabaseObjectAction implements IDatabaseObjectAction, ID * variable will be always created with a sane value if it does not exist. * * @param string $variableName - * @param boolean $allowEmpty + * @param bool $allowEmpty * @param string $arrayIndex * @param int $type * @param int $structure diff --git a/wcfsetup/install/files/lib/data/DatabaseObject.class.php b/wcfsetup/install/files/lib/data/DatabaseObject.class.php index fc1e6f7fc5..6c2063fc23 100644 --- a/wcfsetup/install/files/lib/data/DatabaseObject.class.php +++ b/wcfsetup/install/files/lib/data/DatabaseObject.class.php @@ -19,7 +19,7 @@ abstract class DatabaseObject implements IIDObject, IStorableObject { /** * indicates if database table index is an identity column - * @var boolean + * @var bool */ protected static $databaseTableIndexIsIdentity = true; @@ -190,7 +190,7 @@ abstract class DatabaseObject implements IIDObject, IStorableObject { * @param DatabaseObject[] $objects * @param mixed $sortBy * @param string $sortOrder - * @param boolean $maintainIndexAssociation + * @param bool $maintainIndexAssociation */ public static function sort(&$objects, $sortBy, $sortOrder = 'ASC', $maintainIndexAssociation = true) { $sortArray = $objects2 = []; diff --git a/wcfsetup/install/files/lib/data/DatabaseObjectList.class.php b/wcfsetup/install/files/lib/data/DatabaseObjectList.class.php index 936d1e04f5..f121ac6354 100644 --- a/wcfsetup/install/files/lib/data/DatabaseObjectList.class.php +++ b/wcfsetup/install/files/lib/data/DatabaseObjectList.class.php @@ -82,7 +82,7 @@ abstract class DatabaseObjectList implements \Countable, ITraversableObject { /** * enables the automatic usage of the qualified shorthand - * @var boolean + * @var bool */ public $useQualifiedShorthand = true; diff --git a/wcfsetup/install/files/lib/data/IAccessibleObject.class.php b/wcfsetup/install/files/lib/data/IAccessibleObject.class.php index 0b3ebc2ca9..9c0b7070cd 100644 --- a/wcfsetup/install/files/lib/data/IAccessibleObject.class.php +++ b/wcfsetup/install/files/lib/data/IAccessibleObject.class.php @@ -17,7 +17,7 @@ interface IAccessibleObject { * Returns `true` if the given user can access the object. * * @param User $user checked user, if `null` active user is used instead - * @return boolean + * @return bool */ public function isAccessible(User $user = null); } diff --git a/wcfsetup/install/files/lib/data/IDatabaseObjectProcessor.class.php b/wcfsetup/install/files/lib/data/IDatabaseObjectProcessor.class.php index 5ecdb34315..d66f5c789e 100644 --- a/wcfsetup/install/files/lib/data/IDatabaseObjectProcessor.class.php +++ b/wcfsetup/install/files/lib/data/IDatabaseObjectProcessor.class.php @@ -30,7 +30,7 @@ interface IDatabaseObjectProcessor { * object. * * @param string $name - * @return boolean + * @return bool */ public function __isset($name); diff --git a/wcfsetup/install/files/lib/data/IMessage.class.php b/wcfsetup/install/files/lib/data/IMessage.class.php index b930e18f89..55547a71ae 100644 --- a/wcfsetup/install/files/lib/data/IMessage.class.php +++ b/wcfsetup/install/files/lib/data/IMessage.class.php @@ -35,7 +35,7 @@ interface IMessage extends IUserContent { /** * Returns true, if message is visible for current user. * - * @return boolean + * @return bool */ public function isVisible(); diff --git a/wcfsetup/install/files/lib/data/IObjectTreeNode.class.php b/wcfsetup/install/files/lib/data/IObjectTreeNode.class.php index 453f00950e..7109db8552 100644 --- a/wcfsetup/install/files/lib/data/IObjectTreeNode.class.php +++ b/wcfsetup/install/files/lib/data/IObjectTreeNode.class.php @@ -45,7 +45,7 @@ interface IObjectTreeNode extends \Countable, IIDObject, \RecursiveIterator { /** * Returns `true` if this node is the last sibling and `false` otherwise. * - * @return boolean + * @return bool */ public function isLastSibling(); diff --git a/wcfsetup/install/files/lib/data/IPollObject.class.php b/wcfsetup/install/files/lib/data/IPollObject.class.php index 968ee7d278..2729417f44 100644 --- a/wcfsetup/install/files/lib/data/IPollObject.class.php +++ b/wcfsetup/install/files/lib/data/IPollObject.class.php @@ -13,7 +13,7 @@ interface IPollObject { /** * Returns true if user can vote in polls. * - * @return boolean + * @return bool */ public function canVote(); } diff --git a/wcfsetup/install/files/lib/data/IStorableObject.class.php b/wcfsetup/install/files/lib/data/IStorableObject.class.php index 875a6518f8..0d9334fafd 100644 --- a/wcfsetup/install/files/lib/data/IStorableObject.class.php +++ b/wcfsetup/install/files/lib/data/IStorableObject.class.php @@ -24,7 +24,7 @@ interface IStorableObject { * is not NULL. * * @param string $name - * @return boolean + * @return bool */ public function __isset($name); @@ -52,7 +52,7 @@ interface IStorableObject { /** * Returns true if database table index is an identity column. * - * @return boolean + * @return bool */ public static function getDatabaseTableIndexIsIdentity(); diff --git a/wcfsetup/install/files/lib/data/TDatabaseObjectOptions.class.php b/wcfsetup/install/files/lib/data/TDatabaseObjectOptions.class.php index f255ecdcf7..38e2f72ce8 100644 --- a/wcfsetup/install/files/lib/data/TDatabaseObjectOptions.class.php +++ b/wcfsetup/install/files/lib/data/TDatabaseObjectOptions.class.php @@ -14,7 +14,7 @@ trait TDatabaseObjectOptions { /** * Returns true if at least one of the options required by this object is set. * - * @return boolean + * @return bool */ public function validateOptions() { if ($this->options) { diff --git a/wcfsetup/install/files/lib/data/TDatabaseObjectPermissions.class.php b/wcfsetup/install/files/lib/data/TDatabaseObjectPermissions.class.php index 25e1b36df3..a3711391da 100644 --- a/wcfsetup/install/files/lib/data/TDatabaseObjectPermissions.class.php +++ b/wcfsetup/install/files/lib/data/TDatabaseObjectPermissions.class.php @@ -16,7 +16,7 @@ trait TDatabaseObjectPermissions { * Returns true if the active user has at least one permission required * by this object. * - * @return boolean + * @return bool */ public function validatePermissions() { if ($this->permissions) { diff --git a/wcfsetup/install/files/lib/data/TMessageQuickReplyGuestDialogAction.class.php b/wcfsetup/install/files/lib/data/TMessageQuickReplyGuestDialogAction.class.php index 71201d40aa..61c919cd29 100644 --- a/wcfsetup/install/files/lib/data/TMessageQuickReplyGuestDialogAction.class.php +++ b/wcfsetup/install/files/lib/data/TMessageQuickReplyGuestDialogAction.class.php @@ -39,7 +39,7 @@ trait TMessageQuickReplyGuestDialogAction { * Reads a string value and validates it. * * @param string $variableName - * @param boolean $allowEmpty + * @param bool $allowEmpty * @param string $arrayIndex * @see AbstractDatabaseObjectAction::readString() */ diff --git a/wcfsetup/install/files/lib/data/TObjectTreeNode.class.php b/wcfsetup/install/files/lib/data/TObjectTreeNode.class.php index e79d0f2339..c4e78028a6 100644 --- a/wcfsetup/install/files/lib/data/TObjectTreeNode.class.php +++ b/wcfsetup/install/files/lib/data/TObjectTreeNode.class.php @@ -121,7 +121,7 @@ trait TObjectTreeNode { /** * Returns `true` if the node as any children and return `false` otherwise. * - * @return boolean + * @return bool */ public function hasChildren() { return !empty($this->children); @@ -139,7 +139,7 @@ trait TObjectTreeNode { /** * Returns `true` if this node is the last sibling and `false` otherwise. * - * @return boolean + * @return bool */ public function isLastSibling() { foreach ($this->parentNode as $key => $child) { @@ -182,7 +182,7 @@ trait TObjectTreeNode { /** * Returns `true` if current iteration position is valid and `false` otherwise. * - * @return boolean + * @return bool */ public function valid() { return isset($this->children[$this->index]); diff --git a/wcfsetup/install/files/lib/data/acp/session/ACPSession.class.php b/wcfsetup/install/files/lib/data/acp/session/ACPSession.class.php index 985e223735..95a3681c18 100644 --- a/wcfsetup/install/files/lib/data/acp/session/ACPSession.class.php +++ b/wcfsetup/install/files/lib/data/acp/session/ACPSession.class.php @@ -29,7 +29,7 @@ class ACPSession extends DatabaseObject { /** * Returns true if this session type supports persistent logins. * - * @return boolean + * @return bool */ public static function supportsPersistentLogins() { return false; diff --git a/wcfsetup/install/files/lib/data/acp/session/access/log/ACPSessionAccessLog.class.php b/wcfsetup/install/files/lib/data/acp/session/access/log/ACPSessionAccessLog.class.php index 45b5e96b07..b1c5e7d966 100644 --- a/wcfsetup/install/files/lib/data/acp/session/access/log/ACPSessionAccessLog.class.php +++ b/wcfsetup/install/files/lib/data/acp/session/access/log/ACPSessionAccessLog.class.php @@ -28,7 +28,7 @@ class ACPSessionAccessLog extends DatabaseObject { /** * Returns true if the URI of this log entry is protected. * - * @return boolean + * @return bool */ public function hasProtectedURI() { if ($this->requestMethod != 'GET' || !preg_match('/(\?|&)(page|form)=/', $this->requestURI)) { diff --git a/wcfsetup/install/files/lib/data/acp/session/log/ACPSessionLog.class.php b/wcfsetup/install/files/lib/data/acp/session/log/ACPSessionLog.class.php index 2a8111702e..1b94481a15 100644 --- a/wcfsetup/install/files/lib/data/acp/session/log/ACPSessionLog.class.php +++ b/wcfsetup/install/files/lib/data/acp/session/log/ACPSessionLog.class.php @@ -55,7 +55,7 @@ class ACPSessionLog extends DatabaseObject { /** * Returns true if this session is active. * - * @return boolean + * @return bool */ public function isActive() { return $this->active ? true : false; @@ -64,7 +64,7 @@ class ACPSessionLog extends DatabaseObject { /** * Returns true if this session is the active user session. * - * @return boolean + * @return bool */ public function isActiveUserSession() { if ($this->isActive() && $this->sessionID == WCF::getSession()->sessionID) { diff --git a/wcfsetup/install/files/lib/data/article/Article.class.php b/wcfsetup/install/files/lib/data/article/Article.class.php index 4c79501aa7..9b5d161636 100644 --- a/wcfsetup/install/files/lib/data/article/Article.class.php +++ b/wcfsetup/install/files/lib/data/article/Article.class.php @@ -78,7 +78,7 @@ class Article extends DatabaseObject implements ILinkableObject, IUserContent { /** * Returns true if the active user can delete this article. * - * @return boolean + * @return bool */ public function canDelete() { if (WCF::getSession()->getPermission('admin.content.article.canManageArticle')) { @@ -95,7 +95,7 @@ class Article extends DatabaseObject implements ILinkableObject, IUserContent { /** * Returns true if the active user has access to this article. * - * @return boolean + * @return bool */ public function canRead() { if ($this->isDeleted && !WCF::getSession()->getPermission('admin.content.article.canManageArticle')) { @@ -118,7 +118,7 @@ class Article extends DatabaseObject implements ILinkableObject, IUserContent { /** * Returns true if the current user can edit these article. * - * @return boolean + * @return bool * @since 5.2 */ public function canEdit() { @@ -142,7 +142,7 @@ class Article extends DatabaseObject implements ILinkableObject, IUserContent { /** * Returns true if the current user can publish these article. * - * @return boolean + * @return bool * @since 5.2 */ public function canPublish() { diff --git a/wcfsetup/install/files/lib/data/article/CategoryArticleList.class.php b/wcfsetup/install/files/lib/data/article/CategoryArticleList.class.php index bdd4195a7e..624b8d8145 100644 --- a/wcfsetup/install/files/lib/data/article/CategoryArticleList.class.php +++ b/wcfsetup/install/files/lib/data/article/CategoryArticleList.class.php @@ -18,7 +18,7 @@ class CategoryArticleList extends AccessibleArticleList { * Creates a new CategoryArticleList object. * * @param int|int[] $categoryID - * @param boolean $includeChildCategories + * @param bool $includeChildCategories * @throws \InvalidArgumentException */ public function __construct($categoryID, $includeChildCategories = false) { diff --git a/wcfsetup/install/files/lib/data/article/ViewableArticle.class.php b/wcfsetup/install/files/lib/data/article/ViewableArticle.class.php index 32fbe83839..b8aff7b141 100644 --- a/wcfsetup/install/files/lib/data/article/ViewableArticle.class.php +++ b/wcfsetup/install/files/lib/data/article/ViewableArticle.class.php @@ -76,7 +76,7 @@ class ViewableArticle extends DatabaseObjectDecorator { * Returns a specific article decorated as viewable article or `null` if it does not exist. * * @param int $articleID - * @param boolean $enableContentLoading Enables/disables the loading of article content objects + * @param bool $enableContentLoading Enables/disables the loading of article content objects * @return ViewableArticle */ public static function getArticle($articleID, $enableContentLoading = true) { @@ -171,7 +171,7 @@ class ViewableArticle extends DatabaseObjectDecorator { /** * Returns true if this article is new for the active user. * - * @return boolean + * @return bool */ public function isNew() { return $this->time > $this->getVisitTime(); @@ -198,7 +198,7 @@ class ViewableArticle extends DatabaseObjectDecorator { /** * Returns true if one or more labels are assigned to this article. * - * @return boolean + * @return bool */ public function hasLabels() { return !empty($this->labels); diff --git a/wcfsetup/install/files/lib/data/article/ViewableArticleList.class.php b/wcfsetup/install/files/lib/data/article/ViewableArticleList.class.php index 10b8d1750c..2a73057f86 100644 --- a/wcfsetup/install/files/lib/data/article/ViewableArticleList.class.php +++ b/wcfsetup/install/files/lib/data/article/ViewableArticleList.class.php @@ -29,7 +29,7 @@ class ViewableArticleList extends ArticleList { /** * enables/disables the loading of article content objects - * @var boolean + * @var bool */ protected $contentLoading = true; @@ -102,7 +102,7 @@ class ViewableArticleList extends ArticleList { /** * Enables/disables the loading of article content objects. * - * @param boolean $enable + * @param bool $enable */ public function enableContentLoading($enable = true) { $this->contentLoading = $enable; diff --git a/wcfsetup/install/files/lib/data/article/category/ArticleCategory.class.php b/wcfsetup/install/files/lib/data/article/category/ArticleCategory.class.php index 4107c7d6a1..f2fd482ae9 100644 --- a/wcfsetup/install/files/lib/data/article/category/ArticleCategory.class.php +++ b/wcfsetup/install/files/lib/data/article/category/ArticleCategory.class.php @@ -171,7 +171,7 @@ class ArticleCategory extends AbstractDecoratedCategory implements IAccessibleOb /** * Returns true if the active user has subscribed to this category. * - * @return boolean + * @return bool * @since 5.2 */ public function isSubscribed() { diff --git a/wcfsetup/install/files/lib/data/attachment/AdministrativeAttachment.class.php b/wcfsetup/install/files/lib/data/attachment/AdministrativeAttachment.class.php index 253a93e097..b312f0223b 100644 --- a/wcfsetup/install/files/lib/data/attachment/AdministrativeAttachment.class.php +++ b/wcfsetup/install/files/lib/data/attachment/AdministrativeAttachment.class.php @@ -29,7 +29,7 @@ class AdministrativeAttachment extends DatabaseObjectDecorator { /** * true if container object has been loaded - * @var boolean + * @var bool */ protected $containerObjectLoaded = false; diff --git a/wcfsetup/install/files/lib/data/attachment/Attachment.class.php b/wcfsetup/install/files/lib/data/attachment/Attachment.class.php index ee51553341..047386d772 100644 --- a/wcfsetup/install/files/lib/data/attachment/Attachment.class.php +++ b/wcfsetup/install/files/lib/data/attachment/Attachment.class.php @@ -46,13 +46,13 @@ use wcf\util\StringUtil; class Attachment extends DatabaseObject implements ILinkableObject, IRouteController, IThumbnailFile { /** * indicates if the attachment is embedded - * @var boolean + * @var bool */ protected $embedded = false; /** * user permissions for attachment access - * @var boolean[] + * @var bool[] */ protected $permissions = []; @@ -70,7 +70,7 @@ class Attachment extends DatabaseObject implements ILinkableObject, IRouteContro /** * Returns true if a user has the permission to download this attachment. * - * @return boolean + * @return bool */ public function canDownload() { return $this->getPermission('canDownload'); @@ -80,7 +80,7 @@ class Attachment extends DatabaseObject implements ILinkableObject, IRouteContro * Returns true if a user has the permission to view the preview of this * attachment. * - * @return boolean + * @return bool */ public function canViewPreview() { return $this->getPermission('canViewPreview'); @@ -90,7 +90,7 @@ class Attachment extends DatabaseObject implements ILinkableObject, IRouteContro * Returns true if a user has the permission to delete the preview of this * attachment. * - * @return boolean + * @return bool */ public function canDelete() { return $this->getPermission('canDelete'); @@ -100,7 +100,7 @@ class Attachment extends DatabaseObject implements ILinkableObject, IRouteContro * Checks permissions. * * @param string $permission - * @return boolean + * @return bool */ protected function getPermission($permission) { if (!isset($this->permissions[$permission])) { @@ -126,7 +126,7 @@ class Attachment extends DatabaseObject implements ILinkableObject, IRouteContro /** * Sets the permissions for attachment access. * - * @param boolean[] $permissions + * @param bool[] $permissions */ public function setPermissions(array $permissions) { $this->permissions = $permissions; @@ -233,7 +233,7 @@ class Attachment extends DatabaseObject implements ILinkableObject, IRouteContro /** * Returns true if this attachment is embedded. * - * @return boolean + * @return bool */ public function isEmbedded() { return $this->embedded; @@ -242,7 +242,7 @@ class Attachment extends DatabaseObject implements ILinkableObject, IRouteContro /** * Returns true if this attachment should be shown as an image. * - * @return boolean + * @return bool */ public function showAsImage() { if ($this->isImage) { @@ -259,7 +259,7 @@ class Attachment extends DatabaseObject implements ILinkableObject, IRouteContro /** * Returns true if this attachment has a thumbnail. * - * @return boolean + * @return bool */ public function hasThumbnail() { return ($this->thumbnailType ? true : false); @@ -268,7 +268,7 @@ class Attachment extends DatabaseObject implements ILinkableObject, IRouteContro /** * Returns true if this attachment should be shown as a file. * - * @return boolean + * @return bool */ public function showAsFile() { return !$this->showAsImage(); diff --git a/wcfsetup/install/files/lib/data/attachment/GroupedAttachmentList.class.php b/wcfsetup/install/files/lib/data/attachment/GroupedAttachmentList.class.php index e88574df98..586d47481d 100644 --- a/wcfsetup/install/files/lib/data/attachment/GroupedAttachmentList.class.php +++ b/wcfsetup/install/files/lib/data/attachment/GroupedAttachmentList.class.php @@ -69,7 +69,7 @@ class GroupedAttachmentList extends AttachmentList { /** * Sets the permissions for attachment access. * - * @param boolean[] $permissions + * @param bool[] $permissions */ public function setPermissions(array $permissions) { foreach ($this->objects as $attachment) { diff --git a/wcfsetup/install/files/lib/data/bbcode/BBCode.class.php b/wcfsetup/install/files/lib/data/bbcode/BBCode.class.php index e068fc0b24..7bcdb3c391 100644 --- a/wcfsetup/install/files/lib/data/bbcode/BBCode.class.php +++ b/wcfsetup/install/files/lib/data/bbcode/BBCode.class.php @@ -113,7 +113,7 @@ class BBCode extends ProcessibleDatabaseObject implements IRouteController { * * @param string $bbcodeTag * @param string[] $allowedBBCodeTags - * @return boolean + * @return bool */ public static function isAllowedBBCode($bbcodeTag, array $allowedBBCodeTags) { // check if bbcode is unknown or disabled @@ -137,7 +137,7 @@ class BBCode extends ProcessibleDatabaseObject implements IRouteController { /** * Returns true if this BBCode can be deleted. * - * @return boolean + * @return bool */ public function canDelete() { if ($this->originIsSystem) { 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 e54a4604f1..ca62a874da 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 @@ -58,7 +58,7 @@ class BBCodeMediaProvider extends DatabaseObject implements IRouteController { * Returns true if given URL is a media URL. * * @param string $url - * @return boolean + * @return bool */ public static function isMediaURL($url) { foreach (static::getCache() as $provider) { @@ -74,7 +74,7 @@ class BBCodeMediaProvider extends DatabaseObject implements IRouteController { * Checks whether this provider matches the given URL. * * @param string $url - * @return boolean + * @return bool */ public function matches($url) { $lines = explode("\n", StringUtil::unifyNewlines($this->regex)); diff --git a/wcfsetup/install/files/lib/data/box/Box.class.php b/wcfsetup/install/files/lib/data/box/Box.class.php index 981df16869..bd6bed4967 100644 --- a/wcfsetup/install/files/lib/data/box/Box.class.php +++ b/wcfsetup/install/files/lib/data/box/Box.class.php @@ -158,7 +158,7 @@ class Box extends DatabaseObject { /** * Returns true if the active user can delete this box. * - * @return boolean + * @return bool */ public function canDelete() { if (WCF::getSession()->getPermission('admin.content.cms.canManageBox') && !$this->originIsSystem) { @@ -288,7 +288,7 @@ class Box extends DatabaseObject { /** * Returns false if this box has no content. * - * @return boolean + * @return bool */ public function hasContent() { if ($this->boxType == 'system') { @@ -404,7 +404,7 @@ class Box extends DatabaseObject { /** * Returns true if this box has a link. * - * @return boolean + * @return bool */ public function hasLink() { if ($this->boxType == 'system') { @@ -506,7 +506,7 @@ class Box extends DatabaseObject { /** * Returns true if this box is accessible by current user. * - * @return boolean + * @return bool */ public function isAccessible() { return SimpleAclResolver::getInstance()->canAccess('com.woltlab.wcf.box', $this->boxID); @@ -524,7 +524,7 @@ class Box extends DatabaseObject { /** * Returns true if an edit button should be displayed for this box. * - * @return boolean + * @return bool * @since 5.2 */ public function showEditButton() { diff --git a/wcfsetup/install/files/lib/data/box/BoxList.class.php b/wcfsetup/install/files/lib/data/box/BoxList.class.php index a1f0d902f3..9fc35ded60 100644 --- a/wcfsetup/install/files/lib/data/box/BoxList.class.php +++ b/wcfsetup/install/files/lib/data/box/BoxList.class.php @@ -26,7 +26,7 @@ class BoxList extends DatabaseObjectList { /** * enables/disables the loading of box content objects - * @var boolean + * @var bool */ protected $contentLoading = false; @@ -62,7 +62,7 @@ class BoxList extends DatabaseObjectList { /** * Enables/disables the loading of box content objects. * - * @param boolean $enable + * @param bool $enable */ public function enableContentLoading($enable = true) { $this->contentLoading = $enable; diff --git a/wcfsetup/install/files/lib/data/box/content/BoxContentList.class.php b/wcfsetup/install/files/lib/data/box/content/BoxContentList.class.php index 2c83939cb0..908fa22297 100644 --- a/wcfsetup/install/files/lib/data/box/content/BoxContentList.class.php +++ b/wcfsetup/install/files/lib/data/box/content/BoxContentList.class.php @@ -26,13 +26,13 @@ class BoxContentList extends DatabaseObjectList { /** * enables/disables the loading of box content images - * @var boolean + * @var bool */ protected $imageLoading = false; /** * enables/disables the loading of embedded objects - * @var boolean + * @var bool */ protected $embeddedObjectLoading = false; @@ -78,7 +78,7 @@ class BoxContentList extends DatabaseObjectList { /** * Enables/disables the loading of box content images. * - * @param boolean $enable + * @param bool $enable */ public function enableImageLoading($enable = true) { $this->imageLoading = $enable; @@ -87,7 +87,7 @@ class BoxContentList extends DatabaseObjectList { /** * Enables/disables the loading of embedded objects. * - * @param boolean $enable + * @param bool $enable */ public function enableEmbeddedObjectLoading($enable = true) { $this->embeddedObjectLoading = $enable; diff --git a/wcfsetup/install/files/lib/data/captcha/question/CaptchaQuestion.class.php b/wcfsetup/install/files/lib/data/captcha/question/CaptchaQuestion.class.php index 8fb2c0b55a..2997c698a7 100644 --- a/wcfsetup/install/files/lib/data/captcha/question/CaptchaQuestion.class.php +++ b/wcfsetup/install/files/lib/data/captcha/question/CaptchaQuestion.class.php @@ -33,7 +33,7 @@ class CaptchaQuestion extends DatabaseObject { * Returns true if the given user input is an answer to this question. * * @param string $answer - * @return boolean + * @return bool */ public function isAnswer($answer) { $answers = explode("\n", StringUtil::unifyNewlines(WCF::getLanguage()->get($this->answers))); diff --git a/wcfsetup/install/files/lib/data/category/Category.class.php b/wcfsetup/install/files/lib/data/category/Category.class.php index 913eee4c3f..2337a56331 100644 --- a/wcfsetup/install/files/lib/data/category/Category.class.php +++ b/wcfsetup/install/files/lib/data/category/Category.class.php @@ -58,7 +58,7 @@ class Category extends ProcessibleDatabaseObject implements IPermissionObject, I /** * acl permissions of this category for the active user * @deprecated - * @var boolean[] + * @var bool[] */ protected $permissions = null; @@ -71,7 +71,7 @@ class Category extends ProcessibleDatabaseObject implements IPermissionObject, I /** * fallback return value used in Category::getPermission() - * @var boolean + * @var bool */ protected $defaultPermission = false; @@ -189,7 +189,7 @@ class Category extends ProcessibleDatabaseObject implements IPermissionObject, I * Returns true if given category is a parent category of this category. * * @param Category $category - * @return boolean + * @return bool */ public function isParentCategory(Category $category) { return in_array($category, $this->getParentCategories()); diff --git a/wcfsetup/install/files/lib/data/category/CategoryNode.class.php b/wcfsetup/install/files/lib/data/category/CategoryNode.class.php index 64a4c329e7..60c1c31840 100644 --- a/wcfsetup/install/files/lib/data/category/CategoryNode.class.php +++ b/wcfsetup/install/files/lib/data/category/CategoryNode.class.php @@ -27,7 +27,7 @@ class CategoryNode extends DatabaseObjectDecorator implements IObjectTreeNode { * Returns true if this category is visible in a nested menu item list. * * @param AbstractDecoratedCategory $activeCategory - * @return boolean + * @return bool * @since 5.2 */ public function isVisibleInNestedList(AbstractDecoratedCategory $activeCategory = null) { diff --git a/wcfsetup/install/files/lib/data/category/CategoryNodeTree.class.php b/wcfsetup/install/files/lib/data/category/CategoryNodeTree.class.php index c6d46cb336..dec3ef9ade 100644 --- a/wcfsetup/install/files/lib/data/category/CategoryNodeTree.class.php +++ b/wcfsetup/install/files/lib/data/category/CategoryNodeTree.class.php @@ -20,7 +20,7 @@ class CategoryNodeTree implements \IteratorAggregate { /** * if true, disabled categories are also included in the node tree - * @var boolean + * @var bool */ protected $includeDisabledCategories = false; @@ -59,7 +59,7 @@ class CategoryNodeTree implements \IteratorAggregate { * * @param string $objectType * @param int $parentCategoryID - * @param boolean $includeDisabledCategories + * @param bool $includeDisabledCategories * @param int[] $excludedCategoryIDs * @throws SystemException */ @@ -178,7 +178,7 @@ class CategoryNodeTree implements \IteratorAggregate { * to be included in this tree. * * @param CategoryNode $categoryNode - * @return boolean + * @return bool */ protected function isIncluded(CategoryNode $categoryNode) { return (!$categoryNode->isDisabled || $this->includeDisabledCategories) && !in_array($categoryNode->categoryID, $this->excludedCategoryIDs); diff --git a/wcfsetup/install/files/lib/data/comment/StructuredComment.class.php b/wcfsetup/install/files/lib/data/comment/StructuredComment.class.php index 3aff2e710c..26b8f49e93 100644 --- a/wcfsetup/install/files/lib/data/comment/StructuredComment.class.php +++ b/wcfsetup/install/files/lib/data/comment/StructuredComment.class.php @@ -30,13 +30,13 @@ class StructuredComment extends DatabaseObjectDecorator implements \Countable, \ /** * deletable by current user - * @var boolean + * @var bool */ public $deletable = false; /** * editable by current user - * @var boolean + * @var bool */ public $editable = false; @@ -119,7 +119,7 @@ class StructuredComment extends DatabaseObjectDecorator implements \Countable, \ /** * Sets deletable state. * - * @param boolean $deletable + * @param bool $deletable */ public function setIsDeletable($deletable) { $this->deletable = $deletable; @@ -128,7 +128,7 @@ class StructuredComment extends DatabaseObjectDecorator implements \Countable, \ /** * Sets editable state. * - * @param boolean $editable + * @param bool $editable */ public function setIsEditable($editable) { $this->editable = $editable; @@ -137,7 +137,7 @@ class StructuredComment extends DatabaseObjectDecorator implements \Countable, \ /** * Returns true if the comment is deletable by current user. * - * @return boolean + * @return bool */ public function isDeletable() { return $this->deletable; @@ -146,7 +146,7 @@ class StructuredComment extends DatabaseObjectDecorator implements \Countable, \ /** * Returns true if the comment is editable by current user. * - * @return boolean + * @return bool */ public function isEditable() { return $this->editable; diff --git a/wcfsetup/install/files/lib/data/comment/StructuredCommentList.class.php b/wcfsetup/install/files/lib/data/comment/StructuredCommentList.class.php index 070c3538b9..0795166e12 100644 --- a/wcfsetup/install/files/lib/data/comment/StructuredCommentList.class.php +++ b/wcfsetup/install/files/lib/data/comment/StructuredCommentList.class.php @@ -68,7 +68,7 @@ class StructuredCommentList extends CommentList { /** * enables/disables the loading of responses - * @var boolean + * @var bool */ public $responseLoading = true; diff --git a/wcfsetup/install/files/lib/data/comment/response/StructuredCommentResponse.class.php b/wcfsetup/install/files/lib/data/comment/response/StructuredCommentResponse.class.php index b10f59f12b..2168b147af 100644 --- a/wcfsetup/install/files/lib/data/comment/response/StructuredCommentResponse.class.php +++ b/wcfsetup/install/files/lib/data/comment/response/StructuredCommentResponse.class.php @@ -23,13 +23,13 @@ class StructuredCommentResponse extends DatabaseObjectDecorator { /** * deletable by current user - * @var boolean + * @var bool */ public $deletable = false; /** * editable for current user - * @var boolean + * @var bool */ public $editable = false; @@ -93,7 +93,7 @@ class StructuredCommentResponse extends DatabaseObjectDecorator { /** * Sets deletable state. * - * @param boolean $deletable + * @param bool $deletable */ public function setIsDeletable($deletable) { $this->deletable = $deletable; @@ -102,7 +102,7 @@ class StructuredCommentResponse extends DatabaseObjectDecorator { /** * Sets editable state. * - * @param boolean $editable + * @param bool $editable */ public function setIsEditable($editable) { $this->editable = $editable; @@ -111,7 +111,7 @@ class StructuredCommentResponse extends DatabaseObjectDecorator { /** * Returns true if the response is deletable by current user. * - * @return boolean + * @return bool */ public function isDeletable() { return $this->deletable; @@ -120,7 +120,7 @@ class StructuredCommentResponse extends DatabaseObjectDecorator { /** * Returns true if the response is editable by current user. * - * @return boolean + * @return bool */ public function isEditable() { return $this->editable; diff --git a/wcfsetup/install/files/lib/data/cronjob/Cronjob.class.php b/wcfsetup/install/files/lib/data/cronjob/Cronjob.class.php index 8af9cbb200..07bc5fcca0 100644 --- a/wcfsetup/install/files/lib/data/cronjob/Cronjob.class.php +++ b/wcfsetup/install/files/lib/data/cronjob/Cronjob.class.php @@ -98,7 +98,7 @@ class Cronjob extends DatabaseObject { /** * Returns true if current user may edit this cronjob. * - * @return boolean + * @return bool */ public function isEditable() { return $this->canBeEdited; @@ -107,7 +107,7 @@ class Cronjob extends DatabaseObject { /** * Returns true if current user may delete this cronjob. * - * @return boolean + * @return bool */ public function isDeletable() { return $this->canBeEdited && $this->canBeDisabled; @@ -116,7 +116,7 @@ class Cronjob extends DatabaseObject { /** * Returns true if current user may enable or disable this cronjob. * - * @return boolean + * @return bool */ public function canBeDisabled() { return $this->canBeDisabled; diff --git a/wcfsetup/install/files/lib/data/custom/option/CustomOption.class.php b/wcfsetup/install/files/lib/data/custom/option/CustomOption.class.php index c7164b45ab..7727907c77 100644 --- a/wcfsetup/install/files/lib/data/custom/option/CustomOption.class.php +++ b/wcfsetup/install/files/lib/data/custom/option/CustomOption.class.php @@ -73,7 +73,7 @@ abstract class CustomOption extends Option implements ITitledObject { /** * Returns true if the option is visible * - * @return boolean + * @return bool */ public function isVisible() { return !$this->isDisabled; @@ -121,7 +121,7 @@ abstract class CustomOption extends Option implements ITitledObject { /** * Returns the formatted value of this option. * - * @param boolean $forcePlaintext + * @param bool $forcePlaintext * @return string */ public function getFormattedOptionValue($forcePlaintext = false) { @@ -190,7 +190,7 @@ abstract class CustomOption extends Option implements ITitledObject { * Returns true if this option can be deleted, defaults to false for * options created through the package system. * - * @return boolean + * @return bool */ public function canDelete() { return !$this->originIsSystem; @@ -199,7 +199,7 @@ abstract class CustomOption extends Option implements ITitledObject { /** * Returns true if this option represents a message-type value. * - * @return boolean + * @return bool */ public function isMessage() { return ($this->optionType === 'textarea' || $this->optionType === 'message'); diff --git a/wcfsetup/install/files/lib/data/devtools/project/DevtoolsProject.class.php b/wcfsetup/install/files/lib/data/devtools/project/DevtoolsProject.class.php index a86a00b3b1..61223865f2 100644 --- a/wcfsetup/install/files/lib/data/devtools/project/DevtoolsProject.class.php +++ b/wcfsetup/install/files/lib/data/devtools/project/DevtoolsProject.class.php @@ -33,7 +33,7 @@ class DevtoolsProject extends DatabaseObject { protected $didFetchPackage = false; /** - * @var boolean + * @var bool */ protected $isCore; @@ -72,7 +72,7 @@ class DevtoolsProject extends DatabaseObject { * Validates the repository and returns the first error message, or * an empty string on success. * - * @param boolean $pathOnly + * @param bool $pathOnly * @return string */ public function validate($pathOnly = false) { @@ -90,7 +90,7 @@ class DevtoolsProject extends DatabaseObject { /** * Returns true if this project appears to be `WoltLab Suite Core`. * - * @return boolean + * @return bool */ public function isCore() { if ($this->isCore === null) { @@ -239,7 +239,7 @@ class DevtoolsProject extends DatabaseObject { * Returns true if the path appears to point to `WoltLab Suite Core`. * * @param string $path - * @return boolean + * @return bool */ public static function pathIsCore($path) { return (is_dir($path . 'com.woltlab.wcf') && file_exists($path . 'com.woltlab.wcf/package.xml')); 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 8a4bb265e2..e4eb0156c5 100644 --- a/wcfsetup/install/files/lib/data/label/group/ViewableLabelGroup.class.php +++ b/wcfsetup/install/files/lib/data/label/group/ViewableLabelGroup.class.php @@ -83,7 +83,7 @@ class ViewableLabelGroup extends DatabaseObjectDecorator implements \Countable, * Returns true, if label is known. * * @param int $labelID - * @return boolean + * @return bool */ public function isValid($labelID) { return isset($this->labels[$labelID]); @@ -95,7 +95,7 @@ class ViewableLabelGroup extends DatabaseObjectDecorator implements \Countable, * * @param int $optionID * @param User $user - * @return boolean + * @return bool */ public function getPermission($optionID, User $user = null) { if ($user === null) $user = WCF::getUser(); @@ -237,7 +237,7 @@ class ViewableLabelGroup extends DatabaseObjectDecorator implements \Countable, /** * Returns true if any permissions have been set for this label group. * - * @return boolean + * @return bool */ public function hasPermissions() { return !empty($this->permissions['group']) || !empty($this->permissions['user']); diff --git a/wcfsetup/install/files/lib/data/language/Language.class.php b/wcfsetup/install/files/lib/data/language/Language.class.php index 1916940aef..987a443a0f 100644 --- a/wcfsetup/install/files/lib/data/language/Language.class.php +++ b/wcfsetup/install/files/lib/data/language/Language.class.php @@ -84,7 +84,7 @@ class Language extends DatabaseObject { * Returns a single language variable. * * @param string $item - * @param boolean $optional + * @param bool $optional * @return string */ public function get($item, $optional = false) { @@ -145,7 +145,7 @@ class Language extends DatabaseObject { * * @param string $item * @param array $variables - * @param boolean $optional + * @param bool $optional * @return string result */ public function getDynamicVariable($item, array $variables = [], $optional = false) { @@ -205,7 +205,7 @@ class Language extends DatabaseObject { * Loads category files. * * @param string $category - * @return boolean + * @return bool */ protected function loadCategory($category) { if (!LanguageFactory::getInstance()->isValidCategory($category)) { @@ -245,7 +245,7 @@ class Language extends DatabaseObject { * Returns true if given items includes template scripting. * * @param string $item - * @return boolean + * @return bool */ public function isDynamicItem($item) { if (isset($this->dynamicItems[$item])) { diff --git a/wcfsetup/install/files/lib/data/language/LanguageEditor.class.php b/wcfsetup/install/files/lib/data/language/LanguageEditor.class.php index 089c5918c3..e5d7e439cb 100644 --- a/wcfsetup/install/files/lib/data/language/LanguageEditor.class.php +++ b/wcfsetup/install/files/lib/data/language/LanguageEditor.class.php @@ -120,7 +120,7 @@ class LanguageEditor extends DatabaseObjectEditor implements IEditableCachedObje * Exports this language. * * @param int[] $packageIDArray - * @param boolean $exportCustomValues + * @param bool $exportCustomValues */ public function export($packageIDArray = [], $exportCustomValues = false) { $conditions = new PreparedStatementConditionBuilder(); @@ -236,8 +236,8 @@ class LanguageEditor extends DatabaseObjectEditor implements IEditableCachedObje * * @param XML $xml * @param int $packageID - * @param boolean $updateFiles - * @param boolean $updateExistingItems + * @param bool $updateFiles + * @param bool $updateExistingItems * @throws \InvalidArgumentException if given XML file is invalid */ public function updateFromXML(XML $xml, $packageID, $updateFiles = true, $updateExistingItems = true) { diff --git a/wcfsetup/install/files/lib/data/like/ILikeObjectTypeProvider.class.php b/wcfsetup/install/files/lib/data/like/ILikeObjectTypeProvider.class.php index 03da869ad2..b1ecfa1a34 100644 --- a/wcfsetup/install/files/lib/data/like/ILikeObjectTypeProvider.class.php +++ b/wcfsetup/install/files/lib/data/like/ILikeObjectTypeProvider.class.php @@ -16,7 +16,7 @@ interface ILikeObjectTypeProvider extends IObjectTypeProvider { * Returns true if the active user can access the given likeable object. * * @param ILikeObject $object - * @return boolean + * @return bool */ public function checkPermissions(ILikeObject $object); } diff --git a/wcfsetup/install/files/lib/data/like/IRestrictedLikeObjectTypeProvider.class.php b/wcfsetup/install/files/lib/data/like/IRestrictedLikeObjectTypeProvider.class.php index fcd9fdb8fd..083e6052a3 100644 --- a/wcfsetup/install/files/lib/data/like/IRestrictedLikeObjectTypeProvider.class.php +++ b/wcfsetup/install/files/lib/data/like/IRestrictedLikeObjectTypeProvider.class.php @@ -17,7 +17,7 @@ interface IRestrictedLikeObjectTypeProvider extends ILikeObjectTypeProvider { * Returns true if the active user can like the provided object. * * @param ILikeObject $object - * @return boolean + * @return bool */ public function canLike(ILikeObject $object); @@ -25,7 +25,7 @@ interface IRestrictedLikeObjectTypeProvider extends ILikeObjectTypeProvider { * Returns true if the active user can view the likes of to the provided object. * * @param ILikeObject $object - * @return boolean + * @return bool */ public function canViewLikes(ILikeObject $object); } diff --git a/wcfsetup/install/files/lib/data/like/Like.class.php b/wcfsetup/install/files/lib/data/like/Like.class.php index db580a30fc..ad94790dd4 100644 --- a/wcfsetup/install/files/lib/data/like/Like.class.php +++ b/wcfsetup/install/files/lib/data/like/Like.class.php @@ -96,7 +96,7 @@ class Like extends DatabaseObject { /** * Returns true, if like value is a like. * - * @return boolean + * @return bool * @deprecated 5.2 */ public function isLike() { @@ -106,7 +106,7 @@ class Like extends DatabaseObject { /** * Returns true, if like value is a dislike. * - * @return boolean + * @return bool * @deprecated 5.2 */ public function isDislike() { diff --git a/wcfsetup/install/files/lib/data/like/ViewableLike.class.php b/wcfsetup/install/files/lib/data/like/ViewableLike.class.php index ab6b643a3b..8dbde7c4be 100644 --- a/wcfsetup/install/files/lib/data/like/ViewableLike.class.php +++ b/wcfsetup/install/files/lib/data/like/ViewableLike.class.php @@ -31,7 +31,7 @@ class ViewableLike extends DatabaseObjectDecorator { /** * accessible by current user - * @var boolean + * @var bool */ protected $isAccessible = false; @@ -64,7 +64,7 @@ class ViewableLike extends DatabaseObjectDecorator { /** * Returns true if like is accessible by current user. * - * @return boolean + * @return bool */ public function isAccessible() { return $this->isAccessible; diff --git a/wcfsetup/install/files/lib/data/media/Media.class.php b/wcfsetup/install/files/lib/data/media/Media.class.php index d36d7d0ab9..9569232537 100644 --- a/wcfsetup/install/files/lib/data/media/Media.class.php +++ b/wcfsetup/install/files/lib/data/media/Media.class.php @@ -206,7 +206,7 @@ class Media extends DatabaseObject implements ILinkableObject, IRouteController, /** * Returns true if the media file can be accessed by the active user. * - * @return boolean + * @return bool */ public function isAccessible() { if ($this->canManage()) { @@ -237,7 +237,7 @@ class Media extends DatabaseObject implements ILinkableObject, IRouteController, * Returns true if a thumbnail version with the given size is available. * * @param string $size - * @return boolean + * @return bool * @throws \InvalidArgumentException */ public function hasThumbnail($size) { diff --git a/wcfsetup/install/files/lib/data/menu/Menu.class.php b/wcfsetup/install/files/lib/data/menu/Menu.class.php index 6bd4c32691..0d8b83e4c9 100644 --- a/wcfsetup/install/files/lib/data/menu/Menu.class.php +++ b/wcfsetup/install/files/lib/data/menu/Menu.class.php @@ -37,7 +37,7 @@ class Menu extends DatabaseObject implements ITitledObject { /** * Returns true if the active user can delete this menu. * - * @return boolean + * @return bool */ public function canDelete() { if (WCF::getSession()->getPermission('admin.content.cms.canManageMenu') && !$this->originIsSystem) { @@ -59,7 +59,7 @@ class Menu extends DatabaseObject implements ITitledObject { /** * Returns false if this menu has no content (has menu items). * - * @return boolean + * @return bool */ public function hasContent() { return $this->getMenuItemNodeTree()->getVisibleItemCount() > 0; diff --git a/wcfsetup/install/files/lib/data/menu/item/MenuItem.class.php b/wcfsetup/install/files/lib/data/menu/item/MenuItem.class.php index cad60af545..2dcf7ff31c 100644 --- a/wcfsetup/install/files/lib/data/menu/item/MenuItem.class.php +++ b/wcfsetup/install/files/lib/data/menu/item/MenuItem.class.php @@ -55,7 +55,7 @@ class MenuItem extends DatabaseObject implements ITitledObject { /** * Returns true if the active user can delete this menu item. * - * @return boolean + * @return bool */ public function canDelete() { if (WCF::getSession()->getPermission('admin.content.cms.canManageMenu') && !$this->originIsSystem) { @@ -68,7 +68,7 @@ class MenuItem extends DatabaseObject implements ITitledObject { /** * Returns true if the active user can disable this menu item. * - * @return boolean + * @return bool */ public function canDisable() { if (WCF::getSession()->getPermission('admin.content.cms.canManageMenu')) { @@ -115,7 +115,7 @@ class MenuItem extends DatabaseObject implements ITitledObject { /** * Returns false if this item should be hidden from menu. * - * @return boolean + * @return bool */ public function isVisible() { if ($this->isDisabled) { @@ -154,7 +154,7 @@ class MenuItem extends DatabaseObject implements ITitledObject { /** * Returns true if this item is an external link. * - * @return boolean + * @return bool */ public function isExternalLink() { return ($this->externalURL ? !ApplicationHandler::getInstance()->isInternalURL($this->externalURL) : false); diff --git a/wcfsetup/install/files/lib/data/menu/item/MenuItemNode.class.php b/wcfsetup/install/files/lib/data/menu/item/MenuItemNode.class.php index 55f1896e3a..77fdfa01f0 100644 --- a/wcfsetup/install/files/lib/data/menu/item/MenuItemNode.class.php +++ b/wcfsetup/install/files/lib/data/menu/item/MenuItemNode.class.php @@ -29,7 +29,7 @@ class MenuItemNode extends DatabaseObjectDecorator implements \Countable, \Recur /** * true if item or one of its children is active - * @var boolean + * @var bool */ protected $isActive = false; @@ -97,7 +97,7 @@ class MenuItemNode extends DatabaseObjectDecorator implements \Countable, \Recur /** * Returns true if this element is the last sibling. * - * @return boolean + * @return bool */ public function isLastSibling() { foreach ($this->parentNode as $key => $child) { @@ -140,7 +140,7 @@ class MenuItemNode extends DatabaseObjectDecorator implements \Countable, \Recur /** * Returns true if this item (or one of its children) is marked as active. * - * @return boolean + * @return bool */ public function isActiveNode() { return $this->isActive; diff --git a/wcfsetup/install/files/lib/data/menu/item/MenuItemNodeTree.class.php b/wcfsetup/install/files/lib/data/menu/item/MenuItemNodeTree.class.php index 398f287cf7..5c89941ae4 100644 --- a/wcfsetup/install/files/lib/data/menu/item/MenuItemNodeTree.class.php +++ b/wcfsetup/install/files/lib/data/menu/item/MenuItemNodeTree.class.php @@ -15,7 +15,7 @@ use wcf\system\request\RequestHandler; class MenuItemNodeTree { /** * if `false`, individual menu item visibility will not be checked - * @var boolean + * @var bool */ public $checkVisibility; @@ -54,7 +54,7 @@ class MenuItemNodeTree { * * @param int $menuID menu id * @param MenuItemList $menuItemList optional object to be provided when building the tree from cache - * @param boolean $checkVisibility if `false`, individual menu item visibility will not be checked + * @param bool $checkVisibility if `false`, individual menu item visibility will not be checked */ public function __construct($menuID, MenuItemList $menuItemList = null, $checkVisibility = true) { $this->menuID = $menuID; diff --git a/wcfsetup/install/files/lib/data/moderation/queue/ModerationQueue.class.php b/wcfsetup/install/files/lib/data/moderation/queue/ModerationQueue.class.php index 17cdb74b1b..ba6506edb7 100644 --- a/wcfsetup/install/files/lib/data/moderation/queue/ModerationQueue.class.php +++ b/wcfsetup/install/files/lib/data/moderation/queue/ModerationQueue.class.php @@ -23,7 +23,7 @@ use wcf\system\WCF; * @property-read int $comments number of comments on the moderation queue entry * @property-read int $lastChangeTime timestamp at which the moderation queue entry has been changed the last time * @property-read array $additionalData array with additional data of the moderation queue entry - * @property-read boolean $markAsJustified true if the report was closed, but it was actually justified and other actions may have been taken + * @property-read bool $markAsJustified true if the report was closed, but it was actually justified and other actions may have been taken */ class ModerationQueue extends DatabaseObject { // states of column 'status' @@ -64,7 +64,7 @@ class ModerationQueue extends DatabaseObject { /** * Returns true if current user can edit this moderation queue. * - * @return boolean + * @return bool */ public function canEdit() { $sql = "SELECT isAffected @@ -84,7 +84,7 @@ class ModerationQueue extends DatabaseObject { /** * Returns true, if this queue is done. * - * @return boolean + * @return bool */ public function isDone() { return ($this->status == self::STATUS_DONE || $this->status == self::STATUS_CONFIRMED || $this->status == self::STATUS_REJECTED); diff --git a/wcfsetup/install/files/lib/data/moderation/queue/ModerationQueueEditor.class.php b/wcfsetup/install/files/lib/data/moderation/queue/ModerationQueueEditor.class.php index 878284dfb0..62afbff8ec 100644 --- a/wcfsetup/install/files/lib/data/moderation/queue/ModerationQueueEditor.class.php +++ b/wcfsetup/install/files/lib/data/moderation/queue/ModerationQueueEditor.class.php @@ -47,7 +47,7 @@ class ModerationQueueEditor extends DatabaseObjectEditor { /** * Marks this entry as rejected, e.g. report was unjustified or content approval was denied. * - * @param boolean $markAsJustified + * @param bool $markAsJustified */ public function markAsRejected($markAsJustified = false) { $data = ['status' => ModerationQueue::STATUS_REJECTED]; diff --git a/wcfsetup/install/files/lib/data/moderation/queue/ViewableModerationQueue.class.php b/wcfsetup/install/files/lib/data/moderation/queue/ViewableModerationQueue.class.php index b65e13a4e9..93642c6ca1 100644 --- a/wcfsetup/install/files/lib/data/moderation/queue/ViewableModerationQueue.class.php +++ b/wcfsetup/install/files/lib/data/moderation/queue/ViewableModerationQueue.class.php @@ -38,7 +38,7 @@ class ViewableModerationQueue extends DatabaseObjectDecorator implements ILinkab /** * true, if associated object was deleted - * @var boolean + * @var bool */ protected $isOrphaned = false; @@ -126,7 +126,7 @@ class ViewableModerationQueue extends DatabaseObjectDecorator implements ILinkab /** * Returns true if associated object was removed. * - * @return boolean + * @return bool */ public function isOrphaned() { return $this->isOrphaned; @@ -182,7 +182,7 @@ class ViewableModerationQueue extends DatabaseObjectDecorator implements ILinkab /** * Returns true if this queue item is new for the active user. * - * @return boolean + * @return bool */ public function isNew() { if ($this->time > max(VisitTracker::getInstance()->getVisitTime('com.woltlab.wcf.moderation.queue'), VisitTracker::getInstance()->getObjectVisitTime('com.woltlab.wcf.moderation.queue', $this->queueID))) return true; diff --git a/wcfsetup/install/files/lib/data/notice/Notice.class.php b/wcfsetup/install/files/lib/data/notice/Notice.class.php index d98237b025..56508afdf7 100644 --- a/wcfsetup/install/files/lib/data/notice/Notice.class.php +++ b/wcfsetup/install/files/lib/data/notice/Notice.class.php @@ -28,7 +28,7 @@ use wcf\util\StringUtil; class Notice extends DatabaseObject implements IRouteController { /** * true if the active user has dismissed the notice - * @var boolean + * @var bool */ protected $isDismissed = null; @@ -72,7 +72,7 @@ class Notice extends DatabaseObject implements IRouteController { /** * Returns true if the active user has dismissed the notice. * - * @return boolean + * @return bool */ public function isDismissed() { if (!$this->isDismissible) return false; diff --git a/wcfsetup/install/files/lib/data/option/Option.class.php b/wcfsetup/install/files/lib/data/option/Option.class.php index e1a91b38ba..f1aca18b52 100644 --- a/wcfsetup/install/files/lib/data/option/Option.class.php +++ b/wcfsetup/install/files/lib/data/option/Option.class.php @@ -181,7 +181,7 @@ class Option extends DatabaseObject { /** * Returns true if option is visible * - * @return boolean + * @return bool */ public function isVisible() { return !$this->hidden; diff --git a/wcfsetup/install/files/lib/data/package/Package.class.php b/wcfsetup/install/files/lib/data/package/Package.class.php index f24680f462..0857203356 100644 --- a/wcfsetup/install/files/lib/data/package/Package.class.php +++ b/wcfsetup/install/files/lib/data/package/Package.class.php @@ -94,7 +94,7 @@ class Package extends DatabaseObject implements ILinkableObject, IRouteControlle /** * Returns true if this package is required by other packages. * - * @return boolean + * @return bool */ public function isRequired() { self::loadRequirements(); @@ -105,7 +105,7 @@ class Package extends DatabaseObject implements ILinkableObject, IRouteControlle /** * Returns true if package is a plugin. * - * @return boolean + * @return bool */ public function isPlugin() { if ($this->isApplication) { @@ -203,7 +203,7 @@ class Package extends DatabaseObject implements ILinkableObject, IRouteControlle /** * Returns true if current user can uninstall this package. * - * @return boolean + * @return bool */ public function canUninstall() { if (!WCF::getSession()->getPermission('admin.configuration.package.canUninstallPackage')) { @@ -294,7 +294,7 @@ class Package extends DatabaseObject implements ILinkableObject, IRouteControlle * Returns true if package identified by $package is already installed. * * @param string $package - * @return boolean + * @return bool */ public static function isAlreadyInstalled($package) { $sql = "SELECT COUNT(*) @@ -322,7 +322,7 @@ class Package extends DatabaseObject implements ILinkableObject, IRouteControlle * the respective package. * * @param string $packageName - * @return boolean isValid + * @return bool isValid */ public static function isValidPackageName($packageName) { if (mb_strlen($packageName) < 3 || mb_strlen($packageName) > 191) { @@ -341,7 +341,7 @@ class Package extends DatabaseObject implements ILinkableObject, IRouteControlle * 3.1.7 rC 4 * * @param string $version - * @return boolean + * @return bool */ public static function isValidVersion($version) { return preg_match('~^([0-9]+)\.([0-9]+)\.([0-9]+)(\ (a|alpha|b|beta|d|dev|rc|pl)\ ([0-9]+))?$~is', $version); @@ -360,7 +360,7 @@ class Package extends DatabaseObject implements ILinkableObject, IRouteControlle * * @param string $currentVersion * @param string $fromVersion - * @return boolean + * @return bool */ public static function checkFromversion($currentVersion, $fromVersion) { if (mb_strpos($fromVersion, '*') !== false) { @@ -386,7 +386,7 @@ class Package extends DatabaseObject implements ILinkableObject, IRouteControlle * @param string $version1 * @param string $version2 * @param string $operator - * @return boolean result + * @return bool result * @see http://www.php.net/manual/en/function.version-compare.php */ public static function compareVersion($version1, $version2, $operator = null) { diff --git a/wcfsetup/install/files/lib/data/package/PackageAction.class.php b/wcfsetup/install/files/lib/data/package/PackageAction.class.php index fdce116c32..980ae488c3 100644 --- a/wcfsetup/install/files/lib/data/package/PackageAction.class.php +++ b/wcfsetup/install/files/lib/data/package/PackageAction.class.php @@ -142,7 +142,7 @@ class PackageAction extends AbstractDatabaseObjectAction { /** * Renders the authentication dialog. * - * @param boolean $rejected + * @param bool $rejected * @return string */ protected function renderAuthorizationDialog($rejected) { diff --git a/wcfsetup/install/files/lib/data/package/update/server/PackageUpdateServer.class.php b/wcfsetup/install/files/lib/data/package/update/server/PackageUpdateServer.class.php index a97d93b105..6f2d5c7fd6 100644 --- a/wcfsetup/install/files/lib/data/package/update/server/PackageUpdateServer.class.php +++ b/wcfsetup/install/files/lib/data/package/update/server/PackageUpdateServer.class.php @@ -122,7 +122,7 @@ class PackageUpdateServer extends DatabaseObject { * Returns true if the given server url is valid. * * @param string $serverURL - * @return boolean + * @return bool */ public static function isValidServerURL($serverURL) { $parsedURL = Url::parse($serverURL); @@ -170,7 +170,7 @@ class PackageUpdateServer extends DatabaseObject { * @param int $packageUpdateServerID * @param string $username * @param string $password - * @param boolean $saveCredentials + * @param bool $saveCredentials */ public static function storeAuthData($packageUpdateServerID, $username, $password, $saveCredentials = false) { $packageUpdateAuthData = @unserialize(WCF::getSession()->getVar('packageUpdateAuthData')); @@ -216,7 +216,7 @@ class PackageUpdateServer extends DatabaseObject { /** * Returns the list endpoint for package servers. * - * @param boolean $forceHTTP + * @param bool $forceHTTP * @return string */ public function getListURL($forceHTTP = false) { @@ -264,7 +264,7 @@ class PackageUpdateServer extends DatabaseObject { /** * Returns true if a request to this server would make use of a secure connection. * - * @return boolean + * @return bool */ public function attemptSecureConnection() { if ($this->apiVersion == '2.0') { @@ -282,7 +282,7 @@ class PackageUpdateServer extends DatabaseObject { /** * Returns whether the current user may delete this update server. * - * @return boolean + * @return bool * @since 5.3 */ public final function canDelete() { @@ -292,7 +292,7 @@ class PackageUpdateServer extends DatabaseObject { /** * Returns whether the current user may disable this update server. * - * @return boolean + * @return bool * @since 5.3 */ public final function canDisable() { @@ -302,7 +302,7 @@ class PackageUpdateServer extends DatabaseObject { /** * Returns true if the host is `update.woltlab.com`. * - * @return boolean + * @return bool */ public final function isWoltLabUpdateServer() { return Url::parse($this->serverURL)['host'] === 'update.woltlab.com'; @@ -311,7 +311,7 @@ class PackageUpdateServer extends DatabaseObject { /** * Returns true if the host is `store.woltlab.com`. * - * @return boolean + * @return bool */ public final function isWoltLabStoreServer() { return Url::parse($this->serverURL)['host'] === 'store.woltlab.com'; @@ -328,7 +328,7 @@ class PackageUpdateServer extends DatabaseObject { * Example: * define('UPDATE_SERVER_TRUSTED_MIRROR', 'mirror.example.com'); * - * @return boolean + * @return bool */ public final function isTrustedServer() { $host = Url::parse($this->serverURL)['host']; diff --git a/wcfsetup/install/files/lib/data/page/Page.class.php b/wcfsetup/install/files/lib/data/page/Page.class.php index c4ca695dcd..02cda635c6 100644 --- a/wcfsetup/install/files/lib/data/page/Page.class.php +++ b/wcfsetup/install/files/lib/data/page/Page.class.php @@ -88,7 +88,7 @@ class Page extends DatabaseObject implements ILinkableObject, ITitledObject { /** * Returns true if the active user can delete this page. * - * @return boolean + * @return bool */ public function canDelete() { if (WCF::getSession()->getPermission('admin.content.cms.canManagePage') && !$this->originIsSystem && !$this->isLandingPage) { @@ -101,7 +101,7 @@ class Page extends DatabaseObject implements ILinkableObject, ITitledObject { /** * Returns true if the active user can disable this page. * - * @return boolean + * @return bool */ public function canDisable() { if (WCF::getSession()->getPermission('admin.content.cms.canManagePage') && (!$this->originIsSystem || $this->pageType != 'system') && !$this->isLandingPage) { @@ -228,7 +228,7 @@ class Page extends DatabaseObject implements ILinkableObject, ITitledObject { * Returns false if this page should be hidden from menus, but does not control the accessibility * of the page itself. * - * @return boolean false if the page should be hidden from menus + * @return bool false if the page should be hidden from menus */ public function isVisible() { if ($this->isDisabled) return false; @@ -241,7 +241,7 @@ class Page extends DatabaseObject implements ILinkableObject, ITitledObject { /** * Returns true if this page is accessible by current user. * - * @return boolean + * @return bool */ public function isAccessible() { return SimpleAclResolver::getInstance()->canAccess('com.woltlab.wcf.page', $this->pageID); diff --git a/wcfsetup/install/files/lib/data/page/PageEditor.class.php b/wcfsetup/install/files/lib/data/page/PageEditor.class.php index 956247aaba..a1321a1eef 100644 --- a/wcfsetup/install/files/lib/data/page/PageEditor.class.php +++ b/wcfsetup/install/files/lib/data/page/PageEditor.class.php @@ -60,7 +60,7 @@ class PageEditor extends DatabaseObjectEditor implements IEditableCachedObject { * @param string $customURL * @param int $packageID * - * @return boolean + * @return bool */ public static function isUniqueCustomUrl($customURL, $packageID = 1) { // check controller diff --git a/wcfsetup/install/files/lib/data/poll/Poll.class.php b/wcfsetup/install/files/lib/data/poll/Poll.class.php index 5bae326edb..b6fbfba02e 100644 --- a/wcfsetup/install/files/lib/data/poll/Poll.class.php +++ b/wcfsetup/install/files/lib/data/poll/Poll.class.php @@ -30,7 +30,7 @@ use wcf\system\WCF; class Poll extends DatabaseObject { /** * participation status - * @var boolean + * @var bool */ protected $isParticipant = false; @@ -65,7 +65,7 @@ class Poll extends DatabaseObject { /** * Returns a list of poll options. * - * @param boolean $isResultDisplay + * @param bool $isResultDisplay * @return PollOption[] */ public function getOptions($isResultDisplay = false) { @@ -93,7 +93,7 @@ class Poll extends DatabaseObject { /** * Returns true if current user is a participant. * - * @return boolean + * @return bool */ public function isParticipant() { $this->loadOptions(); @@ -123,7 +123,7 @@ class Poll extends DatabaseObject { /** * Returns true if poll is already finished. * - * @return boolean + * @return bool */ public function isFinished() { return ($this->endTime && $this->endTime <= TIME_NOW); @@ -132,7 +132,7 @@ class Poll extends DatabaseObject { /** * Returns true if current user can vote. * - * @return boolean + * @return bool */ public function canVote() { // guest voting is not possible @@ -164,7 +164,7 @@ class Poll extends DatabaseObject { /** * Returns true if current user can see the result. * - * @return boolean + * @return bool */ public function canSeeResult() { if ($this->isFinished() || $this->isParticipant() || !$this->resultsRequireVote) { @@ -177,7 +177,7 @@ class Poll extends DatabaseObject { /** * Returns true if current user can view the participant list. * - * @return boolean + * @return bool */ public function canViewParticipants() { if ($this->canSeeResult() && $this->isPublic) { diff --git a/wcfsetup/install/files/lib/data/poll/option/PollOption.class.php b/wcfsetup/install/files/lib/data/poll/option/PollOption.class.php index 2fceb6d0c6..05eafdd09b 100644 --- a/wcfsetup/install/files/lib/data/poll/option/PollOption.class.php +++ b/wcfsetup/install/files/lib/data/poll/option/PollOption.class.php @@ -20,7 +20,7 @@ use wcf\data\DatabaseObject; class PollOption extends DatabaseObject { /** * true, if option was selected by current user - * @var boolean + * @var bool */ public $selected = false; diff --git a/wcfsetup/install/files/lib/data/reaction/type/ReactionType.class.php b/wcfsetup/install/files/lib/data/reaction/type/ReactionType.class.php index abcac8c100..381c166e01 100644 --- a/wcfsetup/install/files/lib/data/reaction/type/ReactionType.class.php +++ b/wcfsetup/install/files/lib/data/reaction/type/ReactionType.class.php @@ -17,7 +17,7 @@ use wcf\system\WCF; * @property-read string $title * @property-read int $showOrder position of the reaction type in relation to the other reaction types * @property-read string $iconFile the file location of the icon - * @property-read boolean $isAssignable `1`, if the reaction can be assigned + * @property-read bool $isAssignable `1`, if the reaction can be assigned */ class ReactionType extends DatabaseObject implements ITitledObject { /** diff --git a/wcfsetup/install/files/lib/data/style/Style.class.php b/wcfsetup/install/files/lib/data/style/Style.class.php index 986ffeb761..cd5b04f5a5 100644 --- a/wcfsetup/install/files/lib/data/style/Style.class.php +++ b/wcfsetup/install/files/lib/data/style/Style.class.php @@ -95,7 +95,7 @@ class Style extends DatabaseObject { * in emails) * * @param string $variableName - * @param boolean $toHex + * @param bool $toHex * @return string */ public function getVariable($variableName, $toHex = false) { @@ -266,7 +266,7 @@ class Style extends DatabaseObject { * Returns the path to a favicon-related file. * * @param string $filename name of the file - * @param boolean $absolutePath if `true`, the absolute path is returned, otherwise the path relative to WCF is returned + * @param bool $absolutePath if `true`, the absolute path is returned, otherwise the path relative to WCF is returned * @return string */ protected function getFaviconPath($filename, $absolutePath = true) { diff --git a/wcfsetup/install/files/lib/data/style/StyleAction.class.php b/wcfsetup/install/files/lib/data/style/StyleAction.class.php index 716bb527ec..a9e36cd4a1 100644 --- a/wcfsetup/install/files/lib/data/style/StyleAction.class.php +++ b/wcfsetup/install/files/lib/data/style/StyleAction.class.php @@ -172,7 +172,7 @@ class StyleAction extends AbstractDatabaseObjectAction implements IToggleAction * Updates style variables for given style. * * @param Style $style - * @param boolean $removePreviousVariables + * @param bool $removePreviousVariables */ protected function updateVariables(Style $style, $removePreviousVariables = false) { if (!isset($this->parameters['variables']) || !is_array($this->parameters['variables'])) { diff --git a/wcfsetup/install/files/lib/data/style/StyleEditor.class.php b/wcfsetup/install/files/lib/data/style/StyleEditor.class.php index 6d97c953c2..fbee4199fc 100644 --- a/wcfsetup/install/files/lib/data/style/StyleEditor.class.php +++ b/wcfsetup/install/files/lib/data/style/StyleEditor.class.php @@ -350,7 +350,7 @@ class StyleEditor extends DatabaseObjectEditor implements IEditableCachedObject * @param string $filename * @param int $packageID * @param StyleEditor $style - * @param boolean $skipFontDownload + * @param bool $skipFontDownload * @return StyleEditor */ public static function import($filename, $packageID = 1, StyleEditor $style = null, $skipFontDownload = false) { @@ -762,8 +762,8 @@ class StyleEditor extends DatabaseObjectEditor implements IEditableCachedObject /** * Exports this style. * - * @param boolean $templates - * @param boolean $images + * @param bool $templates + * @param bool $images * @param string $packageName */ public function export($templates = false, $images = false, $packageName = '') { diff --git a/wcfsetup/install/files/lib/data/template/Template.class.php b/wcfsetup/install/files/lib/data/template/Template.class.php index 3eb8f565b6..fca6599185 100644 --- a/wcfsetup/install/files/lib/data/template/Template.class.php +++ b/wcfsetup/install/files/lib/data/template/Template.class.php @@ -92,7 +92,7 @@ class Template extends DatabaseObject { * Returns true if current template is considered system critical and * may not be customized at any point. * - * @return boolean + * @return bool */ public function canCopy() { if (self::isSystemCritical($this->templateName)) { @@ -109,7 +109,7 @@ class Template extends DatabaseObject { * may not be customized at any point. * * @param string $templateName - * @return boolean + * @return bool */ public static function isSystemCritical($templateName) { return in_array($templateName, self::$systemCriticalTemplates); 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 fa834c06bf..a6513677f7 100644 --- a/wcfsetup/install/files/lib/data/template/group/TemplateGroup.class.php +++ b/wcfsetup/install/files/lib/data/template/group/TemplateGroup.class.php @@ -33,7 +33,7 @@ class TemplateGroup extends DatabaseObject { * Returns whether the template group is immutable (i.e. whether it's the email * template group). * - * @return boolean + * @return bool */ public function isImmutable() { return $this->templateGroupFolderName === '_wcf_email/'; diff --git a/wcfsetup/install/files/lib/data/trophy/Trophy.class.php b/wcfsetup/install/files/lib/data/trophy/Trophy.class.php index 5c11f38f32..81f64c0713 100644 --- a/wcfsetup/install/files/lib/data/trophy/Trophy.class.php +++ b/wcfsetup/install/files/lib/data/trophy/Trophy.class.php @@ -85,7 +85,7 @@ class Trophy extends DatabaseObject implements ITitledLinkObject, IRouteControll * Renders a trophy. * * @param int $size - * @param boolean $showTooltip + * @param bool $showTooltip * @return string */ public function renderTrophy($size = self::DEFAULT_SIZE, $showTooltip = false) { @@ -137,7 +137,7 @@ class Trophy extends DatabaseObject implements ITitledLinkObject, IRouteControll /** * Returns true if the current trophy is disabled. Returns also true if the trophy category is disabled. * - * @return boolean + * @return bool */ public function isDisabled() { if ($this->isDisabled) { diff --git a/wcfsetup/install/files/lib/data/trophy/category/TrophyCategory.class.php b/wcfsetup/install/files/lib/data/trophy/category/TrophyCategory.class.php index df6ac00799..af4e8ee2d9 100644 --- a/wcfsetup/install/files/lib/data/trophy/category/TrophyCategory.class.php +++ b/wcfsetup/install/files/lib/data/trophy/category/TrophyCategory.class.php @@ -63,7 +63,7 @@ class TrophyCategory extends AbstractDecoratedCategory implements ITitledLinkObj /** * Returns the trophies for the category. * - * @param boolean $includeDisabled + * @param bool $includeDisabled * @return Trophy[] */ public function getTrophies($includeDisabled = false) { diff --git a/wcfsetup/install/files/lib/data/user/User.class.php b/wcfsetup/install/files/lib/data/user/User.class.php index d5f858efa3..18c2862514 100644 --- a/wcfsetup/install/files/lib/data/user/User.class.php +++ b/wcfsetup/install/files/lib/data/user/User.class.php @@ -84,7 +84,7 @@ final class User extends DatabaseObject implements IPopoverObject, IRouteControl /** * true, if user has access to the ACP - * @var boolean + * @var bool */ protected $hasAdministrativePermissions; @@ -140,7 +140,7 @@ final class User extends DatabaseObject implements IPopoverObject, IRouteControl * Returns true if the given password is the correct password for this user. * * @param string $password - * @return boolean password correct + * @return bool password correct */ public function checkPassword($password) { $isValid = false; @@ -188,7 +188,7 @@ final class User extends DatabaseObject implements IPopoverObject, IRouteControl /** * Returns an array with all the groups in which the actual user is a member. * - * @param boolean $skipCache + * @param bool $skipCache * @return int[] */ public function getGroupIDs($skipCache = false) { @@ -267,7 +267,7 @@ final class User extends DatabaseObject implements IPopoverObject, IRouteControl * Returns the value of the user option with the given name. * * @param string $name user option name - * @param boolean $filterDisabled suppress values for disabled options + * @param bool $filterDisabled suppress values for disabled options * @return mixed user option value */ public function getUserOption($name, $filterDisabled = false) { @@ -395,7 +395,7 @@ final class User extends DatabaseObject implements IPopoverObject, IRouteControl /** * Returns true if this user is marked. * - * @return boolean + * @return bool */ public function isMarked() { $markedUsers = WCF::getSession()->getVar('markedUsers'); @@ -409,7 +409,7 @@ final class User extends DatabaseObject implements IPopoverObject, IRouteControl /** * Returns true if the email is confirmed. * - * @return boolean + * @return bool * @since 5.3 */ public function isEmailConfirmed() { @@ -488,7 +488,7 @@ final class User extends DatabaseObject implements IPopoverObject, IRouteControl /** * Returns true if the active user can edit this user. * - * @return boolean + * @return bool */ public function canEdit() { return (WCF::getSession()->getPermission('admin.user.canEditUser') && UserGroup::isAccessibleGroup($this->getGroupIDs())); @@ -497,7 +497,7 @@ final class User extends DatabaseObject implements IPopoverObject, IRouteControl /** * Returns true, if this user has access to the ACP. * - * @return boolean + * @return bool */ public function hasAdministrativeAccess() { if ($this->hasAdministrativePermissions === null) { @@ -575,7 +575,7 @@ final class User extends DatabaseObject implements IPopoverObject, IRouteControl * Returns the social network privacy settings of the user. * @deprecated 3.0 * - * @return boolean[] + * @return bool[] */ public function getSocialNetworkPrivacySettings() { return [ @@ -602,7 +602,7 @@ final class User extends DatabaseObject implements IPopoverObject, IRouteControl /** * Returns true, if this user can purchase paid subscriptions. * - * @return boolean + * @return bool */ public function canPurchasePaidSubscriptions() { return WCF::getUser()->userID && !$this->pendingActivation(); @@ -644,7 +644,7 @@ final class User extends DatabaseObject implements IPopoverObject, IRouteControl /** * Returns true if this user is not activated. * - * @return boolean + * @return bool * @since 5.3 */ public function pendingActivation() { @@ -654,7 +654,7 @@ final class User extends DatabaseObject implements IPopoverObject, IRouteControl /** * Returns true if this user requires activation by the user. * - * @return boolean + * @return bool * @since 5.3 */ public function requiresEmailActivation() { @@ -664,7 +664,7 @@ final class User extends DatabaseObject implements IPopoverObject, IRouteControl /** * Returns true if this user requires the activation by an admin. * - * @return boolean + * @return bool * @since 5.3 */ public function requiresAdminActivation() { @@ -674,7 +674,7 @@ final class User extends DatabaseObject implements IPopoverObject, IRouteControl /** * Returns true if this user can confirm the email themself. * - * @return boolean + * @return bool * @since 5.3 */ public function canEmailConfirm() { @@ -684,7 +684,7 @@ final class User extends DatabaseObject implements IPopoverObject, IRouteControl /** * Returns true, if the user must confirm his email by themself. * - * @return boolean + * @return bool * @since 5.3 */ public function mustSelfEmailConfirm() { diff --git a/wcfsetup/install/files/lib/data/user/UserAction.class.php b/wcfsetup/install/files/lib/data/user/UserAction.class.php index 81038de9c1..ad61945022 100644 --- a/wcfsetup/install/files/lib/data/user/UserAction.class.php +++ b/wcfsetup/install/files/lib/data/user/UserAction.class.php @@ -78,7 +78,7 @@ class UserAction extends AbstractDatabaseObjectAction implements IClipboardActio /** * Validates accessible groups. * - * @param boolean $ignoreOwnUser + * @param bool $ignoreOwnUser * @throws PermissionDeniedException * @throws UserInputException */ diff --git a/wcfsetup/install/files/lib/data/user/UserEditor.class.php b/wcfsetup/install/files/lib/data/user/UserEditor.class.php index 8ba5e444a3..a0b542380d 100644 --- a/wcfsetup/install/files/lib/data/user/UserEditor.class.php +++ b/wcfsetup/install/files/lib/data/user/UserEditor.class.php @@ -172,8 +172,8 @@ class UserEditor extends DatabaseObjectEditor implements IEditableCachedObject { * Adds a user to the groups he should be in. * * @param array $groupIDs - * @param boolean $deleteOldGroups - * @param boolean $addDefaultGroups + * @param bool $deleteOldGroups + * @param bool $addDefaultGroups */ public function addToGroups(array $groupIDs, $deleteOldGroups = true, $addDefaultGroups = true) { // add default groups @@ -250,7 +250,7 @@ class UserEditor extends DatabaseObjectEditor implements IEditableCachedObject { * Saves the visible languages of a user. * * @param array $languageIDs - * @param boolean $deleteOldLanguages + * @param bool $deleteOldLanguages */ public function addToLanguages(array $languageIDs, $deleteOldLanguages = true) { // remove previous languages diff --git a/wcfsetup/install/files/lib/data/user/UserProfile.class.php b/wcfsetup/install/files/lib/data/user/UserProfile.class.php index ad7a2fe94a..0af8657209 100644 --- a/wcfsetup/install/files/lib/data/user/UserProfile.class.php +++ b/wcfsetup/install/files/lib/data/user/UserProfile.class.php @@ -259,7 +259,7 @@ class UserProfile extends DatabaseObjectDecorator implements ITitledLinkObject { * Returns true if current user is following given user id. * * @param int $userID - * @return boolean + * @return bool */ public function isFollowing($userID) { return in_array($userID, $this->getFollowingUsers()); @@ -269,7 +269,7 @@ class UserProfile extends DatabaseObjectDecorator implements ITitledLinkObject { * Returns true if given user ids follows current user. * * @param int $userID - * @return boolean + * @return bool */ public function isFollower($userID) { return in_array($userID, $this->getFollowers()); @@ -279,7 +279,7 @@ class UserProfile extends DatabaseObjectDecorator implements ITitledLinkObject { * Returns true if given user is ignored. * * @param int $userID - * @return boolean + * @return bool */ public function isIgnoredUser($userID) { return in_array($userID, $this->getIgnoredUsers()); @@ -289,7 +289,7 @@ class UserProfile extends DatabaseObjectDecorator implements ITitledLinkObject { * Returns true if the given user ignores the current user. * * @param int $userID - * @return boolean + * @return bool */ public function isIgnoredByUser($userID) { return in_array($userID, $this->getIgnoredByUsers()); @@ -349,7 +349,7 @@ class UserProfile extends DatabaseObjectDecorator implements ITitledLinkObject { /** * Returns true if the active user can view the avatar of this user. * - * @return boolean + * @return bool */ public function canSeeAvatar() { return ( @@ -362,7 +362,7 @@ class UserProfile extends DatabaseObjectDecorator implements ITitledLinkObject { /** * Returns the user's cover photo. * - * @param boolean $isACP override ban on cover photo + * @param bool $isACP override ban on cover photo * @return IUserCoverPhoto */ public function getCoverPhoto($isACP = false) { @@ -387,7 +387,7 @@ class UserProfile extends DatabaseObjectDecorator implements ITitledLinkObject { /** * Returns true if the active user can view the cover photo of this user. * - * @return boolean + * @return bool */ public function canSeeCoverPhoto() { return (WCF::getUser()->userID == $this->userID || WCF::getSession()->getPermission('user.profile.coverPhoto.canSeeCoverPhotos')); @@ -396,7 +396,7 @@ class UserProfile extends DatabaseObjectDecorator implements ITitledLinkObject { /** * Returns true if this user is currently online. * - * @return boolean + * @return bool */ public function isOnline() { if ($this->getLastActivityTime() > (TIME_NOW - USER_ONLINE_TIMEOUT) && $this->canViewOnlineStatus()) { @@ -408,7 +408,7 @@ class UserProfile extends DatabaseObjectDecorator implements ITitledLinkObject { /** * Returns true if the active user can view the online status of this user. * - * @return boolean + * @return bool */ public function canViewOnlineStatus() { return WCF::getUser()->userID == $this->userID @@ -654,7 +654,7 @@ class UserProfile extends DatabaseObjectDecorator implements ITitledLinkObject { * Returns true if current user fulfills the required permissions. * * @param string $name - * @return boolean + * @return bool */ public function isAccessible($name) { /** @noinspection PhpVariableVariableInspection */ @@ -696,7 +696,7 @@ class UserProfile extends DatabaseObjectDecorator implements ITitledLinkObject { /** * Returns true if current user profile is protected. * - * @return boolean + * @return bool */ public function isProtected() { return (!WCF::getSession()->getPermission('admin.general.canViewPrivateUserOptions') && !$this->isAccessible('canViewProfile') && $this->userID != WCF::getUser()->userID); @@ -798,7 +798,7 @@ class UserProfile extends DatabaseObjectDecorator implements ITitledLinkObject { * compatibility, while preventing ACLs from overruling a 'Never' setting. * * @param string $permission - * @return boolean + * @return bool */ public function getNeverPermission($permission) { $this->loadGroupData(); @@ -886,7 +886,7 @@ class UserProfile extends DatabaseObjectDecorator implements ITitledLinkObject { /** * Returns true if this user can edit his profile. * - * @return boolean + * @return bool */ public function canEditOwnProfile() { if ($this->pendingActivation() || !$this->getPermission('user.profile.canEditUserProfile')) { @@ -908,7 +908,7 @@ class UserProfile extends DatabaseObjectDecorator implements ITitledLinkObject { /** * Returns true if the current user is connected with Facebook. * - * @return boolean + * @return bool */ public function isConnectedWithFacebook() { return StringUtil::startsWith($this->authData, 'facebook:'); @@ -917,7 +917,7 @@ class UserProfile extends DatabaseObjectDecorator implements ITitledLinkObject { /** * Returns true if the current user is connected with GitHub. * - * @return boolean + * @return bool */ public function isConnectedWithGithub() { return StringUtil::startsWith($this->authData, 'github:'); @@ -926,7 +926,7 @@ class UserProfile extends DatabaseObjectDecorator implements ITitledLinkObject { /** * Returns true if the current user is connected with Google Plus. * - * @return boolean + * @return bool */ public function isConnectedWithGoogle() { return StringUtil::startsWith($this->authData, 'google:'); @@ -935,7 +935,7 @@ class UserProfile extends DatabaseObjectDecorator implements ITitledLinkObject { /** * Returns true if the current user is connected with Twitter. * - * @return boolean + * @return bool */ public function isConnectedWithTwitter() { return StringUtil::startsWith($this->authData, 'twitter:'); @@ -953,7 +953,7 @@ class UserProfile extends DatabaseObjectDecorator implements ITitledLinkObject { /** * Return true if the user's signature is visible. * - * @return boolean + * @return bool */ public function showSignature() { if (!MODULE_USER_SIGNATURE) return false; @@ -995,7 +995,7 @@ class UserProfile extends DatabaseObjectDecorator implements ITitledLinkObject { * Returns true, if the active user has access to the user option with the given name. * * @param string $name - * @return boolean + * @return bool */ public function isVisibleOption($name) { $option = ViewableUserOption::getUserOption($name); diff --git a/wcfsetup/install/files/lib/data/user/UserProfileAction.class.php b/wcfsetup/install/files/lib/data/user/UserProfileAction.class.php index d0297889df..ee6fcd751b 100644 --- a/wcfsetup/install/files/lib/data/user/UserProfileAction.class.php +++ b/wcfsetup/install/files/lib/data/user/UserProfileAction.class.php @@ -645,7 +645,7 @@ class UserProfileAction extends UserAction implements IPopoverAction { * Returns the user option handler object. * * @param User $user - * @param boolean $editMode + * @param bool $editMode * @return UserOptionHandler */ protected function getOptionHandler(User $user, $editMode = true) { diff --git a/wcfsetup/install/files/lib/data/user/activity/event/ViewableUserActivityEvent.class.php b/wcfsetup/install/files/lib/data/user/activity/event/ViewableUserActivityEvent.class.php index 02f59c0ce6..1da97ae9da 100644 --- a/wcfsetup/install/files/lib/data/user/activity/event/ViewableUserActivityEvent.class.php +++ b/wcfsetup/install/files/lib/data/user/activity/event/ViewableUserActivityEvent.class.php @@ -30,13 +30,13 @@ class ViewableUserActivityEvent extends DatabaseObjectDecorator { /** * accessible by current user - * @var boolean + * @var bool */ protected $isAccessible = false; /** * associated object was removed - * @var boolean + * @var bool */ protected $isOrphaned = false; @@ -54,7 +54,7 @@ class ViewableUserActivityEvent extends DatabaseObjectDecorator { /** * true if event description contains raw html - * @var boolean + * @var bool */ protected $isRawHtml = false; @@ -68,7 +68,7 @@ class ViewableUserActivityEvent extends DatabaseObjectDecorator { /** * Returns true if event is accessible by current user. * - * @return boolean + * @return bool */ public function isAccessible() { return $this->isAccessible; @@ -84,7 +84,7 @@ class ViewableUserActivityEvent extends DatabaseObjectDecorator { /** * Returns true if event is orphaned (associated object removed). * - * @return boolean + * @return bool */ public function isOrphaned() { return $this->isOrphaned; @@ -117,7 +117,7 @@ class ViewableUserActivityEvent extends DatabaseObjectDecorator { * Sets event text. * * @param string $description - * @param boolean $isRawHtml + * @param bool $isRawHtml */ public function setDescription($description, $isRawHtml = false) { $this->description = $description; @@ -163,7 +163,7 @@ class ViewableUserActivityEvent extends DatabaseObjectDecorator { /** * Returns true if event description contains raw html. * - * @return boolean + * @return bool * @since 3.1 */ public function isRawHtml() { diff --git a/wcfsetup/install/files/lib/data/user/authentication/failure/UserAuthenticationFailure.class.php b/wcfsetup/install/files/lib/data/user/authentication/failure/UserAuthenticationFailure.class.php index d8b7acd935..1588cdf970 100644 --- a/wcfsetup/install/files/lib/data/user/authentication/failure/UserAuthenticationFailure.class.php +++ b/wcfsetup/install/files/lib/data/user/authentication/failure/UserAuthenticationFailure.class.php @@ -34,7 +34,7 @@ class UserAuthenticationFailure extends DatabaseObject { * Returns the number of authentication failures caused by given ip address. * * @param string $ipAddress - * @return boolean + * @return bool */ public static function countIPFailures($ipAddress) { $sql = "SELECT COUNT(*) @@ -51,7 +51,7 @@ class UserAuthenticationFailure extends DatabaseObject { * Returns the number of authentication failures for given user account. * * @param int $userID - * @return boolean + * @return bool */ public static function countUserFailures($userID) { $sql = "SELECT COUNT(*) 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 d3cf4109b6..c8c3933fed 100644 --- a/wcfsetup/install/files/lib/data/user/avatar/Gravatar.class.php +++ b/wcfsetup/install/files/lib/data/user/avatar/Gravatar.class.php @@ -95,7 +95,7 @@ class Gravatar extends DefaultAvatar { * Checks a given email address for gravatar support. * * @param string $email - * @return boolean + * @return bool */ public static function test($email) { $gravatarURL = sprintf(self::GRAVATAR_BASE, md5(mb_strtolower($email)), 80, GRAVATAR_DEFAULT_TYPE); diff --git a/wcfsetup/install/files/lib/data/user/avatar/IUserAvatar.class.php b/wcfsetup/install/files/lib/data/user/avatar/IUserAvatar.class.php index 9c23822ec3..6804ec062d 100644 --- a/wcfsetup/install/files/lib/data/user/avatar/IUserAvatar.class.php +++ b/wcfsetup/install/files/lib/data/user/avatar/IUserAvatar.class.php @@ -13,7 +13,7 @@ interface IUserAvatar { /** * Returns true if this avatar can be cropped. * - * @return boolean + * @return bool * @deprecated 3.0 */ public function canCrop(); 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 4577922b43..f438f17ae6 100644 --- a/wcfsetup/install/files/lib/data/user/group/UserGroup.class.php +++ b/wcfsetup/install/files/lib/data/user/group/UserGroup.class.php @@ -195,7 +195,7 @@ class UserGroup extends DatabaseObject implements ITitledObject { * given, the active user is used. * * @param User $user user object or current user if null - * @return boolean + * @return bool */ public function isMember(User $user = null) { if ($user === null) $user = WCF::getUser(); @@ -207,7 +207,7 @@ class UserGroup extends DatabaseObject implements ITitledObject { /** * Returns true if this is the 'Everyone' group. * - * @return boolean + * @return bool * @since 3.0 */ public function isEveryone() { @@ -217,7 +217,7 @@ class UserGroup extends DatabaseObject implements ITitledObject { /** * Returns true if this is the 'Users' group. * - * @return boolean + * @return bool * @since 3.1 */ public function isUsers() { @@ -248,7 +248,7 @@ class UserGroup extends DatabaseObject implements ITitledObject { * Returns true if the given groups are accessible for the active user. * * @param array $groupIDs - * @return boolean + * @return bool */ public static function isAccessibleGroup(array $groupIDs = []) { if (self::$accessibleGroups === null) { @@ -308,7 +308,7 @@ class UserGroup extends DatabaseObject implements ITitledObject { * b) This is the 'Owner' group. * c) The group can access all groups (the 'Owner' group does not count). * - * @return boolean + * @return bool */ public function isAdminGroup() { // WCFSetup @@ -330,7 +330,7 @@ class UserGroup extends DatabaseObject implements ITitledObject { /** * Returns true if the current group is a moderator-group. * - * @return boolean + * @return bool */ public function isModGroup() { // workaround for WCF-Setup @@ -351,7 +351,7 @@ class UserGroup extends DatabaseObject implements ITitledObject { /** * Returns true if this group is accessible for the active user. * - * @return boolean + * @return bool */ public function isAccessible() { return self::isAccessibleGroup([$this->groupID]); @@ -388,7 +388,7 @@ class UserGroup extends DatabaseObject implements ITitledObject { /** * Returns true if current user may delete this group. * - * @return boolean + * @return bool */ public function isDeletable() { // insufficient permissions @@ -409,7 +409,7 @@ class UserGroup extends DatabaseObject implements ITitledObject { /** * Returns true if current user may edit this group. * - * @return boolean + * @return bool */ public function isEditable() { // insufficient permissions diff --git a/wcfsetup/install/files/lib/data/user/group/UserGroupEditor.class.php b/wcfsetup/install/files/lib/data/user/group/UserGroupEditor.class.php index e97d275db8..3a3d9978fc 100644 --- a/wcfsetup/install/files/lib/data/user/group/UserGroupEditor.class.php +++ b/wcfsetup/install/files/lib/data/user/group/UserGroupEditor.class.php @@ -118,7 +118,7 @@ class UserGroupEditor extends DatabaseObjectEditor implements IEditableCachedObj * Updates the value from the accessiblegroups option. * * @param int $groupID this group is added or deleted in the value - * @param boolean $delete flag for group deletion + * @param bool $delete flag for group deletion * @throws SystemException */ protected static function updateAccessibleGroups($groupID, $delete = false) { 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 f0eacae03e..c2a1d4d15d 100644 --- a/wcfsetup/install/files/lib/data/user/notification/UserNotificationAction.class.php +++ b/wcfsetup/install/files/lib/data/user/notification/UserNotificationAction.class.php @@ -229,7 +229,7 @@ class UserNotificationAction extends AbstractDatabaseObjectAction { /** * Marks all notifications of current user as confirmed. * - * @return boolean[] + * @return bool[] */ public function markAllAsConfirmed() { // remove notifications for this user diff --git a/wcfsetup/install/files/lib/data/user/online/UserOnline.class.php b/wcfsetup/install/files/lib/data/user/online/UserOnline.class.php index 1af9e5a88f..357d7ab551 100644 --- a/wcfsetup/install/files/lib/data/user/online/UserOnline.class.php +++ b/wcfsetup/install/files/lib/data/user/online/UserOnline.class.php @@ -64,7 +64,7 @@ class UserOnline extends UserProfile { * automatically determine the location. * * @param string|null $location - * @return boolean `true` if the location has been successfully set, otherwise `false` + * @return bool `true` if the location has been successfully set, otherwise `false` */ public function setLocation($location = null) { if ($location === null) { diff --git a/wcfsetup/install/files/lib/data/user/online/UsersOnlineList.class.php b/wcfsetup/install/files/lib/data/user/online/UsersOnlineList.class.php index 05f8be7a44..e750b3ed49 100644 --- a/wcfsetup/install/files/lib/data/user/online/UsersOnlineList.class.php +++ b/wcfsetup/install/files/lib/data/user/online/UsersOnlineList.class.php @@ -168,7 +168,7 @@ class UsersOnlineList extends SessionList { * * @param int $userID * @param int $canViewOnlineStatus - * @return boolean + * @return bool * @deprecated 5.3 Use `isVisibleUser` instead */ public static function isVisible($userID, $canViewOnlineStatus) { @@ -206,7 +206,7 @@ class UsersOnlineList extends SessionList { * Checks the 'canViewOnlineStatus' setting for the given user. * * @param UserOnline $userOnline - * @return boolean + * @return bool * @since 5.3 */ public static function isVisibleUser(UserOnline $userOnline) { diff --git a/wcfsetup/install/files/lib/data/user/option/UserOption.class.php b/wcfsetup/install/files/lib/data/user/option/UserOption.class.php index 90a149ec94..3b606a38ac 100644 --- a/wcfsetup/install/files/lib/data/user/option/UserOption.class.php +++ b/wcfsetup/install/files/lib/data/user/option/UserOption.class.php @@ -164,8 +164,8 @@ class UserOption extends Option implements ITitledObject { /** * Returns true iff this option is editable. * - * @param boolean $inRegistration True iff the user currently is in registration. - * @return boolean + * @param bool $inRegistration True iff the user currently is in registration. + * @return bool */ public function isEditable($inRegistration = false) { // check admin permissions @@ -192,7 +192,7 @@ class UserOption extends Option implements ITitledObject { /** * Returns true iff this user option can be deleted. * - * @return boolean + * @return bool */ public function canDelete() { if ($this->originIsSystem) { diff --git a/wcfsetup/install/files/lib/data/user/option/UserOptionEditor.class.php b/wcfsetup/install/files/lib/data/user/option/UserOptionEditor.class.php index 491f619123..e7f7920e31 100644 --- a/wcfsetup/install/files/lib/data/user/option/UserOptionEditor.class.php +++ b/wcfsetup/install/files/lib/data/user/option/UserOptionEditor.class.php @@ -96,7 +96,7 @@ class UserOptionEditor extends DatabaseObjectEditor implements IEditableCachedOb /** * Enables this option. * - * @param boolean $enable + * @param bool $enable */ public function enable($enable = true) { $value = intval(!$enable); diff --git a/wcfsetup/install/files/lib/data/user/rank/UserRank.class.php b/wcfsetup/install/files/lib/data/user/rank/UserRank.class.php index 54618a0890..43322d81cd 100644 --- a/wcfsetup/install/files/lib/data/user/rank/UserRank.class.php +++ b/wcfsetup/install/files/lib/data/user/rank/UserRank.class.php @@ -54,7 +54,7 @@ class UserRank extends DatabaseObject implements ITitledObject { /** * Returns true if the generic rank title should be displayed. * - * @return boolean + * @return bool */ public function showTitle() { return !$this->rankImage || !$this->hideTitle; diff --git a/wcfsetup/install/files/lib/data/user/trophy/UserTrophyList.class.php b/wcfsetup/install/files/lib/data/user/trophy/UserTrophyList.class.php index cce7c7678a..2e4f79be03 100644 --- a/wcfsetup/install/files/lib/data/user/trophy/UserTrophyList.class.php +++ b/wcfsetup/install/files/lib/data/user/trophy/UserTrophyList.class.php @@ -21,7 +21,7 @@ class UserTrophyList extends DatabaseObjectList { * Returns a user trophy list for a certain users. * * @param int[] $userIDs - * @param boolean $includeDisabled + * @param bool $includeDisabled * @return UserTrophy[][] */ public static function getUserTrophies(array $userIDs, $includeDisabled = false) { diff --git a/wcfsetup/install/files/lib/form/AbstractCaptchaForm.class.php b/wcfsetup/install/files/lib/form/AbstractCaptchaForm.class.php index 2ac7f6fe13..29842fc1b8 100644 --- a/wcfsetup/install/files/lib/form/AbstractCaptchaForm.class.php +++ b/wcfsetup/install/files/lib/form/AbstractCaptchaForm.class.php @@ -27,13 +27,13 @@ abstract class AbstractCaptchaForm extends AbstractForm { /** * true if captcha is used - * @var boolean + * @var bool */ public $useCaptcha = true; /** * true to force captcha usage - * @var boolean + * @var bool */ public $forceCaptcha = false; diff --git a/wcfsetup/install/files/lib/form/ContactForm.class.php b/wcfsetup/install/files/lib/form/ContactForm.class.php index f83ba7ce4e..03e6d3f0aa 100644 --- a/wcfsetup/install/files/lib/form/ContactForm.class.php +++ b/wcfsetup/install/files/lib/form/ContactForm.class.php @@ -66,7 +66,7 @@ class ContactForm extends AbstractCaptchaForm { /** * user has confirmed the privacy policy - * @var boolean + * @var bool */ public $privacyPolicyConfirmed = 0; diff --git a/wcfsetup/install/files/lib/form/DisclaimerForm.class.php b/wcfsetup/install/files/lib/form/DisclaimerForm.class.php index debe37414b..05c280af21 100644 --- a/wcfsetup/install/files/lib/form/DisclaimerForm.class.php +++ b/wcfsetup/install/files/lib/form/DisclaimerForm.class.php @@ -17,7 +17,7 @@ use wcf\util\HeaderUtil; class DisclaimerForm extends AbstractForm { /** * true, if the user has accepted the disclaimer - * @var boolean + * @var bool */ public $accept = false; diff --git a/wcfsetup/install/files/lib/form/MessageForm.class.php b/wcfsetup/install/files/lib/form/MessageForm.class.php index 165cffc551..f23c96cf2c 100644 --- a/wcfsetup/install/files/lib/form/MessageForm.class.php +++ b/wcfsetup/install/files/lib/form/MessageForm.class.php @@ -67,7 +67,7 @@ abstract class MessageForm extends AbstractCaptchaForm { /** * enables multilingualism - * @var boolean + * @var bool */ public $enableMultilingualism = false; diff --git a/wcfsetup/install/files/lib/form/NotificationUnsubscribeForm.class.php b/wcfsetup/install/files/lib/form/NotificationUnsubscribeForm.class.php index e0490c5655..65da803f78 100644 --- a/wcfsetup/install/files/lib/form/NotificationUnsubscribeForm.class.php +++ b/wcfsetup/install/files/lib/form/NotificationUnsubscribeForm.class.php @@ -31,7 +31,7 @@ class NotificationUnsubscribeForm extends AbstractForm { public $token = ''; /** - * @var boolean + * @var bool */ public $isOneClick = false; diff --git a/wcfsetup/install/files/lib/form/RecaptchaForm.class.php b/wcfsetup/install/files/lib/form/RecaptchaForm.class.php index ccd4162853..6aaac469db 100644 --- a/wcfsetup/install/files/lib/form/RecaptchaForm.class.php +++ b/wcfsetup/install/files/lib/form/RecaptchaForm.class.php @@ -27,7 +27,7 @@ abstract class RecaptchaForm extends AbstractForm { /** * enable recaptcha - * @var boolean + * @var bool */ public $useCaptcha = true; diff --git a/wcfsetup/install/files/lib/form/RegisterForm.class.php b/wcfsetup/install/files/lib/form/RegisterForm.class.php index 9e20ccbbc9..d038fc7a7d 100644 --- a/wcfsetup/install/files/lib/form/RegisterForm.class.php +++ b/wcfsetup/install/files/lib/form/RegisterForm.class.php @@ -41,7 +41,7 @@ use wcf\util\UserUtil; class RegisterForm extends UserAddForm { /** * true if external authentication is used - * @var boolean + * @var bool */ public $isExternalAuthentication = false; @@ -71,7 +71,7 @@ class RegisterForm extends UserAddForm { /** * true if captcha is used - * @var boolean + * @var bool */ public $useCaptcha = REGISTER_USE_CAPTCHA; diff --git a/wcfsetup/install/files/lib/form/SearchForm.class.php b/wcfsetup/install/files/lib/form/SearchForm.class.php index 03c4b652f0..d618c62203 100644 --- a/wcfsetup/install/files/lib/form/SearchForm.class.php +++ b/wcfsetup/install/files/lib/form/SearchForm.class.php @@ -38,7 +38,7 @@ class SearchForm extends AbstractCaptchaForm { /** * true, if search should be modified - * @var boolean + * @var bool */ public $modifySearch = null; @@ -137,7 +137,7 @@ class SearchForm extends AbstractCaptchaForm { /** * mark as submitted form if modifying search - * @var boolean + * @var bool */ public $submit = false; diff --git a/wcfsetup/install/files/lib/page/AbstractPage.class.php b/wcfsetup/install/files/lib/page/AbstractPage.class.php index 6fe84a005e..9f16b04672 100644 --- a/wcfsetup/install/files/lib/page/AbstractPage.class.php +++ b/wcfsetup/install/files/lib/page/AbstractPage.class.php @@ -54,19 +54,19 @@ abstract class AbstractPage implements IPage { /** * is true if canonical URL will be enforced even if POST data is represent - * @var boolean + * @var bool */ public $forceCanonicalURL = false; /** * is true if the redirect should use a 307 instead of the default 301, not recommended in general - * @var boolean + * @var bool */ public $softRedirectCanonicalURL = false; /** * indicates if you need to be logged in to access this page - * @var boolean + * @var bool */ public $loginRequired = false; diff --git a/wcfsetup/install/files/lib/page/AttachmentPage.class.php b/wcfsetup/install/files/lib/page/AttachmentPage.class.php index dcc72a8be4..22db32a222 100644 --- a/wcfsetup/install/files/lib/page/AttachmentPage.class.php +++ b/wcfsetup/install/files/lib/page/AttachmentPage.class.php @@ -36,13 +36,13 @@ class AttachmentPage extends AbstractPage { /** * shows the tiny thumbnail - * @var boolean + * @var bool */ public $tiny = 0; /** * shows the standard thumbnail - * @var boolean + * @var bool */ public $thumbnail = 0; diff --git a/wcfsetup/install/files/lib/page/ITrackablePage.class.php b/wcfsetup/install/files/lib/page/ITrackablePage.class.php index bda38b3da4..9068aa882a 100644 --- a/wcfsetup/install/files/lib/page/ITrackablePage.class.php +++ b/wcfsetup/install/files/lib/page/ITrackablePage.class.php @@ -14,7 +14,7 @@ interface ITrackablePage { /** * Returns true if this page should be tracked. * - * @return boolean + * @return bool */ public function isTracked(); diff --git a/wcfsetup/install/files/lib/page/MultipleLinkPage.class.php b/wcfsetup/install/files/lib/page/MultipleLinkPage.class.php index 495fc2a78b..c523f8052e 100644 --- a/wcfsetup/install/files/lib/page/MultipleLinkPage.class.php +++ b/wcfsetup/install/files/lib/page/MultipleLinkPage.class.php @@ -201,7 +201,7 @@ abstract class MultipleLinkPage extends AbstractPage { /** * Returns true if current page is the first page. * - * @return boolean + * @return bool */ public function isFirstPage() { return ($this->pageNo == 1); @@ -210,7 +210,7 @@ abstract class MultipleLinkPage extends AbstractPage { /** * Returns true if current page is the last page. * - * @return boolean + * @return bool */ public function isLastPage() { return ($this->items == $this->endIndex); diff --git a/wcfsetup/install/files/lib/page/UserPage.class.php b/wcfsetup/install/files/lib/page/UserPage.class.php index 26eb3743e8..2abfea60b8 100644 --- a/wcfsetup/install/files/lib/page/UserPage.class.php +++ b/wcfsetup/install/files/lib/page/UserPage.class.php @@ -30,7 +30,7 @@ use wcf\system\WCF; class UserPage extends AbstractPage { /** * edit profile on page load - * @var boolean + * @var bool */ public $editOnInit = false; diff --git a/wcfsetup/install/files/lib/system/MetaTagHandler.class.php b/wcfsetup/install/files/lib/system/MetaTagHandler.class.php index c5af8060bf..cfd1f14c03 100644 --- a/wcfsetup/install/files/lib/system/MetaTagHandler.class.php +++ b/wcfsetup/install/files/lib/system/MetaTagHandler.class.php @@ -54,7 +54,7 @@ class MetaTagHandler extends SingletonFactory implements \Countable, \Iterator { * @param string $identifier * @param string $name * @param string $value - * @param boolean $isProperty + * @param bool $isProperty */ public function addTag($identifier, $name, $value, $isProperty = false) { if (!isset($this->objects[$identifier])) { diff --git a/wcfsetup/install/files/lib/system/Regex.class.php b/wcfsetup/install/files/lib/system/Regex.class.php index 203313909c..46eff4bbde 100644 --- a/wcfsetup/install/files/lib/system/Regex.class.php +++ b/wcfsetup/install/files/lib/system/Regex.class.php @@ -159,7 +159,7 @@ final class Regex { /** * Checks whether the regex is syntactically correct. * - * @return boolean + * @return bool */ public function isValid() { try { @@ -177,7 +177,7 @@ final class Regex { * Checks whether the regex matches the given string. * * @param string $string string to match - * @param boolean $all indicates if all matches are collected + * @param bool $all indicates if all matches are collected * @param int $flags match flags * @return int return value of preg_match(_all) */ diff --git a/wcfsetup/install/files/lib/system/SingletonFactory.class.php b/wcfsetup/install/files/lib/system/SingletonFactory.class.php index 8e0a8ee5b1..ccd452b324 100644 --- a/wcfsetup/install/files/lib/system/SingletonFactory.class.php +++ b/wcfsetup/install/files/lib/system/SingletonFactory.class.php @@ -66,7 +66,7 @@ abstract class SingletonFactory { /** * Returns whether this singleton is already initialized. * - * @return boolean + * @return bool */ public static final function isInitialized() { $className = get_called_class(); diff --git a/wcfsetup/install/files/lib/system/WCF.class.php b/wcfsetup/install/files/lib/system/WCF.class.php index 6529ae6b11..a6bbcae084 100644 --- a/wcfsetup/install/files/lib/system/WCF.class.php +++ b/wcfsetup/install/files/lib/system/WCF.class.php @@ -127,7 +127,7 @@ class WCF { /** * overrides disabled debug mode - * @var boolean + * @var bool */ protected static $overrideDebugMode = false; @@ -145,13 +145,13 @@ class WCF { /** * true if Zend Opcache is loaded and enabled - * @var boolean + * @var bool */ protected static $zendOpcacheEnabled; /** * force logout during destructor call - * @var boolean + * @var bool */ protected static $forceLogout = false; @@ -587,7 +587,7 @@ class WCF { * Loads an application. * * @param Application $application - * @param boolean $isDependentApplication + * @param bool $isDependentApplication * @return IApplication * @throws SystemException */ @@ -783,7 +783,7 @@ class WCF { /** * Returns true if current application (WCF) is treated as active and was invoked directly. * - * @return boolean + * @return bool */ public function isActiveApplication() { return (ApplicationHandler::getInstance()->getActiveApplication()->packageID == 1); @@ -891,8 +891,8 @@ class WCF { /** * Returns true if the debug mode is enabled, otherwise false. * - * @param boolean $ignoreACP - * @return boolean + * @param bool $ignoreACP + * @return bool */ public static function debugModeIsEnabled($ignoreACP = false) { // ACP override @@ -909,7 +909,7 @@ class WCF { /** * Returns true if benchmarking is enabled, otherwise false. * - * @return boolean + * @return bool */ public static function benchmarkIsEnabled() { // benchmarking is enabled by default @@ -1091,7 +1091,7 @@ class WCF { /** * Returns true if the desktop notifications should be enabled. * - * @return boolean + * @return bool */ public function useDesktopNotifications() { if (!ENABLE_DESKTOP_NOTIFICATIONS) { @@ -1115,7 +1115,7 @@ class WCF { /** * Returns true if currently active request represents the landing page. * - * @return boolean + * @return bool */ public static function isLandingPage() { if (self::getActiveRequest() === null) { @@ -1129,7 +1129,7 @@ class WCF { * Returns true if the given API version is currently supported. * * @param int $apiVersion - * @return boolean + * @return bool * @deprecated 5.2 */ public static function isSupportedApiVersion($apiVersion) { diff --git a/wcfsetup/install/files/lib/system/WCFACP.class.php b/wcfsetup/install/files/lib/system/WCFACP.class.php index de2d762b91..398370b90c 100644 --- a/wcfsetup/install/files/lib/system/WCFACP.class.php +++ b/wcfsetup/install/files/lib/system/WCFACP.class.php @@ -29,7 +29,7 @@ use wcf\util\HeaderUtil; class WCFACP extends WCF { /** * rescue mode - * @var boolean + * @var bool */ protected static $inRescueMode; @@ -84,7 +84,7 @@ class WCFACP extends WCF { /** * Returns true if ACP is currently in rescue mode. * - * @return boolean + * @return bool */ public static function inRescueMode() { if (self::$inRescueMode === null) { diff --git a/wcfsetup/install/files/lib/system/WCFSetup.class.php b/wcfsetup/install/files/lib/system/WCFSetup.class.php index f4b57fb5ac..35b46f96b7 100644 --- a/wcfsetup/install/files/lib/system/WCFSetup.class.php +++ b/wcfsetup/install/files/lib/system/WCFSetup.class.php @@ -82,7 +82,7 @@ class WCFSetup extends WCF { /** * indicates if developer mode is used to install - * @var boolean + * @var bool */ protected static $developerMode = 0; @@ -421,7 +421,7 @@ class WCFSetup extends WCF { /** * Returns true if memory_limit is set to at least 128 MB * - * @return boolean + * @return bool */ protected function compareMemoryLimit() { $memoryLimit = ini_get('memory_limit'); diff --git a/wcfsetup/install/files/lib/system/acl/ACLHandler.class.php b/wcfsetup/install/files/lib/system/acl/ACLHandler.class.php index f16b0f8bd7..a1f1fb3134 100644 --- a/wcfsetup/install/files/lib/system/acl/ACLHandler.class.php +++ b/wcfsetup/install/files/lib/system/acl/ACLHandler.class.php @@ -291,7 +291,7 @@ class ACLHandler extends SingletonFactory { * @param int $objectTypeID * @param array $objectIDs * @param string $categoryName - * @param boolean $settingsView + * @param bool $settingsView * @return array */ public function getPermissions($objectTypeID, array $objectIDs, $categoryName = '', $settingsView = false) { @@ -351,7 +351,7 @@ class ACLHandler extends SingletonFactory { * @param string $type * @param array $objectIDs * @param array $data - * @param boolean $settingsView + * @param bool $settingsView */ protected function getValues(ACLOptionList $optionList, $type, array $objectIDs, array &$data, $settingsView) { $data[$type] = []; diff --git a/wcfsetup/install/files/lib/system/acl/simple/SimpleAclResolver.class.php b/wcfsetup/install/files/lib/system/acl/simple/SimpleAclResolver.class.php index 44296759be..ba8c02fa5c 100644 --- a/wcfsetup/install/files/lib/system/acl/simple/SimpleAclResolver.class.php +++ b/wcfsetup/install/files/lib/system/acl/simple/SimpleAclResolver.class.php @@ -28,7 +28,7 @@ class SimpleAclResolver extends SingletonFactory { * @param string $objectType object type name * @param int $objectID object id * @param User|null $user user object, if `null` uses current user - * @return boolean false if user is not allowed + * @return bool false if user is not allowed */ public function canAccess($objectType, $objectID, User $user = null) { if ($user === null) $user = WCF::getUser(); diff --git a/wcfsetup/install/files/lib/system/application/AbstractApplication.class.php b/wcfsetup/install/files/lib/system/application/AbstractApplication.class.php index d7ef75cd65..da97b8f9c8 100644 --- a/wcfsetup/install/files/lib/system/application/AbstractApplication.class.php +++ b/wcfsetup/install/files/lib/system/application/AbstractApplication.class.php @@ -34,7 +34,7 @@ abstract class AbstractApplication extends SingletonFactory implements IApplicat /** * true, if current application is active (directly invoked, not dependent) - * @var boolean + * @var bool */ protected $isActiveApplication = false; diff --git a/wcfsetup/install/files/lib/system/application/ApplicationHandler.class.php b/wcfsetup/install/files/lib/system/application/ApplicationHandler.class.php index c56a657ee5..6cf776ee1a 100644 --- a/wcfsetup/install/files/lib/system/application/ApplicationHandler.class.php +++ b/wcfsetup/install/files/lib/system/application/ApplicationHandler.class.php @@ -30,7 +30,7 @@ class ApplicationHandler extends SingletonFactory { /** * true for multi-domain setups - * @var boolean + * @var bool */ protected $isMultiDomain; @@ -194,7 +194,7 @@ class ApplicationHandler extends SingletonFactory { * Returns true if given $url is an internal URL. * * @param string $url - * @return boolean + * @return bool */ public function isInternalURL($url) { $protocolRegex = new Regex('^https(?=://)'); @@ -222,7 +222,7 @@ class ApplicationHandler extends SingletonFactory { /** * Returns true if this is a multi-domain setup. * - * @return boolean + * @return bool * @since 3.1 */ public function isMultiDomainSetup() { diff --git a/wcfsetup/install/files/lib/system/application/IApplication.class.php b/wcfsetup/install/files/lib/system/application/IApplication.class.php index 1bb28b8320..039e288812 100644 --- a/wcfsetup/install/files/lib/system/application/IApplication.class.php +++ b/wcfsetup/install/files/lib/system/application/IApplication.class.php @@ -18,7 +18,7 @@ interface IApplication { /** * Returns true if current application is treated as active and was invoked directly. * - * @return boolean + * @return bool */ public function isActiveApplication(); diff --git a/wcfsetup/install/files/lib/system/attachment/AttachmentHandler.class.php b/wcfsetup/install/files/lib/system/attachment/AttachmentHandler.class.php index 561643bb55..26ba0b48da 100644 --- a/wcfsetup/install/files/lib/system/attachment/AttachmentHandler.class.php +++ b/wcfsetup/install/files/lib/system/attachment/AttachmentHandler.class.php @@ -221,7 +221,7 @@ class AttachmentHandler implements \Countable { /** * Returns true if the active user has the permission to upload attachments. * - * @return boolean + * @return bool */ public function canUpload() { return $this->processor->canUpload($this->objectID, $this->parentObjectID); diff --git a/wcfsetup/install/files/lib/system/attachment/IAttachmentObjectType.class.php b/wcfsetup/install/files/lib/system/attachment/IAttachmentObjectType.class.php index e07ea34dfc..39caf394d9 100644 --- a/wcfsetup/install/files/lib/system/attachment/IAttachmentObjectType.class.php +++ b/wcfsetup/install/files/lib/system/attachment/IAttachmentObjectType.class.php @@ -16,7 +16,7 @@ interface IAttachmentObjectType { * Returns true if the active user has the permission to download attachments. * * @param int $objectID - * @return boolean + * @return bool */ public function canDownload($objectID); @@ -25,7 +25,7 @@ interface IAttachmentObjectType { * previews (thumbnails). * * @param int $objectID - * @return boolean + * @return bool */ public function canViewPreview($objectID); @@ -34,7 +34,7 @@ interface IAttachmentObjectType { * * @param int $objectID * @param int $parentObjectID - * @return boolean + * @return bool */ public function canUpload($objectID, $parentObjectID = 0); @@ -42,7 +42,7 @@ interface IAttachmentObjectType { * Returns true if the active user has the permission to delete attachments. * * @param int $objectID - * @return boolean + * @return bool */ public function canDelete($objectID); diff --git a/wcfsetup/install/files/lib/system/background/BackgroundQueueHandler.class.php b/wcfsetup/install/files/lib/system/background/BackgroundQueueHandler.class.php index 5d26a83764..86073479de 100644 --- a/wcfsetup/install/files/lib/system/background/BackgroundQueueHandler.class.php +++ b/wcfsetup/install/files/lib/system/background/BackgroundQueueHandler.class.php @@ -85,7 +85,7 @@ class BackgroundQueueHandler extends SingletonFactory { * queue. * * @param AbstractBackgroundJob $job The job to perform. - * @param boolean $debugSynchronousExecution Disables fail-safe mechanisms, errors will no longer be suppressed. + * @param bool $debugSynchronousExecution Disables fail-safe mechanisms, errors will no longer be suppressed. * @throws \Throwable */ public function performJob(AbstractBackgroundJob $job, $debugSynchronousExecution = false) { @@ -132,7 +132,7 @@ class BackgroundQueueHandler extends SingletonFactory { * Performs the (single) job that is due next. * This method automatically handles requeuing in case of failure. * - * @return boolean true if this call attempted to execute a job regardless of its result + * @return bool true if this call attempted to execute a job regardless of its result */ public function performNextJob() { WCF::getDB()->beginTransaction(); diff --git a/wcfsetup/install/files/lib/system/bbcode/BBCodeHandler.class.php b/wcfsetup/install/files/lib/system/bbcode/BBCodeHandler.class.php index 936657fa53..f51e508b1f 100644 --- a/wcfsetup/install/files/lib/system/bbcode/BBCodeHandler.class.php +++ b/wcfsetup/install/files/lib/system/bbcode/BBCodeHandler.class.php @@ -55,7 +55,7 @@ class BBCodeHandler extends SingletonFactory { * Returns true if the BBCode with the given tag is available in the WYSIWYG editor. * * @param string $bbCodeTag - * @return boolean + * @return bool */ public function isAvailableBBCode($bbCodeTag) { return !in_array($bbCodeTag, $this->disallowedBBCodes); @@ -73,7 +73,7 @@ class BBCodeHandler extends SingletonFactory { /** * Returns a list of BBCodes displayed as buttons. * - * @param boolean $excludeCoreBBCodes do not return bbcodes that are available by default + * @param bool $excludeCoreBBCodes do not return bbcodes that are available by default * @return BBCode[] */ public function getButtonBBCodes($excludeCoreBBCodes = false) { diff --git a/wcfsetup/install/files/lib/system/bbcode/BBCodeParser.class.php b/wcfsetup/install/files/lib/system/bbcode/BBCodeParser.class.php index 41117b8aca..b7fc491aca 100644 --- a/wcfsetup/install/files/lib/system/bbcode/BBCodeParser.class.php +++ b/wcfsetup/install/files/lib/system/bbcode/BBCodeParser.class.php @@ -208,7 +208,7 @@ class BBCodeParser extends SingletonFactory { * Validates the attributes of a tag. * * @param array $tag - * @return boolean + * @return bool */ protected function isValidTag(array $tag) { if (isset($tag['attributes']) && count($tag['attributes']) > count($this->bbcodes[$tag['name']]->getAttributes())) { @@ -250,7 +250,7 @@ class BBCodeParser extends SingletonFactory { * * @param array $tagAttributes * @param BBCodeAttribute $definedTagAttribute - * @return boolean + * @return bool */ protected function isValidTagAttribute(array $tagAttributes, BBCodeAttribute $definedTagAttribute) { if ($definedTagAttribute->validationPattern && isset($tagAttributes[$definedTagAttribute->attributeNo])) { @@ -271,7 +271,7 @@ class BBCodeParser extends SingletonFactory { * Returns true if the text inside the given text needs to be buffered. * * @param array $tag - * @return boolean + * @return bool */ protected function needBuffering(array $tag) { // check for special bbcode class @@ -338,8 +338,8 @@ class BBCodeParser extends SingletonFactory { * * @param array $openTags * @param string $tag - * @param boolean $closing - * @return boolean + * @param bool $closing + * @return bool */ protected function isAllowed(array $openTags, $tag, $closing = false) { foreach ($openTags as $openTag) { @@ -449,7 +449,7 @@ class BBCodeParser extends SingletonFactory { /** * Builds the tag array from the given text. * - * @param boolean $ignoreSourceCodes + * @param bool $ignoreSourceCodes */ public function buildTagArray($ignoreSourceCodes = true) { // build tag pattern diff --git a/wcfsetup/install/files/lib/system/bbcode/HtmlBBCodeParser.class.php b/wcfsetup/install/files/lib/system/bbcode/HtmlBBCodeParser.class.php index 5a10a010d2..334167ff93 100644 --- a/wcfsetup/install/files/lib/system/bbcode/HtmlBBCodeParser.class.php +++ b/wcfsetup/install/files/lib/system/bbcode/HtmlBBCodeParser.class.php @@ -36,7 +36,7 @@ class HtmlBBCodeParser extends BBCodeParser { /** * Google AMP support - * @var boolean + * @var bool */ protected $isGoogleAmp = false; @@ -93,7 +93,7 @@ class HtmlBBCodeParser extends BBCodeParser { /** * Enables or disables Google AMP support. * - * @param boolean $isGoogleAmp + * @param bool $isGoogleAmp * @since 3.1 */ public function setIsGoogleAmp($isGoogleAmp) { @@ -103,7 +103,7 @@ class HtmlBBCodeParser extends BBCodeParser { /** * Returns true if Google AMP support is enabled. * - * @return boolean + * @return bool * @since 3.1 */ public function getIsGoogleAmp() { @@ -365,7 +365,7 @@ class HtmlBBCodeParser extends BBCodeParser { * * @param string $name bbcode identifier * @param array $attributes list of attributes - * @param boolean $openingTagOnly only render the opening tag + * @param bool $openingTagOnly only render the opening tag * @return string */ public function buildBBCodeTag($name, $attributes, $openingTagOnly = false) { @@ -514,7 +514,7 @@ class HtmlBBCodeParser extends BBCodeParser { * Returns true if provided name is a valid bbcode identifier. * * @param string $name bbcode identifier - * @return boolean true if provided name is a valid bbcode identifier + * @return bool true if provided name is a valid bbcode identifier */ protected function isValidBBCodeName($name) { return preg_match($this->validBBCodePattern, $name) === 1; diff --git a/wcfsetup/install/files/lib/system/bbcode/MessageParser.class.php b/wcfsetup/install/files/lib/system/bbcode/MessageParser.class.php index 1bdbe2907a..eac74d57b9 100644 --- a/wcfsetup/install/files/lib/system/bbcode/MessageParser.class.php +++ b/wcfsetup/install/files/lib/system/bbcode/MessageParser.class.php @@ -62,10 +62,10 @@ class MessageParser extends BBCodeParser { * Parses a message. * * @param string $message - * @param boolean $enableSmilies - * @param boolean $enableHtml - * @param boolean $enableBBCodes - * @param boolean $doKeywordHighlighting + * @param bool $enableSmilies + * @param bool $enableHtml + * @param bool $enableBBCodes + * @param bool $doKeywordHighlighting * @return string parsed message */ public function parse($message, $enableSmilies = true, $enableHtml = false, $enableBBCodes = true, $doKeywordHighlighting = true) { @@ -130,7 +130,7 @@ class MessageParser extends BBCodeParser { * Parses smiley codes. * * @param string $text - * @param boolean $enableHtml + * @param bool $enableHtml * @return string */ protected function parseSmilies($text, $enableHtml = false) { diff --git a/wcfsetup/install/files/lib/system/bbcode/SimpleMessageParser.class.php b/wcfsetup/install/files/lib/system/bbcode/SimpleMessageParser.class.php index f9150502b2..9d95bf1e1e 100644 --- a/wcfsetup/install/files/lib/system/bbcode/SimpleMessageParser.class.php +++ b/wcfsetup/install/files/lib/system/bbcode/SimpleMessageParser.class.php @@ -73,8 +73,8 @@ class SimpleMessageParser extends SingletonFactory { * Parses the given message and returns the parsed message. * * @param string $message - * @param boolean $parseURLs - * @param boolean $parseSmilies + * @param bool $parseURLs + * @param bool $parseSmilies * @return string */ public function parse($message, $parseURLs = true, $parseSmilies = true) { diff --git a/wcfsetup/install/files/lib/system/bbcode/WoltLabSuiteMediaBBCode.class.php b/wcfsetup/install/files/lib/system/bbcode/WoltLabSuiteMediaBBCode.class.php index 5c7532d81d..af3000e071 100644 --- a/wcfsetup/install/files/lib/system/bbcode/WoltLabSuiteMediaBBCode.class.php +++ b/wcfsetup/install/files/lib/system/bbcode/WoltLabSuiteMediaBBCode.class.php @@ -19,7 +19,7 @@ class WoltLabSuiteMediaBBCode extends AbstractBBCode { /** * forces media links to be linked to the frontend * after it has been set to `true`, it should be set to `false` again as soon as possible - * @var boolean + * @var bool */ public static $forceFrontendLinks = false; 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 d392c127be..a55c1699ff 100644 --- a/wcfsetup/install/files/lib/system/bbcode/highlighter/Highlighter.class.php +++ b/wcfsetup/install/files/lib/system/bbcode/highlighter/Highlighter.class.php @@ -18,7 +18,7 @@ use wcf\util\StringUtil; abstract class Highlighter extends SingletonFactory { /** * allow multiline quotes - * @var boolean + * @var bool */ protected $allowsNewslinesInQuotes = false; diff --git a/wcfsetup/install/files/lib/system/box/AbstractDatabaseObjectListBoxController.class.php b/wcfsetup/install/files/lib/system/box/AbstractDatabaseObjectListBoxController.class.php index 6c04ff641f..18cd27640d 100644 --- a/wcfsetup/install/files/lib/system/box/AbstractDatabaseObjectListBoxController.class.php +++ b/wcfsetup/install/files/lib/system/box/AbstractDatabaseObjectListBoxController.class.php @@ -374,7 +374,7 @@ abstract class AbstractDatabaseObjectListBoxController extends AbstractBoxContro * with the box conditions. * * @param Box $box box object - * @param boolean $setConditionData if true, the condition object types are populated with the box conditions' data + * @param bool $setConditionData if true, the condition object types are populated with the box conditions' data */ public function setBox(Box $box, $setConditionData = true) { parent::setBox($box); diff --git a/wcfsetup/install/files/lib/system/box/BoxHandler.class.php b/wcfsetup/install/files/lib/system/box/BoxHandler.class.php index 9aabbad974..29c0980caa 100644 --- a/wcfsetup/install/files/lib/system/box/BoxHandler.class.php +++ b/wcfsetup/install/files/lib/system/box/BoxHandler.class.php @@ -38,7 +38,7 @@ class BoxHandler extends SingletonFactory { protected $boxesByPosition = []; /** - * @var boolean + * @var bool */ protected static $disablePageLayout = false; @@ -153,7 +153,7 @@ class BoxHandler extends SingletonFactory { * * @param string $boxIdentifier * @param string[] $pageIdentifiers - * @param boolean $visible + * @param bool $visible * @throws \InvalidArgumentException */ public function addBoxToPageAssignments($boxIdentifier, array $pageIdentifiers, $visible = true) { @@ -194,7 +194,7 @@ class BoxHandler extends SingletonFactory { /** * Returns true if the left sidebar contains at least one visible menu. * - * @return boolean + * @return bool * @since 3.1 */ public function sidebarLeftHasMenu() { @@ -218,7 +218,7 @@ class BoxHandler extends SingletonFactory { * Returns the list of boxes sorted by their global and page-local show order. * * @param int $pageID page id - * @param boolean $forDisplay enables content loading and removes inaccessible boxes from view + * @param bool $forDisplay enables content loading and removes inaccessible boxes from view * @return Box[][] */ public static function loadBoxes($pageID, $forDisplay) { @@ -308,7 +308,7 @@ class BoxHandler extends SingletonFactory { * Returns true if provided page id uses a custom box show order. * * @param int $pageID page id - * @return boolean true if there is a custom show order for boxes + * @return bool true if there is a custom show order for boxes */ public static function hasCustomShowOrder($pageID) { $sql = "SELECT COUNT(*) AS count diff --git a/wcfsetup/install/files/lib/system/box/IBoxController.class.php b/wcfsetup/install/files/lib/system/box/IBoxController.class.php index 8085f7bf2e..ec9f67029f 100644 --- a/wcfsetup/install/files/lib/system/box/IBoxController.class.php +++ b/wcfsetup/install/files/lib/system/box/IBoxController.class.php @@ -23,7 +23,7 @@ interface IBoxController { /** * Returns false if this box has no content. * - * @return boolean + * @return bool */ public function hasContent(); @@ -46,7 +46,7 @@ interface IBoxController { /** * Returns true if this box has a title link. * - * @return boolean + * @return bool */ public function hasLink(); diff --git a/wcfsetup/install/files/lib/system/box/RecentActivityListBoxController.class.php b/wcfsetup/install/files/lib/system/box/RecentActivityListBoxController.class.php index c050fe81a6..2fa1b3c98f 100644 --- a/wcfsetup/install/files/lib/system/box/RecentActivityListBoxController.class.php +++ b/wcfsetup/install/files/lib/system/box/RecentActivityListBoxController.class.php @@ -22,7 +22,7 @@ class RecentActivityListBoxController extends AbstractDatabaseObjectListBoxContr /** * is true if the list of recent activity can be filtered to only include * activities by followed users - * @var boolean + * @var bool */ public $canFilterByFollowedUsers = false; @@ -34,13 +34,13 @@ class RecentActivityListBoxController extends AbstractDatabaseObjectListBoxContr /** * is true if the list of recent activity is filtered to only include * activities by followed users - * @var boolean + * @var bool */ public $filteredByFollowedUsers = false; /** * is true if filtering by followed users yielded no results - * @var boolean + * @var bool */ public $filteredByFollowedUsersOverride = false; diff --git a/wcfsetup/install/files/lib/system/box/UserOnlineListBoxController.class.php b/wcfsetup/install/files/lib/system/box/UserOnlineListBoxController.class.php index b6cf1cff55..44f30d2b09 100644 --- a/wcfsetup/install/files/lib/system/box/UserOnlineListBoxController.class.php +++ b/wcfsetup/install/files/lib/system/box/UserOnlineListBoxController.class.php @@ -29,7 +29,7 @@ class UserOnlineListBoxController extends AbstractDatabaseObjectListBoxControlle /** * enables the display of the user online record - * @var boolean + * @var bool */ public $showRecord = true; diff --git a/wcfsetup/install/files/lib/system/breadcrumb/Breadcrumb.class.php b/wcfsetup/install/files/lib/system/breadcrumb/Breadcrumb.class.php index f10d1626de..d39819295a 100644 --- a/wcfsetup/install/files/lib/system/breadcrumb/Breadcrumb.class.php +++ b/wcfsetup/install/files/lib/system/breadcrumb/Breadcrumb.class.php @@ -47,7 +47,7 @@ class Breadcrumb { * May be left empty to disable url functionality. * * @param string $url - * @param boolean $appendSession This parameter is unused as of version 3.0 + * @param bool $appendSession This parameter is unused as of version 3.0 */ public function setURL($url, $appendSession = false) { $this->url = $url; diff --git a/wcfsetup/install/files/lib/system/bulk/processing/IBulkProcessingAction.class.php b/wcfsetup/install/files/lib/system/bulk/processing/IBulkProcessingAction.class.php index 4a17cf1b60..0680c00533 100644 --- a/wcfsetup/install/files/lib/system/bulk/processing/IBulkProcessingAction.class.php +++ b/wcfsetup/install/files/lib/system/bulk/processing/IBulkProcessingAction.class.php @@ -39,7 +39,7 @@ interface IBulkProcessingAction { /** * Returns true if the action is available for the active user. * - * @return boolean + * @return bool */ public function isAvailable(); diff --git a/wcfsetup/install/files/lib/system/bulk/processing/user/ExportMailAddressUserBulkProcessingAction.class.php b/wcfsetup/install/files/lib/system/bulk/processing/user/ExportMailAddressUserBulkProcessingAction.class.php index b7b5c9fa35..128189421f 100644 --- a/wcfsetup/install/files/lib/system/bulk/processing/user/ExportMailAddressUserBulkProcessingAction.class.php +++ b/wcfsetup/install/files/lib/system/bulk/processing/user/ExportMailAddressUserBulkProcessingAction.class.php @@ -35,7 +35,7 @@ class ExportMailAddressUserBulkProcessingAction extends AbstractUserBulkProcessi /** * indicates whether output was generated (i.e. executeAction was called) - * @var boolean + * @var bool */ private $executed = false; 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 439ab02d14..401ae0cb22 100644 --- a/wcfsetup/install/files/lib/system/cache/builder/ACPMenuCacheBuilder.class.php +++ b/wcfsetup/install/files/lib/system/cache/builder/ACPMenuCacheBuilder.class.php @@ -104,7 +104,7 @@ class ACPMenuCacheBuilder extends AbstractCacheBuilder { * options. * * @param OptionCategory $topCategory - * @return boolean + * @return bool */ protected function containsOptions(OptionCategory $topCategory) { // check if category directly contains options diff --git a/wcfsetup/install/files/lib/system/cache/builder/AbstractSortedUserCacheBuilder.class.php b/wcfsetup/install/files/lib/system/cache/builder/AbstractSortedUserCacheBuilder.class.php index c5678540a7..37c96ce944 100644 --- a/wcfsetup/install/files/lib/system/cache/builder/AbstractSortedUserCacheBuilder.class.php +++ b/wcfsetup/install/files/lib/system/cache/builder/AbstractSortedUserCacheBuilder.class.php @@ -31,7 +31,7 @@ abstract class AbstractSortedUserCacheBuilder extends AbstractCacheBuilder { /** * if `true`, only positive values of the database column will be considered - * @var boolean + * @var bool */ protected $positiveValuesOnly = false; diff --git a/wcfsetup/install/files/lib/system/cache/source/DiskCacheSource.class.php b/wcfsetup/install/files/lib/system/cache/source/DiskCacheSource.class.php index 9a7fa539e5..ee18b7b17b 100644 --- a/wcfsetup/install/files/lib/system/cache/source/DiskCacheSource.class.php +++ b/wcfsetup/install/files/lib/system/cache/source/DiskCacheSource.class.php @@ -111,7 +111,7 @@ class DiskCacheSource implements ICacheSource { * * @param string $filename * @param int $maxLifetime - * @return boolean + * @return bool */ protected function needRebuild($filename, $maxLifetime) { // cache does not exist diff --git a/wcfsetup/install/files/lib/system/cache/source/ICacheSource.class.php b/wcfsetup/install/files/lib/system/cache/source/ICacheSource.class.php index cb09a0f558..4a95b7c112 100644 --- a/wcfsetup/install/files/lib/system/cache/source/ICacheSource.class.php +++ b/wcfsetup/install/files/lib/system/cache/source/ICacheSource.class.php @@ -14,7 +14,7 @@ interface ICacheSource { * Flushes a specific cache, optionally removing caches which share the same name. * * @param string $cacheName - * @param boolean $useWildcard + * @param bool $useWildcard */ public function flush($cacheName, $useWildcard); diff --git a/wcfsetup/install/files/lib/system/captcha/ICaptchaHandler.class.php b/wcfsetup/install/files/lib/system/captcha/ICaptchaHandler.class.php index beb23d1c00..9466a800a1 100644 --- a/wcfsetup/install/files/lib/system/captcha/ICaptchaHandler.class.php +++ b/wcfsetup/install/files/lib/system/captcha/ICaptchaHandler.class.php @@ -20,7 +20,7 @@ interface ICaptchaHandler { /** * Returns true if this kind of captcha is available. * - * @return boolean + * @return bool */ public function isAvailable(); diff --git a/wcfsetup/install/files/lib/system/captcha/RecaptchaHandler.class.php b/wcfsetup/install/files/lib/system/captcha/RecaptchaHandler.class.php index bf77a5eeea..1ad370facc 100644 --- a/wcfsetup/install/files/lib/system/captcha/RecaptchaHandler.class.php +++ b/wcfsetup/install/files/lib/system/captcha/RecaptchaHandler.class.php @@ -29,7 +29,7 @@ class RecaptchaHandler implements ICaptchaHandler { /** * ACP option override - * @var boolean + * @var bool */ public static $forceIsAvailable = false; diff --git a/wcfsetup/install/files/lib/system/category/AbstractCategoryType.class.php b/wcfsetup/install/files/lib/system/category/AbstractCategoryType.class.php index 25cf09e5c1..1c8536e964 100644 --- a/wcfsetup/install/files/lib/system/category/AbstractCategoryType.class.php +++ b/wcfsetup/install/files/lib/system/category/AbstractCategoryType.class.php @@ -16,13 +16,13 @@ use wcf\system\WCF; abstract class AbstractCategoryType extends SingletonFactory implements ICategoryType { /** * indicates if categories of this type may have no empty description - * @var boolean + * @var bool */ protected $forceDescription = true; /** * indicates if categories of this type have descriptions - * @var boolean + * @var bool */ protected $hasDescription = true; diff --git a/wcfsetup/install/files/lib/system/category/ICategoryType.class.php b/wcfsetup/install/files/lib/system/category/ICategoryType.class.php index 12499a38ba..f6511c63fe 100644 --- a/wcfsetup/install/files/lib/system/category/ICategoryType.class.php +++ b/wcfsetup/install/files/lib/system/category/ICategoryType.class.php @@ -29,21 +29,21 @@ interface ICategoryType { /** * Returns true if the active user can add a category of this type. * - * @return boolean + * @return bool */ public function canAddCategory(); /** * Returns true if the active user can delete a category of this type. * - * @return boolean + * @return bool */ public function canDeleteCategory(); /** * Returns true if the active user can edit a category of this type. * - * @return boolean + * @return bool */ public function canEditCategory(); @@ -69,7 +69,7 @@ interface ICategoryType { /** * Returns true if a category of this type may have no empty description. * - * @return boolean + * @return bool */ public function forceDescription(); @@ -114,7 +114,7 @@ interface ICategoryType { * is used. * * @param string $name - * @param boolean $optional + * @param bool $optional * @return string */ public function getLanguageVariable($name, $optional = false); @@ -138,14 +138,14 @@ interface ICategoryType { /** * Returns true if categories of this type have descriptions. * - * @return boolean + * @return bool */ public function hasDescription(); /** * Returns `true` if the descriptions of categories of this type support HTML. * - * @return boolean + * @return bool * @since 5.2 */ public function supportsHtmlDescription(); diff --git a/wcfsetup/install/files/lib/system/cli/DatabaseCLICommandHistory.class.php b/wcfsetup/install/files/lib/system/cli/DatabaseCLICommandHistory.class.php index a6491f17fa..e0629231e2 100644 --- a/wcfsetup/install/files/lib/system/cli/DatabaseCLICommandHistory.class.php +++ b/wcfsetup/install/files/lib/system/cli/DatabaseCLICommandHistory.class.php @@ -14,14 +14,14 @@ use wcf\system\WCF; class DatabaseCLICommandHistory extends MemoryHistory { /** * should the history automatically be saved - * @var boolean + * @var bool */ public $autoSave = true; /** * Saves the history. * - * @param boolean $append + * @param bool $append */ public function save($append = false) { if (!$append) { diff --git a/wcfsetup/install/files/lib/system/cli/command/ICLICommand.class.php b/wcfsetup/install/files/lib/system/cli/command/ICLICommand.class.php index 083e244245..9109dda1fb 100644 --- a/wcfsetup/install/files/lib/system/cli/command/ICLICommand.class.php +++ b/wcfsetup/install/files/lib/system/cli/command/ICLICommand.class.php @@ -20,7 +20,7 @@ interface ICLICommand { /** * Returns true if the user is allowed to use this command. * - * @return boolean + * @return bool */ public function canAccess(); } 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 21e857af1f..3ad6bcc230 100644 --- a/wcfsetup/install/files/lib/system/cli/command/ImportCLICommand.class.php +++ b/wcfsetup/install/files/lib/system/cli/command/ImportCLICommand.class.php @@ -80,7 +80,7 @@ class ImportCLICommand implements ICLICommand { /** * indicates if the imported will be quit - * @var boolean + * @var bool */ protected $quitImport = false; 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 2605995eac..3ee1dbf165 100644 --- a/wcfsetup/install/files/lib/system/clipboard/action/UserClipboardAction.class.php +++ b/wcfsetup/install/files/lib/system/clipboard/action/UserClipboardAction.class.php @@ -124,7 +124,7 @@ class UserClipboardAction extends AbstractClipboardAction { * Validates accessible groups. * * @param int[] $userIDs - * @param boolean $ignoreOwnUser + * @param bool $ignoreOwnUser * @return int[] */ protected function __validateAccessibleGroups(array $userIDs, $ignoreOwnUser = true) { diff --git a/wcfsetup/install/files/lib/system/comment/CommentHandler.class.php b/wcfsetup/install/files/lib/system/comment/CommentHandler.class.php index 4670606db3..b9d183176a 100644 --- a/wcfsetup/install/files/lib/system/comment/CommentHandler.class.php +++ b/wcfsetup/install/files/lib/system/comment/CommentHandler.class.php @@ -104,7 +104,7 @@ class CommentHandler extends SingletonFactory { * @param ICommentManager $commentManager * @param int $objectTypeID * @param int $objectID - * @param boolean $readObjects + * @param bool $readObjects * @return StructuredCommentList */ public function getCommentList(ICommentManager $commentManager, $objectTypeID, $objectID, $readObjects = true) { diff --git a/wcfsetup/install/files/lib/system/comment/manager/AbstractCommentManager.class.php b/wcfsetup/install/files/lib/system/comment/manager/AbstractCommentManager.class.php index f72e06c9a3..9a43c96501 100644 --- a/wcfsetup/install/files/lib/system/comment/manager/AbstractCommentManager.class.php +++ b/wcfsetup/install/files/lib/system/comment/manager/AbstractCommentManager.class.php @@ -150,8 +150,8 @@ abstract class AbstractCommentManager extends SingletonFactory implements IComme /** * Returns true if the current user may edit a comment/response. * - * @param boolean $isOwner - * @return boolean + * @param bool $isOwner + * @return bool */ protected function canEdit($isOwner) { // disallow guests @@ -175,8 +175,8 @@ abstract class AbstractCommentManager extends SingletonFactory implements IComme /** * Returns true if the current user may delete a comment/response. * - * @param boolean $isOwner - * @return boolean + * @param bool $isOwner + * @return bool */ protected function canDelete($isOwner) { // disallow guests diff --git a/wcfsetup/install/files/lib/system/comment/manager/ICommentManager.class.php b/wcfsetup/install/files/lib/system/comment/manager/ICommentManager.class.php index 9094b2f7f9..4220738032 100644 --- a/wcfsetup/install/files/lib/system/comment/manager/ICommentManager.class.php +++ b/wcfsetup/install/files/lib/system/comment/manager/ICommentManager.class.php @@ -16,7 +16,7 @@ interface ICommentManager { * Returns true if the current user may add comments or responses. * * @param int $objectID - * @return boolean + * @return bool */ public function canAdd($objectID); @@ -24,7 +24,7 @@ interface ICommentManager { * Returns true if a comment requires approval. * * @param int $objectID - * @return boolean + * @return bool */ public function canAddWithoutApproval($objectID); @@ -32,7 +32,7 @@ interface ICommentManager { * Returns true if the current user may edit given comment. * * @param Comment $comment - * @return boolean + * @return bool */ public function canEditComment(Comment $comment); @@ -40,7 +40,7 @@ interface ICommentManager { * Returns true if the current user may edit given response. * * @param CommentResponse $response - * @return boolean + * @return bool */ public function canEditResponse(CommentResponse $response); @@ -48,7 +48,7 @@ interface ICommentManager { * Returns true if the current user may delete given comment. * * @param Comment $comment - * @return boolean + * @return bool */ public function canDeleteComment(Comment $comment); @@ -65,7 +65,7 @@ interface ICommentManager { * * @param int $objectTypeID * @param int $objectID - * @return boolean + * @return bool */ public function canModerate($objectTypeID, $objectID); @@ -106,7 +106,7 @@ interface ICommentManager { * * @param int $objectTypeID * @param int $objectID - * @param boolean $isResponse + * @param bool $isResponse * @return string */ public function getTitle($objectTypeID, $objectID, $isResponse = false); @@ -116,8 +116,8 @@ interface ICommentManager { * by current user. * * @param int $objectID - * @param boolean $validateWritePermission - * @return boolean + * @param bool $validateWritePermission + * @return bool */ public function isAccessible($objectID, $validateWritePermission = false); @@ -132,14 +132,14 @@ interface ICommentManager { /** * Returns true if this comment type supports likes. * - * @return boolean + * @return bool */ public function supportsLike(); /** * Returns true if this comment type supports reports. * - * @return boolean + * @return bool */ public function supportsReport(); @@ -153,7 +153,7 @@ interface ICommentManager { * the content's author. * * @param Comment|CommentResponse $commentOrResponse - * @return boolean + * @return bool */ public function isContentAuthor($commentOrResponse); } diff --git a/wcfsetup/install/files/lib/system/condition/AbstractObjectTextPropertyCondition.class.php b/wcfsetup/install/files/lib/system/condition/AbstractObjectTextPropertyCondition.class.php index 9df56bd01d..f619cd2a4e 100644 --- a/wcfsetup/install/files/lib/system/condition/AbstractObjectTextPropertyCondition.class.php +++ b/wcfsetup/install/files/lib/system/condition/AbstractObjectTextPropertyCondition.class.php @@ -25,7 +25,7 @@ abstract class AbstractObjectTextPropertyCondition extends AbstractTextCondition /** * is true if the entered value should be split by commas to search for * multiple values - * @var boolean + * @var bool */ protected $supportsMultipleValues = false; diff --git a/wcfsetup/install/files/lib/system/condition/IContentCondition.class.php b/wcfsetup/install/files/lib/system/condition/IContentCondition.class.php index 2c60d5ac6d..f5f42b550f 100644 --- a/wcfsetup/install/files/lib/system/condition/IContentCondition.class.php +++ b/wcfsetup/install/files/lib/system/condition/IContentCondition.class.php @@ -18,7 +18,7 @@ interface IContentCondition extends ICondition { * like the active user object via WCF::getUser(). * * @param Condition $condition - * @return boolean + * @return bool */ public function showContent(Condition $condition); } diff --git a/wcfsetup/install/files/lib/system/condition/IObjectCondition.class.php b/wcfsetup/install/files/lib/system/condition/IObjectCondition.class.php index f35fb48868..5a5615eb49 100644 --- a/wcfsetup/install/files/lib/system/condition/IObjectCondition.class.php +++ b/wcfsetup/install/files/lib/system/condition/IObjectCondition.class.php @@ -19,7 +19,7 @@ interface IObjectCondition extends ICondition { * * @param DatabaseObject $object * @param array $conditionData - * @return boolean + * @return bool */ public function checkObject(DatabaseObject $object, array $conditionData); } diff --git a/wcfsetup/install/files/lib/system/condition/IUserCondition.class.php b/wcfsetup/install/files/lib/system/condition/IUserCondition.class.php index 0b3216cc6b..b373d0849d 100644 --- a/wcfsetup/install/files/lib/system/condition/IUserCondition.class.php +++ b/wcfsetup/install/files/lib/system/condition/IUserCondition.class.php @@ -27,7 +27,7 @@ interface IUserCondition extends ICondition { * * @param Condition $condition * @param User $user - * @return boolean + * @return bool */ public function checkUser(Condition $condition, User $user); } diff --git a/wcfsetup/install/files/lib/system/database/Database.class.php b/wcfsetup/install/files/lib/system/database/Database.class.php index 95b1d21e91..da0e6090d8 100644 --- a/wcfsetup/install/files/lib/system/database/Database.class.php +++ b/wcfsetup/install/files/lib/system/database/Database.class.php @@ -62,7 +62,7 @@ abstract class Database { /** * enables failsafe connection - * @var boolean + * @var bool */ protected $failsafeTest = false; @@ -92,7 +92,7 @@ abstract class Database { /** * attempts to create the database after the connection has been established - * @var boolean + * @var bool */ protected $tryToCreateDatabase = false; @@ -110,8 +110,8 @@ abstract class Database { * @param string $password SQL database server password * @param string $database SQL database server database name * @param int $port SQL database server port - * @param boolean $failsafeTest - * @param boolean $tryToCreateDatabase + * @param bool $failsafeTest + * @param bool $tryToCreateDatabase * @param array $defaultDriverOptions */ public function __construct($host, $user, $password, $database, $port, $failsafeTest = false, $tryToCreateDatabase = false, $defaultDriverOptions = []) { @@ -157,7 +157,7 @@ abstract class Database { /** * Initiates a transaction. * - * @return boolean true on success + * @return bool true on success * @throws DatabaseTransactionException */ public function beginTransaction() { @@ -184,7 +184,7 @@ abstract class Database { /** * Commits a transaction and returns true if the transaction was successful. * - * @return boolean + * @return bool * @throws DatabaseTransactionException */ public function commitTransaction() { @@ -214,7 +214,7 @@ abstract class Database { /** * Rolls back a transaction and returns true if the rollback was successful. * - * @return boolean + * @return bool * @throws DatabaseTransactionException */ public function rollBackTransaction() { @@ -411,7 +411,7 @@ abstract class Database { /** * Returns true if this database type is supported. * - * @return boolean + * @return bool */ public static function isSupported() { return false; diff --git a/wcfsetup/install/files/lib/system/database/Redis.class.php b/wcfsetup/install/files/lib/system/database/Redis.class.php index 4aadd3d425..ee1bf2fe16 100644 --- a/wcfsetup/install/files/lib/system/database/Redis.class.php +++ b/wcfsetup/install/files/lib/system/database/Redis.class.php @@ -12,15 +12,15 @@ use wcf\util\StringUtil; * @package WoltLabSuite\Core\System\Database * * @method int del($key1, $key2 = null, $key3 = null) - * @method boolean expire($key, $ttl) + * @method bool expire($key, $ttl) * @method string|bool get($key) * @method int hDel($key, $hashKey1, $hashKey2 = null, $hashKeyN = null) * @method string hGet($key, $hashKey) * @method int hSet($key, $hashKey, $value) * @method int incr($key) * @method string info($option = null) - * @method boolean setex($key, $ttl, $value) - * @method boolean setnx($key, $value) + * @method bool setex($key, $ttl, $value) + * @method bool setnx($key, $value) * @method int ttl($key) */ class Redis { diff --git a/wcfsetup/install/files/lib/system/database/statement/PreparedStatement.class.php b/wcfsetup/install/files/lib/system/database/statement/PreparedStatement.class.php index 41cf541d23..84ef7640a5 100644 --- a/wcfsetup/install/files/lib/system/database/statement/PreparedStatement.class.php +++ b/wcfsetup/install/files/lib/system/database/statement/PreparedStatement.class.php @@ -216,7 +216,7 @@ class PreparedStatement { * * @param string $keyColumn name of the key column * @param string $valueColumn name of the value column - * @param boolean $uniqueKey if `true`, a one-dimensional array is returned, otherwise, for each key an array of fetched values is returned + * @param bool $uniqueKey if `true`, a one-dimensional array is returned, otherwise, for each key an array of fetched values is returned * @return string[]|string[][] */ public function fetchMap($keyColumn, $valueColumn, $uniqueKey = true) { diff --git a/wcfsetup/install/files/lib/system/database/util/ConditionBuilder.class.php b/wcfsetup/install/files/lib/system/database/util/ConditionBuilder.class.php index d6e349a1fc..e4d22f0185 100644 --- a/wcfsetup/install/files/lib/system/database/util/ConditionBuilder.class.php +++ b/wcfsetup/install/files/lib/system/database/util/ConditionBuilder.class.php @@ -12,7 +12,7 @@ namespace wcf\system\database\util; class ConditionBuilder { /** * must be true to add the 'WHERE' keyword automatically - * @var boolean + * @var bool */ protected $addWhereKeyword = true; @@ -31,7 +31,7 @@ class ConditionBuilder { /** * Creates a new ConditionBuilder object. * - * @param boolean $addWhereKeyword + * @param bool $addWhereKeyword * @param string $concat */ public function __construct($addWhereKeyword = true, $concat = 'AND') { @@ -65,7 +65,7 @@ class ConditionBuilder { /** * Enables / disables the where keyword. * - * @param boolean $enable + * @param bool $enable */ public function enableWhereKeyword($enable = true) { $this->addWhereKeyword = $enable; diff --git a/wcfsetup/install/files/lib/system/devtools/DevtoolsSetup.class.php b/wcfsetup/install/files/lib/system/devtools/DevtoolsSetup.class.php index 2818956252..08b6ce4cfa 100644 --- a/wcfsetup/install/files/lib/system/devtools/DevtoolsSetup.class.php +++ b/wcfsetup/install/files/lib/system/devtools/DevtoolsSetup.class.php @@ -73,7 +73,7 @@ class DevtoolsSetup extends SingletonFactory { * Returns true if the suggested default paths for the Core and, if exists, * the bundled app should be used. * - * @return boolean + * @return bool */ public function useDefaultInstallPath() { return (isset($this->configuration['setup']) && isset($this->configuration['setup']['useDefaultInstallPath']) && $this->configuration['setup']['useDefaultInstallPath'] === true); @@ -83,7 +83,7 @@ class DevtoolsSetup extends SingletonFactory { * Returns true if a static cookie prefix should be used, instead of the randomized * value used for non-dev-mode installations. * - * @return boolean + * @return bool */ public function forceStaticCookiePrefix() { return (isset($this->configuration['setup']) && isset($this->configuration['setup']['forceStaticCookiePrefix']) && $this->configuration['setup']['forceStaticCookiePrefix'] === true); diff --git a/wcfsetup/install/files/lib/system/devtools/package/DevtoolsPackageXmlWriter.class.php b/wcfsetup/install/files/lib/system/devtools/package/DevtoolsPackageXmlWriter.class.php index c4449c5187..0e18d91f90 100644 --- a/wcfsetup/install/files/lib/system/devtools/package/DevtoolsPackageXmlWriter.class.php +++ b/wcfsetup/install/files/lib/system/devtools/package/DevtoolsPackageXmlWriter.class.php @@ -48,7 +48,7 @@ class DevtoolsPackageXmlWriter { * section or `false`, otherwise. * * @param string $string - * @return boolean + * @return bool */ protected function requiresCdata($string) { return strpos($string, '<') !== false || diff --git a/wcfsetup/install/files/lib/system/devtools/pip/DevtoolsPip.class.php b/wcfsetup/install/files/lib/system/devtools/pip/DevtoolsPip.class.php index f2962b2af3..e2a1cd3af0 100644 --- a/wcfsetup/install/files/lib/system/devtools/pip/DevtoolsPip.class.php +++ b/wcfsetup/install/files/lib/system/devtools/pip/DevtoolsPip.class.php @@ -44,7 +44,7 @@ class DevtoolsPip extends DatabaseObjectDecorator { /** * Returns true if the PIP class can be found. * - * @return boolean + * @return bool */ public function classExists() { return class_exists($this->getDecoratedObject()->className); @@ -53,7 +53,7 @@ class DevtoolsPip extends DatabaseObjectDecorator { /** * Returns true if the PIP is expected to be idempotent. * - * @return boolean + * @return bool */ public function isIdempotent() { return is_subclass_of($this->getDecoratedObject()->className, IIdempotentPackageInstallationPlugin::class); @@ -75,7 +75,7 @@ class DevtoolsPip extends DatabaseObjectDecorator { /** * Returns true if the PIP exists, has a default filename and is idempotent. * - * @return boolean + * @return bool */ public function isSupported() { return $this->classExists() && $this->getDefaultFilename() && $this->isIdempotent(); @@ -84,7 +84,7 @@ class DevtoolsPip extends DatabaseObjectDecorator { /** * Returns `true` if this pip supports adding and editing entries via a gui. * - * @return boolean + * @return bool * @since 5.2 */ public function supportsGui() { diff --git a/wcfsetup/install/files/lib/system/devtools/pip/IGuiPackageInstallationPlugin.class.php b/wcfsetup/install/files/lib/system/devtools/pip/IGuiPackageInstallationPlugin.class.php index 2c32879753..5f371ead8a 100644 --- a/wcfsetup/install/files/lib/system/devtools/pip/IGuiPackageInstallationPlugin.class.php +++ b/wcfsetup/install/files/lib/system/devtools/pip/IGuiPackageInstallationPlugin.class.php @@ -109,7 +109,7 @@ interface IGuiPackageInstallationPlugin extends IIdempotentPackageInstallationPl * Returns `true` if this package installation plugin supports delete * instructions. * - * @return boolean + * @return bool */ public function supportsDeleteInstruction(); } diff --git a/wcfsetup/install/files/lib/system/devtools/pip/TMultiXmlGuiPackageInstallationPlugin.class.php b/wcfsetup/install/files/lib/system/devtools/pip/TMultiXmlGuiPackageInstallationPlugin.class.php index 923c4bf16a..8ecbef2d7d 100644 --- a/wcfsetup/install/files/lib/system/devtools/pip/TMultiXmlGuiPackageInstallationPlugin.class.php +++ b/wcfsetup/install/files/lib/system/devtools/pip/TMultiXmlGuiPackageInstallationPlugin.class.php @@ -134,7 +134,7 @@ trait TMultiXmlGuiPackageInstallationPlugin { /** * Returns the xml objects for this pip. * - * @param boolean $createXmlFiles if `true` and if a relevant XML file does not exist, it is created + * @param bool $createXmlFiles if `true` and if a relevant XML file does not exist, it is created * @return XML[] */ abstract protected function getProjectXmls($createXmlFiles = false); diff --git a/wcfsetup/install/files/lib/system/devtools/pip/TXmlGuiPackageInstallationPlugin.class.php b/wcfsetup/install/files/lib/system/devtools/pip/TXmlGuiPackageInstallationPlugin.class.php index b078e7618c..29d046168e 100644 --- a/wcfsetup/install/files/lib/system/devtools/pip/TXmlGuiPackageInstallationPlugin.class.php +++ b/wcfsetup/install/files/lib/system/devtools/pip/TXmlGuiPackageInstallationPlugin.class.php @@ -180,7 +180,7 @@ trait TXmlGuiPackageInstallationPlugin { * on the value of `$addDeleteInstruction`, adds a delete instruction. * * @param string $identifier - * @param boolean $addDeleteInstruction + * @param bool $addDeleteInstruction */ public function deleteEntry($identifier, $addDeleteInstruction) { $xml = $this->getProjectXml(); @@ -225,7 +225,7 @@ trait TXmlGuiPackageInstallationPlugin { * because there is no content left. * * @param \DOMDocument $document sanitized document - * @return boolean + * @return bool */ protected function sanitizeXmlFileAfterDeleteEntry(\DOMDocument $document) { $data = $document->getElementsByTagName('data')->item(0); @@ -690,7 +690,7 @@ XML; * Returns `true` if this package installation plugin supports delete * instructions. * - * @return boolean + * @return bool */ public function supportsDeleteInstruction() { return true; diff --git a/wcfsetup/install/files/lib/system/email/Email.class.php b/wcfsetup/install/files/lib/system/email/Email.class.php index 15af59d45a..d2a3f974e8 100644 --- a/wcfsetup/install/files/lib/system/email/Email.class.php +++ b/wcfsetup/install/files/lib/system/email/Email.class.php @@ -81,7 +81,7 @@ class Email { /** * Whether the listUnsubscribe URI has One-Click support - * @var boolean + * @var bool * @since 5.3 */ protected $listUnsubscribeOneClick = false; @@ -323,7 +323,7 @@ class Email { * with the value 'List-Unsubscribe=One-Click' is added. * * @param string $uri - * @param boolean $supportsOneClick + * @param bool $supportsOneClick * @since 5.3 */ public function setListUnsubscribe($uri, $supportsOneClick = false) { diff --git a/wcfsetup/install/files/lib/system/exporter/IExporter.class.php b/wcfsetup/install/files/lib/system/exporter/IExporter.class.php index b54decac58..e5fff6f44a 100644 --- a/wcfsetup/install/files/lib/system/exporter/IExporter.class.php +++ b/wcfsetup/install/files/lib/system/exporter/IExporter.class.php @@ -54,7 +54,7 @@ interface IExporter { /** * Validates given file system path. Returns false on failure. * - * @return boolean + * @return bool */ public function validateFileAccess(); @@ -62,7 +62,7 @@ interface IExporter { * Validates the selected data types. Returns false on failure. * * @param array $selectedData - * @return boolean + * @return bool */ public function validateSelectedData(array $selectedData); diff --git a/wcfsetup/install/files/lib/system/file/upload/UploadField.class.php b/wcfsetup/install/files/lib/system/file/upload/UploadField.class.php index 34c62c1294..de6a27cfdd 100644 --- a/wcfsetup/install/files/lib/system/file/upload/UploadField.class.php +++ b/wcfsetup/install/files/lib/system/file/upload/UploadField.class.php @@ -31,7 +31,7 @@ class UploadField { /** * This flag indicates whether only images can uploaded via this field. - * @var boolean + * @var bool */ public $imageOnly = false; @@ -39,7 +39,7 @@ class UploadField { * This flag indicates whether only images can uploaded via this field. * Heads up: SVG images can contain bad code, therefore do not * use this option, outside the acp or check the file whether remote code is contained. - * @var boolean + * @var bool */ public $allowSvgImage = false; @@ -62,7 +62,7 @@ class UploadField { /** * Indicates the support of multiple files. * - * @return boolean + * @return bool */ public function supportMultipleFiles() { return $this->maxFiles === null || $this->maxFiles > 1; @@ -80,7 +80,7 @@ class UploadField { /** * Returns `true` if only images can be uploaded via this field and returns `false` otherwise. * - * @return boolean + * @return bool */ public function isImageOnly() { return $this->imageOnly; @@ -89,7 +89,7 @@ class UploadField { /** * Returns true, if the field can contain svg images in the image only mode. * - * @return boolean + * @return bool */ public function svgImageAllowed() { return $this->allowSvgImage; @@ -129,7 +129,7 @@ class UploadField { * If set to `true` will also set the acceptable types to `image/*`. If set to * false it will clear the acceptable types if they are `image/*`. * - * @param boolean $imageOnly + * @param bool $imageOnly */ public function setImageOnly($imageOnly) { $this->imageOnly = $imageOnly; @@ -155,7 +155,7 @@ class UploadField { * Heads up: SVG images can contain bad code, therefore do not * use this option, outside the acp or check the file whether remote code is contained. * - * @param boolean $allowSvgImage + * @param bool $allowSvgImage * * @throws \BadMethodCallException if the imageOnly flag isn't set to true */ diff --git a/wcfsetup/install/files/lib/system/file/upload/UploadFile.class.php b/wcfsetup/install/files/lib/system/file/upload/UploadFile.class.php index d47899db47..adea882ac9 100644 --- a/wcfsetup/install/files/lib/system/file/upload/UploadFile.class.php +++ b/wcfsetup/install/files/lib/system/file/upload/UploadFile.class.php @@ -34,7 +34,7 @@ class UploadFile { /** * Indicator, whether the file is already processed. - * @var boolean + * @var bool */ private $processed; @@ -46,13 +46,13 @@ class UploadFile { /** * Indicator, whether the file is an image. - * @var boolean + * @var bool */ private $isImage; /** * Indicator, whether the file can be displayed as an image. - * @var boolean + * @var bool */ public $viewableImage; @@ -73,9 +73,9 @@ class UploadFile { * * @param string $location * @param string $filename - * @param boolean $viewableImage - * @param boolean $processed - * @param boolean $detectSvgAsImage + * @param bool $viewableImage + * @param bool $processed + * @param bool $detectSvgAsImage */ public function __construct($location, $filename, $viewableImage = true, $processed = false, $detectSvgAsImage = false) { if (!file_exists($location)) { @@ -101,7 +101,7 @@ class UploadFile { /** * Returns true, whether this file is an image. * - * @return boolean + * @return bool */ public function isImage() { return $this->isImage; @@ -198,7 +198,7 @@ class UploadFile { /** * Returns true, if the file is already processed. * - * @return boolean + * @return bool */ public function isProcessed() { return $this->processed; diff --git a/wcfsetup/install/files/lib/system/file/upload/UploadHandler.class.php b/wcfsetup/install/files/lib/system/file/upload/UploadHandler.class.php index f27ac697b8..0771635aaf 100644 --- a/wcfsetup/install/files/lib/system/file/upload/UploadHandler.class.php +++ b/wcfsetup/install/files/lib/system/file/upload/UploadHandler.class.php @@ -108,7 +108,7 @@ class UploadHandler extends SingletonFactory { * Returns the removed but previosly proccessed files for a specific fieldId. * * @param string $fieldId - * @param boolean $processFiles + * @param bool $processFiles * @return UploadFile[] * * @throws \InvalidArgumentException if the given fieldId is unknown @@ -125,7 +125,7 @@ class UploadHandler extends SingletonFactory { * Returns the removed but previosly proccessed files for a specific internalId. * * @param string $internalId - * @param boolean $processFiles + * @param bool $processFiles * @return UploadFile[] */ public function getRemovedFiledByInternalId($internalId, $processFiles = true) { @@ -221,7 +221,7 @@ class UploadHandler extends SingletonFactory { * Returns true, if the given internalId is valid. * * @param string $internalId - * @return boolean + * @return bool */ public function isValidInternalId($internalId) { return isset($this->getStorage()[$internalId]); @@ -232,7 +232,7 @@ class UploadHandler extends SingletonFactory { * * @param string $internalId * @param string $uniqueFileId - * @return boolean + * @return bool */ public function isValidUniqueFileId($internalId, $uniqueFileId) { return $this->getFileByUniqueFileId($internalId, $uniqueFileId) !== null; @@ -358,7 +358,7 @@ class UploadHandler extends SingletonFactory { * Returns true, iff a field with the given fieldId is already registered. * * @param string $fieldId - * @return boolean + * @return bool */ public function isRegisteredFieldId($fieldId) { return isset($this->fields[$fieldId]); diff --git a/wcfsetup/install/files/lib/system/form/builder/FormDocument.class.php b/wcfsetup/install/files/lib/system/form/builder/FormDocument.class.php index 97a7dd7806..724087d16d 100644 --- a/wcfsetup/install/files/lib/system/form/builder/FormDocument.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/FormDocument.class.php @@ -40,14 +40,14 @@ class FormDocument implements IFormDocument { /** * `true` if the default button is added and `false` otherwise - * @var boolean + * @var bool */ protected $addDefaultButton = true; /** * `true` if form is requested via an AJAX request or processes data via an AJAX request * and `false` otherwise - * @var boolean + * @var bool */ protected $ajax = false; @@ -65,7 +65,7 @@ class FormDocument implements IFormDocument { /** * indicates if the form data has been read via `readData()` - * @var boolean + * @var bool */ protected $didReadValues = false; @@ -89,7 +89,7 @@ class FormDocument implements IFormDocument { /** * is `true` if form document is in invalid due to external factors and is `false` otherwise - * @var boolean + * @var bool */ protected $invalid = false; @@ -126,13 +126,13 @@ class FormDocument implements IFormDocument { /** * is `true` if global form error message will be shown if there are validation errors and * is `false` otherwise - * @var boolean + * @var bool */ protected $showErrorMessage = true; /** * is `true` if global form success message will be shown and is `false` otherwise - * @var boolean + * @var bool */ protected $showSuccessMessage = false; diff --git a/wcfsetup/install/files/lib/system/form/builder/IFormDocument.class.php b/wcfsetup/install/files/lib/system/form/builder/IFormDocument.class.php index 91ee25fbdd..7b3f06c94a 100644 --- a/wcfsetup/install/files/lib/system/form/builder/IFormDocument.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/IFormDocument.class.php @@ -48,7 +48,7 @@ interface IFormDocument extends IFormParentNode { /** * Sets whether the default button is added to the form during in the `build()` method. * - * @param boolean $addDefaultButton + * @param bool $addDefaultButton * @return static this document * @throws \BadMethodCallException if the form has already been built */ @@ -58,7 +58,7 @@ interface IFormDocument extends IFormParentNode { * Sets whether this form is requested via an AJAX request or processes data via an AJAX * request and returns his document. * - * @param boolean $ajax + * @param bool $ajax * @return static this document */ public function ajax($ajax = true); @@ -79,7 +79,7 @@ interface IFormDocument extends IFormParentNode { /** * Returns `true` if the form data has been read via `readData()` and `false` otherwise. * - * @return boolean + * @return bool */ public function didReadValues(); @@ -233,7 +233,7 @@ interface IFormDocument extends IFormParentNode { * Returns `true` if a button with the given id exists and `false` otherwise. * * @param string $buttonId id of checked button - * @return boolean + * @return bool */ public function hasButton($buttonId); @@ -244,7 +244,7 @@ interface IFormDocument extends IFormParentNode { * By default, the default button is added. * Each implementing class can define itself what it considers its default button. * - * @return boolean + * @return bool */ public function hasDefaultButton(); @@ -265,7 +265,7 @@ interface IFormDocument extends IFormParentNode { * * By default, this method returns `false`. * - * @return boolean + * @return bool */ public function isAjax(); @@ -275,14 +275,14 @@ interface IFormDocument extends IFormParentNode { * * By default, the form document is not invalid. * - * @return boolean + * @return bool */ public function isInvalid(); /** * Sets if the form document is in invalid due to external factors. * - * @param boolean $invalid + * @param bool $invalid * @return static this document */ public function invalid($invalid = true); @@ -303,7 +303,7 @@ interface IFormDocument extends IFormParentNode { * This method automatically sets the form mode to `self::FORM_MODE_UPDATE`. * * @param IStorableObject $object updated object - * @param boolean $loadValues indicates if the object's values are loaded + * @param bool $loadValues indicates if the object's values are loaded * @return static this document */ public function updatedObject(IStorableObject $object, $loadValues = true); @@ -361,7 +361,7 @@ interface IFormDocument extends IFormParentNode { /** * Sets if the global form error message should be shown if the form has validation errors. * - * @param boolean $showErrorMessage + * @param bool $showErrorMessage * @return static this document */ public function showErrorMessage($showErrorMessage = true); @@ -369,7 +369,7 @@ interface IFormDocument extends IFormParentNode { /** * Sets if the global form success message should be shown. * - * @param boolean $showSuccessMessage + * @param bool $showSuccessMessage * @return static this document */ public function showSuccessMessage($showSuccessMessage = true); @@ -380,7 +380,7 @@ interface IFormDocument extends IFormParentNode { * * By default, the global form error message is shown. * - * @return boolean + * @return bool */ public function showsErrorMessage(); @@ -389,7 +389,7 @@ interface IFormDocument extends IFormParentNode { * * By default, the global form error message is not shown. * - * @return boolean + * @return bool */ public function showsSuccessMessage(); diff --git a/wcfsetup/install/files/lib/system/form/builder/button/FormButton.class.php b/wcfsetup/install/files/lib/system/form/builder/button/FormButton.class.php index e3262e7191..ca8806ee87 100644 --- a/wcfsetup/install/files/lib/system/form/builder/button/FormButton.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/button/FormButton.class.php @@ -25,7 +25,7 @@ class FormButton implements IFormButton { /** * `true` this button is an `input[type=submit]` element and `false` if it is a `button` element - * @var boolean + * @var bool */ protected $submit = false; diff --git a/wcfsetup/install/files/lib/system/form/builder/button/IFormButton.class.php b/wcfsetup/install/files/lib/system/form/builder/button/IFormButton.class.php index 62bf969d53..977db49e9c 100644 --- a/wcfsetup/install/files/lib/system/form/builder/button/IFormButton.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/button/IFormButton.class.php @@ -36,14 +36,14 @@ interface IFormButton extends IFormChildNode, IFormElement { * Returns `true` this button is an `input[type=submit]` element and `false` if it is a `button` * element. * - * @return boolean + * @return bool */ public function isSubmit(); /** * Sets whether this button is an `input[type=submit]` element or a `button` element. * - * @param boolean $submitButton + * @param bool $submitButton * @return static this form button */ public function submit($submitButton = true); diff --git a/wcfsetup/install/files/lib/system/form/builder/container/TabMenuFormContainer.class.php b/wcfsetup/install/files/lib/system/form/builder/container/TabMenuFormContainer.class.php index 2bfc906fe3..c418075d34 100644 --- a/wcfsetup/install/files/lib/system/form/builder/container/TabMenuFormContainer.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/container/TabMenuFormContainer.class.php @@ -18,7 +18,7 @@ class TabMenuFormContainer extends FormContainer implements ITabMenuFormContaine /** * is `true` if the links in the tab menu have anchors - * @var boolean + * @var bool */ protected $useAnchors = true; @@ -33,7 +33,7 @@ class TabMenuFormContainer extends FormContainer implements ITabMenuFormContaine /** * Sets if the links in the tab menu have anchors and returns this form container. * - * @param boolean $useAnchors + * @param bool $useAnchors * @return TabMenuFormContainer this form container */ public function useAnchors($useAnchors = true) { @@ -47,7 +47,7 @@ class TabMenuFormContainer extends FormContainer implements ITabMenuFormContaine * * By default, the links in the tab menu have anchors. * - * @return boolean + * @return bool */ public function usesAnchors() { return $this->useAnchors; diff --git a/wcfsetup/install/files/lib/system/form/builder/container/wysiwyg/WysiwygFormContainer.class.php b/wcfsetup/install/files/lib/system/form/builder/container/wysiwyg/WysiwygFormContainer.class.php index ee5f0cd604..c6176984af 100644 --- a/wcfsetup/install/files/lib/system/form/builder/container/wysiwyg/WysiwygFormContainer.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/container/wysiwyg/WysiwygFormContainer.class.php @@ -115,19 +115,19 @@ class WysiwygFormContainer extends FormContainer { /** * is `true` if the wysiwyg form field will support mentions, otherwise `false` - * @var boolean + * @var bool */ protected $supportMentions = false; /** * is `true` if quotes are supported for this container, otherwise `false` - * @var boolean + * @var bool */ protected $supportQuotes = false; /** * is `true` if smilies are supported for this container, otherwise `false` - * @var boolean + * @var bool */ protected $supportSmilies = true; @@ -574,7 +574,7 @@ class WysiwygFormContainer extends FormContainer { * * By default, mentions are not supported. * - * @param boolean $supportMentions + * @param bool $supportMentions * @return WysiwygFormContainer this form container */ public function supportMentions($supportMentions = true) { @@ -593,7 +593,7 @@ class WysiwygFormContainer extends FormContainer { * * By default, quotes are not supported. * - * @param boolean $supportQuotes + * @param bool $supportQuotes * @return WysiwygFormContainer this form container */ public function supportQuotes($supportQuotes = true) { @@ -612,7 +612,7 @@ class WysiwygFormContainer extends FormContainer { * * By default, smilies are supported. * - * @param boolean $supportSmilies + * @param bool $supportSmilies * @return WysiwygFormContainer this form container */ public function supportSmilies($supportSmilies = true) { diff --git a/wcfsetup/install/files/lib/system/form/builder/field/UploadFormField.class.php b/wcfsetup/install/files/lib/system/form/builder/field/UploadFormField.class.php index 0f1e944269..80e87040bc 100644 --- a/wcfsetup/install/files/lib/system/form/builder/field/UploadFormField.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/field/UploadFormField.class.php @@ -33,13 +33,13 @@ class UploadFormField extends AbstractFormField { * This flag indicates whether only images can uploaded via this field. * Heads up: SVG images can contain bad code, therefore do not * use this option, outside the acp or check the file whether remote code is contained. - * @var boolean + * @var bool */ protected $imageOnly = false; /** * This flag indicates whether SVG images are treated as image in the image only mode. - * @var boolean + * @var bool */ protected $allowSvgImage = false; @@ -126,7 +126,7 @@ class UploadFormField extends AbstractFormField { /** * Returns true, iff the current field is already registered. * - * @return boolean + * @return bool */ private function isRegistered() { return $this->isPopulated; @@ -610,7 +610,7 @@ class UploadFormField extends AbstractFormField { * If set to `true` will also set the acceptable types to `image/*`. If set to * false it will clear the acceptable types if they are `image/*`. * - * @param boolean $imageOnly + * @param bool $imageOnly * @return static this field * * @throws \InvalidArgumentException if the field is not set to images only and a minimum/maximum width/height is set @@ -658,7 +658,7 @@ class UploadFormField extends AbstractFormField { * Heads up: SVG images can contain bad code, therefore do not * use this option, outside the acp or check the file whether remote code is contained. * - * @param boolean $allowSvgImages + * @param bool $allowSvgImages * @return static this field * * @throws \BadMethodCallException if the imageOnly flag isn't set to true @@ -676,7 +676,7 @@ class UploadFormField extends AbstractFormField { /** * Returns `true` if only images can be uploaded via this field and returns `false` otherwise. * - * @return boolean + * @return bool */ public function isImageOnly() { return $this->imageOnly; @@ -685,7 +685,7 @@ class UploadFormField extends AbstractFormField { /** * Returns true, if the field can contain svg images in the image only mode. * - * @return boolean + * @return bool */ public function svgImageAllowed() { return $this->allowSvgImage; diff --git a/wcfsetup/install/files/lib/system/form/builder/field/media/SingleMediaSelectionFormField.class.php b/wcfsetup/install/files/lib/system/form/builder/field/media/SingleMediaSelectionFormField.class.php index 5bbd26aac8..4274913861 100644 --- a/wcfsetup/install/files/lib/system/form/builder/field/media/SingleMediaSelectionFormField.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/field/media/SingleMediaSelectionFormField.class.php @@ -20,7 +20,7 @@ class SingleMediaSelectionFormField extends AbstractFormField implements IImmuta /** * is `true` if only images can be selected and `false` otherwise - * @var boolean + * @var bool */ protected $imageOnly = false; @@ -66,7 +66,7 @@ class SingleMediaSelectionFormField extends AbstractFormField implements IImmuta /** * Sets if only images can be selected and returns this field. * - * @param boolean $imageOnly + * @param bool $imageOnly * @return static this field */ public function imageOnly($imageOnly = true) { @@ -80,7 +80,7 @@ class SingleMediaSelectionFormField extends AbstractFormField implements IImmuta * * By default, all images can be selected. * - * @return boolean + * @return bool */ public function isImageOnly() { return $this->imageOnly; diff --git a/wcfsetup/install/files/lib/system/form/builder/field/wysiwyg/WysiwygFormField.class.php b/wcfsetup/install/files/lib/system/form/builder/field/wysiwyg/WysiwygFormField.class.php index aec7b56396..196ddfdeee 100644 --- a/wcfsetup/install/files/lib/system/form/builder/field/wysiwyg/WysiwygFormField.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/field/wysiwyg/WysiwygFormField.class.php @@ -64,19 +64,19 @@ class WysiwygFormField extends AbstractFormField implements IAttributeFormField, /** * is `true` if this form field supports attachments, otherwise `false` - * @var boolean + * @var bool */ protected $supportAttachments = false; /** * is `true` if this form field supports mentions, otherwise `false` - * @var boolean + * @var bool */ protected $supportMentions = false; /** * is `true` if this form field supports quotes, otherwise `false` - * @var boolean + * @var bool */ protected $supportQuotes = false; @@ -285,7 +285,7 @@ class WysiwygFormField extends AbstractFormField implements IAttributeFormField, /** * Sets if the form field supports attachments and returns this field. * - * @param boolean $supportAttachments + * @param bool $supportAttachments * @return WysiwygFormField this field */ public function supportAttachments($supportAttachments = true) { @@ -297,7 +297,7 @@ class WysiwygFormField extends AbstractFormField implements IAttributeFormField, /** * Sets if the form field supports mentions and returns this field. * - * @param boolean $supportMentions + * @param bool $supportMentions * @return WysiwygFormField this field */ public function supportMentions($supportMentions = true) { @@ -309,7 +309,7 @@ class WysiwygFormField extends AbstractFormField implements IAttributeFormField, /** * Sets if the form field supports quotes and returns this field. * - * @param boolean $supportQuotes + * @param bool $supportQuotes * @return WysiwygFormField this field */ public function supportQuotes($supportQuotes = true) { @@ -336,7 +336,7 @@ class WysiwygFormField extends AbstractFormField implements IAttributeFormField, * * By default, attachments are not supported. * - * @return boolean + * @return bool */ public function supportsAttachments() { return $this->supportAttachments; @@ -347,7 +347,7 @@ class WysiwygFormField extends AbstractFormField implements IAttributeFormField, * * By default, mentions are not supported. * - * @return boolean + * @return bool */ public function supportsMentions() { return $this->supportMentions; @@ -358,7 +358,7 @@ class WysiwygFormField extends AbstractFormField implements IAttributeFormField, * * By default, quotes are not supported. * - * @return boolean + * @return bool */ public function supportsQuotes() { return $this->supportQuotes; diff --git a/wcfsetup/install/files/lib/system/html/input/HtmlInputProcessor.class.php b/wcfsetup/install/files/lib/system/html/input/HtmlInputProcessor.class.php index 205a212551..d5dfc8c107 100644 --- a/wcfsetup/install/files/lib/system/html/input/HtmlInputProcessor.class.php +++ b/wcfsetup/install/files/lib/system/html/input/HtmlInputProcessor.class.php @@ -36,7 +36,7 @@ class HtmlInputProcessor extends AbstractHtmlProcessor { /** * skip the HTML filter during message reprocessing - * @var boolean + * @var bool */ protected $skipFilter = false; @@ -46,7 +46,7 @@ class HtmlInputProcessor extends AbstractHtmlProcessor { * @param string $html html string * @param string $objectType object type identifier * @param int $objectID object id - * @param boolean $convertFromBBCode interpret input as bbcode + * @param bool $convertFromBBCode interpret input as bbcode */ public function process($html, $objectType, $objectID = 0, $convertFromBBCode = false) { $this->reset(); @@ -197,7 +197,7 @@ class HtmlInputProcessor extends AbstractHtmlProcessor { /** * Returns true if the message appears to be empty. * - * @return boolean true if message appears to be empty + * @return bool true if message appears to be empty */ public function appearsToBeEmpty() { return $this->getHtmlInputNodeProcessor()->appearsToBeEmpty(); diff --git a/wcfsetup/install/files/lib/system/html/input/node/HtmlInputNodeProcessor.class.php b/wcfsetup/install/files/lib/system/html/input/node/HtmlInputNodeProcessor.class.php index e01a74ab3c..9b7f919b21 100644 --- a/wcfsetup/install/files/lib/system/html/input/node/HtmlInputNodeProcessor.class.php +++ b/wcfsetup/install/files/lib/system/html/input/node/HtmlInputNodeProcessor.class.php @@ -497,7 +497,7 @@ class HtmlInputNodeProcessor extends AbstractHtmlNodeProcessor { /** * Returns true if the message appears to be empty. * - * @return boolean true if message appears to be empty + * @return bool true if message appears to be empty */ public function appearsToBeEmpty() { if ($this->getTextContent() !== '') { diff --git a/wcfsetup/install/files/lib/system/html/input/node/HtmlInputNodeTextParser.class.php b/wcfsetup/install/files/lib/system/html/input/node/HtmlInputNodeTextParser.class.php index d1765468dc..6619ca2b79 100644 --- a/wcfsetup/install/files/lib/system/html/input/node/HtmlInputNodeTextParser.class.php +++ b/wcfsetup/install/files/lib/system/html/input/node/HtmlInputNodeTextParser.class.php @@ -403,8 +403,8 @@ class HtmlInputNodeTextParser { * * @param \DOMText $text text node * @param string $value node value - * @param boolean $allowURL url bbcode is allowed - * @param boolean $allowMedia media bbcode is allowed + * @param bool $allowURL url bbcode is allowed + * @param bool $allowMedia media bbcode is allowed * @return string modified node value with replacement placeholders */ protected function parseURL(\DOMText $text, $value, $allowURL, $allowMedia) { @@ -647,7 +647,7 @@ class HtmlInputNodeTextParser { * auto-detection of content. * * @param \DOMText $text text node - * @return boolean true if text node is inside a code element + * @return bool true if text node is inside a code element */ protected function hasCodeParent(\DOMText $text) { $parent = $text; @@ -670,7 +670,7 @@ class HtmlInputNodeTextParser { * being recognized as a link again. * * @param \DOMText $text text node - * @return boolean true if text node is inside a link + * @return bool true if text node is inside a link */ protected function hasLinkParent(\DOMText $text) { $parent = $text; @@ -726,7 +726,7 @@ class HtmlInputNodeTextParser { * colons, that have been incorrectly matched. * * @param string $match matched username - * @param boolean $trimTrailingSpecialCharacters true to strip special characters found at the end of the match + * @param bool $trimTrailingSpecialCharacters true to strip special characters found at the end of the match * @return string sanitized username */ public function getUsername($match, $trimTrailingSpecialCharacters = true) { diff --git a/wcfsetup/install/files/lib/system/html/input/node/HtmlInputNodeWoltlabMetacodeMarker.class.php b/wcfsetup/install/files/lib/system/html/input/node/HtmlInputNodeWoltlabMetacodeMarker.class.php index 55cadf3c78..442fac4358 100644 --- a/wcfsetup/install/files/lib/system/html/input/node/HtmlInputNodeWoltlabMetacodeMarker.class.php +++ b/wcfsetup/install/files/lib/system/html/input/node/HtmlInputNodeWoltlabMetacodeMarker.class.php @@ -152,7 +152,7 @@ class HtmlInputNodeWoltlabMetacodeMarker extends AbstractHtmlInputNode { * Returns `true` if the given element is inside a code element. * * @param \DOMElement $element - * @return boolean + * @return bool */ protected function isInsideCode(\DOMElement $element) { $parent = $element; @@ -501,7 +501,7 @@ class HtmlInputNodeWoltlabMetacodeMarker extends AbstractHtmlInputNode { * Returns true if provided node is a block element. * * @param \DOMNode $node node - * @return boolean true for certain block elements + * @return bool true for certain block elements */ protected function isBlockElement(\DOMNode $node) { switch ($node->nodeName) { diff --git a/wcfsetup/install/files/lib/system/html/metacode/converter/IMetacodeConverter.class.php b/wcfsetup/install/files/lib/system/html/metacode/converter/IMetacodeConverter.class.php index 78370dee66..75022125ad 100644 --- a/wcfsetup/install/files/lib/system/html/metacode/converter/IMetacodeConverter.class.php +++ b/wcfsetup/install/files/lib/system/html/metacode/converter/IMetacodeConverter.class.php @@ -28,7 +28,7 @@ interface IMetacodeConverter { * Validates attributes before any DOM modification occurs. * * @param array $attributes list of attributes - * @return boolean false if attributes did not match the converter's expectation + * @return bool false if attributes did not match the converter's expectation */ public function validateAttributes(array $attributes); } diff --git a/wcfsetup/install/files/lib/system/html/metacode/converter/ListMetacodeConverter.class.php b/wcfsetup/install/files/lib/system/html/metacode/converter/ListMetacodeConverter.class.php index a3cd0cd574..d620956728 100644 --- a/wcfsetup/install/files/lib/system/html/metacode/converter/ListMetacodeConverter.class.php +++ b/wcfsetup/install/files/lib/system/html/metacode/converter/ListMetacodeConverter.class.php @@ -179,7 +179,7 @@ class ListMetacodeConverter extends AbstractMetacodeConverter { * with nested lists handled in the wrong order. * * @param \DOMNode $node target node - * @return boolean true if provided node is within another list + * @return bool true if provided node is within another list */ protected function isInsideList(\DOMNode $node) { /** @var \DOMElement $parent */ diff --git a/wcfsetup/install/files/lib/system/html/metacode/converter/TableMetacodeConverter.class.php b/wcfsetup/install/files/lib/system/html/metacode/converter/TableMetacodeConverter.class.php index 7f5378778c..9d7aefc752 100644 --- a/wcfsetup/install/files/lib/system/html/metacode/converter/TableMetacodeConverter.class.php +++ b/wcfsetup/install/files/lib/system/html/metacode/converter/TableMetacodeConverter.class.php @@ -152,7 +152,7 @@ class TableMetacodeConverter extends AbstractMetacodeConverter { * with nested tables handled in the wrong order. * * @param \DOMNode $node target node - * @return boolean true if provided node is within another table + * @return bool true if provided node is within another table */ protected function isInsideTable(\DOMNode $node) { /** @var \DOMElement $parent */ diff --git a/wcfsetup/install/files/lib/system/html/node/AbstractHtmlNodeProcessor.class.php b/wcfsetup/install/files/lib/system/html/node/AbstractHtmlNodeProcessor.class.php index f3fdfe0f3c..276f1f47c1 100644 --- a/wcfsetup/install/files/lib/system/html/node/AbstractHtmlNodeProcessor.class.php +++ b/wcfsetup/install/files/lib/system/html/node/AbstractHtmlNodeProcessor.class.php @@ -190,7 +190,7 @@ abstract class AbstractHtmlNodeProcessor implements IHtmlNodeProcessor { * * @param \DOMElement $element target element * @param string $text text used to replace target - * @param boolean $isBlockElement true if element is a block element + * @param bool $isBlockElement true if element is a block element */ public function replaceElementWithText(\DOMElement $element, $text, $isBlockElement) { $textNode = $element->ownerDocument->createTextNode($text); diff --git a/wcfsetup/install/files/lib/system/html/output/HtmlOutputProcessor.class.php b/wcfsetup/install/files/lib/system/html/output/HtmlOutputProcessor.class.php index 67b8f047ed..80d00efbdf 100644 --- a/wcfsetup/install/files/lib/system/html/output/HtmlOutputProcessor.class.php +++ b/wcfsetup/install/files/lib/system/html/output/HtmlOutputProcessor.class.php @@ -59,7 +59,7 @@ class HtmlOutputProcessor extends AbstractHtmlProcessor { * @param string $html html string * @param string $objectType object type identifier * @param int $objectID object id - * @param boolean $doKeywordHighlighting enable keyword highlighting + * @param bool $doKeywordHighlighting enable keyword highlighting * @param int $languageID content language id */ public function process($html, $objectType, $objectID, $doKeywordHighlighting = true, $languageID = null) { diff --git a/wcfsetup/install/files/lib/system/html/output/node/HtmlOutputNodeImg.class.php b/wcfsetup/install/files/lib/system/html/output/node/HtmlOutputNodeImg.class.php index d03f0c1137..a98343afe4 100644 --- a/wcfsetup/install/files/lib/system/html/output/node/HtmlOutputNodeImg.class.php +++ b/wcfsetup/install/files/lib/system/html/output/node/HtmlOutputNodeImg.class.php @@ -228,7 +228,7 @@ class HtmlOutputNodeImg extends AbstractHtmlOutputNode { * and whitelisted ones with wildcard support. * * @param string $hostname - * @return boolean + * @return bool */ protected function bypassProxy($hostname) { static $matcher = null; diff --git a/wcfsetup/install/files/lib/system/html/output/node/HtmlOutputNodeProcessor.class.php b/wcfsetup/install/files/lib/system/html/output/node/HtmlOutputNodeProcessor.class.php index 86160cb32e..0e9c0450e0 100644 --- a/wcfsetup/install/files/lib/system/html/output/node/HtmlOutputNodeProcessor.class.php +++ b/wcfsetup/install/files/lib/system/html/output/node/HtmlOutputNodeProcessor.class.php @@ -34,7 +34,7 @@ class HtmlOutputNodeProcessor extends AbstractHtmlNodeProcessor { /** * enables keyword highlighting - * @var boolean + * @var bool */ protected $keywordHighlighting = true; @@ -205,7 +205,7 @@ class HtmlOutputNodeProcessor extends AbstractHtmlNodeProcessor { /** * Enables the keyword highlighting. * - * @param boolean $enable + * @param bool $enable */ public function enableKeywordHighlighting($enable = true) { $this->keywordHighlighting = $enable; @@ -263,7 +263,7 @@ class HtmlOutputNodeProcessor extends AbstractHtmlNodeProcessor { * auto-detection of content. * * @param \DOMText $text text node - * @return boolean true if text node is inside a code element + * @return bool true if text node is inside a code element */ protected function hasCodeParent(\DOMText $text) { $parent = $text; diff --git a/wcfsetup/install/files/lib/system/html/simple/HtmlSimpleParser.class.php b/wcfsetup/install/files/lib/system/html/simple/HtmlSimpleParser.class.php index 8d22a3347c..e7a89e84ee 100644 --- a/wcfsetup/install/files/lib/system/html/simple/HtmlSimpleParser.class.php +++ b/wcfsetup/install/files/lib/system/html/simple/HtmlSimpleParser.class.php @@ -61,7 +61,7 @@ class HtmlSimpleParser extends SingletonFactory { * @param string $objectType object type identifier * @param int $objectID object id * @param string $message message content - * @return boolean true if there is at least one embedded content found + * @return bool true if there is at least one embedded content found */ public function parse($objectType, $objectID, $message) { preg_match_all($this->regexHandlers, $message, $matches); diff --git a/wcfsetup/install/files/lib/system/image/adapter/GDImageAdapter.class.php b/wcfsetup/install/files/lib/system/image/adapter/GDImageAdapter.class.php index b3b6c9dd78..3d4cf605bf 100644 --- a/wcfsetup/install/files/lib/system/image/adapter/GDImageAdapter.class.php +++ b/wcfsetup/install/files/lib/system/image/adapter/GDImageAdapter.class.php @@ -59,7 +59,7 @@ class GDImageAdapter implements IImageAdapter { /** * Returns whether the given image is a valid GD resource / GD object * - * @return boolean + * @return bool */ public function isImage($image) { return (is_resource($image) && get_resource_type($image) === 'gd') || (is_object($image) && $image instanceof \GdImage); @@ -440,7 +440,7 @@ class GDImageAdapter implements IImageAdapter { * @param int $src_w source width * @param int $src_h source height * @param int $pct opacity percent - * @return boolean + * @return bool */ private function imagecopymerge_alpha($dst_im, $src_im, $dst_x, $dst_y, $src_x, $src_y, $src_w, $src_h, $pct) { // phpcs:ignore if (!isset($pct)) { diff --git a/wcfsetup/install/files/lib/system/image/adapter/IImageAdapter.class.php b/wcfsetup/install/files/lib/system/image/adapter/IImageAdapter.class.php index faae666dbb..a74bcb19b3 100644 --- a/wcfsetup/install/files/lib/system/image/adapter/IImageAdapter.class.php +++ b/wcfsetup/install/files/lib/system/image/adapter/IImageAdapter.class.php @@ -38,7 +38,7 @@ interface IImageAdapter { * * @param int $maxWidth * @param int $maxHeight - * @param boolean $preserveAspectRatio + * @param bool $preserveAspectRatio * @return mixed */ public function createThumbnail($maxWidth, $maxHeight, $preserveAspectRatio = true); @@ -116,7 +116,7 @@ interface IImageAdapter { * @param string $font path to TrueType font file * @param int $size font size * @return int - * @return boolean + * @return bool */ public function textFitsImage($text, $margin, $font, $size); @@ -144,7 +144,7 @@ interface IImageAdapter { /** * Returns true if a color has been set. * - * @return boolean + * @return bool */ public function hasColor(); @@ -231,7 +231,7 @@ interface IImageAdapter { /** * Determines if an image adapter is supported. * - * @return boolean + * @return bool */ public static function isSupported(); } diff --git a/wcfsetup/install/files/lib/system/image/adapter/IMemoryAwareImageAdapter.class.php b/wcfsetup/install/files/lib/system/image/adapter/IMemoryAwareImageAdapter.class.php index cfae232076..4775b58973 100644 --- a/wcfsetup/install/files/lib/system/image/adapter/IMemoryAwareImageAdapter.class.php +++ b/wcfsetup/install/files/lib/system/image/adapter/IMemoryAwareImageAdapter.class.php @@ -19,7 +19,7 @@ interface IMemoryAwareImageAdapter extends IImageAdapter { * @param int $width * @param int $height * @param string $mimeType - * @return boolean + * @return bool */ public function checkMemoryLimit($width, $height, $mimeType); } diff --git a/wcfsetup/install/files/lib/system/image/adapter/ImagickImageAdapter.class.php b/wcfsetup/install/files/lib/system/image/adapter/ImagickImageAdapter.class.php index a2afcb8cfd..ae4abcf449 100644 --- a/wcfsetup/install/files/lib/system/image/adapter/ImagickImageAdapter.class.php +++ b/wcfsetup/install/files/lib/system/image/adapter/ImagickImageAdapter.class.php @@ -40,7 +40,7 @@ class ImagickImageAdapter implements IImageAdapter { /** * is true if the used configuration can write animated GIF files if the * PHP Imagick API version is 3.1.0 RC 1 - * @var boolean + * @var bool */ protected $supportsWritingAnimatedGIF = true; diff --git a/wcfsetup/install/files/lib/system/importer/AbstractAttachmentImporter.class.php b/wcfsetup/install/files/lib/system/importer/AbstractAttachmentImporter.class.php index cadd27cf90..b5a6303798 100644 --- a/wcfsetup/install/files/lib/system/importer/AbstractAttachmentImporter.class.php +++ b/wcfsetup/install/files/lib/system/importer/AbstractAttachmentImporter.class.php @@ -98,7 +98,7 @@ class AbstractAttachmentImporter extends AbstractImporter { * @param string $message * @param int $oldID * @param int $newID - * @return string|boolean + * @return string|bool */ protected function fixEmbeddedAttachments($message, $oldID, $newID) { if (mb_strripos($message, '[attach]'.$oldID.'[/attach]') !== false || mb_strripos($message, '[attach='.$oldID.']') !== false || mb_strripos($message, '[attach='.$oldID.',') !== false) { diff --git a/wcfsetup/install/files/lib/system/io/AtomicWriter.class.php b/wcfsetup/install/files/lib/system/io/AtomicWriter.class.php index 0aed222743..0d7e78e63b 100644 --- a/wcfsetup/install/files/lib/system/io/AtomicWriter.class.php +++ b/wcfsetup/install/files/lib/system/io/AtomicWriter.class.php @@ -27,7 +27,7 @@ class AtomicWriter extends File { /** * AtomicWriter will be unusable, once this flag is true. - * @var boolean + * @var bool */ protected $isFlushed = false; diff --git a/wcfsetup/install/files/lib/system/io/File.class.php b/wcfsetup/install/files/lib/system/io/File.class.php index 6b9db3474c..146aa32856 100644 --- a/wcfsetup/install/files/lib/system/io/File.class.php +++ b/wcfsetup/install/files/lib/system/io/File.class.php @@ -21,8 +21,8 @@ use wcf\system\exception\SystemException; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\System\Io * - * @method boolean close() - * @method boolean eof() + * @method bool close() + * @method bool eof() * @method int filesize() * @method string gets($length = null) * @method resource open($mode, $use_include_path = false, $context = null) @@ -31,7 +31,7 @@ use wcf\system\exception\SystemException; * @method int seek($offset, $whence = SEEK_SET) * @method array stat() * @method int tell() - * @method boolean touch($time = 0, $atime = 0) note: default value of `$time` actually is `time()` + * @method bool touch($time = 0, $atime = 0) note: default value of `$time` actually is `time()` * @method int write($string, $length = null) */ class File { diff --git a/wcfsetup/install/files/lib/system/io/GZipFile.class.php b/wcfsetup/install/files/lib/system/io/GZipFile.class.php index df65b02046..7c39ca0eaf 100644 --- a/wcfsetup/install/files/lib/system/io/GZipFile.class.php +++ b/wcfsetup/install/files/lib/system/io/GZipFile.class.php @@ -11,13 +11,13 @@ use wcf\system\exception\SystemException; * @package WoltLabSuite\Core\System\Io * * @method resource open($mode, $use_include_path = 0) - * @method boolean rewind() + * @method bool rewind() */ class GZipFile extends File { /** * checks if gz*64 functions are available instead of gz* * https://bugs.php.net/bug.php?id=53829 - * @var boolean + * @var bool */ protected static $gzopen64 = null; diff --git a/wcfsetup/install/files/lib/system/io/IArchive.class.php b/wcfsetup/install/files/lib/system/io/IArchive.class.php index d550c63e09..365b699413 100644 --- a/wcfsetup/install/files/lib/system/io/IArchive.class.php +++ b/wcfsetup/install/files/lib/system/io/IArchive.class.php @@ -41,7 +41,7 @@ interface IArchive { * * @param mixed $index index or name of the requested file * @param string $destination - * @return boolean $success + * @return bool $success */ public function extract($index, $destination); diff --git a/wcfsetup/install/files/lib/system/io/RemoteFile.class.php b/wcfsetup/install/files/lib/system/io/RemoteFile.class.php index 9de9955157..f8f04e0c9b 100644 --- a/wcfsetup/install/files/lib/system/io/RemoteFile.class.php +++ b/wcfsetup/install/files/lib/system/io/RemoteFile.class.php @@ -37,7 +37,7 @@ class RemoteFile extends File { /** * true if PHP supports SSL/TLS - * @var boolean + * @var bool */ private static $hasSSLSupport = null; @@ -93,8 +93,8 @@ class RemoteFile extends File { * Switches TLS support for this connection. * Usually used in combination with 'STARTTLS' * - * @param boolean $enable Whether TLS support should be enabled - * @return boolean True on success, false otherwise + * @param bool $enable Whether TLS support should be enabled + * @return bool True on success, false otherwise */ public function setTLS($enable) { if (!$this->hasTLSSupport()) return false; @@ -122,7 +122,7 @@ class RemoteFile extends File { /** * Returns whether TLS support is available. * - * @return boolean + * @return bool */ public function hasTLSSupport() { return function_exists('stream_socket_enable_crypto'); @@ -131,7 +131,7 @@ class RemoteFile extends File { /** * Returns true if PHP supports SSL/TLS. * - * @return boolean + * @return bool */ public static function supportsSSL() { if (static::$hasSSLSupport === null) { diff --git a/wcfsetup/install/files/lib/system/io/Tar.class.php b/wcfsetup/install/files/lib/system/io/Tar.class.php index 32f264ad14..62811a3e5a 100644 --- a/wcfsetup/install/files/lib/system/io/Tar.class.php +++ b/wcfsetup/install/files/lib/system/io/Tar.class.php @@ -34,13 +34,13 @@ class Tar implements IArchive { /** * indicates if tar file is opened - * @var boolean + * @var bool */ protected $opened = false; /** * indicates if file content has been read - * @var boolean + * @var bool */ protected $read = false; @@ -52,7 +52,7 @@ class Tar implements IArchive { /** * indicates if the tar file is (g)zipped - * @var boolean + * @var bool */ protected $isZipped = false; @@ -281,7 +281,7 @@ class Tar implements IArchive { * Unpacks file header for one file entry. * * @param string $binaryData - * @return array|boolean + * @return array|bool */ protected function readHeader($binaryData) { if (strlen($binaryData) != 512) { @@ -346,7 +346,7 @@ class Tar implements IArchive { /** * Returns true if this tar is (g)zipped. * - * @return boolean + * @return bool */ public function isZipped() { return $this->isZipped; diff --git a/wcfsetup/install/files/lib/system/io/TarWriter.class.php b/wcfsetup/install/files/lib/system/io/TarWriter.class.php index c39eb6ffbd..e12b4c27c2 100644 --- a/wcfsetup/install/files/lib/system/io/TarWriter.class.php +++ b/wcfsetup/install/files/lib/system/io/TarWriter.class.php @@ -29,7 +29,7 @@ class TarWriter extends Tar { * Creates a new TarWriter object. * * @param string $archiveName - * @param boolean $compress enables gzip compression + * @param bool $compress enables gzip compression */ public function __construct($archiveName, $compress = false) { $this->archiveName = $archiveName; @@ -58,7 +58,7 @@ class TarWriter extends Tar { * * @param string $filename * @param string $string file content - * @return boolean result + * @return bool result */ public function addString($filename, $string) { if (empty($filename)) return false; @@ -83,7 +83,7 @@ class TarWriter extends Tar { * @param mixed $files * @param string $addDir * @param string $removeDir - * @return boolean result + * @return bool result * @throws SystemException */ public function add($files, $addDir = '', $removeDir = '') { @@ -138,7 +138,7 @@ class TarWriter extends Tar { * @param string $filename * @param string $addDir * @param string $removeDir - * @return boolean result + * @return bool result */ protected function addFile($filename, $addDir, $removeDir) { $filename = FileUtil::unifyDirSeparator($filename); @@ -178,7 +178,7 @@ class TarWriter extends Tar { * * @param string $filename * @param string $storedFilename - * @return boolean result + * @return bool result */ protected function writeFileHeader($filename, $storedFilename) { $fileInfo = stat($filename); @@ -207,7 +207,7 @@ class TarWriter extends Tar { * @param string $typeFlag * @param int $uid * @param int $gid - * @return boolean + * @return bool */ public function writeHeaderBlock($filename, $size, $mtime = 0, $permissions = 0, $typeFlag = '', $uid = 0, $gid = 0) { if (strlen($filename) > 99) { @@ -254,7 +254,7 @@ class TarWriter extends Tar { * Writes a long header block. * * @param string $filename - * @return boolean + * @return bool */ protected function writeLongHeaderBlock($filename) { $size = sprintf("%11s ", decoct(strlen($filename))); diff --git a/wcfsetup/install/files/lib/system/io/Zip.class.php b/wcfsetup/install/files/lib/system/io/Zip.class.php index bc1a877249..a7f4ff39c0 100644 --- a/wcfsetup/install/files/lib/system/io/Zip.class.php +++ b/wcfsetup/install/files/lib/system/io/Zip.class.php @@ -219,7 +219,7 @@ class Zip extends File implements IArchive { * This does not change the position of the file-pointer. * * @param int $offset where to start reading - * @return boolean + * @return bool * @throws SystemException */ public function isFile($offset = null) { diff --git a/wcfsetup/install/files/lib/system/label/LabelHandler.class.php b/wcfsetup/install/files/lib/system/label/LabelHandler.class.php index bb0f7725a3..694264c257 100644 --- a/wcfsetup/install/files/lib/system/label/LabelHandler.class.php +++ b/wcfsetup/install/files/lib/system/label/LabelHandler.class.php @@ -163,7 +163,7 @@ class LabelHandler extends SingletonFactory { * @param int[] $labelIDs * @param int $objectTypeID * @param int $objectID - * @param boolean $validatePermissions + * @param bool $validatePermissions */ public function setLabels(array $labelIDs, $objectTypeID, $objectID, $validatePermissions = true) { // get accessible label ids to prevent inaccessible ones to be removed @@ -254,7 +254,7 @@ class LabelHandler extends SingletonFactory { * * @param int $objectTypeID * @param int[] $objectIDs - * @param boolean $validatePermissions + * @param bool $validatePermissions * @return Label[][] */ public function getAssignedLabels($objectTypeID, array $objectIDs, $validatePermissions = true) { @@ -321,7 +321,7 @@ class LabelHandler extends SingletonFactory { * Returns given label groups by id. * * @param int[] $groupIDs - * @param boolean $validatePermissions + * @param bool $validatePermissions * @param string $permission * @return ViewableLabelGroup[] * @throws SystemException 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 5810f2402e..91cd57539e 100644 --- a/wcfsetup/install/files/lib/system/label/object/ILabelObjectHandler.class.php +++ b/wcfsetup/install/files/lib/system/label/object/ILabelObjectHandler.class.php @@ -33,7 +33,7 @@ interface ILabelObjectHandler { * * @param int[] $labelIDs * @param string $optionName - * @param boolean $legacyReturnValue + * @param bool $legacyReturnValue * @return mixed */ public function validateLabelIDs(array $labelIDs, $optionName = '', $legacyReturnValue = true); @@ -43,7 +43,7 @@ interface ILabelObjectHandler { * * @param int[] $labelIDs * @param int $objectID - * @param boolean $validatePermissions + * @param bool $validatePermissions * @see \wcf\system\label\LabelHandler::setLabels() */ public function setLabels(array $labelIDs, $objectID, $validatePermissions = true); @@ -52,7 +52,7 @@ interface ILabelObjectHandler { * Removes all assigned labels. * * @param int $objectID - * @param boolean $validatePermissions + * @param bool $validatePermissions * @see \wcf\system\label\LabelHandler::removeLabels() */ public function removeLabels($objectID, $validatePermissions = true); @@ -61,7 +61,7 @@ interface ILabelObjectHandler { * Returns a list of assigned labels. * * @param int[] $objectIDs - * @param boolean $validatePermissions + * @param bool $validatePermissions * @return Label[] */ public function getAssignedLabels(array $objectIDs, $validatePermissions = true); diff --git a/wcfsetup/install/files/lib/system/label/object/type/LabelObjectType.class.php b/wcfsetup/install/files/lib/system/label/object/type/LabelObjectType.class.php index 589747c1f4..1782a3b421 100644 --- a/wcfsetup/install/files/lib/system/label/object/type/LabelObjectType.class.php +++ b/wcfsetup/install/files/lib/system/label/object/type/LabelObjectType.class.php @@ -18,7 +18,7 @@ class LabelObjectType { /** * object type is a category - * @var boolean + * @var bool */ public $isCategory = false; @@ -46,7 +46,7 @@ class LabelObjectType { * @param string $label * @param int $objectID * @param int $depth - * @param boolean $isCategory + * @param bool $isCategory */ public function __construct($label, $objectID = 0, $depth = 0, $isCategory = false) { $this->depth = $depth; @@ -75,7 +75,7 @@ class LabelObjectType { /** * Returns true, if object type is a category. * - * @return boolean + * @return bool */ public function isCategory() { return $this->isCategory; diff --git a/wcfsetup/install/files/lib/system/language/I18nHandler.class.php b/wcfsetup/install/files/lib/system/language/I18nHandler.class.php index ac13e1c721..f6ba5f7e30 100644 --- a/wcfsetup/install/files/lib/system/language/I18nHandler.class.php +++ b/wcfsetup/install/files/lib/system/language/I18nHandler.class.php @@ -64,7 +64,7 @@ class I18nHandler extends SingletonFactory { * Registers a new element id, returns false if element id is already set. * * @param string $elementID - * @return boolean + * @return bool */ public function register($elementID) { if (in_array($elementID, $this->elementIDs)) { @@ -129,7 +129,7 @@ class I18nHandler extends SingletonFactory { * Returns true if given element has disabled i18n functionality. * * @param string $elementID - * @return boolean + * @return bool */ public function isPlainValue($elementID) { if (isset($this->plainValues[$elementID])) { @@ -143,7 +143,7 @@ class I18nHandler extends SingletonFactory { * Returns true if given element has enabled i18n functionality. * * @param string $elementID - * @return boolean + * @return bool */ public function hasI18nValues($elementID) { if (isset($this->i18nValues[$elementID])) { @@ -193,7 +193,7 @@ class I18nHandler extends SingletonFactory { * * @param string $elementID * @param string $plainValue - * @param boolean $forceAsPlainValue if `true`, the value is added as a plain value in any case + * @param bool $forceAsPlainValue if `true`, the value is added as a plain value in any case * @throws SystemException */ public function setValue($elementID, $plainValue, $forceAsPlainValue = false) { @@ -238,9 +238,9 @@ class I18nHandler extends SingletonFactory { * Returns true if the value with the given id is valid. * * @param string $elementID - * @param boolean $requireI18n - * @param boolean $permitEmptyValue - * @return boolean + * @param bool $requireI18n + * @param bool $permitEmptyValue + * @return bool */ public function validateValue($elementID, $requireI18n = false, $permitEmptyValue = false) { // do not force i18n if only one language is available @@ -422,7 +422,7 @@ class I18nHandler extends SingletonFactory { * Assigns element values to template. Using request data once reading * initial database data is explicitly disallowed. * - * @param boolean $useRequestData + * @param bool $useRequestData */ public function assignVariables($useRequestData = true) { $elementValues = []; @@ -508,7 +508,7 @@ class I18nHandler extends SingletonFactory { * Returns true if given string equals a language variable. * * @param string $string - * @return boolean + * @return bool */ protected function isLanguageVariable($string) { if ($this->regex === null) { diff --git a/wcfsetup/install/files/lib/system/language/I18nValue.class.php b/wcfsetup/install/files/lib/system/language/I18nValue.class.php index 436f246679..ffb757f901 100644 --- a/wcfsetup/install/files/lib/system/language/I18nValue.class.php +++ b/wcfsetup/install/files/lib/system/language/I18nValue.class.php @@ -87,7 +87,7 @@ class I18nValue { * Returns true if given flag is set. * * @param int $flag - * @return boolean + * @return bool */ public function getFlag($flag) { return (($this->flags & $flag) === $flag); diff --git a/wcfsetup/install/files/lib/system/language/LanguageFactory.class.php b/wcfsetup/install/files/lib/system/language/LanguageFactory.class.php index 8bf613d028..fcbef24ddf 100644 --- a/wcfsetup/install/files/lib/system/language/LanguageFactory.class.php +++ b/wcfsetup/install/files/lib/system/language/LanguageFactory.class.php @@ -105,7 +105,7 @@ class LanguageFactory extends SingletonFactory { * Returns true if the language category with the given name exists. * * @param string $categoryName - * @return boolean + * @return bool */ public function isValidCategory($categoryName) { return isset($this->cache['categories'][$categoryName]); @@ -336,7 +336,7 @@ class LanguageFactory extends SingletonFactory { /** * Returns true if multilingualism is enabled. * - * @return boolean + * @return bool */ public function multilingualismEnabled() { return $this->cache['multilingualismEnabled']; diff --git a/wcfsetup/install/files/lib/system/menu/TreeMenu.class.php b/wcfsetup/install/files/lib/system/menu/TreeMenu.class.php index 775593ba2b..de77417881 100644 --- a/wcfsetup/install/files/lib/system/menu/TreeMenu.class.php +++ b/wcfsetup/install/files/lib/system/menu/TreeMenu.class.php @@ -65,7 +65,7 @@ abstract class TreeMenu extends SingletonFactory { * Checks the options and permissions of given menu item. * * @param ITreeMenuItem $item - * @return boolean + * @return bool */ protected function checkMenuItem(ITreeMenuItem $item) { // check the options of this item diff --git a/wcfsetup/install/files/lib/system/menu/user/IUserMenuItemProvider.class.php b/wcfsetup/install/files/lib/system/menu/user/IUserMenuItemProvider.class.php index 05626b30e9..c36a83e9d5 100644 --- a/wcfsetup/install/files/lib/system/menu/user/IUserMenuItemProvider.class.php +++ b/wcfsetup/install/files/lib/system/menu/user/IUserMenuItemProvider.class.php @@ -14,7 +14,7 @@ interface IUserMenuItemProvider extends IDatabaseObjectProcessor { /** * Returns true if the associated menu item should be visible for the active user. * - * @return boolean + * @return bool */ public function isVisible(); diff --git a/wcfsetup/install/files/lib/system/menu/user/profile/UserProfileMenu.class.php b/wcfsetup/install/files/lib/system/menu/user/profile/UserProfileMenu.class.php index b7415fa922..ba304978c1 100644 --- a/wcfsetup/install/files/lib/system/menu/user/profile/UserProfileMenu.class.php +++ b/wcfsetup/install/files/lib/system/menu/user/profile/UserProfileMenu.class.php @@ -66,7 +66,7 @@ class UserProfileMenu extends SingletonFactory { * Checks the options and permissions of given menu item. * * @param UserProfileMenuItem $item - * @return boolean + * @return bool */ protected function checkMenuItem(UserProfileMenuItem $item) { return $item->validateOptions() && $item->validatePermissions(); @@ -85,7 +85,7 @@ class UserProfileMenu extends SingletonFactory { * Sets active menu item. * * @param string $menuItem - * @return boolean + * @return bool */ public function setActiveMenuItem($menuItem) { foreach ($this->menuItems as $item) { diff --git a/wcfsetup/install/files/lib/system/menu/user/profile/content/IUserProfileMenuContent.class.php b/wcfsetup/install/files/lib/system/menu/user/profile/content/IUserProfileMenuContent.class.php index c78d8ba4b3..c637859633 100644 --- a/wcfsetup/install/files/lib/system/menu/user/profile/content/IUserProfileMenuContent.class.php +++ b/wcfsetup/install/files/lib/system/menu/user/profile/content/IUserProfileMenuContent.class.php @@ -22,7 +22,7 @@ interface IUserProfileMenuContent { * Returns true if the associated menu item should be visible for the active user. * * @param int $userID - * @return boolean + * @return bool */ public function isVisible($userID); } 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 1760e58adb..e841d64316 100644 --- a/wcfsetup/install/files/lib/system/message/censorship/Censorship.class.php +++ b/wcfsetup/install/files/lib/system/message/censorship/Censorship.class.php @@ -165,7 +165,7 @@ class Censorship extends SingletonFactory { * * @param int $index * @param string $search - * @return boolean + * @return bool */ protected function lookBehind($index, $search) { if (isset($this->words[$index])) { 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 cb3c166c1f..0a95256fe5 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 @@ -71,8 +71,8 @@ class MessageEmbeddedObjectManager extends SingletonFactory { * Registers the embedded objects found in given message. * * @param HtmlInputProcessor $htmlInputProcessor html input processor instance holding embedded object data - * @param boolean $isBulk true for bulk operations - * @return boolean true if at least one embedded object was found + * @param bool $isBulk true for bulk operations + * @return bool true if at least one embedded object was found */ public function registerObjects(HtmlInputProcessor $htmlInputProcessor, $isBulk = false) { $context = $htmlInputProcessor->getContext(); @@ -167,7 +167,7 @@ class MessageEmbeddedObjectManager extends SingletonFactory { * @param string $messageObjectType object type identifier * @param int $messageID object id * @param int[][] $embeddedContent list of object ids for embedded objects by object type id - * @return boolean true if at least one embedded object was found + * @return bool true if at least one embedded object was found */ public function registerSimpleObjects($messageObjectType, $messageID, array $embeddedContent) { $messageObjectTypeID = ObjectTypeCache::getInstance()->getObjectTypeIDByName('com.woltlab.wcf.message', $messageObjectType); 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 da49eca19f..6da511db96 100644 --- a/wcfsetup/install/files/lib/system/message/quote/IMessageQuoteHandler.class.php +++ b/wcfsetup/install/files/lib/system/message/quote/IMessageQuoteHandler.class.php @@ -14,7 +14,7 @@ interface IMessageQuoteHandler { * Renders a template for given quotes. * * @param array $data - * @param boolean $supportPaste + * @param bool $supportPaste * @return string */ public function render(array $data, $supportPaste = false); @@ -23,7 +23,7 @@ interface IMessageQuoteHandler { * Renders a list of quotes for insertation. * * @param mixed[][] $data - * @param boolean $render + * @param bool $render * @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 a0d9480761..011d337b66 100644 --- a/wcfsetup/install/files/lib/system/message/quote/MessageQuoteManager.class.php +++ b/wcfsetup/install/files/lib/system/message/quote/MessageQuoteManager.class.php @@ -90,7 +90,7 @@ class MessageQuoteManager extends SingletonFactory { * @param int $objectID * @param string $message * @param string $fullQuote - * @param boolean $returnFalseIfExists + * @param bool $returnFalseIfExists * @return mixed * @throws SystemException */ @@ -170,7 +170,7 @@ class MessageQuoteManager extends SingletonFactory { * Removes a quote from storage and returns true if the quote has successfully been removed. * * @param string $quoteID - * @return boolean + * @return bool */ public function removeQuote($quoteID) { if (!isset($this->quoteData[$quoteID])) { @@ -268,7 +268,7 @@ class MessageQuoteManager extends SingletonFactory { /** * Returns a list of quotes. * - * @param boolean $supportPaste + * @param bool $supportPaste * @return string */ public function getQuotes($supportPaste = false) { @@ -287,7 +287,7 @@ class MessageQuoteManager extends SingletonFactory { * * @param string $objectType * @param int[] $objectIDs - * @param boolean $markForRemoval + * @param bool $markForRemoval * @return string[] */ public function getQuotesByObjectIDs($objectType, array $objectIDs, $markForRemoval = true) { @@ -327,7 +327,7 @@ class MessageQuoteManager extends SingletonFactory { * * @param string $objectType * @param int $parentObjectID - * @param boolean $markForRemoval + * @param bool $markForRemoval * @return string[] */ public function getQuotesByParentObjectID($objectType, $parentObjectID, $markForRemoval = true) { @@ -366,7 +366,7 @@ class MessageQuoteManager extends SingletonFactory { * Returns a quote by id. * * @param string $quoteID - * @param boolean $useFullQuote + * @param bool $useFullQuote * @return string */ public function getQuote($quoteID, $useFullQuote = true) { @@ -423,7 +423,7 @@ class MessageQuoteManager extends SingletonFactory { * * @param IMessage $message * @param string $text - * @param boolean $renderAsString + * @param bool $renderAsString * @return array|string */ public function renderQuote(IMessage $message, $text, $renderAsString = true) { @@ -612,7 +612,7 @@ class MessageQuoteManager extends SingletonFactory { * Returns true if a quote id represents a full quote. * * @param string $quoteID - * @return boolean + * @return bool */ public function isFullQuote($quoteID) { return isset($this->quoteData[$quoteID . '_fq']); diff --git a/wcfsetup/install/files/lib/system/message/quote/QuotedMessage.class.php b/wcfsetup/install/files/lib/system/message/quote/QuotedMessage.class.php index 11cbe631ba..ab9e081ad5 100644 --- a/wcfsetup/install/files/lib/system/message/quote/QuotedMessage.class.php +++ b/wcfsetup/install/files/lib/system/message/quote/QuotedMessage.class.php @@ -19,7 +19,7 @@ use wcf\data\IMessage; * @method string getTitle() * @method int getUserID() * @method string getUsername() - * @method boolean isVisible() + * @method bool isVisible() */ class QuotedMessage implements \Countable, \Iterator { /** @@ -36,7 +36,7 @@ class QuotedMessage implements \Countable, \Iterator { /** * overrides full quote flag - * @var boolean[] + * @var bool[] */ public $overrideIsFullQuote = []; @@ -102,7 +102,7 @@ class QuotedMessage implements \Countable, \Iterator { * Overrides the full quote flag. * * @param string $quoteID - * @param boolean $overrideIsFullQuote + * @param bool $overrideIsFullQuote */ public function setOverrideIsFullQuote($quoteID, $overrideIsFullQuote) { $this->overrideIsFullQuote[$quoteID] = $overrideIsFullQuote; @@ -135,7 +135,7 @@ class QuotedMessage implements \Countable, \Iterator { * Returns true if given quote id represents a full quote. * * @param string $quoteID - * @return boolean + * @return bool */ public function isFullQuote($quoteID) { if (isset($this->overrideIsFullQuote[$quoteID])) { diff --git a/wcfsetup/install/files/lib/system/moderation/queue/IModerationQueueHandler.class.php b/wcfsetup/install/files/lib/system/moderation/queue/IModerationQueueHandler.class.php index 46b82aa370..277b33e005 100644 --- a/wcfsetup/install/files/lib/system/moderation/queue/IModerationQueueHandler.class.php +++ b/wcfsetup/install/files/lib/system/moderation/queue/IModerationQueueHandler.class.php @@ -39,7 +39,7 @@ interface IModerationQueueHandler { * Returns true if given object id is valid. * * @param int $objectID - * @return boolean + * @return bool */ public function isValid($objectID); @@ -63,7 +63,7 @@ interface IModerationQueueHandler { * Returns true if the affected content may be removed. * * @param ModerationQueue $queue - * @return boolean + * @return bool */ public function canRemoveContent(ModerationQueue $queue); @@ -80,7 +80,7 @@ interface IModerationQueueHandler { * * @param ModerationQueue $queue * @param int $userID - * @return boolean + * @return bool */ public function isAffectedUser(ModerationQueue $queue, $userID); diff --git a/wcfsetup/install/files/lib/system/moderation/queue/IModerationQueueManager.class.php b/wcfsetup/install/files/lib/system/moderation/queue/IModerationQueueManager.class.php index 6df10ef000..f9dbe22eb9 100644 --- a/wcfsetup/install/files/lib/system/moderation/queue/IModerationQueueManager.class.php +++ b/wcfsetup/install/files/lib/system/moderation/queue/IModerationQueueManager.class.php @@ -25,7 +25,7 @@ interface IModerationQueueManager { * * @param string $objectType * @param int $objectID - * @return boolean + * @return bool */ public function isValid($objectType, $objectID = null); @@ -66,7 +66,7 @@ interface IModerationQueueManager { * Returns whether the affected content may be removed. * * @param ModerationQueue $queue - * @return boolean + * @return bool */ public function canRemoveContent(ModerationQueue $queue); 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 8efab673a9..cb0aa30c97 100644 --- a/wcfsetup/install/files/lib/system/moderation/queue/ModerationQueueManager.class.php +++ b/wcfsetup/install/files/lib/system/moderation/queue/ModerationQueueManager.class.php @@ -78,7 +78,7 @@ class ModerationQueueManager extends SingletonFactory { * * @param string $definitionName * @param string $objectType - * @return boolean + * @return bool */ public function isValid($definitionName, $objectType) { if (!isset($this->objectTypeNames[$definitionName])) { @@ -243,7 +243,7 @@ class ModerationQueueManager extends SingletonFactory { /** * Returns the count of unread moderation queue items. * - * @param boolean $skipCache + * @param bool $skipCache * @return int */ public function getUnreadModerationCount($skipCache = false) { @@ -313,7 +313,7 @@ class ModerationQueueManager extends SingletonFactory { /** * Saves moderation queue assignments. * - * @param boolean[] $assignments + * @param bool[] $assignments */ public function setAssignment(array $assignments) { $sql = "INSERT IGNORE INTO wcf".WCF_N."_moderation_queue_to_user diff --git a/wcfsetup/install/files/lib/system/moderation/queue/ModerationQueueReportManager.class.php b/wcfsetup/install/files/lib/system/moderation/queue/ModerationQueueReportManager.class.php index c7a57a2e1a..986feaf1a5 100644 --- a/wcfsetup/install/files/lib/system/moderation/queue/ModerationQueueReportManager.class.php +++ b/wcfsetup/install/files/lib/system/moderation/queue/ModerationQueueReportManager.class.php @@ -26,7 +26,7 @@ class ModerationQueueReportManager extends AbstractModerationQueueManager { * * @param string $objectType * @param int $objectID - * @return boolean + * @return bool */ public function isAlreadyReported($objectType, $objectID) { $objectTypeID = $this->getObjectTypeID($objectType); @@ -50,7 +50,7 @@ class ModerationQueueReportManager extends AbstractModerationQueueManager { * * @param string $objectType * @param int $objectID - * @return boolean + * @return bool */ public function hasPendingReport($objectType, $objectID) { $objectTypeID = $this->getObjectTypeID($objectType); @@ -76,7 +76,7 @@ class ModerationQueueReportManager extends AbstractModerationQueueManager { * * @param string $objectType * @param int $objectID - * @return boolean + * @return bool */ public function canReport($objectType, $objectID) { return $this->getProcessor($objectType)->canReport($objectID); diff --git a/wcfsetup/install/files/lib/system/moderation/queue/report/IModerationQueueReportHandler.class.php b/wcfsetup/install/files/lib/system/moderation/queue/report/IModerationQueueReportHandler.class.php index 68c4d7509a..0b652dbfc4 100644 --- a/wcfsetup/install/files/lib/system/moderation/queue/report/IModerationQueueReportHandler.class.php +++ b/wcfsetup/install/files/lib/system/moderation/queue/report/IModerationQueueReportHandler.class.php @@ -16,7 +16,7 @@ interface IModerationQueueReportHandler extends IModerationQueueHandler { * Returns true if current user can report given content. * * @param int $objectID - * @return boolean + * @return bool */ public function canReport($objectID); diff --git a/wcfsetup/install/files/lib/system/notice/NoticeHandler.class.php b/wcfsetup/install/files/lib/system/notice/NoticeHandler.class.php index 2f96e6e964..bc653d5649 100644 --- a/wcfsetup/install/files/lib/system/notice/NoticeHandler.class.php +++ b/wcfsetup/install/files/lib/system/notice/NoticeHandler.class.php @@ -21,7 +21,7 @@ class NoticeHandler extends SingletonFactory { /** * suppresses display of notices - * @var boolean + * @var bool */ protected static $disableNotices = false; diff --git a/wcfsetup/install/files/lib/system/option/AbstractOptionType.class.php b/wcfsetup/install/files/lib/system/option/AbstractOptionType.class.php index d0f3ffbfa5..9792d3f7d1 100644 --- a/wcfsetup/install/files/lib/system/option/AbstractOptionType.class.php +++ b/wcfsetup/install/files/lib/system/option/AbstractOptionType.class.php @@ -13,7 +13,7 @@ use wcf\data\option\Option; abstract class AbstractOptionType implements IOptionType { /** * internationalization support - * @var boolean + * @var bool */ protected $supportI18n = false; diff --git a/wcfsetup/install/files/lib/system/option/IOptionHandler.class.php b/wcfsetup/install/files/lib/system/option/IOptionHandler.class.php index 907083fcee..4f9430ca95 100644 --- a/wcfsetup/install/files/lib/system/option/IOptionHandler.class.php +++ b/wcfsetup/install/files/lib/system/option/IOptionHandler.class.php @@ -13,7 +13,7 @@ interface IOptionHandler { /** * Creates a new option handler instance. * - * @param boolean $supportI18n + * @param bool $supportI18n * @param string $languageItemPattern * @param string $categoryName */ @@ -46,7 +46,7 @@ interface IOptionHandler { * Returns a list with the options of a specific option category. * * @param string $categoryName - * @param boolean $inherit + * @param bool $inherit * @return array */ public function getCategoryOptions($categoryName = '', $inherit = true); diff --git a/wcfsetup/install/files/lib/system/option/IOptionType.class.php b/wcfsetup/install/files/lib/system/option/IOptionType.class.php index 0799616da8..9541818f84 100644 --- a/wcfsetup/install/files/lib/system/option/IOptionType.class.php +++ b/wcfsetup/install/files/lib/system/option/IOptionType.class.php @@ -50,7 +50,7 @@ interface IOptionType { /** * Returns true if options supports internationalization. * - * @return boolean + * @return bool */ public function supportI18n(); @@ -71,7 +71,7 @@ interface IOptionType { /** * Returns true if option's label is hidden in search form. * - * @return boolean + * @return bool */ public function hideLabelInSearch(); diff --git a/wcfsetup/install/files/lib/system/option/ISearchableConditionUserOption.class.php b/wcfsetup/install/files/lib/system/option/ISearchableConditionUserOption.class.php index aafea6a49d..25c5dd8dd5 100644 --- a/wcfsetup/install/files/lib/system/option/ISearchableConditionUserOption.class.php +++ b/wcfsetup/install/files/lib/system/option/ISearchableConditionUserOption.class.php @@ -30,7 +30,7 @@ interface ISearchableConditionUserOption extends ISearchableUserOption { * @param User $user * @param Option $option * @param mixed $value - * @return boolean + * @return bool */ public function checkUser(User $user, Option $option, $value); diff --git a/wcfsetup/install/files/lib/system/option/ISearchableUserOption.class.php b/wcfsetup/install/files/lib/system/option/ISearchableUserOption.class.php index 69239e11ad..e14aaff96f 100644 --- a/wcfsetup/install/files/lib/system/option/ISearchableUserOption.class.php +++ b/wcfsetup/install/files/lib/system/option/ISearchableUserOption.class.php @@ -27,7 +27,7 @@ interface ISearchableUserOption { * @param PreparedStatementConditionBuilder $conditions * @param Option $option * @param mixed $value - * @return boolean + * @return bool */ public function getCondition(PreparedStatementConditionBuilder &$conditions, Option $option, $value); } diff --git a/wcfsetup/install/files/lib/system/option/OptionHandler.class.php b/wcfsetup/install/files/lib/system/option/OptionHandler.class.php index f8befc6904..881f06ce7a 100644 --- a/wcfsetup/install/files/lib/system/option/OptionHandler.class.php +++ b/wcfsetup/install/files/lib/system/option/OptionHandler.class.php @@ -122,13 +122,13 @@ class OptionHandler implements IOptionHandler { /** * true, if options support i18n - * @var boolean + * @var bool */ public $supportI18n = false; /** * cache initialization state - * @var boolean + * @var bool */ public $didInit = false; @@ -521,7 +521,7 @@ class OptionHandler implements IOptionHandler { * Checks the required permissions and options of a category. * * @param OptionCategory $category - * @return boolean + * @return bool */ protected function checkCategory(OptionCategory $category) { if (!$category->validateOptions() || !$category->validatePermissions()) { @@ -539,7 +539,7 @@ class OptionHandler implements IOptionHandler { * Checks the required permissions and options of an option. * * @param Option $option - * @return boolean + * @return bool */ protected function checkOption(Option $option) { return $option->validateOptions() && $option->validatePermissions() && $this->checkVisibility($option); @@ -549,7 +549,7 @@ class OptionHandler implements IOptionHandler { * Checks visibility of an option. * * @param Option $option - * @return boolean + * @return bool */ protected function checkVisibility(Option $option) { if (!$option->isVisible()) { diff --git a/wcfsetup/install/files/lib/system/option/user/UserOptionHandler.class.php b/wcfsetup/install/files/lib/system/option/user/UserOptionHandler.class.php index b4a6d291c9..617e3d0068 100644 --- a/wcfsetup/install/files/lib/system/option/user/UserOptionHandler.class.php +++ b/wcfsetup/install/files/lib/system/option/user/UserOptionHandler.class.php @@ -34,25 +34,25 @@ class UserOptionHandler extends OptionHandler { /** * true if within registration process - * @var boolean + * @var bool */ public $inRegistration = false; /** * true if within edit mode - * @var boolean + * @var bool */ public $editMode = true; /** * true if within search mode - * @var boolean + * @var bool */ public $searchMode = false; /** * true if empty options should be removed - * @var boolean + * @var bool */ public $removeEmptyOptions = false; @@ -64,14 +64,14 @@ class UserOptionHandler extends OptionHandler { /** * true if the condition mode during search mode is enabled - * @var boolean + * @var bool */ public $conditionMode = false; /** * Shows empty options. * - * @param boolean $show + * @param bool $show */ public function showEmptyOptions($show = true) { $this->removeEmptyOptions = !$show; @@ -80,7 +80,7 @@ class UserOptionHandler extends OptionHandler { /** * Sets registration mode. * - * @param boolean $inRegistration + * @param bool $inRegistration */ public function setInRegistration($inRegistration = true) { $this->inRegistration = $inRegistration; @@ -90,7 +90,7 @@ class UserOptionHandler extends OptionHandler { /** * Enables edit mode. * - * @param boolean $enable + * @param bool $enable */ public function enableEditMode($enable = true) { $this->editMode = $enable; @@ -99,7 +99,7 @@ class UserOptionHandler extends OptionHandler { /** * Enables search mode. * - * @param boolean $enable + * @param bool $enable */ public function enableSearchMode($enable = true) { $this->searchMode = $enable; @@ -140,7 +140,7 @@ class UserOptionHandler extends OptionHandler { * are considered. Furthermore, the visibility setting of the option is disregarded to ensure that * during automatic cronjob execution (always done as a guest), the conditions are properly set. * - * @param boolean $enable + * @param bool $enable */ public function enableConditionMode($enable = true) { if (!$this->searchMode) { diff --git a/wcfsetup/install/files/lib/system/option/user/group/UserGroupOptionHandler.class.php b/wcfsetup/install/files/lib/system/option/user/group/UserGroupOptionHandler.class.php index ea02df2b13..8b40ee6cc4 100644 --- a/wcfsetup/install/files/lib/system/option/user/group/UserGroupOptionHandler.class.php +++ b/wcfsetup/install/files/lib/system/option/user/group/UserGroupOptionHandler.class.php @@ -31,7 +31,7 @@ class UserGroupOptionHandler extends OptionHandler { /** * true if current user can edit every user group - * @var boolean + * @var bool */ protected $isAdmin = null; @@ -118,7 +118,7 @@ class UserGroupOptionHandler extends OptionHandler { /** * Returns true if current user has the permissions to edit every user group. * - * @return boolean + * @return bool */ protected function isAdmin() { if ($this->isAdmin === null) { diff --git a/wcfsetup/install/files/lib/system/package/ACPTemplatesFileHandler.class.php b/wcfsetup/install/files/lib/system/package/ACPTemplatesFileHandler.class.php index fb96359a61..5bef546175 100644 --- a/wcfsetup/install/files/lib/system/package/ACPTemplatesFileHandler.class.php +++ b/wcfsetup/install/files/lib/system/package/ACPTemplatesFileHandler.class.php @@ -16,7 +16,7 @@ use wcf\system\WCF; class ACPTemplatesFileHandler extends PackageInstallationFileHandler { /** * template type supports template groups - * @var boolean + * @var bool */ protected $supportsTemplateGroups = false; diff --git a/wcfsetup/install/files/lib/system/package/PackageArchive.class.php b/wcfsetup/install/files/lib/system/package/PackageArchive.class.php index a4b87973e2..a35ba8f6c2 100644 --- a/wcfsetup/install/files/lib/system/package/PackageArchive.class.php +++ b/wcfsetup/install/files/lib/system/package/PackageArchive.class.php @@ -461,7 +461,7 @@ class PackageArchive { /** * Returns true if the package archive supports a new installation. * - * @return boolean + * @return bool */ public function isValidInstall() { return !empty($this->instructions['install']); @@ -472,7 +472,7 @@ class PackageArchive { * the package that is about to be updated. * * @param Package $package - * @return boolean isValidUpdate + * @return bool isValidUpdate */ public function isValidUpdate(Package $package = null) { if ($this->package === null && $package !== null) { @@ -506,7 +506,7 @@ class PackageArchive { * possible to install non-applications multiple times within the * same environment. * - * @return boolean + * @return bool */ public function isAlreadyInstalled() { $sql = "SELECT COUNT(*) @@ -521,7 +521,7 @@ class PackageArchive { /** * Returns true if the package is an application and has an unique abbreviation. * - * @return boolean + * @return bool */ public function hasUniqueAbbreviation() { if (!$this->packageInfo['isApplication']) { diff --git a/wcfsetup/install/files/lib/system/package/PackageInstallationDispatcher.class.php b/wcfsetup/install/files/lib/system/package/PackageInstallationDispatcher.class.php index 5a3cc5c960..cdac84e79e 100644 --- a/wcfsetup/install/files/lib/system/package/PackageInstallationDispatcher.class.php +++ b/wcfsetup/install/files/lib/system/package/PackageInstallationDispatcher.class.php @@ -1241,7 +1241,7 @@ class PackageInstallationDispatcher { * Validates if an function exists and is not blacklisted by suhosin extension. * * @param string $function - * @return boolean + * @return bool * @see http://de.php.net/manual/en/function.function-exists.php#77980 */ protected static function functionExists($function) { @@ -1268,7 +1268,7 @@ class PackageInstallationDispatcher { * @param string $setting * @param string $value * @param mixed $compareValue - * @return boolean + * @return bool */ protected static function compareSetting($setting, $value, $compareValue) { if ($compareValue === false) return false; diff --git a/wcfsetup/install/files/lib/system/package/PackageInstallationFormManager.class.php b/wcfsetup/install/files/lib/system/package/PackageInstallationFormManager.class.php index 2c2f61075e..a473f4ec83 100644 --- a/wcfsetup/install/files/lib/system/package/PackageInstallationFormManager.class.php +++ b/wcfsetup/install/files/lib/system/package/PackageInstallationFormManager.class.php @@ -52,7 +52,7 @@ abstract class PackageInstallationFormManager { * * @param PackageInstallationQueue $queue * @param string $formName - * @return boolean + * @return bool */ public static function findForm(PackageInstallationQueue $queue, $formName) { $sql = "SELECT COUNT(*) diff --git a/wcfsetup/install/files/lib/system/package/PackageInstallationNodeBuilder.class.php b/wcfsetup/install/files/lib/system/package/PackageInstallationNodeBuilder.class.php index 72952f8c7f..f4e20b745c 100644 --- a/wcfsetup/install/files/lib/system/package/PackageInstallationNodeBuilder.class.php +++ b/wcfsetup/install/files/lib/system/package/PackageInstallationNodeBuilder.class.php @@ -19,7 +19,7 @@ use wcf\util\StringUtil; class PackageInstallationNodeBuilder { /** * true if current node is empty - * @var boolean + * @var bool */ public $emptyNode = true; diff --git a/wcfsetup/install/files/lib/system/package/PackageInstallationSQLParser.class.php b/wcfsetup/install/files/lib/system/package/PackageInstallationSQLParser.class.php index 91e1f56378..3f019c2e86 100644 --- a/wcfsetup/install/files/lib/system/package/PackageInstallationSQLParser.class.php +++ b/wcfsetup/install/files/lib/system/package/PackageInstallationSQLParser.class.php @@ -22,7 +22,7 @@ class PackageInstallationSQLParser extends SQLParser { /** * activates the testing mode - * @var boolean + * @var bool */ protected $test = false; diff --git a/wcfsetup/install/files/lib/system/package/PackageInstallationScheduler.class.php b/wcfsetup/install/files/lib/system/package/PackageInstallationScheduler.class.php index bbc9cb30a2..50cf0b18ca 100644 --- a/wcfsetup/install/files/lib/system/package/PackageInstallationScheduler.class.php +++ b/wcfsetup/install/files/lib/system/package/PackageInstallationScheduler.class.php @@ -59,7 +59,7 @@ class PackageInstallationScheduler { /** * Builds the stack of package installations / updates. * - * @param boolean $validateInstallInstructions + * @param bool $validateInstallInstructions */ public function buildPackageInstallationStack($validateInstallInstructions = false) { foreach ($this->selectedPackages as $package => $version) { @@ -72,8 +72,8 @@ class PackageInstallationScheduler { * * @param string $package package identifier * @param string $minversion preferred package version - * @param boolean $installOldVersion true, if you want to install the package in the given minversion and not in the newest version - * @param boolean $validateInstallInstructions + * @param bool $installOldVersion true, if you want to install the package in the given minversion and not in the newest version + * @param bool $validateInstallInstructions */ protected function tryToInstallPackage($package, $minversion = '', $installOldVersion = false, $validateInstallInstructions = false) { // check virtual package version @@ -114,7 +114,7 @@ class PackageInstallationScheduler { * @param string $package package identifier * @param string $version package version * @param int $stackPosition - * @param boolean $validateInstallInstructions + * @param bool $validateInstallInstructions */ protected function installPackage($package, $version = '', $stackPosition = -1, $validateInstallInstructions = false) { // get package update versions @@ -207,7 +207,7 @@ class PackageInstallationScheduler { * * @param string $package package identifier * @param array $packageUpdateVersions package update versions - * @param boolean $validateInstallInstructions + * @param bool $validateInstallInstructions * @return string tmp filename of a downloaded package * @throws PackageUpdateUnauthorizedException * @throws SystemException @@ -635,7 +635,7 @@ class PackageInstallationScheduler { * * @param string $package package identifier * @param string $version package version - * @return string|boolean + * @return string|bool */ protected function getCachedDownload($package, $version) { $cachedDownloads = WCF::getSession()->getVar('cachedPackageUpdateDownloads'); diff --git a/wcfsetup/install/files/lib/system/package/PackageInstallationStep.class.php b/wcfsetup/install/files/lib/system/package/PackageInstallationStep.class.php index 6449ec5cf2..07a5efd14a 100644 --- a/wcfsetup/install/files/lib/system/package/PackageInstallationStep.class.php +++ b/wcfsetup/install/files/lib/system/package/PackageInstallationStep.class.php @@ -31,7 +31,7 @@ class PackageInstallationStep { /** * indicates if current current node should be splitted - * @var boolean + * @var bool */ protected $splitNode = false; @@ -84,7 +84,7 @@ class PackageInstallationStep { /** * Returns true if current step holds a form document object. * - * @return boolean + * @return bool */ public function hasDocument() { return ($this->document !== null); @@ -103,7 +103,7 @@ class PackageInstallationStep { /** * Returns true if node should be splitted. * - * @return boolean + * @return bool */ public function splitNode() { return $this->splitNode; diff --git a/wcfsetup/install/files/lib/system/package/PackageUninstallationDispatcher.class.php b/wcfsetup/install/files/lib/system/package/PackageUninstallationDispatcher.class.php index ebb734e4df..c67cd5d315 100644 --- a/wcfsetup/install/files/lib/system/package/PackageUninstallationDispatcher.class.php +++ b/wcfsetup/install/files/lib/system/package/PackageUninstallationDispatcher.class.php @@ -27,7 +27,7 @@ class PackageUninstallationDispatcher extends PackageInstallationDispatcher { /** * is true if the package's uninstall script has been executed or if no * such script exists - * @var boolean + * @var bool */ protected $didExecuteUninstallScript = false; @@ -157,8 +157,8 @@ class PackageUninstallationDispatcher extends PackageInstallationDispatcher { * * @param string $targetDir * @param string[] $files - * @param boolean $deleteEmptyDirectories - * @param boolean $deleteEmptyTargetDir + * @param bool $deleteEmptyDirectories + * @param bool $deleteEmptyTargetDir */ public function deleteFiles($targetDir, $files, $deleteEmptyTargetDir = false, $deleteEmptyDirectories = true) { new Uninstaller($targetDir, $files, $deleteEmptyTargetDir, $deleteEmptyDirectories); diff --git a/wcfsetup/install/files/lib/system/package/PackageUpdateDispatcher.class.php b/wcfsetup/install/files/lib/system/package/PackageUpdateDispatcher.class.php index 9e0f192330..62831f7877 100644 --- a/wcfsetup/install/files/lib/system/package/PackageUpdateDispatcher.class.php +++ b/wcfsetup/install/files/lib/system/package/PackageUpdateDispatcher.class.php @@ -35,7 +35,7 @@ class PackageUpdateDispatcher extends SingletonFactory { * Refreshes the package database. * * @param int[] $packageUpdateServerIDs - * @param boolean $ignoreCache + * @param bool $ignoreCache */ public function refreshPackageDatabase(array $packageUpdateServerIDs = [], $ignoreCache = false) { // get update server data @@ -139,7 +139,7 @@ class PackageUpdateDispatcher extends SingletonFactory { * Fetches the package_update.xml from an update server. * * @param PackageUpdateServer $updateServer - * @param boolean $forceHTTP + * @param bool $forceHTTP * @throws PackageUpdateUnauthorizedException * @throws SystemException */ @@ -705,8 +705,8 @@ class PackageUpdateDispatcher extends SingletonFactory { /** * Returns a list of available updates for installed packages. * - * @param boolean $removeRequirements - * @param boolean $removeOlderMinorReleases + * @param bool $removeRequirements + * @param bool $removeOlderMinorReleases * @return array * @throws SystemException */ diff --git a/wcfsetup/install/files/lib/system/package/plugin/AbstractXMLPackageInstallationPlugin.class.php b/wcfsetup/install/files/lib/system/package/plugin/AbstractXMLPackageInstallationPlugin.class.php index cf5997f0a9..a421ef9f07 100644 --- a/wcfsetup/install/files/lib/system/package/plugin/AbstractXMLPackageInstallationPlugin.class.php +++ b/wcfsetup/install/files/lib/system/package/plugin/AbstractXMLPackageInstallationPlugin.class.php @@ -197,7 +197,7 @@ abstract class AbstractXMLPackageInstallationPlugin extends AbstractPackageInsta * languages, optionally returning only the best matching value. * * @param string[] $values list of values by language code - * @param boolean $singleValueOnly true to return only the best matching value + * @param bool $singleValueOnly true to return only the best matching value * @return string[]|string matching i18n values controller by `$singleValueOnly` * @since 3.0 */ diff --git a/wcfsetup/install/files/lib/system/package/plugin/IPackageInstallationPlugin.class.php b/wcfsetup/install/files/lib/system/package/plugin/IPackageInstallationPlugin.class.php index 6d9f1df0be..e55e7b5000 100644 --- a/wcfsetup/install/files/lib/system/package/plugin/IPackageInstallationPlugin.class.php +++ b/wcfsetup/install/files/lib/system/package/plugin/IPackageInstallationPlugin.class.php @@ -25,7 +25,7 @@ interface IPackageInstallationPlugin { * Returns true if the uninstallation of the given package should execute * this plugin. * - * @return boolean + * @return bool */ public function hasUninstall(); @@ -49,7 +49,7 @@ interface IPackageInstallationPlugin { * * @param PackageArchive $packageArchive * @param string $instruction - * @return boolean + * @return bool */ public static function isValid(PackageArchive $packageArchive, $instruction); } diff --git a/wcfsetup/install/files/lib/system/package/plugin/LanguagePackageInstallationPlugin.class.php b/wcfsetup/install/files/lib/system/package/plugin/LanguagePackageInstallationPlugin.class.php index 7fef3cbf5b..0df7d7efa7 100644 --- a/wcfsetup/install/files/lib/system/package/plugin/LanguagePackageInstallationPlugin.class.php +++ b/wcfsetup/install/files/lib/system/package/plugin/LanguagePackageInstallationPlugin.class.php @@ -633,7 +633,7 @@ XML; /** * Returns the xml objects for this pip. * - * @param boolean $createXmlFiles if `true` and if a relevant XML file does not exist, it is created + * @param bool $createXmlFiles if `true` and if a relevant XML file does not exist, it is created * @return XML[] */ protected function getProjectXmls($createXmlFiles = false) { diff --git a/wcfsetup/install/files/lib/system/package/validation/PackageValidationArchive.class.php b/wcfsetup/install/files/lib/system/package/validation/PackageValidationArchive.class.php index 1e97682e22..a119b9bee2 100644 --- a/wcfsetup/install/files/lib/system/package/validation/PackageValidationArchive.class.php +++ b/wcfsetup/install/files/lib/system/package/validation/PackageValidationArchive.class.php @@ -82,7 +82,7 @@ class PackageValidationArchive implements \RecursiveIterator { * * @param int $validationMode * @param string $requiredVersion - * @return boolean + * @return bool */ public function validate($validationMode, $requiredVersion = '') { if ($validationMode !== PackageValidationManager::VALIDATION_EXCLUSION) { diff --git a/wcfsetup/install/files/lib/system/package/validation/PackageValidationManager.class.php b/wcfsetup/install/files/lib/system/package/validation/PackageValidationManager.class.php index 5cf3507417..93f4a8b5d1 100644 --- a/wcfsetup/install/files/lib/system/package/validation/PackageValidationManager.class.php +++ b/wcfsetup/install/files/lib/system/package/validation/PackageValidationManager.class.php @@ -68,8 +68,8 @@ class PackageValidationManager extends SingletonFactory { * be performed afterwards. * * @param string $archive - * @param boolean $deepInspection - * @return boolean + * @param bool $deepInspection + * @return bool */ public function validate($archive, $deepInspection) { $this->virtualPackageList = []; @@ -101,7 +101,7 @@ class PackageValidationManager extends SingletonFactory { * * @param string $package * @param string $packageVersion - * @return boolean + * @return bool */ public function addVirtualPackage($package, $packageVersion) { if (isset($this->virtualPackageList[$package])) { @@ -179,7 +179,7 @@ class PackageValidationManager extends SingletonFactory { * @param PackageArchive $archive * @param string $pip * @param string $instruction - * @return boolean + * @return bool */ public function validatePackageInstallationPluginInstruction(PackageArchive $archive, $pip, $instruction) { if (isset($this->packageInstallationPlugins[$pip])) { diff --git a/wcfsetup/install/files/lib/system/page/PageLocationManager.class.php b/wcfsetup/install/files/lib/system/page/PageLocationManager.class.php index 3312ef3c73..b5720e8053 100644 --- a/wcfsetup/install/files/lib/system/page/PageLocationManager.class.php +++ b/wcfsetup/install/files/lib/system/page/PageLocationManager.class.php @@ -19,7 +19,7 @@ use wcf\system\WCF; class PageLocationManager extends SingletonFactory { /** * true if all parents of the highest page have been added - * @var boolean + * @var bool */ protected $addedParentLocations = false; @@ -74,7 +74,7 @@ class PageLocationManager extends SingletonFactory { * @param string $identifier internal page identifier * @param int $pageObjectID page object id * @param ITitledLinkObject $locationObject optional label for breadcrumbs usage - * @param boolean $useAsParentLocation + * @param bool $useAsParentLocation * @throws SystemException */ public function addParentLocation($identifier, $pageObjectID = 0, ITitledLinkObject $locationObject = null, $useAsParentLocation = false) { diff --git a/wcfsetup/install/files/lib/system/page/handler/ILookupPageHandler.class.php b/wcfsetup/install/files/lib/system/page/handler/ILookupPageHandler.class.php index b1e62c76ea..ca3daaf206 100644 --- a/wcfsetup/install/files/lib/system/page/handler/ILookupPageHandler.class.php +++ b/wcfsetup/install/files/lib/system/page/handler/ILookupPageHandler.class.php @@ -24,7 +24,7 @@ interface ILookupPageHandler extends IMenuPageHandler { * Returns true if provided object id exists and is valid. * * @param int $objectID page object id - * @return boolean true if object id is valid + * @return bool true if object id is valid */ public function isValid($objectID); diff --git a/wcfsetup/install/files/lib/system/page/handler/IMenuPageHandler.class.php b/wcfsetup/install/files/lib/system/page/handler/IMenuPageHandler.class.php index a61769eab8..47c2169c0a 100644 --- a/wcfsetup/install/files/lib/system/page/handler/IMenuPageHandler.class.php +++ b/wcfsetup/install/files/lib/system/page/handler/IMenuPageHandler.class.php @@ -25,7 +25,7 @@ interface IMenuPageHandler { * of the page itself. The visibility can optionally be scoped to the given object id. * * @param int|null $objectID optional page object id - * @return boolean false if the page should be hidden from menus + * @return bool false if the page should be hidden from menus */ public function isVisible($objectID = null); } diff --git a/wcfsetup/install/files/lib/system/page/handler/TDecoratedCategoryLookupPageHandler.class.php b/wcfsetup/install/files/lib/system/page/handler/TDecoratedCategoryLookupPageHandler.class.php index c063b630f0..c25dd6a26b 100644 --- a/wcfsetup/install/files/lib/system/page/handler/TDecoratedCategoryLookupPageHandler.class.php +++ b/wcfsetup/install/files/lib/system/page/handler/TDecoratedCategoryLookupPageHandler.class.php @@ -54,7 +54,7 @@ trait TDecoratedCategoryLookupPageHandler { * Returns true if provided object id exists and is valid. * * @param int $objectID page object id - * @return boolean true if object id is valid + * @return bool true if object id is valid * @see ILookupPageHandler::isValid() */ public function isValid($objectID = null) { diff --git a/wcfsetup/install/files/lib/system/page/handler/TDecoratedCategoryMenuPageHandler.class.php b/wcfsetup/install/files/lib/system/page/handler/TDecoratedCategoryMenuPageHandler.class.php index 94cd55a5b2..6aac5d2f39 100644 --- a/wcfsetup/install/files/lib/system/page/handler/TDecoratedCategoryMenuPageHandler.class.php +++ b/wcfsetup/install/files/lib/system/page/handler/TDecoratedCategoryMenuPageHandler.class.php @@ -25,7 +25,7 @@ trait TDecoratedCategoryMenuPageHandler { * of the page itself. The visibility can optionally be scoped to the given object id. * * @param int|null $objectID optional page object id - * @return boolean false if the page should be hidden from menus + * @return bool false if the page should be hidden from menus * @see IMenuPageHandler::isVisible() */ public function isVisible($objectID = null) { diff --git a/wcfsetup/install/files/lib/system/page/handler/TUserLookupPageHandler.class.php b/wcfsetup/install/files/lib/system/page/handler/TUserLookupPageHandler.class.php index 38d6e85050..c285534e15 100644 --- a/wcfsetup/install/files/lib/system/page/handler/TUserLookupPageHandler.class.php +++ b/wcfsetup/install/files/lib/system/page/handler/TUserLookupPageHandler.class.php @@ -17,7 +17,7 @@ trait TUserLookupPageHandler { * Returns true if provided object id exists and is valid. * * @param int $objectID page object id - * @return boolean true if object id is valid + * @return bool true if object id is valid * @see ILookupPageHandler::isValid() */ public function isValid($objectID) { diff --git a/wcfsetup/install/files/lib/system/payment/method/IPaymentMethod.class.php b/wcfsetup/install/files/lib/system/payment/method/IPaymentMethod.class.php index 63acd31e66..db7cfd5d6f 100644 --- a/wcfsetup/install/files/lib/system/payment/method/IPaymentMethod.class.php +++ b/wcfsetup/install/files/lib/system/payment/method/IPaymentMethod.class.php @@ -13,7 +13,7 @@ interface IPaymentMethod { /** * Returns true, if this payment method supports recurring payments. * - * @return boolean + * @return bool */ public function supportsRecurringPayments(); @@ -33,7 +33,7 @@ interface IPaymentMethod { * @param string $token custom token * @param string $returnURL * @param string $cancelReturnURL - * @param boolean $isRecurring + * @param bool $isRecurring * @param int $subscriptionLength * @param string $subscriptionLengthUnit * diff --git a/wcfsetup/install/files/lib/system/poll/IPollHandler.class.php b/wcfsetup/install/files/lib/system/poll/IPollHandler.class.php index d86c3a0dd8..775883e414 100644 --- a/wcfsetup/install/files/lib/system/poll/IPollHandler.class.php +++ b/wcfsetup/install/files/lib/system/poll/IPollHandler.class.php @@ -14,14 +14,14 @@ interface IPollHandler { /** * Returns true if current user may start a public poll. * - * @return boolean + * @return bool */ public function canStartPublicPoll(); /** * Returns true if current user may vote. * - * @return boolean + * @return bool */ public function canVote(); diff --git a/wcfsetup/install/files/lib/system/poll/PollManager.class.php b/wcfsetup/install/files/lib/system/poll/PollManager.class.php index adc85c89d7..e2137cc77e 100644 --- a/wcfsetup/install/files/lib/system/poll/PollManager.class.php +++ b/wcfsetup/install/files/lib/system/poll/PollManager.class.php @@ -106,7 +106,7 @@ class PollManager extends SingletonFactory { * @param string $objectType * @param int $objectID * @param int $pollID - * @return boolean + * @return bool * @throws SystemException */ public function setObject($objectType, $objectID, $pollID = 0) { @@ -362,7 +362,7 @@ class PollManager extends SingletonFactory { /** * Returns true if current user can start a public poll. * - * @return boolean + * @return bool */ public function canStartPublicPoll() { $handler = $this->getHandler(null, $this->objectType); diff --git a/wcfsetup/install/files/lib/system/request/ControllerMap.class.php b/wcfsetup/install/files/lib/system/request/ControllerMap.class.php index 294ac4bbae..2b8c35d8a9 100644 --- a/wcfsetup/install/files/lib/system/request/ControllerMap.class.php +++ b/wcfsetup/install/files/lib/system/request/ControllerMap.class.php @@ -62,8 +62,8 @@ class ControllerMap extends SingletonFactory { * * @param string $application application identifier * @param string $controller url controller - * @param boolean $isAcpRequest true if this is an ACP request - * @param boolean $skipCustomUrls true if custom url resolution should be suppressed, is always true for ACP requests + * @param bool $isAcpRequest true if this is an ACP request + * @param bool $skipCustomUrls true if custom url resolution should be suppressed, is always true for ACP requests * @return mixed array containing className, controller and pageType or a string containing the controller name for aliased controllers * @throws SystemException */ @@ -173,7 +173,7 @@ class ControllerMap extends SingletonFactory { * * @param string $application application identifier * @param string $controller controller class, e.g. 'MembersList' - * @param boolean $forceFrontend force transformation for frontend + * @param bool $forceFrontend force transformation for frontend * @return string url representation of controller, e.g. 'members-list' */ public function lookup($application, $controller, $forceFrontend = null) { @@ -278,7 +278,7 @@ class ControllerMap extends SingletonFactory { * * @param string $application application identifier * @param string $controller url controller name - * @return boolean true if controller is the application's default + * @return bool true if controller is the application's default */ public function isDefaultController($application, $controller) { // lookup custom urls first @@ -315,7 +315,7 @@ class ControllerMap extends SingletonFactory { * * @param string[] $classData * @param array $metaData - * @return boolean + * @return bool */ public function isLandingPage(array $classData, array $metaData) { if ($classData['className'] !== $this->landingPages['wcf'][2]) { @@ -353,7 +353,7 @@ class ControllerMap extends SingletonFactory { * * @param string $application application identifier * @param string $controller controller name - * @param boolean $isAcpRequest true if this is an ACP request + * @param bool $isAcpRequest true if this is an ACP request * @return string[]|null className, controller and pageType, or null if this is not a legacy controller name */ protected function getLegacyClassData($application, $controller, $isAcpRequest) { @@ -379,7 +379,7 @@ class ControllerMap extends SingletonFactory { * * @param string $application application identifier * @param string $controller controller name - * @param boolean $isAcpRequest true if this is an ACP request + * @param bool $isAcpRequest true if this is an ACP request * @param string $pageType page type, e.g. 'form' or 'action' * @return string[]|null className, controller and pageType */ diff --git a/wcfsetup/install/files/lib/system/request/Request.class.php b/wcfsetup/install/files/lib/system/request/Request.class.php index e58c171d08..2cf366aed8 100644 --- a/wcfsetup/install/files/lib/system/request/Request.class.php +++ b/wcfsetup/install/files/lib/system/request/Request.class.php @@ -18,7 +18,7 @@ class Request { protected $className = ''; /** - * @var boolean + * @var bool */ protected $isLandingPage = false; @@ -87,7 +87,7 @@ class Request { /** * Returns true if this request has already been executed. * - * @return boolean + * @return bool */ public function isExecuted() { return ($this->requestObject !== null); @@ -96,7 +96,7 @@ class Request { /** * Returns true if this request represents the landing page. * - * @return boolean + * @return bool */ public function isLandingPage() { return $this->isLandingPage; @@ -151,7 +151,7 @@ class Request { /** * Returns true if the requested page is available during the offline mode. * - * @return boolean + * @return bool */ public function isAvailableDuringOfflineMode() { if (defined($this->className . '::AVAILABLE_DURING_OFFLINE_MODE') && constant($this->className . '::AVAILABLE_DURING_OFFLINE_MODE')) { diff --git a/wcfsetup/install/files/lib/system/request/RequestHandler.class.php b/wcfsetup/install/files/lib/system/request/RequestHandler.class.php index 6a4debd004..5b7454fff0 100644 --- a/wcfsetup/install/files/lib/system/request/RequestHandler.class.php +++ b/wcfsetup/install/files/lib/system/request/RequestHandler.class.php @@ -29,13 +29,13 @@ class RequestHandler extends SingletonFactory { /** * true, if current domain mismatch any known domain - * @var boolean + * @var bool */ protected $inRescueMode = false; /** * indicates if the request is an acp request - * @var boolean + * @var bool */ protected $isACPRequest = false; @@ -50,7 +50,7 @@ class RequestHandler extends SingletonFactory { * Handles a http request. * * @param string $application - * @param boolean $isACPRequest + * @param bool $isACPRequest * @throws AJAXException * @throws IllegalLinkException * @throws SystemException @@ -319,7 +319,7 @@ class RequestHandler extends SingletonFactory { /** * Returns true if the request is an acp request. * - * @return boolean + * @return bool */ public function isACPRequest() { return $this->isACPRequest; @@ -328,7 +328,7 @@ class RequestHandler extends SingletonFactory { /** * Returns true, if current host mismatches any known domain. * - * @return boolean + * @return bool */ public function inRescueMode() { return $this->inRescueMode; diff --git a/wcfsetup/install/files/lib/system/request/RouteHandler.class.php b/wcfsetup/install/files/lib/system/request/RouteHandler.class.php index 9a06b40ccb..c3ff262580 100644 --- a/wcfsetup/install/files/lib/system/request/RouteHandler.class.php +++ b/wcfsetup/install/files/lib/system/request/RouteHandler.class.php @@ -48,7 +48,7 @@ class RouteHandler extends SingletonFactory { /** * HTTP encryption - * @var boolean + * @var bool */ protected static $secure; @@ -60,13 +60,13 @@ class RouteHandler extends SingletonFactory { /** * true if the default controller is used (support for custom landing page) - * @var boolean + * @var bool */ protected $isDefaultController = false; /** * true if the controller was renamed and has already been transformed - * @var boolean + * @var bool */ protected $isRenamedController = false; @@ -123,7 +123,7 @@ class RouteHandler extends SingletonFactory { * first route that is able to consume all path components is used, * even if other routes may fit better. Route order is crucial! * - * @return boolean + * @return bool */ public function matches() { foreach ($this->routes as $route) { @@ -153,7 +153,7 @@ class RouteHandler extends SingletonFactory { /** * Returns true if route uses default controller. * - * @return boolean + * @return bool */ public function isDefaultController() { return $this->isDefaultController; @@ -163,7 +163,7 @@ class RouteHandler extends SingletonFactory { /** * Returns true if the controller was renamed and has already been transformed. * - * @return boolean + * @return bool */ public function isRenamedController() { return $this->isRenamedController; @@ -194,7 +194,7 @@ class RouteHandler extends SingletonFactory { * * @param string $application application identifier * @param array $components - * @param boolean $isACP + * @param bool $isACP * @return string * @throws SystemException */ @@ -237,7 +237,7 @@ class RouteHandler extends SingletonFactory { /** * Returns true if this is a secure connection. * - * @return boolean + * @return bool */ public static function secureConnection() { if (self::$secure === null) { diff --git a/wcfsetup/install/files/lib/system/request/route/DynamicRequestRoute.class.php b/wcfsetup/install/files/lib/system/request/route/DynamicRequestRoute.class.php index f14a165936..4f602e6f58 100644 --- a/wcfsetup/install/files/lib/system/request/route/DynamicRequestRoute.class.php +++ b/wcfsetup/install/files/lib/system/request/route/DynamicRequestRoute.class.php @@ -21,7 +21,7 @@ class DynamicRequestRoute implements IRequestRoute { /** * route is restricted to ACP - * @var boolean + * @var bool */ protected $isACP = false; @@ -158,7 +158,7 @@ class DynamicRequestRoute implements IRequestRoute { * * @param string[] $components * @param string $application - * @param boolean $useBuildSchema + * @param bool $useBuildSchema * @return string */ protected function buildRoute(array $components, $application, $useBuildSchema) { diff --git a/wcfsetup/install/files/lib/system/request/route/IRequestRoute.class.php b/wcfsetup/install/files/lib/system/request/route/IRequestRoute.class.php index d97ebd433f..17fef15fa8 100644 --- a/wcfsetup/install/files/lib/system/request/route/IRequestRoute.class.php +++ b/wcfsetup/install/files/lib/system/request/route/IRequestRoute.class.php @@ -23,7 +23,7 @@ interface IRequestRoute { * Returns true if current route can handle the build request. * * @param array $components - * @return boolean + * @return bool */ public function canHandle(array $components); @@ -37,7 +37,7 @@ interface IRequestRoute { /** * Returns true if route applies for ACP. * - * @return boolean + * @return bool */ public function isACP(); @@ -45,14 +45,14 @@ interface IRequestRoute { * Returns true if given request url matches this route. * * @param string $requestURL - * @return boolean + * @return bool */ public function matches($requestURL); /** * Configures this route to handle either ACP or frontend requests. * - * @param boolean $isACP true if route handles ACP requests + * @param bool $isACP true if route handles ACP requests */ public function setIsACP($isACP); } diff --git a/wcfsetup/install/files/lib/system/request/route/StaticRequestRoute.class.php b/wcfsetup/install/files/lib/system/request/route/StaticRequestRoute.class.php index 74d4711d80..00a85e1ef8 100644 --- a/wcfsetup/install/files/lib/system/request/route/StaticRequestRoute.class.php +++ b/wcfsetup/install/files/lib/system/request/route/StaticRequestRoute.class.php @@ -14,7 +14,7 @@ use wcf\system\request\ControllerMap; class StaticRequestRoute extends DynamicRequestRoute { /** * controller must be present and match the static controller - * @var boolean + * @var bool */ protected $matchController = false; @@ -42,7 +42,7 @@ class StaticRequestRoute extends DynamicRequestRoute { * Controller must be part of the url and match the static controller, useful * for controllers requiring a custom set of additional parameters. * - * @param boolean $matchController + * @param bool $matchController */ public function setMatchController($matchController) { $this->matchController = $matchController; diff --git a/wcfsetup/install/files/lib/system/search/AbstractSearchIndexManager.class.php b/wcfsetup/install/files/lib/system/search/AbstractSearchIndexManager.class.php index 38bcfc00f7..bfbecde123 100644 --- a/wcfsetup/install/files/lib/system/search/AbstractSearchIndexManager.class.php +++ b/wcfsetup/install/files/lib/system/search/AbstractSearchIndexManager.class.php @@ -48,7 +48,7 @@ abstract class AbstractSearchIndexManager extends SingletonFactory implements IS * index was created, otherwise false. * * @param ObjectType $objectType - * @return boolean + * @return bool */ abstract protected function createSearchIndex(ObjectType $objectType); diff --git a/wcfsetup/install/files/lib/system/search/ISearchEngine.class.php b/wcfsetup/install/files/lib/system/search/ISearchEngine.class.php index 70c34579d1..ac2ed30480 100644 --- a/wcfsetup/install/files/lib/system/search/ISearchEngine.class.php +++ b/wcfsetup/install/files/lib/system/search/ISearchEngine.class.php @@ -30,7 +30,7 @@ interface ISearchEngine { * * @param string $objectTypeName * @param string $q - * @param boolean $subjectOnly + * @param bool $subjectOnly * @param PreparedStatementConditionBuilder $searchIndexCondition * @param string $orderBy * @param int $limit @@ -50,7 +50,7 @@ interface ISearchEngine { * * @param string $q * @param array $objectTypes - * @param boolean $subjectOnly + * @param bool $subjectOnly * @param PreparedStatementConditionBuilder $searchIndexCondition * @param array $additionalConditions * @param string $orderBy diff --git a/wcfsetup/install/files/lib/system/search/ISearchableObjectType.class.php b/wcfsetup/install/files/lib/system/search/ISearchableObjectType.class.php index 6901728af0..840c135197 100644 --- a/wcfsetup/install/files/lib/system/search/ISearchableObjectType.class.php +++ b/wcfsetup/install/files/lib/system/search/ISearchableObjectType.class.php @@ -103,7 +103,7 @@ interface ISearchableObjectType { /** * Returns true if the current user can use this searchable object type. * - * @return boolean + * @return bool */ public function isAccessible(); diff --git a/wcfsetup/install/files/lib/system/search/acp/AbstractACPSearchResultProvider.class.php b/wcfsetup/install/files/lib/system/search/acp/AbstractACPSearchResultProvider.class.php index 087923b648..d79a2cd5f7 100644 --- a/wcfsetup/install/files/lib/system/search/acp/AbstractACPSearchResultProvider.class.php +++ b/wcfsetup/install/files/lib/system/search/acp/AbstractACPSearchResultProvider.class.php @@ -18,7 +18,7 @@ abstract class AbstractACPSearchResultProvider { * @param DatabaseObject $object * @param string $optionsColumnName * @param string $permissionsColumnName - * @return boolean + * @return bool */ protected function validate(DatabaseObject $object, $optionsColumnName = 'options', $permissionsColumnName = 'permissions') { // check the options of this item diff --git a/wcfsetup/install/files/lib/system/search/acp/AbstractCategorizedACPSearchResultProvider.class.php b/wcfsetup/install/files/lib/system/search/acp/AbstractCategorizedACPSearchResultProvider.class.php index caf19b1417..fd5127160b 100644 --- a/wcfsetup/install/files/lib/system/search/acp/AbstractCategorizedACPSearchResultProvider.class.php +++ b/wcfsetup/install/files/lib/system/search/acp/AbstractCategorizedACPSearchResultProvider.class.php @@ -129,7 +129,7 @@ abstract class AbstractCategorizedACPSearchResultProvider extends AbstractACPSea * Returns true if given category is valid and accessible. * * @param string $categoryName - * @return boolean + * @return bool */ protected function isValid($categoryName) { return isset($this->categories[$categoryName]); diff --git a/wcfsetup/install/files/lib/system/session/SessionHandler.class.php b/wcfsetup/install/files/lib/system/session/SessionHandler.class.php index 9379a72d01..800da83356 100644 --- a/wcfsetup/install/files/lib/system/session/SessionHandler.class.php +++ b/wcfsetup/install/files/lib/system/session/SessionHandler.class.php @@ -42,13 +42,13 @@ use wcf\util\UserUtil; final class SessionHandler extends SingletonFactory { /** * prevents update on shutdown - * @var boolean + * @var bool */ protected $doNotUpdate = false; /** * disables page tracking - * @var boolean + * @var bool */ protected $disableTracking = false; @@ -60,7 +60,7 @@ final class SessionHandler extends SingletonFactory { /** * true if within ACP or WCFSetup - * @var boolean + * @var bool */ protected $isACP = false; @@ -112,13 +112,13 @@ final class SessionHandler extends SingletonFactory { /** * indicates if session variables changed and must be saved upon shutdown - * @var boolean + * @var bool */ protected $variablesChanged = false; /** * true if this is a new session - * @var boolean + * @var bool */ protected $firstVisit = false; @@ -317,7 +317,7 @@ final class SessionHandler extends SingletonFactory { /** * Returns true if client provided a valid session cookie. * - * @return boolean + * @return bool * @since 3.0 */ public function hasValidCookie(): bool { @@ -496,7 +496,7 @@ final class SessionHandler extends SingletonFactory { * given token is invalid. * * @param string $token - * @return boolean + * @return bool */ public function checkSecurityToken($token) { // The output of CryptoUtil::createSignedString() is not url-safe. For compatibility @@ -711,7 +711,7 @@ final class SessionHandler extends SingletonFactory { * compatibility, while preventing ACLs from overruling a 'Never' setting. * * @param string $permission - * @return boolean + * @return bool */ public function getNeverPermission($permission) { $this->loadGroupData(); @@ -886,7 +886,7 @@ final class SessionHandler extends SingletonFactory { * logged in, after the login his old session is used to store his full data. * * @param User $user - * @param boolean $hideSession if true, database won't be updated + * @param bool $hideSession if true, database won't be updated */ public function changeUser(User $user, $hideSession = false) { $eventParameters = ['user' => $user, 'hideSession' => $hideSession]; @@ -1251,7 +1251,7 @@ final class SessionHandler extends SingletonFactory { /** * Returns true if this is a new session. * - * @return boolean + * @return bool */ public function isFirstVisit() { return $this->firstVisit; diff --git a/wcfsetup/install/files/lib/system/setup/Uninstaller.class.php b/wcfsetup/install/files/lib/system/setup/Uninstaller.class.php index 208dea87a6..7590b00b60 100644 --- a/wcfsetup/install/files/lib/system/setup/Uninstaller.class.php +++ b/wcfsetup/install/files/lib/system/setup/Uninstaller.class.php @@ -24,13 +24,13 @@ class Uninstaller { /** * indicates if target directory will be deleted if empty - * @var boolean + * @var bool */ protected $deleteEmptyTargetDir; /** * indicates if sub directory will be deleted if empty - * @var boolean + * @var bool */ protected $deleteEmptyDirectories; @@ -39,8 +39,8 @@ class Uninstaller { * * @param string $targetDir * @param string[] $files - * @param boolean $deleteEmptyTargetDir - * @param boolean $deleteEmptyDirectories + * @param bool $deleteEmptyTargetDir + * @param bool $deleteEmptyDirectories */ public function __construct($targetDir, $files, $deleteEmptyTargetDir, $deleteEmptyDirectories) { $this->targetDir = $targetDir; @@ -61,7 +61,7 @@ class Uninstaller { * Returns true if a directory is emtpy. * * @param string $dir - * @return boolean + * @return bool */ protected function isEmpty($dir) { if (is_dir($dir)) { diff --git a/wcfsetup/install/files/lib/system/sitemap/object/ISitemapObjectObjectType.class.php b/wcfsetup/install/files/lib/system/sitemap/object/ISitemapObjectObjectType.class.php index fe6f4847cf..d6ae4e8c05 100755 --- a/wcfsetup/install/files/lib/system/sitemap/object/ISitemapObjectObjectType.class.php +++ b/wcfsetup/install/files/lib/system/sitemap/object/ISitemapObjectObjectType.class.php @@ -46,14 +46,14 @@ interface ISitemapObjectObjectType { * Returns the permission for a guest to view a certain object for this object type. * * @param DatabaseObject $object - * @return boolean + * @return bool */ public function canView(DatabaseObject $object); /** * Checks the requirements (e.g. module options) for this object type. * - * @return boolean + * @return bool */ public function isAvailableType(); } diff --git a/wcfsetup/install/files/lib/system/style/FontManager.class.php b/wcfsetup/install/files/lib/system/style/FontManager.class.php index 4de64905f2..4ea23c2764 100644 --- a/wcfsetup/install/files/lib/system/style/FontManager.class.php +++ b/wcfsetup/install/files/lib/system/style/FontManager.class.php @@ -49,7 +49,7 @@ class FontManager extends SingletonFactory { * Returns whether the family's CSS file exists, implying that * the family is available. * - * @return boolean + * @return bool */ public function isFamilyDownloaded($family) { return is_readable($this->getCssFilename($family)); diff --git a/wcfsetup/install/files/lib/system/style/StyleHandler.class.php b/wcfsetup/install/files/lib/system/style/StyleHandler.class.php index 5aa9549506..4fcfea2d5a 100644 --- a/wcfsetup/install/files/lib/system/style/StyleHandler.class.php +++ b/wcfsetup/install/files/lib/system/style/StyleHandler.class.php @@ -88,7 +88,7 @@ class StyleHandler extends SingletonFactory { * Changes the active style. * * @param int $styleID - * @param boolean $ignorePermissions + * @param bool $ignorePermissions * @throws SystemException */ public function changeStyle($styleID = 0, $ignorePermissions = false) { @@ -123,7 +123,7 @@ class StyleHandler extends SingletonFactory { /** * Returns the HTML tag to include current stylesheet. * - * @param boolean $isACP indicates if the request is an acp request + * @param bool $isACP indicates if the request is an acp request * @return string */ public function getStylesheet($isACP = false) { @@ -171,7 +171,7 @@ class StyleHandler extends SingletonFactory { /** * Resets all stylesheets. * - * @param boolean $resetACP + * @param bool $resetACP */ public static function resetStylesheets($resetACP = true) { // frontend stylesheets @@ -197,7 +197,7 @@ class StyleHandler extends SingletonFactory { * Returns a style by package name, optionally filtering tainted styles. * * @param string $packageName style package name - * @param boolean $skipTainted ignore tainted styles + * @param bool $skipTainted ignore tainted styles * @return StyleEditor|null * @since 3.0 */ @@ -216,7 +216,7 @@ class StyleHandler extends SingletonFactory { /** * Returns true if there is more than one available style and the changer is to be displayed. * - * @return boolean true if style changer should be displayed + * @return bool true if style changer should be displayed */ public function showStyleChanger() { return ($this->countStyles() && SHOW_STYLE_CHANGER); @@ -226,7 +226,7 @@ class StyleHandler extends SingletonFactory { * Returns the list of FontAwesome icons excluding the `fa-`-prefix, * optionally encoding the list as JSON. * - * @param boolean $toJSON encode array as a JSON string + * @param bool $toJSON encode array as a JSON string * @return string|\string[] JSON string or PHP array of strings */ public function getIcons($toJSON = false) { diff --git a/wcfsetup/install/files/lib/system/tagging/TagEngine.class.php b/wcfsetup/install/files/lib/system/tagging/TagEngine.class.php index aadf892ece..1ed574b8a9 100644 --- a/wcfsetup/install/files/lib/system/tagging/TagEngine.class.php +++ b/wcfsetup/install/files/lib/system/tagging/TagEngine.class.php @@ -27,7 +27,7 @@ class TagEngine extends SingletonFactory { * @param int $objectID * @param array $tags * @param int $languageID - * @param boolean $replace + * @param bool $replace */ public function addObjectTags($objectType, $objectID, array $tags, $languageID, $replace = true) { $objectTypeID = $this->getObjectTypeID($objectType); diff --git a/wcfsetup/install/files/lib/system/template/TemplateEngine.class.php b/wcfsetup/install/files/lib/system/template/TemplateEngine.class.php index 11a9088c57..bf1d554835 100755 --- a/wcfsetup/install/files/lib/system/template/TemplateEngine.class.php +++ b/wcfsetup/install/files/lib/system/template/TemplateEngine.class.php @@ -52,7 +52,7 @@ class TemplateEngine extends SingletonFactory { /** * forces the template engine to recompile all included templates - * @var boolean + * @var bool */ protected $forceCompile = false; @@ -107,7 +107,7 @@ class TemplateEngine extends SingletonFactory { /** * true, if template listener code was already loaded - * @var boolean + * @var bool */ protected $templateListenersLoaded = false; @@ -303,7 +303,7 @@ class TemplateEngine extends SingletonFactory { * * @param string $templateName * @param string $application - * @param boolean $sendHeaders + * @param bool $sendHeaders */ public function display($templateName, $application = 'wcf', $sendHeaders = true) { if ($sendHeaders) { @@ -426,7 +426,7 @@ class TemplateEngine extends SingletonFactory { * @param string $compiledFilename * @param string $application * @param array $metaData - * @return boolean + * @return bool */ protected function isCompiled($templateName, $sourceFilename, $compiledFilename, $application, array $metaData) { if ($this->forceCompile || !file_exists($compiledFilename)) { @@ -542,7 +542,7 @@ class TemplateEngine extends SingletonFactory { * @param string $templateName * @param string $application * @param array $variables - * @param boolean $sandbox enables execution in sandbox + * @param bool $sandbox enables execution in sandbox * @return string */ public function fetch($templateName, $application = 'wcf', array $variables = [], $sandbox = false) { @@ -579,7 +579,7 @@ class TemplateEngine extends SingletonFactory { * * @param string $compiledSource * @param array $variables - * @param boolean $sandbox enables execution in sandbox + * @param bool $sandbox enables execution in sandbox * @return string */ public function fetchString($compiledSource, array $variables = [], $sandbox = true) { @@ -697,7 +697,7 @@ class TemplateEngine extends SingletonFactory { * @param string $templateName * @param string $application * @param array $variables - * @param boolean $sandbox enables execution in sandbox + * @param bool $sandbox enables execution in sandbox */ protected function includeTemplate($templateName, $application, array $variables = [], $sandbox = true) { // enable sandbox diff --git a/wcfsetup/install/files/lib/system/template/TemplateScriptingCompiler.class.php b/wcfsetup/install/files/lib/system/template/TemplateScriptingCompiler.class.php index 72004e4f88..3f22ed449a 100644 --- a/wcfsetup/install/files/lib/system/template/TemplateScriptingCompiler.class.php +++ b/wcfsetup/install/files/lib/system/template/TemplateScriptingCompiler.class.php @@ -295,8 +295,8 @@ class TemplateScriptingCompiler { * @param string $identifier * @param string $sourceContent * @param array $metaData - * @param boolean $isolated - * @return array|boolean + * @param bool $isolated + * @return array|bool * @throws SystemException */ public function compileString($identifier, $sourceContent, array $metaData = [], $isolated = false) { @@ -658,7 +658,7 @@ class TemplateScriptingCompiler { /** * Compiles a capture tag and returns the compiled PHP code. * - * @param boolean $startTag + * @param bool $startTag * @param string $captureTag * @return string */ @@ -1105,7 +1105,7 @@ class TemplateScriptingCompiler { * Compiles an {if} tag and returns the compiled PHP code. * * @param string $tagArgs - * @param boolean $elseif true, if this tag is an else tag + * @param bool $elseif true, if this tag is an else tag * @return string * @throws SystemException */ @@ -1251,7 +1251,7 @@ class TemplateScriptingCompiler { * * @param string $variable * @param string $type - * @param boolean $allowConstants + * @param bool $allowConstants * @return string */ protected function compileSimpleVariable($variable, $type = '', $allowConstants = true) { @@ -1294,7 +1294,7 @@ class TemplateScriptingCompiler { * Compiles a variable tag and returns the compiled PHP code. * * @param string $tag - * @param boolean $replaceQuotes + * @param bool $replaceQuotes * @return string * @throws SystemException */ diff --git a/wcfsetup/install/files/lib/system/template/plugin/HtmlCheckboxesFunctionTemplatePlugin.class.php b/wcfsetup/install/files/lib/system/template/plugin/HtmlCheckboxesFunctionTemplatePlugin.class.php index 9aedccf2b1..c3d8c15f51 100644 --- a/wcfsetup/install/files/lib/system/template/plugin/HtmlCheckboxesFunctionTemplatePlugin.class.php +++ b/wcfsetup/install/files/lib/system/template/plugin/HtmlCheckboxesFunctionTemplatePlugin.class.php @@ -21,7 +21,7 @@ use wcf\util\StringUtil; class HtmlCheckboxesFunctionTemplatePlugin implements IFunctionTemplatePlugin { /** * indicates if encoding is disabled - * @var boolean + * @var bool */ protected $disableEncoding = false; diff --git a/wcfsetup/install/files/lib/system/template/plugin/IBlockTemplatePlugin.class.php b/wcfsetup/install/files/lib/system/template/plugin/IBlockTemplatePlugin.class.php index fde0ea36c9..a6e39bda5a 100644 --- a/wcfsetup/install/files/lib/system/template/plugin/IBlockTemplatePlugin.class.php +++ b/wcfsetup/install/files/lib/system/template/plugin/IBlockTemplatePlugin.class.php @@ -33,7 +33,7 @@ interface IBlockTemplatePlugin { * This function is called before every execution of this block function. * * @param TemplateEngine $tplObj - * @return boolean + * @return bool */ public function next(TemplateEngine $tplObj); } diff --git a/wcfsetup/install/files/lib/system/upload/IUploadFileValidationStrategy.class.php b/wcfsetup/install/files/lib/system/upload/IUploadFileValidationStrategy.class.php index 83892cd54d..525b8f4986 100644 --- a/wcfsetup/install/files/lib/system/upload/IUploadFileValidationStrategy.class.php +++ b/wcfsetup/install/files/lib/system/upload/IUploadFileValidationStrategy.class.php @@ -14,7 +14,7 @@ interface IUploadFileValidationStrategy { * Validates the given file and returns true on success, otherwise false. * * @param UploadFile $uploadFile - * @return boolean + * @return bool */ public function validate(UploadFile $uploadFile); } diff --git a/wcfsetup/install/files/lib/system/upload/MediaUploadFileValidationStrategy.class.php b/wcfsetup/install/files/lib/system/upload/MediaUploadFileValidationStrategy.class.php index b103158838..9628219a09 100644 --- a/wcfsetup/install/files/lib/system/upload/MediaUploadFileValidationStrategy.class.php +++ b/wcfsetup/install/files/lib/system/upload/MediaUploadFileValidationStrategy.class.php @@ -13,14 +13,14 @@ namespace wcf\system\upload; class MediaUploadFileValidationStrategy implements IUploadFileValidationStrategy { /** * if `true`, only images are valid - * @var boolean + * @var bool */ protected $imagesOnly = false; /** * Creates a new instance of MediaUploadFileValidationStrategy. * - * @param boolean $imagesOnly + * @param bool $imagesOnly */ public function __construct($imagesOnly) { $this->imagesOnly = $imagesOnly; diff --git a/wcfsetup/install/files/lib/system/upload/UploadHandler.class.php b/wcfsetup/install/files/lib/system/upload/UploadHandler.class.php index 06908b034b..7bbfa04040 100644 --- a/wcfsetup/install/files/lib/system/upload/UploadHandler.class.php +++ b/wcfsetup/install/files/lib/system/upload/UploadHandler.class.php @@ -73,7 +73,7 @@ class UploadHandler { * Validates the uploaded files. Returns true on success, otherwise false. * * @param IUploadFileValidationStrategy $validationStrategy - * @return boolean + * @return bool */ public function validateFiles(IUploadFileValidationStrategy $validationStrategy) { $result = true; diff --git a/wcfsetup/install/files/lib/system/user/activity/point/UserActivityPointHandler.class.php b/wcfsetup/install/files/lib/system/user/activity/point/UserActivityPointHandler.class.php index 09763f9c8c..b4cb9d7cfc 100644 --- a/wcfsetup/install/files/lib/system/user/activity/point/UserActivityPointHandler.class.php +++ b/wcfsetup/install/files/lib/system/user/activity/point/UserActivityPointHandler.class.php @@ -102,7 +102,7 @@ class UserActivityPointHandler extends SingletonFactory { * * @param string $objectType * @param int[] $itemsToUser - * @param boolean $updateUsers + * @param bool $updateUsers * @throws InvalidObjectTypeException */ public function fireEvents($objectType, array $itemsToUser, $updateUsers = true) { diff --git a/wcfsetup/install/files/lib/system/user/authentication/password/algorithm/DoubleBcrypt.class.php b/wcfsetup/install/files/lib/system/user/authentication/password/algorithm/DoubleBcrypt.class.php index 1add9f65cc..283ac3243e 100644 --- a/wcfsetup/install/files/lib/system/user/authentication/password/algorithm/DoubleBcrypt.class.php +++ b/wcfsetup/install/files/lib/system/user/authentication/password/algorithm/DoubleBcrypt.class.php @@ -116,7 +116,7 @@ final class DoubleBcrypt implements IPasswordAlgorithm { * Returns true if given bcrypt hash uses a different cost factor and should be re-computed. * * @param string $hash - * @return boolean + * @return bool */ private static function isDifferentBlowfish($hash) { $currentCost = \intval(self::BCRYPT_COST); diff --git a/wcfsetup/install/files/lib/system/user/collapsible/content/UserCollapsibleContentHandler.class.php b/wcfsetup/install/files/lib/system/user/collapsible/content/UserCollapsibleContentHandler.class.php index 331d95d54f..78c1eb1fd9 100644 --- a/wcfsetup/install/files/lib/system/user/collapsible/content/UserCollapsibleContentHandler.class.php +++ b/wcfsetup/install/files/lib/system/user/collapsible/content/UserCollapsibleContentHandler.class.php @@ -49,7 +49,7 @@ class UserCollapsibleContentHandler extends SingletonFactory { * * @param string $objectType * @param string $objectID - * @return boolean + * @return bool * @throws InvalidObjectTypeException */ public function isCollapsed($objectType, $objectID) { diff --git a/wcfsetup/install/files/lib/system/user/notification/UserNotificationHandler.class.php b/wcfsetup/install/files/lib/system/user/notification/UserNotificationHandler.class.php index e524b5b563..8730c469cc 100644 --- a/wcfsetup/install/files/lib/system/user/notification/UserNotificationHandler.class.php +++ b/wcfsetup/install/files/lib/system/user/notification/UserNotificationHandler.class.php @@ -289,7 +289,7 @@ class UserNotificationHandler extends SingletonFactory { /** * Returns the number of outstanding notifications for the active user. * - * @param boolean $skipCache + * @param bool $skipCache * @return int */ public function getNotificationCount($skipCache = false) { @@ -345,7 +345,7 @@ class UserNotificationHandler extends SingletonFactory { * * @param int $limit * @param int $offset - * @param boolean $showConfirmedNotifications DEPRECATED + * @param bool $showConfirmedNotifications DEPRECATED * @return mixed[] */ public function getNotifications($limit = 5, $offset = 0, $showConfirmedNotifications = false) { diff --git a/wcfsetup/install/files/lib/system/user/notification/event/AbstractUserNotificationEvent.class.php b/wcfsetup/install/files/lib/system/user/notification/event/AbstractUserNotificationEvent.class.php index 882f85f1ee..f8a235c440 100644 --- a/wcfsetup/install/files/lib/system/user/notification/event/AbstractUserNotificationEvent.class.php +++ b/wcfsetup/install/files/lib/system/user/notification/event/AbstractUserNotificationEvent.class.php @@ -42,7 +42,7 @@ abstract class AbstractUserNotificationEvent extends DatabaseObjectDecorator imp /** * notification stacking support - * @var boolean + * @var bool */ protected $stackable = false; diff --git a/wcfsetup/install/files/lib/system/user/notification/event/ITestableUserNotificationEvent.class.php b/wcfsetup/install/files/lib/system/user/notification/event/ITestableUserNotificationEvent.class.php index 5f46b14c9c..8458b84e87 100644 --- a/wcfsetup/install/files/lib/system/user/notification/event/ITestableUserNotificationEvent.class.php +++ b/wcfsetup/install/files/lib/system/user/notification/event/ITestableUserNotificationEvent.class.php @@ -36,7 +36,7 @@ interface ITestableUserNotificationEvent extends IUserNotificationEvent { public function setTestCaseDescription($description); /** - * @return boolean + * @return bool */ public static function canBeTriggeredByGuests(); diff --git a/wcfsetup/install/files/lib/system/user/notification/event/IUserNotificationEvent.class.php b/wcfsetup/install/files/lib/system/user/notification/event/IUserNotificationEvent.class.php index 5a2250659a..4267009ccc 100644 --- a/wcfsetup/install/files/lib/system/user/notification/event/IUserNotificationEvent.class.php +++ b/wcfsetup/install/files/lib/system/user/notification/event/IUserNotificationEvent.class.php @@ -97,7 +97,7 @@ interface IUserNotificationEvent extends IDatabaseObjectProcessor { /** * Returns true if this notification event is visible for the active user. * - * @return boolean + * @return bool */ public function isVisible(); @@ -135,14 +135,14 @@ interface IUserNotificationEvent extends IDatabaseObjectProcessor { /** * Returns true if this notification event supports stacking. * - * @return boolean + * @return bool */ public function isStackable(); /** * Returns true if this notification event supports email notifications. * - * @return boolean + * @return bool */ public function supportsEmailNotification(); @@ -150,7 +150,7 @@ interface IUserNotificationEvent extends IDatabaseObjectProcessor { * Validates if the related object is still accessible, in case this check fails * the event should take the appropriate actions to resolve this. * - * @return boolean + * @return bool */ public function checkAccess(); @@ -158,14 +158,14 @@ interface IUserNotificationEvent extends IDatabaseObjectProcessor { * Returns true if a notification should be deleted if the related object * is not accessible. * - * @return boolean + * @return bool */ public function deleteNoAccessNotification(); /** * Returns true if the underlying notification has been marked as confirmed. * - * @return boolean + * @return bool */ public function isConfirmed(); diff --git a/wcfsetup/install/files/lib/system/user/notification/event/ModerationQueueCommentResponseUserNotificationEvent.class.php b/wcfsetup/install/files/lib/system/user/notification/event/ModerationQueueCommentResponseUserNotificationEvent.class.php index 9cd4ae66ba..b4af13e954 100644 --- a/wcfsetup/install/files/lib/system/user/notification/event/ModerationQueueCommentResponseUserNotificationEvent.class.php +++ b/wcfsetup/install/files/lib/system/user/notification/event/ModerationQueueCommentResponseUserNotificationEvent.class.php @@ -40,7 +40,7 @@ class ModerationQueueCommentResponseUserNotificationEvent extends AbstractShared /** * true if the moderation queue is already loaded - * @var boolean + * @var bool */ protected $moderationQueueLoaded = false; diff --git a/wcfsetup/install/files/lib/system/version/AbstractVersionTrackerProvider.class.php b/wcfsetup/install/files/lib/system/version/AbstractVersionTrackerProvider.class.php index 073b9e9def..2e48ecd073 100644 --- a/wcfsetup/install/files/lib/system/version/AbstractVersionTrackerProvider.class.php +++ b/wcfsetup/install/files/lib/system/version/AbstractVersionTrackerProvider.class.php @@ -41,7 +41,7 @@ abstract class AbstractVersionTrackerProvider extends AbstractObjectTypeProvider /** * true if content supports i18n - * @var boolean + * @var bool */ public $isI18n = false; diff --git a/wcfsetup/install/files/lib/system/version/IVersionTrackerProvider.class.php b/wcfsetup/install/files/lib/system/version/IVersionTrackerProvider.class.php index 3778b56fe3..108f9aa70e 100644 --- a/wcfsetup/install/files/lib/system/version/IVersionTrackerProvider.class.php +++ b/wcfsetup/install/files/lib/system/version/IVersionTrackerProvider.class.php @@ -16,7 +16,7 @@ interface IVersionTrackerProvider extends IObjectTypeProvider { /** * Returns true if current user can view the stored versions of this type. * - * @return boolean + * @return bool */ public function canAccess(); @@ -71,7 +71,7 @@ interface IVersionTrackerProvider extends IObjectTypeProvider { * payload's array indices represent language ids rather than property values. * * @param IVersionTrackerObject $object target object - * @return boolean + * @return bool */ public function isI18n(IVersionTrackerObject $object); diff --git a/wcfsetup/install/files/lib/system/version/VersionTracker.class.php b/wcfsetup/install/files/lib/system/version/VersionTracker.class.php index cab6276435..0a7fa09f13 100644 --- a/wcfsetup/install/files/lib/system/version/VersionTracker.class.php +++ b/wcfsetup/install/files/lib/system/version/VersionTracker.class.php @@ -271,7 +271,7 @@ class VersionTracker extends SingletonFactory implements IAJAXInvokeAction { * Creates a database table for an object type unless it exists already. * * @param ObjectType $objectType target object type - * @return boolean false if table already exists + * @return bool false if table already exists */ protected function createStorageTable(ObjectType $objectType) { $baseTableName = $this->getTableName($objectType); diff --git a/wcfsetup/install/files/lib/system/version/VersionTrackerEntry.class.php b/wcfsetup/install/files/lib/system/version/VersionTrackerEntry.class.php index 8477928feb..36c868fe27 100644 --- a/wcfsetup/install/files/lib/system/version/VersionTrackerEntry.class.php +++ b/wcfsetup/install/files/lib/system/version/VersionTrackerEntry.class.php @@ -73,7 +73,7 @@ class VersionTrackerEntry { * is not NULL. * * @param string $name - * @return boolean + * @return bool */ public function __isset($name) { return isset($this->data[$name]); diff --git a/wcfsetup/install/files/lib/system/worker/SitemapRebuildWorker.class.php b/wcfsetup/install/files/lib/system/worker/SitemapRebuildWorker.class.php index a4f7afd272..555fb631dc 100755 --- a/wcfsetup/install/files/lib/system/worker/SitemapRebuildWorker.class.php +++ b/wcfsetup/install/files/lib/system/worker/SitemapRebuildWorker.class.php @@ -265,7 +265,7 @@ class SitemapRebuildWorker extends AbstractRebuildDataWorker { /** * Writes the sitemap.xml index file and links all sitemaps. * - * @param boolean $closeFile Close a previously opened handle. + * @param bool $closeFile Close a previously opened handle. */ protected function writeIndexFile($closeFile = true) { $file = new AtomicWriter(self::getSitemapPath() . 'sitemap.xml'); @@ -287,7 +287,7 @@ class SitemapRebuildWorker extends AbstractRebuildDataWorker { /** * Generates a new temporary file and appends the sitemap start. * - * @param boolean $closeFile Close a previously opened handle. + * @param bool $closeFile Close a previously opened handle. */ protected function generateTmpFile($closeFile = true) { if ($closeFile) $this->closeFile(); diff --git a/wcfsetup/install/files/lib/util/ArrayUtil.class.php b/wcfsetup/install/files/lib/util/ArrayUtil.class.php index 60a8b9dc83..3a69a8f513 100644 --- a/wcfsetup/install/files/lib/util/ArrayUtil.class.php +++ b/wcfsetup/install/files/lib/util/ArrayUtil.class.php @@ -15,7 +15,7 @@ final class ArrayUtil { * Applies StringUtil::trim() to all elements of the given array. * * @param array|string $array - * @param boolean $removeEmptyElements + * @param bool $removeEmptyElements * @return array|string */ public static function trim($array, $removeEmptyElements = true) { @@ -146,7 +146,7 @@ final class ArrayUtil { * @param array $array1 * @param array $array2 * @param callable $callback - * @return boolean + * @return bool */ public static function compare(array $array1, array $array2, callable $callback = null) { return static::compareHelper('value', $array1, $array2, $callback); @@ -158,7 +158,7 @@ final class ArrayUtil { * @param array $array1 * @param array $array2 * @param callable $callback - * @return boolean + * @return bool */ public static function compareKey(array $array1, array $array2, callable $callback = null) { return static::compareHelper('key', $array1, $array2, $callback); @@ -170,7 +170,7 @@ final class ArrayUtil { * @param array $array1 * @param array $array2 * @param callable $callback - * @return boolean + * @return bool */ public static function compareAssoc(array $array1, array $array2, callable $callback = null) { return static::compareHelper('assoc', $array1, $array2, $callback); @@ -183,7 +183,7 @@ final class ArrayUtil { * @param array $array1 * @param array $array2 * @param callable $callback - * @return boolean + * @return bool * @throws SystemException */ protected static function compareHelper($method, array $array1, array $array2, callable $callback = null) { diff --git a/wcfsetup/install/files/lib/util/ClassUtil.class.php b/wcfsetup/install/files/lib/util/ClassUtil.class.php index c7817c2b51..d40ffc28b3 100644 --- a/wcfsetup/install/files/lib/util/ClassUtil.class.php +++ b/wcfsetup/install/files/lib/util/ClassUtil.class.php @@ -18,7 +18,7 @@ final class ClassUtil { * * @param object $a * @param object $b - * @return boolean + * @return bool */ public static function equals($a, $b) { if (!is_object($a)) return false; @@ -32,7 +32,7 @@ final class ClassUtil { * * @param string $className * @param string $targetClass - * @return boolean + * @return bool * @throws SystemException * * @deprecated use is_subclass_of() instead diff --git a/wcfsetup/install/files/lib/util/CronjobUtil.class.php b/wcfsetup/install/files/lib/util/CronjobUtil.class.php index ffc13dc8b9..2620a6ec9e 100644 --- a/wcfsetup/install/files/lib/util/CronjobUtil.class.php +++ b/wcfsetup/install/files/lib/util/CronjobUtil.class.php @@ -19,13 +19,13 @@ use wcf\system\exception\SystemException; final class CronjobUtil { /** * indicates if day of month is restricted (not '*') - * @var boolean + * @var bool */ protected static $domRestricted = false; /** * indicates if day of week is restricted (not '*') - * @var boolean + * @var bool */ protected static $dowRestricted = false; @@ -371,8 +371,8 @@ final class CronjobUtil { * * @param array $values * @param int $timeBase - * @param boolean $addAnDay - * @return boolean + * @param bool $addAnDay + * @return bool */ protected static function calculateMinute(array &$values, &$timeBase, $addAnDay) { $returnValue = false; @@ -405,7 +405,7 @@ final class CronjobUtil { * * @param int $needle * @param array $haystack - * @param boolean $continue + * @param bool $continue * @return mixed */ protected static function findKey($needle, array &$haystack, $continue = true) { diff --git a/wcfsetup/install/files/lib/util/DOMUtil.class.php b/wcfsetup/install/files/lib/util/DOMUtil.class.php index 52c4607727..5e3f3919b6 100644 --- a/wcfsetup/install/files/lib/util/DOMUtil.class.php +++ b/wcfsetup/install/files/lib/util/DOMUtil.class.php @@ -32,7 +32,7 @@ final class DOMUtil { * * @param \DOMNode $ancestor ancestor node * @param \DOMNode $node node - * @return boolean true if `$ancestor` contains the node `$node` + * @return bool true if `$ancestor` contains the node `$node` */ public static function contains(\DOMNode $ancestor, \DOMNode $node) { // nodes cannot contain themselves @@ -157,7 +157,7 @@ final class DOMUtil { * Returns all ancestors nodes for given node. * * @param \DOMNode $node node - * @param boolean $reverseOrder reversing the order causes the most top ancestor to appear first + * @param bool $reverseOrder reversing the order causes the most top ancestor to appear first * @return \DOMElement[] list of ancestor nodes */ public static function getParents(\DOMNode $node, $reverseOrder = false) { @@ -238,7 +238,7 @@ final class DOMUtil { * * @param \DOMElement $element start element * @param string $tagName tag name to match - * @return boolean + * @return bool */ public static function hasParent(\DOMElement $element, $tagName) { while ($element = $element->parentNode) { @@ -279,7 +279,7 @@ final class DOMUtil { * Returns true if this node is empty. * * @param \DOMNode $node node - * @return boolean true if node is empty + * @return bool true if node is empty */ public static function isEmpty(\DOMNode $node) { if ($node->nodeType === XML_TEXT_NODE) { @@ -309,7 +309,7 @@ final class DOMUtil { * * @param \DOMNode $node node * @param \DOMElement $ancestor ancestor element - * @return boolean true if `$node` is the first node of its given ancestor + * @return bool true if `$node` is the first node of its given ancestor */ public static function isFirstNode(\DOMNode $node, \DOMElement $ancestor) { if ($node->previousSibling === null) { @@ -332,7 +332,7 @@ final class DOMUtil { * * @param \DOMNode $node node * @param \DOMElement $ancestor ancestor element - * @return boolean true if `$node` is the last node of its given ancestor + * @return bool true if `$node` is the last node of its given ancestor */ public static function isLastNode(\DOMNode $node, \DOMElement $ancestor) { if ($node->nextSibling === null) { @@ -359,7 +359,7 @@ final class DOMUtil { * body is gone, including the `nodeType` attribute. * * @param \DOMNode $node node - * @return boolean true if node has been destroyed + * @return bool true if node has been destroyed */ public static function isRemoved(\DOMNode $node) { return !isset($node->nodeType); @@ -370,7 +370,7 @@ final class DOMUtil { * that neither contain content nor have a closing tag, such as `
`. * * @param \DOMElement $element element - * @return boolean true if provided element is a void element + * @return bool true if provided element is a void element */ public static function isVoidElement(\DOMElement $element) { if (preg_match('~^(area|base|br|col|embed|hr|img|input|keygen|link|menuitem|meta|param|source|track|wbr)$~', $element->nodeName)) { @@ -475,7 +475,7 @@ final class DOMUtil { * Removes a node, optionally preserves the child nodes if `$node` is an element. * * @param \DOMNode $node target node - * @param boolean $preserveChildNodes preserve child nodes, only supported for elements + * @param bool $preserveChildNodes preserve child nodes, only supported for elements */ public static function removeNode(\DOMNode $node, $preserveChildNodes = false) { if ($preserveChildNodes) { @@ -496,7 +496,7 @@ final class DOMUtil { * * @param \DOMElement $oldElement old element * @param \DOMElement $newElement new element - * @param boolean $preserveChildNodes true if child nodes should be moved, otherwise they'll be implicitly removed + * @param bool $preserveChildNodes true if child nodes should be moved, otherwise they'll be implicitly removed */ public static function replaceElement(\DOMElement $oldElement, \DOMElement $newElement, $preserveChildNodes = true) { self::insertBefore($newElement, $oldElement); @@ -520,7 +520,7 @@ final class DOMUtil { * * @param \DOMNode $node reference node * @param \DOMElement $ancestor ancestor element that should not be split - * @param boolean $splitBefore true if nodes before `$node` should be moved into a new node, false to split nodes after `$node` + * @param bool $splitBefore true if nodes before `$node` should be moved into a new node, false to split nodes after `$node` * @return \DOMNode parent node containing `$node`, direct child of `$ancestor` */ public static function splitParentsUntil(\DOMNode $node, \DOMElement $ancestor, $splitBefore = true) { diff --git a/wcfsetup/install/files/lib/util/DateUtil.class.php b/wcfsetup/install/files/lib/util/DateUtil.class.php index 1a897ae2e6..1592764d23 100644 --- a/wcfsetup/install/files/lib/util/DateUtil.class.php +++ b/wcfsetup/install/files/lib/util/DateUtil.class.php @@ -198,7 +198,7 @@ final class DateUtil { * Returns a formatted date interval. * * @param \DateInterval $interval interval to be formatted - * @param boolean $fullInterval if `true`, the complete interval is returned, otherwise a rounded interval is used + * @param bool $fullInterval if `true`, the complete interval is returned, otherwise a rounded interval is used * @param int $formatType format type for the interval, use the class constant FORMAT_DEFAULT, FORMAT_SENTENCE or FORMAT_PLAIN * @return string */ @@ -524,7 +524,7 @@ final class DateUtil { * @param int $timestamp target timestamp * @param string $date localized date * @param string $time localized time - * @param boolean $isFutureDate true if timestamp is in the future + * @param bool $isFutureDate true if timestamp is in the future * @return string relative time */ public static function getRelativeTime(\DateTime $dateTimeObject, $timestamp, $date, $time, $isFutureDate) { diff --git a/wcfsetup/install/files/lib/util/DirectoryUtil.class.php b/wcfsetup/install/files/lib/util/DirectoryUtil.class.php index 6404c69d13..1dec4da496 100644 --- a/wcfsetup/install/files/lib/util/DirectoryUtil.class.php +++ b/wcfsetup/install/files/lib/util/DirectoryUtil.class.php @@ -43,7 +43,7 @@ final class DirectoryUtil { /** * determines whether scan should be recursive - * @var boolean + * @var bool */ protected $recursive = true; @@ -66,7 +66,7 @@ final class DirectoryUtil { * Creates a new instance of DirectoryUtil. * * @param string $directory directory path - * @param boolean $recursive created a recursive directory iterator + * @param bool $recursive created a recursive directory iterator * @see \wcf\util\DirectoryUtil::getInstance() */ public function __construct($directory, $recursive = true) { @@ -86,7 +86,7 @@ final class DirectoryUtil { * Returns an instance of DirectoryUtil (or child). * * @param string $tmpDirectory path - * @param boolean $recursive walk through sub-directories too + * @param bool $recursive walk through sub-directories too * @return DirectoryUtil * @throws SystemException */ @@ -119,7 +119,7 @@ final class DirectoryUtil { * * @param int $order sort-order * @param Regex $pattern pattern to match - * @param boolean $negativeMatch true if the pattern should be inversed + * @param bool $negativeMatch true if the pattern should be inversed * @return string[] * @throws SystemException */ @@ -156,7 +156,7 @@ final class DirectoryUtil { * * @param int $order sort order * @param Regex $pattern pattern to match - * @param boolean $negativeMatch should the pattern be inversed + * @param bool $negativeMatch should the pattern be inversed * @return \DirectoryIterator[] * @throws SystemException */ @@ -255,7 +255,7 @@ final class DirectoryUtil { * * @param callable $callback * @param Regex $pattern callback is only applied to files matching the given pattern - * @return boolean + * @return bool */ public function executeCallback(callable $callback, Regex $pattern = null) { if ($pattern !== null) $files = $this->getFileObjects(self::SORT_NONE, $pattern); @@ -282,7 +282,7 @@ final class DirectoryUtil { * Removes all files that match the given pattern. * * @param Regex $pattern pattern to match - * @param boolean $negativeMatch should the pattern be inversed + * @param bool $negativeMatch should the pattern be inversed * @throws SystemException */ public function removePattern(Regex $pattern, $negativeMatch = false) { diff --git a/wcfsetup/install/files/lib/util/FileReader.class.php b/wcfsetup/install/files/lib/util/FileReader.class.php index 23c3ff728a..f8558627ab 100644 --- a/wcfsetup/install/files/lib/util/FileReader.class.php +++ b/wcfsetup/install/files/lib/util/FileReader.class.php @@ -54,7 +54,7 @@ class FileReader { /** * True if http range is invalid. - * @var boolean + * @var bool */ protected $invalidRange = false; diff --git a/wcfsetup/install/files/lib/util/FileUtil.class.php b/wcfsetup/install/files/lib/util/FileUtil.class.php index 2fb87168a1..46e5fe92e6 100644 --- a/wcfsetup/install/files/lib/util/FileUtil.class.php +++ b/wcfsetup/install/files/lib/util/FileUtil.class.php @@ -217,7 +217,7 @@ final class FileUtil { * necessary. * * @param string $path - * @return boolean + * @return bool */ public static function makePath($path) { // directory already exists, abort @@ -270,7 +270,7 @@ final class FileUtil { * * @param string $folder * @param string $searchfile - * @param boolean $recursive + * @param bool $recursive * @return mixed */ public static function scanFolder($folder, $searchfile, $recursive = true) { @@ -306,7 +306,7 @@ final class FileUtil { * Returns true if the given filename is an url (http or ftp). * * @param string $filename - * @return boolean + * @return bool */ public static function isURL($filename) { return preg_match('!^(https?|ftp)://!', $filename); @@ -446,7 +446,7 @@ final class FileUtil { * otherwise it considers the file to be binary. * * @param string $file - * @return boolean + * @return bool */ public static function isBinary($file) { // open file @@ -469,7 +469,7 @@ final class FileUtil { * * @param string $gzipped * @param string $destination - * @return boolean + * @return bool */ public static function uncompressFile($gzipped, $destination) { if (!@is_file($gzipped)) { @@ -493,7 +493,7 @@ final class FileUtil { /** * Returns true if php is running as apache module. * - * @return boolean + * @return bool */ public static function isApacheModule() { return function_exists('apache_get_version'); @@ -636,7 +636,7 @@ final class FileUtil { * Returns true if the given amount of memory is available. * * @param int $neededMemory - * @return boolean + * @return bool */ public static function checkMemoryLimit($neededMemory) { return self::getMemoryLimit() == -1 || self::getMemoryLimit() > (memory_get_usage() + $neededMemory); diff --git a/wcfsetup/install/files/lib/util/HTTPRequest.class.php b/wcfsetup/install/files/lib/util/HTTPRequest.class.php index 2c81c3b7d2..0dc00740ec 100644 --- a/wcfsetup/install/files/lib/util/HTTPRequest.class.php +++ b/wcfsetup/install/files/lib/util/HTTPRequest.class.php @@ -349,7 +349,7 @@ final class HTTPRequest { * * @param string $name * @param string $value - * @param boolean $append + * @param bool $append */ public function addHeader($name, $value, $append = false) { // 4.2 Field names are case-insensitive. diff --git a/wcfsetup/install/files/lib/util/HeaderUtil.class.php b/wcfsetup/install/files/lib/util/HeaderUtil.class.php index ae34c09e8b..9237650c33 100644 --- a/wcfsetup/install/files/lib/util/HeaderUtil.class.php +++ b/wcfsetup/install/files/lib/util/HeaderUtil.class.php @@ -132,8 +132,8 @@ final class HeaderUtil { * Redirects the user agent to given location. * * @param string $location - * @param boolean $sendStatusCode - * @param boolean $temporaryRedirect + * @param bool $sendStatusCode + * @param bool $temporaryRedirect */ public static function redirect($location, $sendStatusCode = false, $temporaryRedirect = true) { // https://github.com/WoltLab/WCF/issues/2568 diff --git a/wcfsetup/install/files/lib/util/ImageUtil.class.php b/wcfsetup/install/files/lib/util/ImageUtil.class.php index 52d9a7bb67..cc7b2d04d6 100644 --- a/wcfsetup/install/files/lib/util/ImageUtil.class.php +++ b/wcfsetup/install/files/lib/util/ImageUtil.class.php @@ -23,7 +23,7 @@ final class ImageUtil { * and returns false if any bad stuff was found. * * @param string $file - * @return boolean + * @return bool */ public static function checkImageContent($file) { // get file content @@ -105,7 +105,7 @@ final class ImageUtil { * @param string $filename * @param int $maxWidth * @param int $maxHeight - * @param boolean $obtainDimensions + * @param bool $obtainDimensions * @return string new filename if file was changed, otherwise old filename * @since 5.2 */ diff --git a/wcfsetup/install/files/lib/util/JSON.class.php b/wcfsetup/install/files/lib/util/JSON.class.php index e2fdd541fe..356c8cc3dc 100644 --- a/wcfsetup/install/files/lib/util/JSON.class.php +++ b/wcfsetup/install/files/lib/util/JSON.class.php @@ -26,7 +26,7 @@ final class JSON { * Decodes a JSON string. * * @param string $json - * @param boolean $asArray + * @param bool $asArray * @return array * @throws SystemException */ diff --git a/wcfsetup/install/files/lib/util/PasswordUtil.class.php b/wcfsetup/install/files/lib/util/PasswordUtil.class.php index 071a5b5ebd..f97d34c354 100644 --- a/wcfsetup/install/files/lib/util/PasswordUtil.class.php +++ b/wcfsetup/install/files/lib/util/PasswordUtil.class.php @@ -67,7 +67,7 @@ final class PasswordUtil { * Returns true if given encryption type is supported. * * @param string $type - * @return boolean + * @return bool */ public static function isSupported($type) { if (in_array($type, self::$supportedEncryptionTypes)) { @@ -108,7 +108,7 @@ final class PasswordUtil { * @param string $username * @param string $password * @param string $dbHash - * @return boolean + * @return bool * @throws SystemException */ public static function checkPassword($username, $password, $dbHash) { diff --git a/wcfsetup/install/files/lib/util/StringUtil.class.php b/wcfsetup/install/files/lib/util/StringUtil.class.php index 38aa41af0b..a7f4e77b4a 100644 --- a/wcfsetup/install/files/lib/util/StringUtil.class.php +++ b/wcfsetup/install/files/lib/util/StringUtil.class.php @@ -319,9 +319,9 @@ final class StringUtil { * * @param string $haystack The string to be checked for starting with $needle * @param string $needle The string to be found at the start of $haystack - * @param boolean $ci Case insensitive or not. Default = false. + * @param bool $ci Case insensitive or not. Default = false. * - * @return boolean True, if $haystack starts with $needle, false otherwise. + * @return bool True, if $haystack starts with $needle, false otherwise. */ public static function startsWith($haystack, $needle, $ci = false) { if ($ci) { @@ -337,8 +337,8 @@ final class StringUtil { * * @param string $haystack * @param string $needle - * @param boolean $ci case insensitive - * @return boolean + * @param bool $ci case insensitive + * @return bool */ public static function endsWith($haystack, $needle, $ci = false) { if ($ci) { @@ -447,7 +447,7 @@ final class StringUtil { * Returns true if the given string contains only ASCII characters. * * @param string $string - * @return boolean + * @return bool */ public static function isASCII($string) { return preg_match('/^[\x00-\x7F]*$/', $string); @@ -458,7 +458,7 @@ final class StringUtil { * @see http://www.w3.org/International/questions/qa-forms-utf-8 * * @param string $string - * @return boolean + * @return bool */ public static function isUTF8($string) { return preg_match('/^( @@ -514,7 +514,7 @@ final class StringUtil { * * @param string $word * @param string $filter - * @return boolean + * @return bool */ public static function executeWordFilter($word, $filter) { $filter = self::trim($filter); @@ -550,7 +550,7 @@ final class StringUtil { * @param string $string string which shall be truncated * @param int $length string length after truncating * @param string $etc string to append when $string is truncated - * @param boolean $breakWords should words be broken in the middle + * @param bool $breakWords should words be broken in the middle * @return string truncated string */ public static function truncate($string, $length = 80, $etc = self::HELLIP, $breakWords = false) { @@ -578,7 +578,7 @@ final class StringUtil { * @param string $string string which shall be truncated * @param int $length string length after truncating * @param string $etc ending string which will be appended after truncating - * @param boolean $breakWords if false words will not be split and the return string might be shorter than $length + * @param bool $breakWords if false words will not be split and the return string might be shorter than $length * @return string truncated string */ public static function truncateHTML($string, $length = 500, $etc = self::HELLIP, $breakWords = false) { @@ -667,8 +667,8 @@ final class StringUtil { * * @param string $url * @param string $title - * @param boolean $encodeTitle - * @param boolean $isUgc true to add rel=ugc to the anchor tag + * @param bool $encodeTitle + * @param bool $isUgc true to add rel=ugc to the anchor tag * @return string anchor tag */ public static function getAnchorTag($url, $title = '', $encodeTitle = true, $isUgc = false) { @@ -693,7 +693,7 @@ final class StringUtil { * Generates the attributes for an anchor tag from given URL. * * @param string $url - * @param boolean $isUgc true to add rel=ugc to the attributes + * @param bool $isUgc true to add rel=ugc to the attributes * @return string attributes * @since 5.3 */ diff --git a/wcfsetup/install/files/lib/util/Url.class.php b/wcfsetup/install/files/lib/util/Url.class.php index 376c9b9748..2a53c73c83 100644 --- a/wcfsetup/install/files/lib/util/Url.class.php +++ b/wcfsetup/install/files/lib/util/Url.class.php @@ -43,7 +43,7 @@ final class Url implements \ArrayAccess { * This method is a wrapper around filter_var with FILTER_VALIDATE_URL. * * @param string $url - * @return boolean + * @return bool */ public static function is($url) { return filter_var($url, FILTER_VALIDATE_URL) !== false; @@ -79,7 +79,7 @@ final class Url implements \ArrayAccess { * * @param string $url * @param int[] $components - * @return boolean + * @return bool */ public static function contains($url, array $components) { $result = self::parse($url); diff --git a/wcfsetup/install/files/lib/util/UserRegistrationUtil.class.php b/wcfsetup/install/files/lib/util/UserRegistrationUtil.class.php index 2a54438801..7545afa1d1 100644 --- a/wcfsetup/install/files/lib/util/UserRegistrationUtil.class.php +++ b/wcfsetup/install/files/lib/util/UserRegistrationUtil.class.php @@ -21,7 +21,7 @@ final class UserRegistrationUtil { * Returns true if the given name is a valid username. * * @param string $name username - * @return boolean + * @return bool */ public static function isValidUsername($name) { if (!UserUtil::isValidUsername($name)) return false; @@ -42,7 +42,7 @@ final class UserRegistrationUtil { * Returns true if the given e-mail is a valid address. * * @param string $email - * @return boolean + * @return bool */ public static function isValidEmail($email) { return (UserUtil::isValidEmail($email) && self::checkForbiddenEmails($email)); @@ -52,7 +52,7 @@ final class UserRegistrationUtil { * Returns false if the given name is a forbidden username. * * @param string $name - * @return boolean + * @return bool */ public static function checkForbiddenUsernames($name) { return StringUtil::executeWordFilter($name, REGISTER_FORBIDDEN_USERNAMES); @@ -62,7 +62,7 @@ final class UserRegistrationUtil { * Returns false if the given email is a forbidden email. * * @param string $email - * @return boolean + * @return bool */ public static function checkForbiddenEmails($email) { return (StringUtil::executeWordFilter($email, REGISTER_FORBIDDEN_EMAILS) && (!StringUtil::trim(REGISTER_ALLOWED_EMAILS) || !StringUtil::executeWordFilter($email, REGISTER_ALLOWED_EMAILS))); diff --git a/wcfsetup/install/files/lib/util/UserUtil.class.php b/wcfsetup/install/files/lib/util/UserUtil.class.php index c9c4a2a037..bc07e10b58 100644 --- a/wcfsetup/install/files/lib/util/UserUtil.class.php +++ b/wcfsetup/install/files/lib/util/UserUtil.class.php @@ -15,7 +15,7 @@ final class UserUtil { * Returns true if the given name is a valid username. * * @param string $name - * @return boolean + * @return bool */ public static function isValidUsername($name) { // minimum length is 3 characters, maximum length is 100 characters @@ -46,7 +46,7 @@ final class UserUtil { * Returns true if the given username is available. * * @param string $name - * @return boolean + * @return bool */ public static function isAvailableUsername($name) { $sql = "SELECT COUNT(username) @@ -63,7 +63,7 @@ final class UserUtil { * @see http://www.faqs.org/rfcs/rfc821.html * * @param string $email - * @return boolean + * @return bool */ public static function isValidEmail($email) { if (mb_strlen($email) > 191) { @@ -89,7 +89,7 @@ final class UserUtil { * Returns true if the given email address is available. * * @param string $email - * @return boolean + * @return bool */ public static function isAvailableEmail($email) { $sql = "SELECT COUNT(email) @@ -122,7 +122,7 @@ final class UserUtil { * Returns true if the active user uses a mobile browser. * @see http://detectmobilebrowser.com * - * @return boolean + * @return bool */ public static function usesMobileBrowser() { return (new UserAgent(self::getUserAgent()))->isMobileBrowser(); diff --git a/wcfsetup/install/files/lib/util/XMLWriter.class.php b/wcfsetup/install/files/lib/util/XMLWriter.class.php index a40e1d39d3..8e0443b1ee 100644 --- a/wcfsetup/install/files/lib/util/XMLWriter.class.php +++ b/wcfsetup/install/files/lib/util/XMLWriter.class.php @@ -13,7 +13,7 @@ use wcf\system\exception\SystemException; class XMLWriter { /** * true, if a document is still processed - * @var boolean + * @var bool */ protected $activeDocument = false;