| Conditions | 2 |
| Paths | 10 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 26 | private function checkIfMayCreateTrigger(): bool |
||
| 27 | { |
||
| 28 | try { |
||
| 29 | $this->connection->executeQuery($this->getCreateTableQuery()); |
||
| 30 | $this->connection->executeQuery($this->getTriggerQuery()); |
||
| 31 | } catch (\Doctrine\DBAL\DBALException $exception) { |
||
| 32 | return false; |
||
| 33 | } finally { |
||
| 34 | $this->connection->executeQuery('DROP TABLE IF EXISTS example'); |
||
| 35 | } |
||
| 36 | |||
| 37 | return true; |
||
| 38 | } |
||
| 59 |