Code Duplication    Length = 5-5 lines in 2 locations

htdocs/class/libraries/vendor/xoops/xmf/src/Xmf/Database/Tables.php 2 locations

@@ 268-272 (lines=5) @@
265
        if (isset($this->tables[$table])) {
266
            $tableDef = $this->tables[$table];
267
            // loop thru and find the column
268
            foreach ($tableDef['columns'] as $col) {
269
                if (strcasecmp($col['name'], $column) === 0) {
270
                    return $col['attributes'];
271
                }
272
            }
273
        }
274
275
        return false;
@@ 114-118 (lines=5) @@
111
            if (isset($tableDef['create']) && $tableDef['create']) {
112
                array_push($tableDef['columns'], $columnDef);
113
            } else {
114
                foreach ($tableDef['columns'] as $col) {
115
                    if (strcasecmp($col['name'], $column) == 0) {
116
                        return true;
117
                    }
118
                }
119
                $this->queue[] = "ALTER TABLE `{$tableDef['name']}`"
120
                    . " ADD COLUMN `{$column}` {$columnDef['attributes']}";
121
                array_push($tableDef['columns'], $columnDef);