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 22
33namespace Omnipay \Braintree \Message ;
44
5- use Braintree \Exception \NotFound ;
6- use Symfony \Component \HttpKernel \Exception \NotFoundHttpException ;
7-
85/**
96 * Find Customer Request
107 * @method CustomerResponse send()
@@ -22,16 +19,11 @@ public function getData()
2219 * @param mixed $data
2320 *
2421 * @return \Omnipay\Braintree\Message\CustomerResponse|\Omnipay\Common\Message\ResponseInterface
25- * @throws \Symfony\Component\HttpKernel\Exception\NotFoundHttpException
2622 */
2723 public function sendData ($ data )
2824 {
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 ());
3426
3527 return $ this ->response = new CustomerResponse ($ this , $ response );
3628 }
37- }
29+ }
You can’t perform that action at this time.
0 commit comments