Code Duplication    Length = 4-4 lines in 2 locations

system/Inji/Model.php 2 locations

@@ 292-295 (lines=4) @@
289
            return;
290
        }
291
        if (!is_array($array)) {
292
            if (!isset($cols[static::colPrefix() . $array]) && isset(static::$cols[$array])) {
293
                static::createCol($array);
294
                $cols = static::cols(true);
295
            }
296
            if (!isset($cols[$array]) && isset($cols[static::colPrefix() . $array])) {
297
                $array = static::colPrefix() . $array;
298
            } else {
@@ 306-309 (lines=4) @@
303
        switch ($searchtype) {
304
            case 'key':
305
                foreach ($array as $key => $item) {
306
                    if (!isset($cols[static::colPrefix() . $key]) && isset(static::$cols[$key])) {
307
                        static::createCol($key);
308
                        $cols = static::cols(true);
309
                    }
310
                    if (!isset($cols[$key]) && isset($cols[static::colPrefix() . $key])) {
311
                        $array[static::colPrefix() . $key] = $item;
312
                        unset($array[$key]);