Code Duplication    Length = 8-8 lines in 2 locations

plugin/buycourses/src/buy_course_plugin.class.php 2 locations

@@ 961-968 (lines=8) @@
958
     * Get the statuses for sales
959
     * @return array
960
     */
961
    public function getSaleStatuses()
962
    {
963
        return [
964
            self::SALE_STATUS_CANCELLED => $this->get_lang('SaleStatusCancelled'),
965
            self::SALE_STATUS_PENDING => $this->get_lang('SaleStatusPending'),
966
            self::SALE_STATUS_COMPLETED => $this->get_lang('SaleStatusCompleted')
967
        ];
968
    }
969
    
970
    /**
971
     * Get the statuses for sales
@@ 974-981 (lines=8) @@
971
     * Get the statuses for sales
972
     * @return array
973
     */
974
    public function getServiceSaleStatuses()
975
    {
976
        return [
977
            self::SERVICE_STATUS_CANCELLED => $this->get_lang('SaleStatusCancelled'),
978
            self::SERVICE_STATUS_PENDING => $this->get_lang('SaleStatusPending'),
979
            self::SERVICE_STATUS_COMPLETED => $this->get_lang('SaleStatusCompleted')
980
        ];
981
    }
982
    
983
    /**
984
     * Get the statuses for Payouts