/** @var string SQL WHERE condition that selects source revisions to insert into destination */
protected $timeWhere;
- /** @var MWTimestamp|boolean Timestamp upto which history from the source will be merged */
+ /** @var MWTimestamp|bool Timestamp upto which history from the source will be merged */
protected $timestampLimit;
/** @var integer Number of revisions merged (for Special:MergeHistory success message) */
* MergeHistory constructor.
* @param Title $source Page from which history will be merged
* @param Title $dest Page to which history will be merged
- * @param string|boolean $timestamp Timestamp up to which history from the source will be merged
+ * @param string|bool $timestamp Timestamp up to which history from the source will be merged
*/
public function __construct( Title $source, Title $dest, $timestamp = false ) {
// Save the parameters
/**
* @param string $templateDir
- * @param boolean $forceRecompile
+ * @param bool $forceRecompile
*/
public function __construct( $templateDir = null, $forceRecompile = false ) {
$this->templateDir = $templateDir ?: __DIR__ . '/templates';
/** @var bool The (string) language code of the page's language and content code. */
private $mPageLanguage = false;
- /** @var string|boolean|null The page language code from the database, null if not saved in
+ /** @var string|bool|null The page language code from the database, null if not saved in
* the database or false if not loaded, yet. */
private $mDbPageLanguage = false;
* to true in LocalSettings.php, otherwise returns false. If there is no language saved in
* the db, it will return NULL.
*
- * @return string|null|boolean
+ * @return string|null|bool
*/
private function getDbPageLanguageCode() {
global $wgPageLanguageUseDB;
* RFC 7232 § 2.2 for semantics.
* - etag: Return an entity-tag representing the state of all resources involved
* in the request. Quotes must be included. See RFC 7232 § 2.3 for semantics.
- * @return string|boolean|null As described above, or null if no value is available.
+ * @return string|bool|null As described above, or null if no value is available.
*/
public function getConditionalRequestData( $condition ) {
return null;
/**
* Send caching headers
- * @param boolean $isError Whether an error response is being output
+ * @param bool $isError Whether an error response is being output
* @since 1.26 added $isError parameter
*/
protected function sendCacheHeaders( $isError ) {
* the API.
*
* @param array $vars
- * @param boolean $forceHash
+ * @param bool $forceHash
* @return array
*/
public static function addMetadataToResultVars( $vars, $forceHash = true ) {
/**
* Returns whether or not storage is SHA-1 based
- * @return boolean
+ * @return bool
*/
public function hasSha1Storage() {
return $this->hasSha1Storage;
/**
* Returns whether or not repo supports having originals SHA-1s in the thumb URLs
- * @return boolean
+ * @return bool
*/
public function supportsSha1URLs() {
return $this->supportsSha1URLs;
class VFormHTMLForm extends HTMLForm {
/**
* Wrapper and its legend are never generated in VForm mode.
- * @var boolean
+ * @var bool
*/
protected $mWrapperLegend = false;
* @file
*/
class MWMessagePack {
- /** @var boolean|null Whether current system is bigendian. **/
+ /** @var bool|null Whether current system is bigendian. **/
public static $bigendian = null;
/**
/**
* Decodes a lossy chunk header
* @param string $header Header string
- * @return boolean|array See WebPHandler::decodeHeader
+ * @return bool|array See WebPHandler::decodeHeader
*/
protected static function decodeLossyChunkHeader( $header ) {
// Bytes 0-3 are 'VP8 '
/**
* Decodes a lossless chunk header
* @param string $header Header string
- * @return boolean|array See WebPHandler::decodeHeader
+ * @return bool|array See WebPHandler::decodeHeader
*/
public static function decodeLosslessChunkHeader( $header ) {
// Bytes 0-3 are 'VP8L'
/**
* Decodes an extended chunk header
* @param string $header Header string
- * @return boolean|array See WebPHandler::decodeHeader
+ * @return bool|array See WebPHandler::decodeHeader
*/
public static function decodeExtendedChunkHeader( $header ) {
// Bytes 0-3 are 'VP8X'
protected $timeout;
/**
- * @var boolean Whether the key is a "might wait" key
+ * @var bool Whether the key is a "might wait" key
*/
private $isMightWaitKey;
/**
- * @var boolean Whether this process holds a "might wait" lock key
+ * @var bool Whether this process holds a "might wait" lock key
*/
private static $acquiredMightWaitKey = 0;
/**
* Enable raw mode to omit mw.loader.state() call as mw.loader
* does not yet exist when these modules execute.
- * @var boolean
+ * @var bool
*/
protected $raw = true;
*
* @param Site $site
*
- * @return boolean Success indicator
+ * @return bool Success indicator
*/
public function saveSite( Site $site ) {
$this->sites[$site->getGlobalId()] = $site;
*
* @param Site[] $sites
*
- * @return boolean Success indicator
+ * @return bool Success indicator
*/
public function saveSites( array $sites ) {
foreach ( $sites as $site ) {
}
/**
- * @return boolean True when the iterator is in a valid state
+ * @return bool True when the iterator is in a valid state
*/
public function valid() {
return (bool)$this->current;
}
/**
- * @return boolean True when this result set has rows
+ * @return bool True when this result set has rows
*/
public function hasChildren() {
return $this->current && count( $this->current );
* Return the byte-length output of the hash algorithm we are
* using in self::hash and self::hmac.
*
- * @param boolean $raw True to return the length for binary data, false to
+ * @param bool $raw True to return the length for binary data, false to
* return for hex-encoded
* @return int Number of bytes the hash outputs
*/
* making use of the best hash algorithm that we have available.
*
* @param string $data
- * @param boolean $raw True to return binary data, false to return it hex-encoded
+ * @param bool $raw True to return binary data, false to return it hex-encoded
* @return string A hash of the data
*/
public static function hash( $data, $raw = true ) {
*
* @param string $data
* @param string $key
- * @param boolean $raw True to return binary data, false to return it hex-encoded
+ * @param bool $raw True to return binary data, false to return it hex-encoded
* @return string An hmac hash of the data + key
*/
public static function hmac( $data, $key, $raw = true ) {
}
/**
- * @return boolean
+ * @return bool
*/
private function oncePerClass() {
// Remember current test class in the database connection,