Code Duplication    Length = 4-4 lines in 2 locations

system/Inji/Model.php 2 locations

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