Completed
Push — master ( c54b03...410b4d )
by Florian
10s
created
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.
lib/Payone/Protocol/Logger/Log4php.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@
 block discarded – undo
85 85
             return FALSE;
86 86
         }
87 87
 
88
-        $sFullLogMessage = date('[Y-m-d H:i:s] ').strtoupper($level).' - '.$message.PHP_EOL;
88
+        $sFullLogMessage = date('[Y-m-d H:i:s] ') . strtoupper($level) . ' - ' . $message . PHP_EOL;
89 89
         error_log($sFullLogMessage, 3, $fileName);
90 90
         
91 91
         return true;
Please login to merge, or discard this patch.
lib/Payone/Api/Request/Parameter/Authorization/PersonalData.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
     }
96 96
 
97 97
     /**
98
-     * @return string
98
+     * @return integer
99 99
      */
100 100
     public function getBirthday()
101 101
     {
@@ -259,7 +259,7 @@  discard block
 block discarded – undo
259 259
     }
260 260
 
261 261
     /**
262
-     * @return string
262
+     * @return integer
263 263
      */
264 264
     public function getUserid()
265 265
     {
Please login to merge, or discard this patch.
lib/Payone/Api/Request/Parameter/CreateAccess/PersonalData.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
     }
96 96
 
97 97
     /**
98
-     * @return string
98
+     * @return integer
99 99
      */
100 100
     public function getBirthday()
101 101
     {
@@ -259,7 +259,7 @@  discard block
 block discarded – undo
259 259
     }
260 260
 
261 261
     /**
262
-     * @return string
262
+     * @return integer
263 263
      */
264 264
     public function getUserid()
265 265
     {
Please login to merge, or discard this patch.
lib/Payone/Api/Request/Parameter/Paydata/DataItem.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,6 @@
 block discarded – undo
30 30
     protected $data = NULL;
31 31
 
32 32
     /**
33
-     * @param int $key
34 33
      * @return array
35 34
      */
36 35
     public function toArray()
Please login to merge, or discard this patch.
lib/Payone/Settings/Factory.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
     }
54 54
 
55 55
     /**
56
-     * @param $key
56
+     * @param string $key
57 57
      * @return Payone_TransactionStatus_Service_HandleRequest
58 58
      * @throws Exception
59 59
      */
Please login to merge, or discard this patch.
lib/Payone/Api/Service/Verification/Consumerscore.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -100,8 +100,7 @@
 block discarded – undo
100 100
 
101 101
             // Protocol
102 102
             $this->protocol($request, $response);
103
-        }
104
-        catch (Exception $e) {
103
+        } catch (Exception $e) {
105 104
             $this->protocolException($e, $request);
106 105
             throw $e;
107 106
         }
Please login to merge, or discard this patch.
lib/Payone/Api/Service/Verification/AddressCheck.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -100,8 +100,7 @@
 block discarded – undo
100 100
 
101 101
             // Protocol
102 102
             $this->protocol($request, $response);
103
-        }
104
-        catch (Exception $e) {
103
+        } catch (Exception $e) {
105 104
             $this->protocolException($e, $request);
106 105
             throw $e;
107 106
         }
Please login to merge, or discard this patch.
lib/Payone/Api/Service/Verification/3dsCheck.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -100,8 +100,7 @@
 block discarded – undo
100 100
 
101 101
             // Protocol
102 102
             $this->protocol($request, $response);
103
-        }
104
-        catch (Exception $e) {
103
+        } catch (Exception $e) {
105 104
             $this->protocolException($e, $request);
106 105
             throw $e;
107 106
         }
Please login to merge, or discard this patch.