Code Duplication    Length = 17-17 lines in 2 locations

src/Intraface/XMLRPC/Shop/Server0004.php 1 location

@@ 1020-1036 (lines=17) @@
1017
     *
1018
     * @return array default currency and valid currencies
1019
     */
1020
    private function getCurrencyArray()
1021
    {
1022
        $currency['default'] = 'DKK';
1023
        $currency['currencies']['DKK'] = 'Danish Krone';
1024
1025
        if (false !== ($currency_gateway = $this->getCurrencyGateway())) {
1026
            foreach ($currency_gateway->findAllWithExchangeRate() as $c) {
1027
                $currency['currencies'][$c->getType()->getIsoCode()] = $c->getType()->getDescription();
1028
            }
1029
        }
1030
1031
        if (false !== ($default_currency = $this->webshop->getShop()->getDefaultCurrency($currency_gateway))) {
1032
            $currency['default'] = $default_currency->getType()->getIsoCode();
1033
        }
1034
1035
        return $currency;
1036
    }
1037
1038
    /**
1039
     * Get identifier

src/Intraface/XMLRPC/Shop/Server0100.php 1 location

@@ 1182-1198 (lines=17) @@
1179
     *
1180
     * @return array default currency and valid currencies
1181
     */
1182
    private function getCurrencyArray()
1183
    {
1184
        $currency['default'] = 'DKK';
1185
        $currency['currencies']['DKK'] = 'Danish Krone';
1186
1187
        if (false !== ($currency_gateway = $this->getCurrencyGateway())) {
1188
            foreach ($currency_gateway->findAllWithExchangeRate() as $c) {
1189
                $currency['currencies'][$c->getType()->getIsoCode()] = $c->getType()->getDescription();
1190
            }
1191
        }
1192
1193
        if (false !== ($default_currency = $this->webshop->getShop()->getDefaultCurrency($currency_gateway))) {
1194
            $currency['default'] = $default_currency->getType()->getIsoCode();
1195
        }
1196
1197
        return $currency;
1198
    }
1199
1200
    /**
1201
     * Get identifier