@@ -111,7 +111,7 @@ |
||
111 | 111 | $query->setParameter('rank', $i); |
112 | 112 | $row = $query->getOneOrNullResult(); |
113 | 113 | if ($row) { |
114 | - $data["gameRank$i"] = $row['nb']; |
|
114 | + $data["gamerank$i"] = $row['nb']; |
|
115 | 115 | } |
116 | 116 | } |
117 | 117 |
@@ -71,7 +71,7 @@ |
||
71 | 71 | $query->setParameter('rank', $i); |
72 | 72 | $result = $query->getResult(); |
73 | 73 | foreach ($result as $row) { |
74 | - $data["chartRank$i"][$row['id']] = $row['nb']; |
|
74 | + $data["chartrank$i"][$row['id']] = $row['nb']; |
|
75 | 75 | } |
76 | 76 | } |
77 | 77 |
@@ -111,7 +111,7 @@ |
||
111 | 111 | $query->setParameter('rank', $i); |
112 | 112 | $row = $query->getOneOrNullResult(); |
113 | 113 | if ($row) { |
114 | - $data["gameRank$i"] = $row['nb']; |
|
114 | + $data["gamerank$i"] = $row['nb']; |
|
115 | 115 | } |
116 | 116 | } |
117 | 117 |
@@ -11,8 +11,7 @@ |
||
11 | 11 | |
12 | 12 | public function __construct( |
13 | 13 | GameService $gameService, PlayerChartRepository $playerChartRepository, |
14 | - ) |
|
15 | - { |
|
14 | + ) { |
|
16 | 15 | $this->gameService = $gameService; |
17 | 16 | $this->playerChartRepository = $playerChartRepository; |
18 | 17 | } |
@@ -126,7 +126,7 @@ |
||
126 | 126 | */ |
127 | 127 | public function preRemove(PlayerChart $playerChart, LifecycleEventArgs $event): void |
128 | 128 | { |
129 | - // Chart |
|
129 | + // Chart |
|
130 | 130 | $chart = $playerChart->getChart(); |
131 | 131 | $chart->setNbPost($chart->getNbPost() - 1); |
132 | 132 | $chart->setStatusPlayer(ChartStatus::STATUS_MAJ); |
@@ -109,7 +109,7 @@ |
||
109 | 109 | $playerChart |
110 | 110 | ->setNbEqual($nbEqual) |
111 | 111 | ->setRank($rank) |
112 | - ->setPointChart((int)( |
|
112 | + ->setPointChart((int) ( |
|
113 | 113 | array_sum( |
114 | 114 | array_slice(array_values($pointsChart), $playerChart->getRank() - 1, $playerChart->getNbEqual()) |
115 | 115 | ) / $playerChart->getNbEqual() |
@@ -65,9 +65,9 @@ |
||
65 | 65 | { |
66 | 66 | $filter |
67 | 67 | ->add('player', ModelFilter::class, [ |
68 | - 'field_type' => ModelAutocompleteType::class, |
|
69 | - 'field_options' => ['property'=>'pseudo'], |
|
70 | - 'label' => 'label.player' |
|
68 | + 'field_type' => ModelAutocompleteType::class, |
|
69 | + 'field_options' => ['property'=>'pseudo'], |
|
70 | + 'label' => 'label.player' |
|
71 | 71 | ]) |
72 | 72 | ->add('badge.game.libGameFr', null, ['label' => 'label.game.fr']) |
73 | 73 | ->add('badge.game.libGameEn', null, ['label' => 'label.game.en']) |