* @param string $title Database key form
* @param string $fragment The link fragment (after the "#")
* @param string $interwiki Interwiki prefix
- * @return Title The new object, or null on an error
+ * @return Title|null The new object, or null on an error
*/
public static function makeTitleSafe( $ns, $title, $fragment = '', $interwiki = '' ) {
if ( !MWNamespace::exists( $ns ) ) {
* the cached User object, we assume that whatever mechanism is setting
* the expiration date is also expiring the User cache.
* @since 1.23
- * @return string|bool The datestamp of the expiration, or null if not set
+ * @return string|null The datestamp of the expiration, or null if not set
*/
public function getPasswordExpireDate() {
$this->load();
/**
* Returns the group name for the given module
* @param string $moduleName
- * @return string Group name or null if missing
+ * @return string|null Group name or null if missing
*/
public function getModuleGroup( $moduleName ) {
if ( isset( $this->mModules[$moduleName] ) ) {
* @param string $name Module name
* @param ResourceLoaderModule $module
* @param string $lang Language code
- * @return string Regenerated message blob, or null if there was no blob for
+ * @return string|null Regenerated message blob, or null if there was no blob for
* the given module/language pair.
*/
public function updateModule( $name, ResourceLoaderModule $module, $lang ) {
* In files that support multiple language, what is the default language
* to use if none specified.
*
- * @return string Lang code, or null if filetype doesn't support multiple languages.
+ * @return string|null Lang code, or null if filetype doesn't support multiple languages.
* @since 1.23
*/
public function getDefaultRenderLanguage() {
*
* @param array $params Handler-specific parameters
* @param int $flags Bitfield that supports THUMB_* constants
- * @return string
+ * @return string|null
*/
public function thumbName( $params, $flags = 0 ) {
$name = ( $this->repo && !( $flags & self::THUMB_FULL_NAME ) )
*
* @param string $name
* @param array $params Parameters which will be passed to MediaHandler::makeParamString
- * @return string
+ * @return string|null
*/
public function generateThumbName( $name, $params ) {
if ( !$this->getHandler() ) {
* @param string $edittime Revision timestamp or null to use the current revision.
*
* @throws MWException
- * @return string New complete article text, or null if error.
+ * @return string|null New complete article text, or null if error.
*
* @deprecated since 1.21, use replaceSectionAtRev() instead
*/
* @param string $edittime Revision timestamp or null to use the current revision.
*
* @throws MWException
- * @return Content New complete article content, or null if error.
+ * @return Content|null New complete article content, or null if error.
*
* @since 1.21
* @deprecated since 1.24, use replaceSectionAtRev instead
* @param int|null $baseRevId
*
* @throws MWException
- * @return Content New complete article content, or null if error.
+ * @return Content|null New complete article content, or null if error.
*
* @since 1.24
*/
}
/**
- * @return Title Title object for the redirect to this page, null if none or not supported
+ * @return Title|null Title object for the redirect to this page, null if none or not supported
*/
function getRedirectTitle() {
return null;
}
/**
- * @return Title Title object (pagename+fragment) for the section, null if none or not supported
+ * @return Title|null Title object (pagename+fragment) for the section, null if none or not supported
*/
function getSectionTitle() {
return null;
}
/**
- * @return string Suggested query, null if none
+ * @return string|null Suggested query, null if none
*/
function getSuggestionQuery() {
return null;
*
* @param array $params Handler-specific parameters
* @param int $flags Bitfield that supports THUMB_* constants
- * @return string Base name for URL, like '120px-12345.jpg', or null if there is no handler
+ * @return string|null Base name for URL, like '120px-12345.jpg', or null if there is no handler
*/
function thumbName( $params, $flags = 0 ) {
return $this->generateThumbName( $this->getUrlName(), $params );
* unusual representations may be added later.
*
* @param string $addr Something that might be an IP address
- * @return string Valid dotted quad IPv4 address or null
+ * @return string|null Valid dotted quad IPv4 address or null
*/
public static function canonicalize( $addr ) {
// remove zone info (bug 35738)