Passed
Pull Request — main (#4)
by
unknown
09:56
created
src/Message/BaseRequest.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
 
34 34
     protected function getAuthorization()
35 35
     {
36
-        return base64_encode($this->getApiUsername() . ':' . $this->getApiKey());
36
+        return base64_encode($this->getApiUsername().':'.$this->getApiKey());
37 37
     }
38 38
 
39 39
     // Merchant Reference
@@ -81,8 +81,8 @@  discard block
 block discarded – undo
81 81
             'oxipay', 'visacheckout', 'wechat'
82 82
         ];
83 83
 
84
-        foreach ( $list as $method ) {
85
-            if ( !in_array($method, $options) ) {
84
+        foreach ($list as $method) {
85
+            if (!in_array($method, $options)) {
86 86
                 throw new InvalidRequestException("Unknown payment method: {$method}");
87 87
             }
88 88
         }
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
             'resubmission', 'reauthorisation', 'delayedcharges', 'noshow'
145 145
         ];
146 146
 
147
-        if ( ! in_array($value, $options) ) {
147
+        if (!in_array($value, $options)) {
148 148
             throw new InvalidRequestException("Invalid option '{$value}' set for StoredCardIndicator.");
149 149
         }
150 150
 
@@ -176,7 +176,7 @@  discard block
 block discarded – undo
176 176
             'twomonthly', 'threemonthly', 'fourmonthly', 'sixmonthly', 'annually'
177 177
         ];
178 178
 
179
-        if ( ! in_array($value, $options) ) {
179
+        if (!in_array($value, $options)) {
180 180
             throw new InvalidRequestException("Invalid option '{$value}' set for RecurringFrequency.");
181 181
         }
182 182
 
@@ -205,6 +205,6 @@  discard block
 block discarded – undo
205 205
     protected function getEndpoint($path = '')
206 206
     {
207 207
         $base = $this->getTestMode() ? self::ENDPOINT_TEST : self::ENDPOINT_LIVE;
208
-        return $base . '/' . $path;
208
+        return $base.'/'.$path;
209 209
     }
210 210
 }
211 211
\ No newline at end of file
Please login to merge, or discard this patch.