@@ 86-87 (lines=2) @@ | ||
83 | return App::make('\SOSTheBlack\Moip\Response', [['response' => false, 'error' => 'Error processing XML', 'xml' => null]]); |
|
84 | elseif ($info['http_code'] == "401") |
|
85 | return App::make('\SOSTheBlack\Moip\Response', [['response' => false, 'error' => 'Authentication failed', 'xml' => null]]); |
|
86 | else |
|
87 | return App::make('\SOSTheBlack\Moip\Response', [['response' => false, 'error' => $err, 'xml' => null]]); |
|
88 | } else { |
|
89 | return App::make('\SOSTheBlack\Moip\Response', [['response' => false, 'error' => $error, 'xml' => null]]); |
|
90 | } |
|
@@ 88-90 (lines=3) @@ | ||
85 | return App::make('\SOSTheBlack\Moip\Response', [['response' => false, 'error' => 'Authentication failed', 'xml' => null]]); |
|
86 | else |
|
87 | return App::make('\SOSTheBlack\Moip\Response', [['response' => false, 'error' => $err, 'xml' => null]]); |
|
88 | } else { |
|
89 | return App::make('\SOSTheBlack\Moip\Response', [['response' => false, 'error' => $error, 'xml' => null]]); |
|
90 | } |
|
91 | } |
|
92 | ||
93 | ||
@@ 126-127 (lines=2) @@ | ||
123 | return App::make('\SOSTheBlack\Moip\Response', [['response' => false, 'error' => 'Error processing XML', 'xml' => null]]); |
|
124 | else if ($info['http_code'] == "401") |
|
125 | return App::make('\SOSTheBlack\Moip\Response', [['response' => false, 'error' => 'Authentication failed', 'xml' => null]]); |
|
126 | else |
|
127 | return App::make('\SOSTheBlack\Moip\Response', [['response' => false, 'error' => $err, 'xml' => null]]); |
|
128 | } else { |
|
129 | return App::make('\SOSTheBlack\Moip\Response', [['response' => false, 'error' => $error, 'xml' => null]]); |
|
130 | } |
|
@@ 128-130 (lines=3) @@ | ||
125 | return App::make('\SOSTheBlack\Moip\Response', [['response' => false, 'error' => 'Authentication failed', 'xml' => null]]); |
|
126 | else |
|
127 | return App::make('\SOSTheBlack\Moip\Response', [['response' => false, 'error' => $err, 'xml' => null]]); |
|
128 | } else { |
|
129 | return App::make('\SOSTheBlack\Moip\Response', [['response' => false, 'error' => $error, 'xml' => null]]); |
|
130 | } |
|
131 | } |
|
132 | ||
133 | } |