Code Duplication    Length = 10-10 lines in 2 locations

lib/private/App/CodeChecker/MigrationSchemaChecker.php 2 locations

@@ 72-81 (lines=10) @@
69
			 $node->var instanceof Node\Expr\Variable &&
70
			 $node->var->name === $this->schemaVariableName) {
71
72
			if ($node->name === 'renameTable') {
73
				$this->errors[] = [
74
					'line' => $node->getLine(),
75
					'disallowedToken' => 'Deprecated method',
76
					'reason' => sprintf(
77
						'`$%s->renameTable()` must not be used',
78
						$node->var->name
79
					),
80
				];
81
			}
82
83
		/**
84
		 * Check columns and Indexes
@@ 148-157 (lines=10) @@
145
						];
146
					}
147
				}
148
			} else if ($node->name === 'renameColumn') {
149
				$this->errors[] = [
150
					'line' => $node->getLine(),
151
					'disallowedToken' => 'Deprecated method',
152
					'reason' => sprintf(
153
						'`$%s->renameColumn()` must not be used',
154
						$node->var->name
155
					),
156
				];
157
			}
158
159
		/**
160
		 * Find the schema