Code Duplication    Length = 4-4 lines in 2 locations

system/Inji/Model.php 2 locations

@@ 353-356 (lines=4) @@
350
            return;
351
        }
352
        if (!is_array($array)) {
353
            if (!isset($cols[static::colPrefix() . $array]) && isset(static::$cols[$array])) {
354
                static::createCol($array);
355
                $cols = static::cols(true);
356
            }
357
            if (!isset($cols[$array]) && isset($cols[static::colPrefix() . $array])) {
358
                $array = static::colPrefix() . $array;
359
            } else {
@@ 367-370 (lines=4) @@
364
        switch ($searchtype) {
365
            case 'key':
366
                foreach ($array as $key => $item) {
367
                    if (!isset($cols[static::colPrefix() . $key]) && isset(static::$cols[$key])) {
368
                        static::createCol($key);
369
                        $cols = static::cols(true);
370
                    }
371
                    if (!isset($cols[$key]) && isset($cols[static::colPrefix() . $key])) {
372
                        $array[static::colPrefix() . $key] = $item;
373
                        unset($array[$key]);