Skip to content

Commit

Permalink
Rename remaining $options to $opts
Browse files Browse the repository at this point in the history
  • Loading branch information
ob-stripe committed Jan 7, 2020
1 parent 2460ad5 commit 8be1998
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions lib/Customer.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,14 @@ public static function getSavedNestedResources()

/**
* @param array|null $params
* @param array|string|null $options
* @param array|string|null $opts
*
* @return Customer The updated customer.
*/
public function deleteDiscount($params = null, $options = null)
public function deleteDiscount($params = null, $opts = null)
{
$url = $this->instanceUrl() . '/discount';
list($response, $opts) = $this->_request('delete', $url, $params, $options);
list($response, $opts) = $this->_request('delete', $url, $params, $opts);
$this->refreshFrom(['discount' => null], $opts, true);
}

Expand Down
6 changes: 3 additions & 3 deletions lib/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,15 @@ public static function classUrl()

/**
* @param array|null $params
* @param array|string|null $options
* @param array|string|null $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
* @return \Stripe\File The created resource.
*/
public static function create($params = null, $options = null)
public static function create($params = null, $opts = null)
{
$opts = \Stripe\Util\RequestOptions::parse($options);
$opts = \Stripe\Util\RequestOptions::parse($opts);
if (is_null($opts->apiBase)) {
$opts->apiBase = Stripe::$apiUploadBase;
}
Expand Down

0 comments on commit 8be1998

Please sign in to comment.