@@ -81,11 +81,11 @@ discard block |
||
| 81 | 81 | } |
| 82 | 82 | } |
| 83 | 83 | |
| 84 | - /** |
|
| 85 | - * @param PlayerChart $playerChart |
|
| 86 | - * @param LifecycleEventArgs $event |
|
| 87 | - * @throws ORMException |
|
| 88 | - */ |
|
| 84 | + /** |
|
| 85 | + * @param PlayerChart $playerChart |
|
| 86 | + * @param LifecycleEventArgs $event |
|
| 87 | + * @throws ORMException |
|
| 88 | + */ |
|
| 89 | 89 | public function postUpdate(PlayerChart $playerChart, LifecycleEventArgs $event): void |
| 90 | 90 | { |
| 91 | 91 | $em = $event->getObjectManager(); |
@@ -125,7 +125,7 @@ discard block |
||
| 125 | 125 | */ |
| 126 | 126 | public function preRemove(PlayerChart $playerChart, LifecycleEventArgs $event): void |
| 127 | 127 | { |
| 128 | - // Chart |
|
| 128 | + // Chart |
|
| 129 | 129 | $chart = $playerChart->getChart(); |
| 130 | 130 | $chart->setNbPost($chart->getNbPost() - 1); |
| 131 | 131 | $chart->setStatusPlayer(Chart::STATUS_MAJ); |
@@ -123,7 +123,7 @@ |
||
| 123 | 123 | * @param PlayerChart $playerChart |
| 124 | 124 | * @param LifecycleEventArgs $event |
| 125 | 125 | */ |
| 126 | - public function preRemove(PlayerChart $playerChart, LifecycleEventArgs $event): void |
|
| 126 | + public function preRemove(PlayerChart $playerChart, LifecycleEventArgs $event): void |
|
| 127 | 127 | { |
| 128 | 128 | // Chart |
| 129 | 129 | $chart = $playerChart->getChart(); |
@@ -20,10 +20,10 @@ |
||
| 20 | 20 | } |
| 21 | 21 | } |
| 22 | 22 | |
| 23 | - /** |
|
| 24 | - * @param Group $group |
|
| 25 | - * @param PreUpdateEventArgs $event |
|
| 26 | - */ |
|
| 23 | + /** |
|
| 24 | + * @param Group $group |
|
| 25 | + * @param PreUpdateEventArgs $event |
|
| 26 | + */ |
|
| 27 | 27 | public function preUpdate(Group $group, PreUpdateEventArgs $event) |
| 28 | 28 | { |
| 29 | 29 | if ($group->getLibGroupFr() == null) { |
@@ -14,7 +14,7 @@ |
||
| 14 | 14 | |
| 15 | 15 | private GameOfDayManager $gameOfDayManager; |
| 16 | 16 | |
| 17 | - public function __construct( GameOfDayManager $gameOfDayManager) |
|
| 17 | + public function __construct(GameOfDayManager $gameOfDayManager) |
|
| 18 | 18 | { |
| 19 | 19 | $this->gameOfDayManager = $gameOfDayManager; |
| 20 | 20 | parent::__construct(); |
@@ -34,8 +34,8 @@ |
||
| 34 | 34 | */ |
| 35 | 35 | public function __construct($width, $height, $trueColor = true) |
| 36 | 36 | { |
| 37 | - $width = (int)$width; |
|
| 38 | - $height = (int)$height; |
|
| 37 | + $width = (int) $width; |
|
| 38 | + $height = (int) $height; |
|
| 39 | 39 | |
| 40 | 40 | if ($trueColor) { |
| 41 | 41 | $this->picture = imagecreatetruecolor($width, $height); |
@@ -51,7 +51,7 @@ |
||
| 51 | 51 | |
| 52 | 52 | $nbRequest = $this->em->getRepository('VideoGamesRecords\CoreBundle\Entity\ProofRequest')->getNbRequestFromToDay($player); |
| 53 | 53 | if ($nbRequest >= $nb) { |
| 54 | - throw new PostException(sprintf($this->translator->trans('proof.request.send.refuse'), $nb)); |
|
| 54 | + throw new PostException(sprintf($this->translator->trans('proof.request.send.refuse'), $nb)); |
|
| 55 | 55 | } |
| 56 | 56 | $request->setPlayerRequesting($player); |
| 57 | 57 | } |
@@ -19,7 +19,7 @@ discard block |
||
| 19 | 19 | private EntityManagerInterface $em; |
| 20 | 20 | private TranslatorInterface $translator; |
| 21 | 21 | |
| 22 | - public function __construct(TokenStorageInterface $tokenStorage, EntityManagerInterface $em, TranslatorInterface $translator) |
|
| 22 | + public function __construct(TokenStorageInterface $tokenStorage, EntityManagerInterface $em, TranslatorInterface $translator) |
|
| 23 | 23 | { |
| 24 | 24 | $this->tokenStorage = $tokenStorage; |
| 25 | 25 | $this->em = $em; |
@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | |
| 47 | 47 | if (($request instanceof ProofRequest) && ($method == Request::METHOD_POST)) { |
| 48 | 48 | $token = $this->tokenStorage->getToken(); |
| 49 | - $player = $this->em->getRepository('VideoGamesRecords\CoreBundle\Entity\Player') |
|
| 49 | + $player = $this->em->getRepository('VideoGamesRecords\CoreBundle\Entity\Player') |
|
| 50 | 50 | ->getPlayerFromUser($token->getUser()); |
| 51 | 51 | |
| 52 | 52 | $nbRequest = $this->em->getRepository('VideoGamesRecords\CoreBundle\Entity\ProofRequest')->getNbRequestFromToDay($player); |
@@ -41,7 +41,7 @@ |
||
| 41 | 41 | $method = $event->getRequest()->getMethod(); |
| 42 | 42 | |
| 43 | 43 | if (($requestA instanceof TeamRequest) && ($method == Request::METHOD_POST)) { |
| 44 | - $requestB = $this->em->getRepository('VideoGamesRecords\CoreBundle\Entity\TeamRequest') |
|
| 44 | + $requestB = $this->em->getRepository('VideoGamesRecords\CoreBundle\Entity\TeamRequest') |
|
| 45 | 45 | ->findOneBy( |
| 46 | 46 | array( |
| 47 | 47 | 'player' => $requestA->getPlayer(), |
@@ -75,7 +75,7 @@ |
||
| 75 | 75 | |
| 76 | 76 | private function getChartsToUpdate() |
| 77 | 77 | { |
| 78 | - $query = $this->em->createQueryBuilder() |
|
| 78 | + $query = $this->em->createQueryBuilder() |
|
| 79 | 79 | ->select('ch') |
| 80 | 80 | ->from('VideoGamesRecords\CoreBundle\Entity\Chart', 'ch') |
| 81 | 81 | ->join('ch.group', 'gr') |
@@ -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 | |
@@ -34,7 +34,7 @@ |
||
| 34 | 34 | protected function configureQuery(ProxyQueryInterface $query): ProxyQueryInterface |
| 35 | 35 | { |
| 36 | 36 | $query = parent::configureQuery($query); |
| 37 | - $query->leftJoin($query->getRootAliases()[0] . '.translations', 't') |
|
| 37 | + $query->leftJoin($query->getRootAliases()[0] . '.translations', 't') |
|
| 38 | 38 | ->addSelect('t'); |
| 39 | 39 | return $query; |
| 40 | 40 | } |