Code Duplication    Length = 3-5 lines in 2 locations

system/Inji/Model.php 2 locations

@@ 298-302 (lines=5) @@
295
                        static::createCol($array[0]);
296
                        $cols = static::cols(true);
297
                    }
298
                    if (!isset($cols[$array[0]]) && isset($cols[static::colPrefix() . $array[0]])) {
299
                        $array[0] = static::colPrefix() . $array[0];
300
                    } else {
301
                        static::checkForJoin($array[0], $rootModel);
302
                    }
303
                } elseif (isset($array[0]) && is_array($array[0])) {
304
                    foreach ($array as &$item) {
305
                        static::fixPrefix($item, 'first', $rootModel);
@@ 403-405 (lines=3) @@
400
            } else {
401
                $info['colParams'] = [];
402
            }
403
            if (!isset($cols[$info['col']]) && isset($cols[static::colPrefix() . $info['col']])) {
404
                $info['col'] = static::colPrefix() . $info['col'];
405
            }
406
            $info['modelName'] = get_called_class();
407
        }
408
        return $info;