And don't bother checking its value in clearState(), since firstCallInit()
will do that anyways.
Change-Id: Ibc5e809daa614e99be91d65a363de4f697e6afa5
public $mImageParams = [];
public $mImageParamsMagicArray = [];
public $mMarkerIndex = 0;
public $mImageParams = [];
public $mImageParamsMagicArray = [];
public $mMarkerIndex = 0;
+ /**
+ * @var bool Whether firstCallInit still needs to be called
+ */
public $mFirstCall = true;
# Initialised by initialiseVariables()
public $mFirstCall = true;
# Initialised by initialiseVariables()
* @private
*/
public function clearState() {
* @private
*/
public function clearState() {
- if ( $this->mFirstCall ) {
- $this->firstCallInit();
- }
+ $this->firstCallInit();
$this->mOutput = new ParserOutput;
$this->mOptions->registerWatcher( [ $this->mOutput, 'recordOption' ] );
$this->mAutonumber = 0;
$this->mOutput = new ParserOutput;
$this->mOptions->registerWatcher( [ $this->mOutput, 'recordOption' ] );
$this->mAutonumber = 0;