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