1 | <?php namespace Arcanedev\Stripe; |
||
9 | abstract class StripeOAuth |
||
10 | { |
||
11 | /* ----------------------------------------------------------------- |
||
12 | | Main Methods |
||
13 | | ----------------------------------------------------------------- |
||
14 | */ |
||
15 | |||
16 | /** |
||
17 | * Generates a URL to Stripe's OAuth form. |
||
18 | * |
||
19 | * @param array|null $params |
||
20 | * @param array|null $options |
||
21 | * |
||
22 | * @return string |
||
23 | */ |
||
24 | 2 | public static function authorizeUrl($params = null, $options = null) |
|
40 | |||
41 | /** |
||
42 | * Use an authorization code to connect an account to your platform and fetch the user's credentials. |
||
43 | * |
||
44 | * @param array|null $params |
||
45 | * @param array|null $options |
||
46 | * |
||
47 | * @return \Arcanedev\Stripe\StripeObject |
||
48 | */ |
||
49 | 6 | public static function token($params = null, $options = null) |
|
65 | |||
66 | /** |
||
67 | * Disconnects an account from your platform. |
||
68 | * |
||
69 | * @param array|null $params |
||
70 | * @param array|null $options |
||
71 | * |
||
72 | * @return \Arcanedev\Stripe\StripeObject |
||
73 | */ |
||
74 | 4 | public static function deauthorize($params = null, $options = null) |
|
94 | |||
95 | /* ----------------------------------------------------------------- |
||
96 | | Other Methods |
||
97 | | ----------------------------------------------------------------- |
||
98 | */ |
||
99 | |||
100 | 6 | private static function getClientId($params = null) |
|
121 | } |
||
122 |
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.