Completed
Push — master ( 4b710d...0ce398 )
by Florian
03:51
created
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/Protocol/Service/ApplyFilters.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
         $stringArray = array();
77 77
 
78 78
         foreach ($objectArray as $key => $value) {
79
-            if($value instanceof Payone_Api_Response_Parameter_Interface){
79
+            if ($value instanceof Payone_Api_Response_Parameter_Interface) {
80 80
                 $stringArray[] = $this->apply($value->toArray());
81 81
             } elseif ($value !== null) {
82 82
                 $filter = $this->getFilterConfig($key);
@@ -86,9 +86,9 @@  discard block
 block discarded – undo
86 86
                 }
87 87
             }
88 88
 
89
-            if(is_array($value)) {
89
+            if (is_array($value)) {
90 90
                 foreach ($value as $sArrayKey => $sArrayValue) {
91
-                    $stringArray[] = $key.'_'.$sArrayKey.'='.$sArrayValue;
91
+                    $stringArray[] = $key . '_' . $sArrayKey . '=' . $sArrayValue;
92 92
                 }
93 93
             } else {
94 94
                 $stringArray[] = $key . '=' . $value;
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
     public function setFilters(array $filters)
127 127
     {
128 128
         $this->filters = array();
129
-        foreach($filters as $key => /** @var $value Payone_Protocol_Filter_Interface */ $value)
129
+        foreach ($filters as $key => /** @var $value Payone_Protocol_Filter_Interface */ $value)
130 130
         {
131 131
             $this->addFilter($value);
132 132
         }
@@ -160,8 +160,8 @@  discard block
 block discarded – undo
160 160
      */
161 161
     public function getFilterConfig($key)
162 162
     {
163
-        foreach($this->filters_config as $filter => $config) {
164
-            if(in_array($key, $config)) {
163
+        foreach ($this->filters_config as $filter => $config) {
164
+            if (in_array($key, $config)) {
165 165
                 return $this->getFilter($filter);
166 166
             }
167 167
         }
Please login to merge, or discard this patch.