From 62d9300e0d698543ae7adcf834849d1ecc468518 Mon Sep 17 00:00:00 2001 From: jeroendedauw Date: Thu, 10 May 2012 21:23:43 +0200 Subject: [PATCH] fix var name Change-Id: I4f0cd77d3c46df75a746ae8e808b0a1be067a357 --- includes/Content.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/includes/Content.php b/includes/Content.php index 56221eae38..9f6b4d61ff 100644 --- a/includes/Content.php +++ b/includes/Content.php @@ -14,7 +14,7 @@ abstract class Content { * * @var String $model_name */ - protected $model_name; + protected $modelName; /** * @since WD.1 @@ -68,8 +68,8 @@ abstract class Content { /** * @param $model_name */ - public function __construct( $model_name = null ) { - $this->model_name = $model_name; + public function __construct( $modelName = null ) { + $this->modelName = $modelName; } /** @@ -81,18 +81,18 @@ abstract class Content { * @return String the model name */ public function getModelName() { - return $this->model_name; + return $this->modelName; } /** * Throws an MWException if $model_name is not the name of the content model * supported by this Content object. * - * @param String $model_name the model to check + * @param String $modelName the model to check */ - protected function checkModelName( $model_name ) { - if ( $model_name !== $this->model_name ) { - throw new MWException( "Bad content model: expected " . $this->model_name . " but got found " . $model_name ); + protected function checkModelName( $modelName ) { + if ( $modelName !== $this->modelName ) { + throw new MWException( "Bad content model: expected " . $this->modelName . " but got found " . $modelName ); } } -- 2.20.1