| Total Complexity | 11 |
| Total Lines | 50 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 3 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 19 | final class CommandPDO extends AbstractCommandPDO |
||
| 20 | { |
||
| 21 | public function showDatabases(): array |
||
| 22 | { |
||
| 23 | $sql = <<<SQL |
||
| 24 | SELECT [name] FROM [sys].[databases] WHERE [name] NOT IN ('master', 'tempdb', 'model', 'msdb') |
||
| 25 | SQL; |
||
| 26 | |||
| 27 | 613 | return $this->setSql($sql)->queryColumn(); |
|
| 28 | } |
||
| 29 | 613 | ||
| 30 | /** |
||
| 31 | 613 | * @psalm-suppress UnusedClosureParam |
|
| 32 | * |
||
| 33 | * @throws Exception |
||
| 34 | 613 | * @throws Throwable |
|
| 35 | 613 | */ |
|
| 36 | 613 | protected function internalExecute(string|null $rawSql): void |
|
| 61 | } |
||
| 62 | } |
||
| 63 | } |
||
| 64 | } |
||
| 65 | |||
| 66 | protected function getQueryBuilder(): QueryBuilderInterface |
||
| 71 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.