Code Duplication    Length = 4-4 lines in 2 locations

system/Inji/Model.php 2 locations

@@ 349-352 (lines=4) @@
346
            return;
347
        }
348
        if (!is_array($array)) {
349
            if (!isset($cols[static::colPrefix() . $array]) && isset(static::$cols[$array])) {
350
                static::createCol($array);
351
                $cols = static::cols(true);
352
            }
353
            if (!isset($cols[$array]) && isset($cols[static::colPrefix() . $array])) {
354
                $array = static::colPrefix() . $array;
355
            } else {
@@ 363-366 (lines=4) @@
360
        switch ($searchtype) {
361
            case 'key':
362
                foreach ($array as $key => $item) {
363
                    if (!isset($cols[static::colPrefix() . $key]) && isset(static::$cols[$key])) {
364
                        static::createCol($key);
365
                        $cols = static::cols(true);
366
                    }
367
                    if (!isset($cols[$key]) && isset($cols[static::colPrefix() . $key])) {
368
                        $array[static::colPrefix() . $key] = $item;
369
                        unset($array[$key]);