Code Duplication    Length = 13-13 lines in 3 locations

catalog/includes/modules/payment/sage_pay_direct.php 1 location

@@ 706-718 (lines=13) @@
703
      return Registry::get('Db')->exec('delete from :table_configuration where configuration_key in ("' . implode('", "', $this->keys()) . '")');
704
    }
705
706
    function keys() {
707
      $keys = array_keys($this->getParams());
708
709
      if ($this->check()) {
710
        foreach ($keys as $key) {
711
          if (!defined($key)) {
712
            $this->install($key);
713
          }
714
        }
715
      }
716
717
      return $keys;
718
    }
719
720
    function getParams() {
721
      $OSCOM_Db = Registry::get('Db');

catalog/includes/modules/payment/sage_pay_form.php 1 location

@@ 386-398 (lines=13) @@
383
      return Registry::get('Db')->exec('delete from :table_configuration where configuration_key in ("' . implode('", "', $this->keys()) . '")');
384
    }
385
386
    function keys() {
387
      $keys = array_keys($this->getParams());
388
389
      if ($this->check()) {
390
        foreach ($keys as $key) {
391
          if (!defined($key)) {
392
            $this->install($key);
393
          }
394
        }
395
      }
396
397
      return $keys;
398
    }
399
400
    function getParams() {
401
      $OSCOM_Db = Registry::get('Db');

catalog/includes/modules/payment/sage_pay_server.php 1 location

@@ 367-379 (lines=13) @@
364
      return Registry::get('Db')->exec('delete from :table_configuration where configuration_key in ("' . implode('", "', $this->keys()) . '")');
365
    }
366
367
    function keys() {
368
      $keys = array_keys($this->getParams());
369
370
      if ($this->check()) {
371
        foreach ($keys as $key) {
372
          if (!defined($key)) {
373
            $this->install($key);
374
          }
375
        }
376
      }
377
378
      return $keys;
379
    }
380
381
    function getParams() {
382
      $OSCOM_Db = Registry::get('Db');