Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
19 | public function index() |
||
20 | { |
||
21 | $user = $this->getUser(); |
||
22 | $transactions = $this->getDoctrine()->getRepository(Transaction::class)->findBy( |
||
23 | ['user_id' => $user->getUsername()], |
||
24 | ['date' => 'DESC'] |
||
25 | ); |
||
26 | return $this->render('views/history.html.twig', [ |
||
27 | 'full_name' => $user->getFullName(), |
||
28 | 'transactions' => $transactions |
||
29 | ]); |
||
32 |