| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| 1 | <?php |
||
| 33 | public function execute(\MongoDB $db) |
||
| 34 | { |
||
| 35 | $userCollection = $db->selectCollection('user'); |
||
| 36 | |||
| 37 | $userCollection->createIndex(['email_address' => true], ['unique' => true]); |
||
| 38 | |||
| 39 | $userCollection->insert(['username' => 'admin', 'password' => password_hash('topsecret', PASSWORD_DEFAULT), 'email_address' => '[email protected]']); |
||
| 40 | } |
||
| 41 | } |
||
| 42 |