/** * Prepare this helper before first using it to format lines. * * @param \nochso\Diff\Diff $diff */ public function prepare(Diff $diff) { $this->lineCountLength = strlen($diff->getMaxLineNumber()); }
public function format(Diff $diff) { $this->lineCountLength = strlen($diff->getMaxLineNumber()); return parent::format($diff); }