1 | <?php |
||
5 | abstract class OAuth |
||
6 | { |
||
7 | /** |
||
8 | * Generates a URL to Stripe's OAuth form. |
||
9 | * |
||
10 | * @param array|null $params |
||
11 | * @param array|null $opts |
||
12 | * |
||
13 | * @return string The URL to Stripe's OAuth form. |
||
14 | */ |
||
15 | public static function authorizeUrl($params = null, $opts = null) |
||
29 | |||
30 | /** |
||
31 | * Use an authoriztion code to connect an account to your platform and |
||
32 | * fetch the user's credentials. |
||
33 | * |
||
34 | * @param array|null $params |
||
35 | * @param array|null $opts |
||
36 | * |
||
37 | * @return StripeObject Object containing the response from the API. |
||
38 | */ |
||
39 | public static function token($params = null, $opts = null) |
||
51 | |||
52 | /** |
||
53 | * Disconnects an account from your platform. |
||
54 | * |
||
55 | * @param array|null $params |
||
56 | * @param array|null $opts |
||
57 | * |
||
58 | * @return StripeObject Object containing the response from the API. |
||
59 | */ |
||
60 | public static function deauthorize($params = null, $opts = null) |
||
74 | |||
75 | private static function _getClientId($params = null) |
||
93 | } |
||
94 |
This checks looks for assignemnts to variables using the
list(...)
function, where not all assigned variables are subsequently used.Consider the following code example.
Only the variables
$a
and$c
are used. There was no need to assign$b
.Instead, the list call could have been.