Code Duplication    Length = 4-4 lines in 2 locations

system/Inji/Model.php 2 locations

@@ 262-265 (lines=4) @@
259
            return;
260
        }
261
        if (!is_array($array)) {
262
            if (!isset($cols[static::colPrefix() . $array]) && isset(static::$cols[$array])) {
263
                static::createCol($array);
264
                $cols = static::cols(true);
265
            }
266
            if (!isset($cols[$array]) && isset($cols[static::colPrefix() . $array])) {
267
                $array = static::colPrefix() . $array;
268
            } else {
@@ 276-279 (lines=4) @@
273
        switch ($searchtype) {
274
            case 'key':
275
                foreach ($array as $key => $item) {
276
                    if (!isset($cols[static::colPrefix() . $key]) && isset(static::$cols[$key])) {
277
                        static::createCol($key);
278
                        $cols = static::cols(true);
279
                    }
280
                    if (!isset($cols[$key]) && isset($cols[static::colPrefix() . $key])) {
281
                        $array[static::colPrefix() . $key] = $item;
282
                        unset($array[$key]);