Code Duplication    Length = 3-5 lines in 2 locations

system/Inji/Model.php 2 locations

@@ 391-395 (lines=5) @@
388
                        static::createCol($array[0]);
389
                        $cols = static::cols();
390
                    }
391
                    if (!isset($cols[$array[0]]) && isset($cols[static::colPrefix() . $array[0]])) {
392
                        $array[0] = static::colPrefix() . $array[0];
393
                    } else {
394
                        static::checkForJoin($array[0], $rootModel);
395
                    }
396
                } elseif (isset($array[0]) && is_array($array[0])) {
397
                    foreach ($array as &$item) {
398
                        static::fixPrefix($item, 'first', $rootModel);
@@ 592-594 (lines=3) @@
589
            } else {
590
                $info['colParams'] = [];
591
            }
592
            if (!isset($cols[$info['col']]) && isset($cols[static::colPrefix() . $info['col']])) {
593
                $info['col'] = static::colPrefix() . $info['col'];
594
            }
595
        }
596
        if (!empty(static::$labels[$info['rawCol']])) {
597
            $info['label'] = static::$labels[$info['rawCol']];