Code Duplication    Length = 7-7 lines in 2 locations

src/models/DomainService.php 1 location

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

src/models/CertificateResource.php 1 location

@@ 94-100 (lines=7) @@
91
    /**
92
     * @return array
93
     */
94
    public function getTypes()
95
    {
96
        return [
97
            static::TYPE_CERT_REGISTRATION => Yii::t('hipanel:finance:tariff', 'Registration'),
98
            static::TYPE_CERT_RENEW => Yii::t('hipanel:finance:tariff', 'Renewal'),
99
        ];
100
    }
101
}
102