| Total Complexity | 11 |
| Total Lines | 47 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | final class Command extends AbstractCommandPDO |
||
| 19 | { |
||
| 20 | 1 | public function showDatabases(): array |
|
| 21 | { |
||
| 22 | 1 | $sql = <<<SQL |
|
| 23 | SELECT datname FROM pg_database WHERE datistemplate = false AND datname NOT IN ('postgres', 'template0', 'template1') |
||
| 24 | 1 | SQL; |
|
| 25 | |||
| 26 | 1 | return $this->setSql($sql)->queryColumn(); |
|
| 27 | } |
||
| 28 | |||
| 29 | 285 | protected function getQueryBuilder(): QueryBuilderInterface |
|
| 30 | { |
||
| 31 | 285 | return $this->db->getQueryBuilder(); |
|
| 32 | } |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @psalm-suppress UnusedClosureParam |
||
| 36 | * |
||
| 37 | * @throws \Yiisoft\Db\Exception\Exception |
||
| 38 | * @throws Throwable |
||
| 39 | */ |
||
| 40 | 260 | protected function internalExecute(string|null $rawSql): void |
|
| 65 | } |
||
| 66 | } |
||
| 67 | } |
||
| 70 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.