Code Duplication    Length = 4-4 lines in 2 locations

system/Inji/Model.php 2 locations

@@ 389-392 (lines=4) @@
386
            return;
387
        }
388
        if (!is_array($array)) {
389
            if (!isset($cols[static::colPrefix() . $array]) && isset(static::$cols[$array])) {
390
                static::createCol($array);
391
                $cols = static::cols(true);
392
            }
393
            if (!isset($cols[$array]) && isset($cols[static::colPrefix() . $array])) {
394
                $array = static::colPrefix() . $array;
395
            } else {
@@ 403-406 (lines=4) @@
400
        switch ($searchtype) {
401
            case 'key':
402
                foreach ($array as $key => $item) {
403
                    if (!isset($cols[static::colPrefix() . $key]) && isset(static::$cols[$key])) {
404
                        static::createCol($key);
405
                        $cols = static::cols(true);
406
                    }
407
                    if (!isset($cols[$key]) && isset($cols[static::colPrefix() . $key])) {
408
                        $array[static::colPrefix() . $key] = $item;
409
                        unset($array[$key]);