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 | 1 | public function showDatabases(): array |
|
22 | { |
||
23 | 1 | $sql = <<<SQL |
|
24 | SELECT [name] FROM [sys].[databases] WHERE [name] NOT IN ('master', 'tempdb', 'model', 'msdb') |
||
25 | 1 | SQL; |
|
26 | |||
27 | 1 | return $this->setSql($sql)->queryColumn(); |
|
28 | } |
||
29 | |||
30 | /** |
||
31 | * @psalm-suppress UnusedClosureParam |
||
32 | * |
||
33 | * @throws Exception |
||
34 | * @throws Throwable |
||
35 | */ |
||
36 | 614 | protected function internalExecute(string|null $rawSql): void |
|
61 | } |
||
62 | } |
||
63 | } |
||
64 | } |
||
65 | |||
66 | 638 | 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.