Conditions | 3 |
Paths | 3 |
Total Lines | 15 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
41 | public function myInfo() |
||
42 | { |
||
43 | $userScoreWithPositions = $this->gameRatingFacade->getUserScoreWithPosition(); |
||
44 | $myScoreWithPositions = false; |
||
45 | $userId = $this->getUser()->getId(); |
||
46 | foreach ($userScoreWithPositions as $userScoreWithPosition) { |
||
47 | if ($userScoreWithPosition->getUserScore()->getUser()->getId() === $userId) { |
||
48 | $myScoreWithPositions = $userScoreWithPosition; |
||
49 | break; |
||
50 | } |
||
51 | } |
||
52 | return $this->render( |
||
53 | 'game_rating/user_rating/my_info.html.twig', |
||
54 | [ |
||
55 | 'myScoreWithPositions' => $myScoreWithPositions, |
||
56 | ] |
||
59 | } |