| Total Complexity | 4 | 
| Total Lines | 22 | 
| Duplicated Lines | 0 % | 
| Coverage | 90% | 
| Changes | 0 | ||
| 1 | <?php | ||
| 13 | final class Command extends AbstractPdoCommand | ||
| 14 | { | ||
| 15 | 10 | public function insertWithReturningPks(string $table, array $columns): bool|array | |
| 16 |     { | ||
| 17 | 10 |         if (empty($this->db->getSchema()->getTableSchema($table)?->getPrimaryKey())) { | |
| 18 | 1 |             if ($this->insert($table, $columns)->execute() === 0) { | |
| 19 | return false; | ||
| 20 | } | ||
| 21 | |||
| 22 | 1 | return []; | |
| 23 | } | ||
| 24 | |||
| 25 | 9 | return parent::insertWithReturningPks($table, $columns); | |
| 26 | } | ||
| 27 | |||
| 28 | 1 | public function showDatabases(): array | |
| 35 | } | ||
| 36 | } | ||
| 37 |