@@ -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']) |