Code Duplication    Length = 8-8 lines in 4 locations

lib/Migration/Version0017Date20191206144441.php 4 locations

@@ 96-103 (lines=8) @@
93
		}
94
95
		$table = $schema->getTable('circles_members');
96
		if (!$table->hasColumn('member_id')) {
97
			$table->addColumn(
98
				'member_id', Type::STRING, [
99
							   'notnull' => false,
100
							   'length'  => 15,
101
						   ]
102
			);
103
		}
104
		if (!$table->hasColumn('contact_meta')) {
105
			$table->addColumn(
106
				'contact_meta', 'string', [
@@ 112-119 (lines=8) @@
109
							  ]
110
			);
111
		}
112
		if (!$table->hasColumn('contact_checked')) {
113
			$table->addColumn(
114
				'contact_checked', Type::SMALLINT, [
115
									 'notnull' => false,
116
									 'length'  => 1,
117
								 ]
118
			);
119
		}
120
		if (!$table->hasColumn('contact_id')) {
121
			$table->addColumn(
122
				'contact_id', 'string', [
@@ 134-141 (lines=8) @@
131
		}
132
133
		$table = $schema->getTable('circles_tokens');
134
		if (!$table->hasColumn('member_id')) {
135
			$table->addColumn(
136
				'member_id', Type::STRING, [
137
							   'notnull' => false,
138
							   'length'  => 15,
139
						   ]
140
			);
141
		}
142
		if (!$table->hasColumn('accepted')) {
143
			$table->addColumn(
144
				'accepted', Type::SMALLINT, [
@@ 142-149 (lines=8) @@
139
						   ]
140
			);
141
		}
142
		if (!$table->hasColumn('accepted')) {
143
			$table->addColumn(
144
				'accepted', Type::SMALLINT, [
145
							  'notnull' => false,
146
							  'length'  => 1,
147
						  ]
148
			);
149
		}
150
151
		return $schema;
152
	}