Code Duplication    Length = 3-5 lines in 2 locations

system/Inji/Model.php 2 locations

@@ 385-389 (lines=5) @@
382
                        static::createCol($array[0]);
383
                        $cols = static::cols(true);
384
                    }
385
                    if (!isset($cols[$array[0]]) && isset($cols[static::colPrefix() . $array[0]])) {
386
                        $array[0] = static::colPrefix() . $array[0];
387
                    } else {
388
                        static::checkForJoin($array[0], $rootModel);
389
                    }
390
                } elseif (isset($array[0]) && is_array($array[0])) {
391
                    foreach ($array as &$item) {
392
                        static::fixPrefix($item, 'first', $rootModel);
@@ 579-581 (lines=3) @@
576
            } else {
577
                $info['colParams'] = [];
578
            }
579
            if (!isset($cols[$info['col']]) && isset($cols[static::colPrefix() . $info['col']])) {
580
                $info['col'] = static::colPrefix() . $info['col'];
581
            }
582
            $info['modelName'] = get_called_class();
583
        }
584
        if (!empty(static::$labels[$info['rawCol']])) {