Code Duplication    Length = 5-5 lines in 2 locations

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

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