Completed
Push — master ( 7e1aad...2b4924 )
by John
01:53
created
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.