Code Duplication    Length = 15-15 lines in 2 locations

apps/files/lib/Command/Scan.php 1 location

@@ 297-311 (lines=15) @@
294
	 * @param string[] $rows
295
	 * @param OutputInterface $output
296
	 */
297
	protected function showSummary($headers, $rows, OutputInterface $output) {
298
		$niceDate = $this->formatExecTime();
299
		if (!$rows) {
300
			$rows = [
301
				$this->foldersCounter,
302
				$this->filesCounter,
303
				$niceDate,
304
			];
305
		}
306
		$table = new Table($output);
307
		$table
308
			->setHeaders($headers)
309
			->setRows([$rows]);
310
		$table->render();
311
	}
312
313
314
	/**

apps/files/lib/Command/ScanAppData.php 1 location

@@ 220-234 (lines=15) @@
217
	 * @param string[] $rows
218
	 * @param OutputInterface $output
219
	 */
220
	protected function showSummary($headers, $rows, OutputInterface $output) {
221
		$niceDate = $this->formatExecTime();
222
		if (!$rows) {
223
			$rows = [
224
				$this->foldersCounter,
225
				$this->filesCounter,
226
				$niceDate,
227
			];
228
		}
229
		$table = new Table($output);
230
		$table
231
			->setHeaders($headers)
232
			->setRows([$rows]);
233
		$table->render();
234
	}
235
236
237
	/**