Completed
Branch master (e11220)
by John
02:37
created
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/AuthnetWebhooksRequest.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -62,14 +62,14 @@  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
         $output .= '</table>';
75 75
 
@@ -223,7 +223,7 @@  discard block
 block discarded – undo
223 223
      */
224 224
     private function handleResponse()
225 225
     {
226
-        if(!$this->processor->error) {
226
+        if (!$this->processor->error) {
227 227
             return $this->processor->response;
228 228
         }
229 229
         $error_message = null;
@@ -236,7 +236,7 @@  discard block
 block discarded – undo
236 236
                 $error_message = sprintf('(%u) %s: %s', $response->status, $response->reason, $response->message);
237 237
             }
238 238
         }
239
-        throw new AuthnetCurlException('Connection error: ' . $error_message . ' (' . $error_code . ')');
239
+        throw new AuthnetCurlException('Connection error: '.$error_message.' ('.$error_code.')');
240 240
     }
241 241
 
242 242
     /**
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.