Code Duplication    Length = 3-5 lines in 2 locations

system/Inji/Model.php 2 locations

@@ 426-430 (lines=5) @@
423
            static::createCol($array[0]);
424
            $cols = static::cols(true);
425
          }
426
          if (!isset($cols[$array[0]]) && isset($cols[static::colPrefix() . $array[0]])) {
427
            $array[0] = static::colPrefix() . $array[0];
428
          } else {
429
            static::checkForJoin($array[0], $rootModel);
430
          }
431
        } elseif (isset($array[0]) && is_array($array[0])) {
432
          foreach ($array as &$item) {
433
            static::fixPrefix($item, 'first', $rootModel);
@@ 584-586 (lines=3) @@
581
      } else {
582
        $info['colParams'] = [];
583
      }
584
      if (!isset($cols[$info['col']]) && isset($cols[static::colPrefix() . $info['col']])) {
585
        $info['col'] = static::colPrefix() . $info['col'];
586
      }
587
      $info['modelName'] = get_called_class();
588
    }
589
    if (!empty(static::$labels[$info['rawCol']])) {