Code Duplication    Length = 12-12 lines in 2 locations

lib/Command/Index.php 1 location

@@ 307-318 (lines=12) @@
304
	/**
305
	 * @param string $action
306
	 */
307
	public function onNewAction($action) {
308
309
		if ($action === 'indexChunk' || $action === 'indexChunkEnd') {
310
			$this->runner->setInfoArray(
311
				[
312
					'documentId' => '',
313
					'title'      => '',
314
					'content'    => ''
315
				]
316
			);
317
		}
318
	}
319
320
321
	/**

lib/Command/Live.php 1 location

@@ 319-330 (lines=12) @@
316
	/**
317
	 * @param string $action
318
	 */
319
	public function onNewAction($action) {
320
321
		if ($action === 'indexChunk' || $action === 'indexChunkEnd') {
322
			$this->runner->setInfoArray(
323
				[
324
					'documentId' => '',
325
					'title'      => '',
326
					'content'    => ''
327
				]
328
			);
329
		}
330
	}
331
332
333
	/**