1 | <?php |
||
26 | class IndexFinderCommand extends Command |
||
27 | { |
||
28 | /** @var string */ |
||
29 | protected $name = 'couchbase:indexes'; |
||
30 | |||
31 | /** @var string */ |
||
32 | protected $description = 'List all N1QL indexes that are registered for the current bucket.'; |
||
33 | |||
34 | /** @var DatabaseManager */ |
||
35 | protected $databaseManager; |
||
36 | |||
37 | /** @var string */ |
||
38 | protected $defaultDatabase = 'couchbase'; |
||
39 | |||
40 | /** @var string[] */ |
||
41 | private $headers = [ |
||
42 | "name", |
||
43 | "isPrimary", |
||
44 | "type", |
||
45 | "state", |
||
46 | "keyspace", |
||
47 | "namespace", |
||
48 | "fields", |
||
49 | "condition", |
||
50 | ]; |
||
51 | |||
52 | /** |
||
53 | * IndexFinderCommand constructor. |
||
54 | * |
||
55 | * @param DatabaseManager $databaseManager |
||
56 | */ |
||
57 | 1 | public function __construct(DatabaseManager $databaseManager) |
|
62 | |||
63 | /** |
||
64 | * @return string[] |
||
65 | */ |
||
66 | 1 | protected function getArguments() |
|
72 | |||
73 | /** |
||
74 | * Get the console command options. |
||
75 | * |
||
76 | * @return array |
||
77 | */ |
||
78 | 1 | protected function getOptions() |
|
84 | |||
85 | /** |
||
86 | * Execute the console command |
||
87 | */ |
||
88 | 1 | public function fire() |
|
111 | } |
||
112 |
This check looks at variables that are passed out again to other methods.
If the outgoing method call has stricter type requirements than the method itself, an issue is raised.
An additional type check may prevent trouble.