| Conditions | 2 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 38 | public function onPostDispatchDeployment(PostDispatchDeploymentEvent $event){ |
||
| 39 | |||
| 40 | $statement = $this->lazyPdo->prepare( |
||
| 41 | 'INSERT INTO deployee_exec_history (`name`, `success`) VALUES(:name, :success)' |
||
| 42 | ); |
||
| 43 | |||
| 44 | $statement->execute([ |
||
| 45 | ':name' => get_class($event->getDeployDefinition()), |
||
| 46 | ':success' => $event->isSuccess() ? 1 : 0 |
||
| 47 | ]); |
||
| 49 | } |