Completed
Push — master ( 9704fd...ec4249 )
by John
01:17
created
src/autoload.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
         }
33 33
         $cn = strtolower($class);
34 34
         if (isset($classes[$cn])) {
35
-            require(__DIR__ . $classes[$cn]);
35
+            require(__DIR__.$classes[$cn]);
36 36
         }
37 37
     }
38 38
 );
Please login to merge, or discard this patch.
src/authnet/AuthnetJsonResponse.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -130,11 +130,11 @@  discard block
 block discarded – undo
130 130
     public function __toString()
131 131
     {
132 132
         $output  = '';
133
-        $output .= '<table summary="Authorize.Net Response" id="authnet-response">' . "\n";
134
-        $output .= '<tr>' . "\n\t\t" . '<th colspan="2"><b>Response JSON</b></th>' . "\n" . '</tr>' . "\n";
135
-        $output .= '<tr><td colspan="2"><pre>' . "\n";
136
-        $output .= $this->responseJson . "\n";
137
-        $output .= '</pre></td></tr>' . "\n";
133
+        $output .= '<table summary="Authorize.Net Response" id="authnet-response">'."\n";
134
+        $output .= '<tr>'."\n\t\t".'<th colspan="2"><b>Response JSON</b></th>'."\n".'</tr>'."\n";
135
+        $output .= '<tr><td colspan="2"><pre>'."\n";
136
+        $output .= $this->responseJson."\n";
137
+        $output .= '</pre></td></tr>'."\n";
138 138
         $output .= '</table>';
139 139
 
140 140
         return $output;
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
      */
179 179
     public function isApproved()
180 180
     {
181
-        return $this->isSuccessful() && $this->checkTransactionStatus(self::STATUS_APPROVED) ;
181
+        return $this->isSuccessful() && $this->checkTransactionStatus(self::STATUS_APPROVED);
182 182
     }
183 183
 
184 184
     /**
@@ -188,7 +188,7 @@  discard block
 block discarded – undo
188 188
      */
189 189
     public function isDeclined()
190 190
     {
191
-        return $this->isSuccessful() && $this->checkTransactionStatus(self::STATUS_DECLINED) ;
191
+        return $this->isSuccessful() && $this->checkTransactionStatus(self::STATUS_DECLINED);
192 192
     }
193 193
 
194 194
     /**
Please login to merge, or discard this patch.
src/authnet/AuthnetSim.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@
 block discarded – undo
82 82
             $this->sequence,
83 83
             $this->timestamp,
84 84
             $amount
85
-        ),  $this->transactionKey);
85
+        ), $this->transactionKey);
86 86
     }
87 87
 
88 88
     /**
Please login to merge, or discard this patch.
src/authnet/AuthnetWebhooksResponse.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -60,11 +60,11 @@
 block discarded – undo
60 60
     public function __toString()
61 61
     {
62 62
         $output  = '';
63
-        $output .= '<table summary="Authorize.Net Webhooks Response" id="authnet-response">' . "\n";
64
-        $output .= '<tr>' . "\n\t\t" . '<th colspan="2"><b>Response JSON</b></th>' . "\n" . '</tr>' . "\n";
65
-        $output .= '<tr><td colspan="2"><pre>' . "\n";
66
-        $output .= $this->responseJson . "\n";
67
-        $output .= '</pre></td></tr>' . "\n";
63
+        $output .= '<table summary="Authorize.Net Webhooks Response" id="authnet-response">'."\n";
64
+        $output .= '<tr>'."\n\t\t".'<th colspan="2"><b>Response JSON</b></th>'."\n".'</tr>'."\n";
65
+        $output .= '<tr><td colspan="2"><pre>'."\n";
66
+        $output .= $this->responseJson."\n";
67
+        $output .= '</pre></td></tr>'."\n";
68 68
         $output .= '</table>';
69 69
 
70 70
         return $output;
Please login to merge, or discard this patch.
src/authnet/AuthnetJsonRequest.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -105,16 +105,16 @@  discard block
 block discarded – undo
105 105
     public function __toString()
106 106
     {
107 107
         $output  = '';
108
-        $output .= '<table summary="Authorize.Net Request" id="authnet-request">' . "\n";
109
-        $output .= '<tr>' . "\n\t\t" . '<th colspan="2"><b>Class Parameters</b></th>' . "\n" . '</tr>' . "\n";
110
-        $output .= '<tr>' . "\n\t\t" . '<td><b>API Login ID</b></td><td>' . $this->login . '</td>' . "\n" . '</tr>' . "\n";
111
-        $output .= '<tr>' . "\n\t\t" . '<td><b>Transaction Key</b></td><td>' . $this->transactionKey . '</td>' . "\n" . '</tr>' . "\n";
112
-        $output .= '<tr>' . "\n\t\t" . '<td><b>Authnet Server URL</b></td><td>' . $this->url . '</td>' . "\n" . '</tr>' . "\n";
113
-        $output .= '<tr>' . "\n\t\t" . '<th colspan="2"><b>Request JSON</b></th>' . "\n" . '</tr>' . "\n";
108
+        $output .= '<table summary="Authorize.Net Request" id="authnet-request">'."\n";
109
+        $output .= '<tr>'."\n\t\t".'<th colspan="2"><b>Class Parameters</b></th>'."\n".'</tr>'."\n";
110
+        $output .= '<tr>'."\n\t\t".'<td><b>API Login ID</b></td><td>'.$this->login.'</td>'."\n".'</tr>'."\n";
111
+        $output .= '<tr>'."\n\t\t".'<td><b>Transaction Key</b></td><td>'.$this->transactionKey.'</td>'."\n".'</tr>'."\n";
112
+        $output .= '<tr>'."\n\t\t".'<td><b>Authnet Server URL</b></td><td>'.$this->url.'</td>'."\n".'</tr>'."\n";
113
+        $output .= '<tr>'."\n\t\t".'<th colspan="2"><b>Request JSON</b></th>'."\n".'</tr>'."\n";
114 114
         if (!empty($this->requestJson)) {
115
-            $output .= '<tr><td colspan="2"><pre>' . "\n";
116
-            $output .= $this->requestJson . "\n";
117
-            $output .= '</pre></td></tr>' . "\n";
115
+            $output .= '<tr><td colspan="2"><pre>'."\n";
116
+            $output .= $this->requestJson."\n";
117
+            $output .= '</pre></td></tr>'."\n";
118 118
         }
119 119
         $output .= '</table>';
120 120
 
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
      */
131 131
     public function __set($name, $value)
132 132
     {
133
-        throw new AuthnetCannotSetParamsException('You cannot set parameters directly in ' . __CLASS__ . '.');
133
+        throw new AuthnetCannotSetParamsException('You cannot set parameters directly in '.__CLASS__.'.');
134 134
     }
135 135
 
136 136
     /**
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
     {
172 172
         $this->processor->post($this->url, $this->requestJson);
173 173
 
174
-        if(!$this->processor->error) {
174
+        if (!$this->processor->error) {
175 175
             return $this->processor->response;
176 176
         }
177 177
         $error_message = null;
@@ -180,7 +180,7 @@  discard block
 block discarded – undo
180 180
             $error_message = $this->processor->error_message;
181 181
             $error_code    = $this->processor->error_code;
182 182
         }
183
-        throw new AuthnetCurlException('Connection error: ' . $error_message . ' (' . $error_code . ')');
183
+        throw new AuthnetCurlException('Connection error: '.$error_message.' ('.$error_code.')');
184 184
     }
185 185
 
186 186
     /**
Please login to merge, or discard this patch.
src/authnet/AuthnetWebhook.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -69,15 +69,15 @@
 block discarded – undo
69 69
     public function __toString()
70 70
     {
71 71
         $output  = '';
72
-        $output .= '<table summary="Authorize.Net Webhook" id="authnet-webhook">' . "\n";
73
-        $output .= '<tr>' . "\n\t\t" . '<th colspan="2"><b>Response HTTP Headers</b></th>' . "\n" . '</tr>' . "\n";
74
-        $output .= '<tr><td colspan="2"><pre>' . "\n";
75
-        $output .= var_export($this->headers) . "\n";
76
-        $output .= '</pre></td></tr>' . "\n";
77
-        $output .= '<tr>' . "\n\t\t" . '<th colspan="2"><b>Response JSON</b></th>' . "\n" . '</tr>' . "\n";
78
-        $output .= '<tr><td colspan="2"><pre>' . "\n";
79
-        $output .= $this->webhookJson . "\n";
80
-        $output .= '</pre></td></tr>' . "\n";
72
+        $output .= '<table summary="Authorize.Net Webhook" id="authnet-webhook">'."\n";
73
+        $output .= '<tr>'."\n\t\t".'<th colspan="2"><b>Response HTTP Headers</b></th>'."\n".'</tr>'."\n";
74
+        $output .= '<tr><td colspan="2"><pre>'."\n";
75
+        $output .= var_export($this->headers)."\n";
76
+        $output .= '</pre></td></tr>'."\n";
77
+        $output .= '<tr>'."\n\t\t".'<th colspan="2"><b>Response JSON</b></th>'."\n".'</tr>'."\n";
78
+        $output .= '<tr><td colspan="2"><pre>'."\n";
79
+        $output .= $this->webhookJson."\n";
80
+        $output .= '</pre></td></tr>'."\n";
81 81
         $output .= '</table>';
82 82
 
83 83
         return $output;
Please login to merge, or discard this patch.
src/authnet/AuthnetWebhooksRequest.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -62,17 +62,17 @@  discard block
 block discarded – undo
62 62
     public function __toString()
63 63
     {
64 64
         $output  = '';
65
-        $output .= '<table summary="Authorize.Net Request" id="authnet-request">' . "\n";
66
-        $output .= '<tr>' . "\n\t\t" . '<th colspan="2"><b>Class Parameters</b></th>' . "\n" . '</tr>' . "\n";
67
-        $output .= '<tr>' . "\n\t\t" . '<td><b>Authnet Server URL</b></td><td>' . $this->url . '</td>' . "\n" . '</tr>' . "\n";
68
-        $output .= '<tr>' . "\n\t\t" . '<th colspan="2"><b>Request JSON</b></th>' . "\n" . '</tr>' . "\n";
65
+        $output .= '<table summary="Authorize.Net Request" id="authnet-request">'."\n";
66
+        $output .= '<tr>'."\n\t\t".'<th colspan="2"><b>Class Parameters</b></th>'."\n".'</tr>'."\n";
67
+        $output .= '<tr>'."\n\t\t".'<td><b>Authnet Server URL</b></td><td>'.$this->url.'</td>'."\n".'</tr>'."\n";
68
+        $output .= '<tr>'."\n\t\t".'<th colspan="2"><b>Request JSON</b></th>'."\n".'</tr>'."\n";
69 69
         if (!empty($this->requestJson)) {
70
-            $output .= '<tr><td colspan="2"><pre>' . "\n";
71
-            $output .= $this->requestJson . "\n";
72
-            $output .= '</pre></td></tr>' . "\n";
70
+            $output .= '<tr><td colspan="2"><pre>'."\n";
71
+            $output .= $this->requestJson."\n";
72
+            $output .= '</pre></td></tr>'."\n";
73 73
         }
74 74
         else {
75
-            $output .= '<tr><td colspan="2" style="text-align: center;"><pre>N/A</pre></td></tr>' . "\n";
75
+            $output .= '<tr><td colspan="2" style="text-align: center;"><pre>N/A</pre></td></tr>'."\n";
76 76
         }
77 77
         $output .= '</table>';
78 78
 
@@ -226,7 +226,7 @@  discard block
 block discarded – undo
226 226
      */
227 227
     private function handleResponse()
228 228
     {
229
-        if(!$this->processor->error) {
229
+        if (!$this->processor->error) {
230 230
             return $this->processor->response;
231 231
         }
232 232
         $error_message = null;
@@ -239,7 +239,7 @@  discard block
 block discarded – undo
239 239
                 $error_message = sprintf('(%u) %s: %s', $response->status, $response->reason, $response->message);
240 240
             }
241 241
         }
242
-        throw new AuthnetCurlException('Connection error: ' . $error_message . ' (' . $error_code . ')');
242
+        throw new AuthnetCurlException('Connection error: '.$error_message.' ('.$error_code.')');
243 243
     }
244 244
 
245 245
     /**
Please login to merge, or discard this patch.