Completed
Push — master ( 5159f0...6358b0 )
by Hannes
02:18 queued 01:45
created
lib/Payone/TransactionStatus/Service/HandleRequest.php 2 patches
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.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -104,8 +104,7 @@
 block discarded – undo
104 104
 
105 105
             // Protocol
106 106
             $this->protocol($request, $response);
107
-        }
108
-        catch (Exception $e) {
107
+        } catch (Exception $e) {
109 108
             $this->protocolException($e, $request);
110 109
             throw $e;
111 110
         }
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.
lib/Payone/TransactionStatus/Enum/Txaction.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,6 +42,6 @@
 block discarded – undo
42 42
     const REMINDER = 'reminder';
43 43
     const VAUTHORIZATION = 'vauthorization';
44 44
     const VSETTLEMENT = 'vsettlement';
45
-    const TRANSFER= 'transfer';
46
-    const INVOICE= 'invoice';
45
+    const TRANSFER = 'transfer';
46
+    const INVOICE = 'invoice';
47 47
 }
Please login to merge, or discard this patch.
lib/Payone/TransactionStatus/Request/Abstract.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
      */
63 63
     public function __toString()
64 64
     {
65
-        if($this->applyFilters) {
65
+        if ($this->applyFilters) {
66 66
             $result = $this->applyFilters->apply($this->toArray());
67 67
         } else {
68 68
             $protocolFactory     = new Payone_Protocol_Factory();
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -83,8 +83,7 @@
 block discarded – undo
83 83
         {
84 84
             if ($data === null) {
85 85
                 continue;
86
-            }
87
-            elseif ($data instanceof Payone_Protocol_Service_ApplyFilters == false) {
86
+            } elseif ($data instanceof Payone_Protocol_Service_ApplyFilters == false) {
88 87
                 $result[$key] = $data;
89 88
             }
90 89
         }
Please login to merge, or discard this patch.
lib/Payone/Api/Response/Abstract.php 2 patches
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -75,8 +75,7 @@
 block discarded – undo
75 75
         foreach ($this as $key => $data) {
76 76
             if ($data === null) {
77 77
                 continue;
78
-            }
79
-            elseif ($data instanceof Payone_Protocol_Service_ApplyFilters == false) {
78
+            } elseif ($data instanceof Payone_Protocol_Service_ApplyFilters == false) {
80 79
                 $result[$key] = $data;
81 80
             }
82 81
         }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@
 block discarded – undo
103 103
             return $aValue;
104 104
         }
105 105
 
106
-        if($this->applyFilters) {
106
+        if ($this->applyFilters) {
107 107
             $result = $this->applyFilters->apply($aValue);
108 108
         } else {
109 109
             $protocolFactory     = new Payone_Protocol_Factory();
Please login to merge, or discard this patch.
lib/Payone/Api/Response/AddressCheck/Valid.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -159,7 +159,7 @@
 block discarded – undo
159 159
     public function setStreet($street)
160 160
     {
161 161
         $sNewStreet2 = '';
162
-        if(stripos($street, '\n') !== false) {//MAGE-195 - split address by the \n and write it in the 2. address field
162
+        if (stripos($street, '\n') !== false) {//MAGE-195 - split address by the \n and write it in the 2. address field
163 163
             $aStreetExpl = explode('\n', $street);
164 164
             
165 165
             $street = $aStreetExpl[0];
Please login to merge, or discard this patch.
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -73,8 +73,7 @@  discard block
 block discarded – undo
73 73
     {
74 74
         if ($this->secstatus == Payone_Api_Enum_AddressCheckSecstatus::ADDRESS_CORRECT) {
75 75
             return TRUE;
76
-        }
77
-        else {
76
+        } else {
78 77
             return FALSE;
79 78
         }
80 79
     }
@@ -86,8 +85,7 @@  discard block
 block discarded – undo
86 85
     {
87 86
         if ($this->secstatus == Payone_Api_Enum_AddressCheckSecstatus::ADDRESS_CORRECTABLE) {
88 87
             return TRUE;
89
-        }
90
-        else {
88
+        } else {
91 89
             return FALSE;
92 90
         }
93 91
     }
@@ -99,8 +97,7 @@  discard block
 block discarded – undo
99 97
     {
100 98
         if ($this->secstatus == Payone_Api_Enum_AddressCheckSecstatus::ADDRESS_NONE_CORRECTABLE) {
101 99
             return TRUE;
102
-        }
103
-        else {
100
+        } else {
104 101
             return FALSE;
105 102
         }
106 103
     }
Please login to merge, or discard this patch.
lib/Payone/Api/Response/Parameter/Abstract.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
     {
54 54
         $result = array();
55 55
         foreach ($this as $key => $data) {
56
-            if (!is_array($data) and ! is_object($data)) {
56
+            if (!is_array($data) and !is_object($data)) {
57 57
                 $result[$key] = $data;
58 58
             } else if ($data instanceof Payone_Api_Response_Parameter_Interface) {
59 59
                 /**
Please login to merge, or discard this patch.
lib/Payone/Api/Response/Management/GetInvoice.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -60,8 +60,7 @@
 block discarded – undo
60 60
     {
61 61
         if ($this->isError()) {
62 62
             $result = parent::__toString();
63
-        }
64
-        else {
63
+        } else {
65 64
             $stringArray = array('status=' . $this->getStatus(), 'data=PDF-Content');
66 65
             $result = implode('|', $stringArray);
67 66
         }
Please login to merge, or discard this patch.
lib/Payone/Api/Service/Payment/Debit.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -73,8 +73,7 @@
 block discarded – undo
73 73
             $response = $this->getMapperResponse()->map($responseRaw);
74 74
 
75 75
             $this->protocol($request, $response);
76
-        }
77
-        catch (Exception $e) {
76
+        } catch (Exception $e) {
78 77
             $this->protocolException($e, $request);
79 78
             throw $e;
80 79
         }
Please login to merge, or discard this patch.