Completed
Push — master ( ec4249...b5f8c0 )
by John
02:13 queued 45s
created
src/authnet/AuthnetJsonResponse.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -201,8 +201,7 @@
 block discarded – undo
201 201
     {
202 202
         if ($this->transactionInfo instanceof TransactionResponse) {
203 203
             $match = (int) $this->transactionInfo->getTransactionResponseField('ResponseCode') === (int) $status;
204
-        }
205
-        else {
204
+        } else {
206 205
             $match = (int) $this->transactionResponse->responseCode === $status;
207 206
         }
208 207
         return $match;
Please login to merge, or discard this patch.
src/authnet/TransactionResponse.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -101,8 +101,7 @@
 block discarded – undo
101 101
         $value = null;
102 102
         if (is_int($field)) {
103 103
             $value = (isset($this->responseArray[$field])) ? $this->responseArray[$field] : $value;
104
-        }
105
-        else {
104
+        } else {
106 105
             if ($key = array_search($field, $this->fieldMap)) {
107 106
                 $value = $this->responseArray[$key];
108 107
             }
Please login to merge, or discard this patch.
src/authnet/AuthnetWebhooksResponse.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -104,8 +104,7 @@
 block discarded – undo
104 104
             foreach ($this->response->eventTypes as $event) {
105 105
                 $events[] = $event;
106 106
             }
107
-        }
108
-        else {
107
+        } else {
109 108
             foreach ($this->response as $event) {
110 109
                 $events[] = $event->name;
111 110
             }
Please login to merge, or discard this patch.
src/authnet/AuthnetApiFactory.php 1 patch
Braces   +7 added lines, -14 removed lines patch added patch discarded remove patch
@@ -83,14 +83,11 @@  discard block
 block discarded – undo
83 83
     {
84 84
         if ($server === static::USE_PRODUCTION_SERVER) {
85 85
             $url = 'https://api.authorize.net/xml/v1/request.api';
86
-        }
87
-        else if ($server === static::USE_DEVELOPMENT_SERVER) {
86
+        } else if ($server === static::USE_DEVELOPMENT_SERVER) {
88 87
             $url = 'https://apitest.authorize.net/xml/v1/request.api';
89
-        }
90
-        else if ($server === static::USE_AKAMAI_SERVER) {
88
+        } else if ($server === static::USE_AKAMAI_SERVER) {
91 89
             $url = 'https://api2.authorize.net/xml/v1/request.api';
92
-        }
93
-        else {
90
+        } else {
94 91
             throw new AuthnetInvalidServerException('You did not provide a valid server.');
95 92
         }
96 93
         return $url;
@@ -129,11 +126,9 @@  discard block
 block discarded – undo
129 126
     {
130 127
         if ($server === static::USE_PRODUCTION_SERVER) {
131 128
             $url = 'https://secure2.authorize.net/gateway/transact.dll';
132
-        }
133
-        else if ($server === static::USE_DEVELOPMENT_SERVER) {
129
+        } else if ($server === static::USE_DEVELOPMENT_SERVER) {
134 130
             $url = 'https://test.authorize.net/gateway/transact.dll';
135
-        }
136
-        else {
131
+        } else {
137 132
             throw new AuthnetInvalidServerException('You did not provide a valid server.');
138 133
         }
139 134
         return $url;
@@ -184,11 +179,9 @@  discard block
 block discarded – undo
184 179
     {
185 180
         if ($server === static::USE_PRODUCTION_SERVER) {
186 181
             $url = 'https://api.authorize.net/rest/v1/';
187
-        }
188
-        else if ($server === static::USE_DEVELOPMENT_SERVER) {
182
+        } else if ($server === static::USE_DEVELOPMENT_SERVER) {
189 183
             $url = 'https://apitest.authorize.net/rest/v1/';
190
-        }
191
-        else {
184
+        } else {
192 185
             throw new AuthnetInvalidServerException('You did not provide a valid server.');
193 186
         }
194 187
         return $url;
Please login to merge, or discard this patch.
src/authnet/AuthnetWebhooksRequest.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -70,8 +70,7 @@
 block discarded – undo
70 70
             $output .= '<tr><td colspan="2"><pre>' . "\n";
71 71
             $output .= $this->requestJson . "\n";
72 72
             $output .= '</pre></td></tr>' . "\n";
73
-        }
74
-        else {
73
+        } else {
75 74
             $output .= '<tr><td colspan="2" style="text-align: center;"><pre>N/A</pre></td></tr>' . "\n";
76 75
         }
77 76
         $output .= '</table>';
Please login to merge, or discard this patch.