File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change 2
2
3
3
namespace Omnipay \Braintree \Message ;
4
4
5
- use Braintree \Exception \NotFound ;
6
- use Symfony \Component \HttpKernel \Exception \NotFoundHttpException ;
7
-
8
5
/**
9
6
* Find Customer Request
10
7
* @method CustomerResponse send()
@@ -22,16 +19,11 @@ public function getData()
22
19
* @param mixed $data
23
20
*
24
21
* @return \Omnipay\Braintree\Message\CustomerResponse|\Omnipay\Common\Message\ResponseInterface
25
- * @throws \Symfony\Component\HttpKernel\Exception\NotFoundHttpException
26
22
*/
27
23
public function sendData ($ data )
28
24
{
29
- try {
30
- $ response = $ this ->braintree ->customer ()->find ($ this ->getCustomerId ());
31
- } catch (NotFound $ exception ) {
32
- throw new NotFoundHttpException ($ exception ->getMessage ());
33
- }
25
+ $ response = $ this ->braintree ->customer ()->find ($ this ->getCustomerId ());
34
26
35
27
return $ this ->response = new CustomerResponse ($ this , $ response );
36
28
}
37
- }
29
+ }
You can’t perform that action at this time.
0 commit comments