Code Duplication    Length = 7-7 lines in 2 locations

src/models/CertificateResource.php 1 location

@@ 54-60 (lines=7) @@
51
    /**
52
     * @return array
53
     */
54
    public function getTypes()
55
    {
56
        return [
57
            static::TYPE_CERT_REGISTRATION => Yii::t('hipanel:finance:tariff', 'Registration'),
58
            static::TYPE_CERT_RENEW => Yii::t('hipanel:finance:tariff', 'Renewal'),
59
        ];
60
    }
61
}
62

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