/**
* Creates an empty Content object of the type supported by this ContentHandler.
*
+ * @return Content
*/
public abstract function makeEmptyContent();
/**
* Throws an MWException if $modelName is not the content model handeled by this ContentHandler.
*
- * @param $modelName the model name to check
+ * @param String $modelName the model name to check
*/
protected function checkModelName( $modelName ) {
if ( $modelName !== $this->mModelName ) {
* Note that if $format is null, this method always returns true, because null
* means "use the default format".
*
- * @param $format the serialization format to check
+ * @param String $format the serialization format to check
* @return bool
*/
public function isSupportedFormat( $format ) {
* Throws an MWException if isSupportedFormat( $format ) is not true. Convenient
* for checking whether a format provided as a parameter is actually supported.
*
- * @param $format the serialization format to check
+ * @param String $format the serialization format to check
*/
protected function checkFormat( $format ) {
if ( !$this->isSupportedFormat( $format ) ) {
// Redirect autosummaries
- $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;
if ( is_object( $rt ) && ( !is_object( $ot ) || !$rt->equals( $ot ) || $ot->getFragment() != $rt->getFragment() ) ) {
* Returns true for content models that support caching using the ParserCache mechanism.
* See WikiPage::isParserCacheUser().
*
- * @return book
+ * @return bool
*/
public function isParserCacheSupported() {
return true;