Code Duplication    Length = 5-5 lines in 2 locations

system/Inji/Model.php 2 locations

@@ 757-761 (lines=5) @@
754
        }
755
        static::$needJoin = [];
756
757
        if (!empty($options['limit']))
758
            $limit = (int) $options['limit'];
759
        else {
760
            $limit = 0;
761
        }
762
        if (!empty($options['start']))
763
            $start = (int) $options['start'];
764
        else {
@@ 1040-1044 (lines=5) @@
1037
        if (!empty($options['order'])) {
1038
            $query->order($options['order']);
1039
        }
1040
        if (!empty($options['limit']))
1041
            $limit = (int) $options['limit'];
1042
        else {
1043
            $limit = 0;
1044
        }
1045
        if (!empty($options['start']))
1046
            $start = (int) $options['start'];
1047
        else {