Code Duplication    Length = 5-5 lines in 2 locations

src/authnet/AuthnetJsonRequest.php 1 location

@@ 114-118 (lines=5) @@
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
        if (!empty($this->requestJson)) {
115
            $output .= '<tr><td colspan="2"><pre>' . "\n";
116
            $output .= $this->requestJson . "\n";
117
            $output .= '</pre></td></tr>' . "\n";
118
        }
119
        $output .= '</table>';
120
121
        return $output;

src/authnet/AuthnetWebhooksRequest.php 1 location

@@ 69-73 (lines=5) @@
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
        if (!empty($this->requestJson)) {
70
            $output .= '<tr><td colspan="2"><pre>' . "\n";
71
            $output .= $this->requestJson . "\n";
72
            $output .= '</pre></td></tr>' . "\n";
73
        }
74
        $output .= '</table>';
75
76
        return $output;