Code Duplication    Length = 4-4 lines in 2 locations

system/Inji/Model.php 2 locations

@@ 336-339 (lines=4) @@
333
      return;
334
    }
335
    if (!is_array($array)) {
336
      if (!isset($cols[static::colPrefix() . $array]) && isset(static::$cols[$array])) {
337
        static::createCol($array);
338
        $cols = static::cols(true);
339
      }
340
      if (!isset($cols[$array]) && isset($cols[static::colPrefix() . $array])) {
341
        $array = static::colPrefix() . $array;
342
      } else {
@@ 350-353 (lines=4) @@
347
    switch ($searchtype) {
348
      case 'key':
349
        foreach ($array as $key => $item) {
350
          if (!isset($cols[static::colPrefix() . $key]) && isset(static::$cols[$key])) {
351
            static::createCol($key);
352
            $cols = static::cols(true);
353
          }
354
          if (!isset($cols[$key]) && isset($cols[static::colPrefix() . $key])) {
355
            $array[static::colPrefix() . $key] = $item;
356
            unset($array[$key]);