Code Duplication    Length = 4-4 lines in 2 locations

apps/twofactor_backupcodes/lib/Migration/Version1002Date20170919123342.php 1 location

@@ 49-52 (lines=4) @@
46
		$column->setDefault('');
47
48
		$column = $table->getColumn('used');
49
		if ($column->getType()->getName() !== Type::SMALLINT) {
50
			$column->setType(Type::getType(Type::SMALLINT));
51
			$column->setOptions(['length' => 6]);
52
		}
53
54
		return $schema;
55
	}

lib/public/Migration/BigIntMigration.php 1 location

@@ 57-60 (lines=4) @@
54
55
			foreach ($columns as $columnName) {
56
				$column = $table->getColumn($columnName);
57
				if ($column->getType()->getName() !== Type::BIGINT) {
58
					$column->setType(Type::getType(Type::BIGINT));
59
					$column->setOptions(['length' => 20]);
60
				}
61
			}
62
		}
63