Code Duplication    Length = 4-4 lines in 2 locations

system/Inji/Model.php 2 locations

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