Code Duplication    Length = 12-12 lines in 2 locations

admin/gateways/paypal/gateway.php 1 location

@@ 40-51 (lines=12) @@
37
     *
38
     * @return array
39
     */
40
    public function setGatewayInformation()
41
    {
42
        $gateway                  = array();
43
        $gateway['name']          = 'Paypal';
44
        $gateway['foldername']    = 'paypal';
45
        $gateway['version']       = '1.1';
46
        $gateway['description']   = 'PayPal is the safer, easier way to pay and get paid online';
47
        $gateway['author']        = 'Instant Zero (http://www.herve-thouzard.com/)';
48
        $gateway['credits']       = 'Hervé Thouzard';
49
        $gateway['releaseDate']   = 20081215;
50
        $this->gatewayInformation = $gateway;
51
    }
52
53
    /**
54
     * Retourne le formulaire utilisé pour paramétrer la passerelle de paiement

admin/gateways/pec24/gateway.php 1 location

@@ 18-29 (lines=12) @@
15
        parent::__construct();
16
    }
17
18
    public function setGatewayInformation()
19
    {
20
        $gateway                  = array();
21
        $gateway['name']          = 'Parsian';
22
        $gateway['foldername']    = 'pec24';
23
        $gateway['version']       = '1.0';
24
        $gateway['description']   = 'سيستم پرداخت الکترونيک بانک پارسیان';
25
        $gateway['author']        = 'Hossein Azizabadi';
26
        $gateway['credits']       = 'جسین عزیزآبادی';
27
        $gateway['releaseDate']   = 20121020;
28
        $this->gatewayInformation = $gateway;
29
    }
30
31
    /**
32
     * This method is called to display a form containing the gateways parameters.