Code Duplication    Length = 8-8 lines in 2 locations

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

@@ 1006-1013 (lines=8) @@
1003
    /**
1004
     * Returns currency gateway if there is access to it
1005
     */
1006
    private function getCurrencyGateway()
1007
    {
1008
        if ($this->webshop->kernel->intranet->hasModuleAccess('currency')) {
1009
            $this->webshop->kernel->useModule('currency', true); // true: ignore intranet access
1010
            return new Intraface_modules_currency_Currency_Gateway(Doctrine_Manager::connection(DB_DSN));
1011
        }
1012
        return false;
1013
    }
1014
1015
    /**
1016
     * Returns an array with currency information.

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

@@ 1168-1175 (lines=8) @@
1165
    /**
1166
     * Returns currency gateway if there is access to it
1167
     */
1168
    private function getCurrencyGateway()
1169
    {
1170
        if ($this->webshop->kernel->intranet->hasModuleAccess('currency')) {
1171
            $this->webshop->kernel->useModule('currency', true); // true: ignore intranet access
1172
            return new Intraface_modules_currency_Currency_Gateway($this->doctrine);
1173
        }
1174
        return false;
1175
    }
1176
1177
    /**
1178
     * Returns an array with currency information.