1 | <?php |
||
17 | abstract class Grant |
||
18 | { |
||
19 | /** |
||
20 | * @param Client $http |
||
21 | * @param AuthFactory $factory |
||
22 | * @param Scope $scope |
||
23 | */ |
||
24 | abstract public function auth(GuzzleHttpClient $http, AuthFactory $factory, Scope $scope); |
||
25 | |||
26 | /** |
||
27 | * @return string |
||
28 | */ |
||
29 | 1 | protected static function getPathToOAuthToken(MastodonClient $client) |
|
33 | |||
34 | /** |
||
35 | * @return array |
||
36 | */ |
||
37 | 1 | protected static function getFormParams(AuthFactory $factory) |
|
43 | |||
44 | /** |
||
45 | * @return array |
||
46 | */ |
||
47 | protected static function getFormParamsWithSecret(AuthFactory $factory) |
||
53 | } |
||
54 |
This check marks access to variables or properties that have not been declared yet. While PHP has no explicit notion of declaring a variable, accessing it before a value is assigned to it is most likely a bug.