Code Duplication    Length = 3-5 lines in 2 locations

system/Inji/Model.php 2 locations

@@ 427-431 (lines=5) @@
424
                        static::createCol($array[0]);
425
                        $cols = static::cols(true);
426
                    }
427
                    if (!isset($cols[$array[0]]) && isset($cols[static::colPrefix() . $array[0]])) {
428
                        $array[0] = static::colPrefix() . $array[0];
429
                    } else {
430
                        static::checkForJoin($array[0], $rootModel);
431
                    }
432
                } elseif (isset($array[0]) && is_array($array[0])) {
433
                    foreach ($array as &$item) {
434
                        static::fixPrefix($item, 'first', $rootModel);
@@ 591-593 (lines=3) @@
588
            } else {
589
                $info['colParams'] = [];
590
            }
591
            if (!isset($cols[$info['col']]) && isset($cols[static::colPrefix() . $info['col']])) {
592
                $info['col'] = static::colPrefix() . $info['col'];
593
            }
594
            $info['modelName'] = get_called_class();
595
        }
596
        if (!empty(static::$labels[$info['rawCol']])) {