Code Duplication    Length = 7-7 lines in 3 locations

src/models/DomainServicePrice.php 1 location

@@ 37-43 (lines=7) @@
34
    /**
35
     * @return array available operations
36
     */
37
    public static function getOperations(): array
38
    {
39
        return [
40
            static::SERVICE_OPERATION_PURCHASE => Yii::t('hipanel:finance:tariff', 'Purchase'),
41
            static::SERVICE_OPERATION_RENEW => Yii::t('hipanel:finance:tariff', 'Renewal'),
42
        ];
43
    }
44
45
    /**
46
     * @return string

src/models/DomainService.php 1 location

@@ 82-88 (lines=7) @@
79
    /**
80
     * @return array available operations
81
     */
82
    public static function getOperations()
83
    {
84
        return [
85
            static::SERVICE_OPERATION_PURCHASE => Yii::t('hipanel:finance:tariff', 'Purchase'),
86
            static::SERVICE_OPERATION_RENEW => Yii::t('hipanel:finance:tariff', 'Renewal'),
87
        ];
88
    }
89
90
    /**
91
     * @return bool whether service contains all necessary resources

src/models/CertificateResource.php 1 location

@@ 128-134 (lines=7) @@
125
    /**
126
     * @return array
127
     */
128
    public function getTypes()
129
    {
130
        return [
131
            static::TYPE_CERT_PURCHASE => Yii::t('hipanel:finance:tariff', 'Purchase'),
132
            static::TYPE_CERT_RENEWAL => Yii::t('hipanel:finance:tariff', 'Renewal'),
133
        ];
134
    }
135
}
136