tidy: Remove unused var and define $parts var to avoid undefined error
authorDerick Alangi <alangiderick@gmail.com>
Mon, 15 Apr 2019 16:07:31 +0000 (17:07 +0100)
committerDerick Alangi <alangiderick@gmail.com>
Mon, 10 Jun 2019 13:34:54 +0000 (14:34 +0100)
commitd3b7cb742f186547bdd09c26cb98fdd7e2de1f8a
treee11eff5ae82f7b6c3f5ca8021db753111fb010c5
parentfe1ee0b1aa584b0bf946dd8a0188c446c0b3bf16
tidy: Remove unused var and define $parts var to avoid undefined error

Remove unused variable $parent in RemexCompatMunger::comment(). Also,
RemexMungerData::dump() could have a possibility that all checks fail
and $parts is not defined. There are two ways we can handle this, i.e.
either by doing `$parts = []`(setting $parts to an empty array) or by
safe guarding using an `isset()` check.

This patch uses the former so that $parts is defined and can be used
below in the code.

Change-Id: I4d601a6fe36a1dce0945686cb9880336d08338be
includes/tidy/RemexCompatMunger.php
includes/tidy/RemexMungerData.php