Code Duplication    Length = 3-5 lines in 2 locations

system/Inji/Model.php 2 locations

@@ 372-376 (lines=5) @@
369
            static::createCol($array[0]);
370
            $cols = static::cols(true);
371
          }
372
          if (!isset($cols[$array[0]]) && isset($cols[static::colPrefix() . $array[0]])) {
373
            $array[0] = static::colPrefix() . $array[0];
374
          } else {
375
            static::checkForJoin($array[0], $rootModel);
376
          }
377
        } elseif (isset($array[0]) && is_array($array[0])) {
378
          foreach ($array as &$item) {
379
            static::fixPrefix($item, 'first', $rootModel);
@@ 474-476 (lines=3) @@
471
      } else {
472
        $info['colParams'] = [];
473
      }
474
      if (!isset($cols[$info['col']]) && isset($cols[static::colPrefix() . $info['col']])) {
475
        $info['col'] = static::colPrefix() . $info['col'];
476
      }
477
      $info['modelName'] = get_called_class();
478
    }
479
    if (!empty(static::$labels[$info['rawCol']])) {