From 75160b12821f7f4299cce7f0b69c83c1502ae071 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20Luka=20=C5=A0ijanec?= Date: Mon, 27 May 2024 13:08:29 +0200 Subject: 2024-02-19 upstream --- .../stripe/stripe-php/lib/ApiOperations/Update.php | 104 ++++++++++----------- 1 file changed, 52 insertions(+), 52 deletions(-) (limited to 'vendor/stripe/stripe-php/lib/ApiOperations/Update.php') diff --git a/vendor/stripe/stripe-php/lib/ApiOperations/Update.php b/vendor/stripe/stripe-php/lib/ApiOperations/Update.php index 688f080..841b039 100644 --- a/vendor/stripe/stripe-php/lib/ApiOperations/Update.php +++ b/vendor/stripe/stripe-php/lib/ApiOperations/Update.php @@ -1,52 +1,52 @@ -json, $opts); - $obj->setLastResponse($response); - - return $obj; - } - - /** - * @param null|array|string $opts - * - * @throws \Stripe\Exception\ApiErrorException if the request fails - * - * @return static the saved resource - */ - public function save($opts = null) - { - $params = $this->serializeParameters(); - if (\count($params) > 0) { - $url = $this->instanceUrl(); - list($response, $opts) = $this->_request('post', $url, $params, $opts); - $this->refreshFrom($response, $opts); - } - - return $this; - } -} +json, $opts); + $obj->setLastResponse($response); + + return $obj; + } + + /** + * @param null|array|string $opts + * + * @throws \Stripe\Exception\ApiErrorException if the request fails + * + * @return static the saved resource + */ + public function save($opts = null) + { + $params = $this->serializeParameters(); + if (\count($params) > 0) { + $url = $this->instanceUrl(); + list($response, $opts) = $this->_request('post', $url, $params, $opts); + $this->refreshFrom($response, $opts); + } + + return $this; + } +} -- cgit v1.2.3