| Conditions | 1 |
| Paths | 1 |
| Total Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 34 | private function createGuestSession(string $token, EntityManager $manager): void |
||
| 35 | { |
||
| 36 | $date = new \DateTimeImmutable('+1 week'); |
||
| 37 | $manager->getConnection()->exec("INSERT INTO guest_sessions (id, token, expires_at) VALUES (NEXTVAL('guest_sessions_id_seq'), '{$token}', '{$date->format('m-d-Y')}');"); |
||
| 38 | } |
||
| 39 | } |
||
| 40 |