Completed
Push — master ( 5159f0...6358b0 )
by Hannes
02:18 queued 01:45
created
lib/Payone/Config.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -91,17 +91,17 @@  discard block
 block discarded – undo
91 91
     public function __construct(array $data = array())
92 92
     {
93 93
         if (empty($data)) {
94
-            if($this->getApiConfig() === null)
94
+            if ($this->getApiConfig() === null)
95 95
             {
96 96
                 $this->apiConfig = new Payone_Api_Config();
97 97
             }
98 98
 
99
-            if($this->getTransactionStatusConfig() === null)
99
+            if ($this->getTransactionStatusConfig() === null)
100 100
             {
101 101
                 $this->transactionStatusConfig = new Payone_TransactionStatus_Config();
102 102
             }
103 103
 
104
-            if($this->getSessionStatusConfig() === null)
104
+            if ($this->getSessionStatusConfig() === null)
105 105
             {
106 106
                 $this->sessionStatusConfig = new Payone_SessionStatus_Config();
107 107
             }
@@ -109,11 +109,11 @@  discard block
 block discarded – undo
109 109
             $this->config = $this->getDefaultConfigData();
110 110
         }
111 111
         else {
112
-            if(array_key_exists('api', $data))
112
+            if (array_key_exists('api', $data))
113 113
                 $this->setApiConfig($data['api']);
114
-            if(array_key_exists('transaction_status', $data))
114
+            if (array_key_exists('transaction_status', $data))
115 115
                 $this->setTransactionStatusConfig($data['transaction_status']);
116
-            if(array_key_exists('session_status', $data))
116
+            if (array_key_exists('session_status', $data))
117 117
                 $this->setSessionStatusConfig($data['session_status']);
118 118
             $this->config = $data;
119 119
         }
Please login to merge, or discard this patch.
lib/Payone/Settings/Service/XmlGenerate.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -453,9 +453,9 @@  discard block
 block discarded – undo
453 453
      * @param bool $asCdata
454 454
      * @return DOMElement
455 455
      */
456
-    protected function appendElement( $parent, $key, $value = null, $asCdata = false)
456
+    protected function appendElement($parent, $key, $value = null, $asCdata = false)
457 457
     {
458
-        if($asCdata === true)
458
+        if ($asCdata === true)
459 459
         {
460 460
             $cdata = $this->dom->createCDATASection($value);
461 461
             $child = $this->dom->createElement($key);
@@ -464,7 +464,7 @@  discard block
 block discarded – undo
464 464
         else
465 465
         {
466 466
             $child = $this->dom->createElement($key);
467
-            if($value !== null)
467
+            if ($value !== null)
468 468
             {
469 469
                 $domValue = $this->dom->createTextNode($value);
470 470
                 $child->appendChild($domValue);
Please login to merge, or discard this patch.
lib/Payone/Settings/Data/ConfigFile/Shop/Global.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
     protected $parameter_invoice = array();
53 53
 
54 54
     /** @var Payone_Settings_Data_ConfigFile_Global_StatusMapping */
55
-    protected $status_mapping = null ;
55
+    protected $status_mapping = null;
56 56
 
57 57
     /** @var array */
58 58
     protected $payment_creditcard = array();
Please login to merge, or discard this patch.
lib/Payone/Settings/Data/ConfigFile/Root.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,6 +67,6 @@
 block discarded – undo
67 67
 
68 68
     public function addShop($shop)
69 69
     {
70
-        return $this->shop[]=$shop;
70
+        return $this->shop[] = $shop;
71 71
     }
72 72
 }
Please login to merge, or discard this patch.
lib/Payone/Settings/Data/ConfigFile/PaymentMethod/Abstract.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -41,11 +41,11 @@  discard block
 block discarded – undo
41 41
     protected $title = '';
42 42
 
43 43
     protected $mid = null;
44
-    protected $aid =null;
44
+    protected $aid = null;
45 45
     protected $portalid = null;
46 46
     protected $fee_config = array();
47 47
     protected $min_order_total = null;
48
-    protected $max_order_total =null;
48
+    protected $max_order_total = null;
49 49
     /** @var string */
50 50
     protected $types = null;
51 51
     /** @var string */
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
 
114 114
     public function addFeeConfig($value)
115 115
     {
116
-        return $this->fee_config[]=$value;
116
+        return $this->fee_config[] = $value;
117 117
     }
118 118
 
119 119
     public function setMaxOrderTotal($max_order_total)
Please login to merge, or discard this patch.
lib/Payone/Settings/Data/ConfigFile/PaymentMethod/CashOnDelivery.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
     /**
57 57
      * @param string $active
58 58
      */
59
-    public function setActive( $active)
59
+    public function setActive($active)
60 60
     {
61 61
         $this->active = $active;
62 62
     }
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
     /**
73 73
      * @param string $authorization
74 74
      */
75
-    public function setAuthorization( $authorization)
75
+    public function setAuthorization($authorization)
76 76
     {
77 77
         $this->authorization = $authorization;
78 78
     }
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
     /**
89 89
      * @param string $countries
90 90
      */
91
-    public function setCountries( $countries)
91
+    public function setCountries($countries)
92 92
     {
93 93
         $this->countries = $countries;
94 94
     }
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
     /**
106 106
      * @param string $mode
107 107
      */
108
-    public function setMode( $mode)
108
+    public function setMode($mode)
109 109
     {
110 110
         $this->mode = $mode;
111 111
     }
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
     /**
122 122
      * @param string $newOrderStatus
123 123
      */
124
-    public function setNewOrderStatus( $newOrderStatus)
124
+    public function setNewOrderStatus($newOrderStatus)
125 125
     {
126 126
         $this->newOrderStatus = $newOrderStatus;
127 127
     }
Please login to merge, or discard this patch.
lib/Payone/Settings/Configuration/PaymentMethod.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
     {
41 41
         $constants = $this->getClassConstants('Payone_Enum_ClearingType');
42 42
         
43
-        if($blFlipArray === true) {
43
+        if ($blFlipArray === true) {
44 44
             $constants = array_flip($constants);
45 45
         }
46 46
 
Please login to merge, or discard this patch.
lib/Payone/TransactionStatus/Service/HandleRequest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
             //
99 99
             $response = new Payone_TransactionStatus_Response('TSOK');
100 100
 
101
-            if($request->getClearingtype() == 'cc') {
101
+            if ($request->getClearingtype() == 'cc') {
102 102
                 $this->_handleTransactionId($request);
103 103
             }
104 104
 
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
         $oFactory = new Payone_Core_Model_Factory();
118 118
         $oTransaction = $oFactory->getModelTransaction();
119 119
         $oTransaction->load($oRequest->getReference(), 'reference');
120
-        if($oTransaction->getFrontendApiCall() == 1 && !$oTransaction->getTxid()) {
120
+        if ($oTransaction->getFrontendApiCall() == 1 && !$oTransaction->getTxid()) {
121 121
             $oTransaction->setTxid($oRequest->getTxid());
122 122
             $oTransaction->save();
123 123
         }
Please login to merge, or discard this patch.
lib/Payone/TransactionStatus/Request.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -626,7 +626,7 @@  discard block
 block discarded – undo
626 626
     /**
627 627
      * @param string $clearing_bankaccount
628 628
      */
629
-    public function setClearingBankaccount( $clearing_bankaccount)
629
+    public function setClearingBankaccount($clearing_bankaccount)
630 630
     {
631 631
         $this->clearing_bankaccount = $clearing_bankaccount;
632 632
     }
@@ -642,7 +642,7 @@  discard block
 block discarded – undo
642 642
     /**
643 643
      * @param string $clearing_bankaccountholder
644 644
      */
645
-    public function setClearingBankaccountholder( $clearing_bankaccountholder)
645
+    public function setClearingBankaccountholder($clearing_bankaccountholder)
646 646
     {
647 647
         $this->clearing_bankaccountholder = $clearing_bankaccountholder;
648 648
     }
@@ -658,7 +658,7 @@  discard block
 block discarded – undo
658 658
     /**
659 659
      * @param string $clearing_bankbic
660 660
      */
661
-    public function setClearingBankbic( $clearing_bankbic)
661
+    public function setClearingBankbic($clearing_bankbic)
662 662
     {
663 663
         $this->clearing_bankbic = $clearing_bankbic;
664 664
     }
@@ -674,7 +674,7 @@  discard block
 block discarded – undo
674 674
     /**
675 675
      * @param string $clearing_bankcity
676 676
      */
677
-    public function setClearingBankcity( $clearing_bankcity)
677
+    public function setClearingBankcity($clearing_bankcity)
678 678
     {
679 679
         $this->clearing_bankcity = $clearing_bankcity;
680 680
     }
@@ -690,7 +690,7 @@  discard block
 block discarded – undo
690 690
     /**
691 691
      * @param string $clearing_bankcode
692 692
      */
693
-    public function setClearingBankcode( $clearing_bankcode)
693
+    public function setClearingBankcode($clearing_bankcode)
694 694
     {
695 695
         $this->clearing_bankcode = $clearing_bankcode;
696 696
     }
@@ -706,7 +706,7 @@  discard block
 block discarded – undo
706 706
     /**
707 707
      * @param string $clearing_bankcountry
708 708
      */
709
-    public function setClearingBankcountry( $clearing_bankcountry)
709
+    public function setClearingBankcountry($clearing_bankcountry)
710 710
     {
711 711
         $this->clearing_bankcountry = $clearing_bankcountry;
712 712
     }
@@ -722,7 +722,7 @@  discard block
 block discarded – undo
722 722
     /**
723 723
      * @param string $clearing_bankiban
724 724
      */
725
-    public function setClearingBankiban( $clearing_bankiban)
725
+    public function setClearingBankiban($clearing_bankiban)
726 726
     {
727 727
         $this->clearing_bankiban = $clearing_bankiban;
728 728
     }
@@ -738,7 +738,7 @@  discard block
 block discarded – undo
738 738
     /**
739 739
      * @param string $clearing_bankname
740 740
      */
741
-    public function setClearingBankname( $clearing_bankname)
741
+    public function setClearingBankname($clearing_bankname)
742 742
     {
743 743
         $this->clearing_bankname = $clearing_bankname;
744 744
     }
@@ -754,7 +754,7 @@  discard block
 block discarded – undo
754 754
     /**
755 755
      * @param string $clearing_duedate
756 756
      */
757
-    public function setClearingDuedate( $clearing_duedate)
757
+    public function setClearingDuedate($clearing_duedate)
758 758
     {
759 759
         $this->clearing_duedate = $clearing_duedate;
760 760
     }
@@ -770,7 +770,7 @@  discard block
 block discarded – undo
770 770
     /**
771 771
      * @param string $clearing_instructionnote
772 772
      */
773
-    public function setClearingInstructionnote( $clearing_instructionnote)
773
+    public function setClearingInstructionnote($clearing_instructionnote)
774 774
     {
775 775
         $this->clearing_instructionnote = $clearing_instructionnote;
776 776
     }
@@ -786,7 +786,7 @@  discard block
 block discarded – undo
786 786
     /**
787 787
      * @param string $clearing_legalnote
788 788
      */
789
-    public function setClearingLegalnote( $clearing_legalnote)
789
+    public function setClearingLegalnote($clearing_legalnote)
790 790
     {
791 791
         $this->clearing_legalnote = $clearing_legalnote;
792 792
     }
@@ -802,7 +802,7 @@  discard block
 block discarded – undo
802 802
     /**
803 803
      * @param string $clearing_reference
804 804
      */
805
-    public function setClearingReference( $clearing_reference)
805
+    public function setClearingReference($clearing_reference)
806 806
     {
807 807
         $this->clearing_reference = $clearing_reference;
808 808
     }
Please login to merge, or discard this patch.