* Note that if $format is null, this method always returns true, because null
* means "use the default format".
*
* Note that if $format is null, this method always returns true, because null
* means "use the default format".
*
* Throws an MWException if isSupportedFormat( $format ) is not true. Convenient
* for checking whether a format provided as a parameter is actually supported.
*
* Throws an MWException if isSupportedFormat( $format ) is not true. Convenient
* for checking whether a format provided as a parameter is actually supported.
*
- $ot = !is_null( $oldContent ) ? $oldContent->getRedirectTarget() : false;
- $rt = !is_null( $newContent ) ? $newContent->getRedirectTarget() : false;
+ /**
+ * @var $ot Title
+ * @var $rt Title
+ */
+
+ $ot = !is_null( $oldContent ) ? $oldContent->getRedirectTarget() : null;
+ $rt = !is_null( $newContent ) ? $newContent->getRedirectTarget() : null;
* Returns true for content models that support caching using the ParserCache mechanism.
* See WikiPage::isParserCacheUser().
*
* Returns true for content models that support caching using the ParserCache mechanism.
* See WikiPage::isParserCacheUser().
*