1 | <?php |
||
11 | class KeysCommand extends Command |
||
12 | { |
||
13 | /** |
||
14 | * The name and signature of the console command. |
||
15 | * |
||
16 | * @var string |
||
17 | */ |
||
18 | protected $signature = 'rinvex:oauth:keys |
||
19 | {--force : Overwrite keys they already exist} |
||
20 | {--length=4096 : The length of the private key}'; |
||
21 | |||
22 | /** |
||
23 | * The console command description. |
||
24 | * |
||
25 | * @var string |
||
26 | */ |
||
27 | protected $description = 'Create the encryption keys for API authentication'; |
||
28 | |||
29 | /** |
||
30 | * Execute the console command. |
||
31 | * |
||
32 | * @param \phpseclib\Crypt\RSA $rsa |
||
33 | * |
||
34 | * @return void |
||
35 | */ |
||
36 | public function handle(RSA $rsa) |
||
56 | |||
57 | /** |
||
58 | * The location of the encryption keys. |
||
59 | * |
||
60 | * @param string $file |
||
61 | * |
||
62 | * @return string |
||
63 | */ |
||
64 | public static function keyPath($file) |
||
72 | } |
||
73 |
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.