Code Duplication    Length = 4-4 lines in 2 locations

system/Inji/Model.php 2 locations

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