Code Duplication    Length = 6-6 lines in 2 locations

lib/Migration/Version2060Date20200302132145.php 1 location

@@ 27-32 (lines=6) @@
24
		$schema = $schemaClosure();
25
26
		$table = $schema->getTable('richdocuments_wopi');
27
		if (!$table->hasColumn('share')) {
28
			$table->addColumn('share', 'string', [
29
				'notnull' => false,
30
				'length' => 64
31
			]);
32
		}
33
34
		return $schema;
35
	}

lib/Migration/Version30704Date20200626072306.php 1 location

@@ 41-46 (lines=6) @@
38
			]);
39
		}
40
41
		if (!$table->hasColumn('share')) {
42
			$table->addColumn('share', 'string', [
43
				'notnull' => false,
44
				'length' => 64
45
			]);
46
		}
47
48
		if (!$table->hasColumn('direct')) {
49
			$table->addColumn('direct', 'boolean', [