Code Duplication    Length = 7-7 lines in 2 locations

src/cart/AbstractPurchase.php 1 location

@@ 95-101 (lines=7) @@
92
    }
93
94
    /** {@inheritdoc} */
95
    public function rules()
96
    {
97
        return [
98
            [['cart_position_id', 'object', 'client', 'type', 'currency', 'item'], 'safe'],
99
            [['amount'], 'number'],
100
        ];
101
    }
102
}
103

src/models/Calculation.php 1 location

@@ 70-76 (lines=7) @@
67
    }
68
69
    /** {@inheritdoc} */
70
    public function rules()
71
    {
72
        return [
73
            [['tariff_id', 'object', 'seller', 'client', 'type', 'currency', 'item'], 'safe'],
74
            [['amount'], 'number'],
75
        ];
76
    }
77
78
    /**
79
     * Synchronises the model to represent actual state of [[position]]