Code Duplication    Length = 7-7 lines in 2 locations

lib/private/Migration/ConsoleOutput.php 2 locations

@@ 67-73 (lines=7) @@
64
	/**
65
	 * @param int $max
66
	 */
67
	public function startProgress($max = 0) {
68
		if (!is_null($this->progressBar)) {
69
			$this->progressBar->finish();
70
		}
71
		$this->progressBar = new ProgressBar($this->output);
72
		$this->progressBar->start($max);
73
	}
74
75
	/**
76
	 * @param int $step
@@ 79-85 (lines=7) @@
76
	 * @param int $step
77
	 * @param string $description
78
	 */
79
	public function advance($step = 1, $description = '') {
80
		if (!is_null($this->progressBar)) {
81
			$this->progressBar = new ProgressBar($this->output);
82
			$this->progressBar->start();
83
		}
84
		$this->progressBar->advance($step);
85
	}
86
87
	public function finishProgress() {
88
		if (is_null($this->progressBar)) {