Code Duplication    Length = 4-4 lines in 2 locations

system/Inji/Model.php 2 locations

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