Code Duplication    Length = 3-5 lines in 2 locations

system/Inji/Model.php 2 locations

@@ 328-332 (lines=5) @@
325
                        static::createCol($array[0]);
326
                        $cols = static::cols(true);
327
                    }
328
                    if (!isset($cols[$array[0]]) && isset($cols[static::colPrefix() . $array[0]])) {
329
                        $array[0] = static::colPrefix() . $array[0];
330
                    } else {
331
                        static::checkForJoin($array[0], $rootModel);
332
                    }
333
                } elseif (isset($array[0]) && is_array($array[0])) {
334
                    foreach ($array as &$item) {
335
                        static::fixPrefix($item, 'first', $rootModel);
@@ 433-435 (lines=3) @@
430
            } else {
431
                $info['colParams'] = [];
432
            }
433
            if (!isset($cols[$info['col']]) && isset($cols[static::colPrefix() . $info['col']])) {
434
                $info['col'] = static::colPrefix() . $info['col'];
435
            }
436
            $info['modelName'] = get_called_class();
437
        }
438
        return $info;