@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | /** |
| 38 | 38 | * Éjecte tous les utilisateurs ne respectant pas la condition |
| 39 | 39 | * @param boolean $bool |
| 40 | - * @return boolean |
|
| 40 | + * @return boolean|null |
|
| 41 | 41 | */ |
| 42 | 42 | protected function trust($bool) |
| 43 | 43 | { |
@@ -80,7 +80,6 @@ discard block |
||
| 80 | 80 | /** |
| 81 | 81 | * Génère la réponse relative au traitement d'un formulaire |
| 82 | 82 | * @param array $data Le formulaire traité |
| 83 | - * @param object $parent Éventuellement l'objet parent |
|
| 84 | 83 | * @return Response |
| 85 | 84 | */ |
| 86 | 85 | public function formJson($data) |
@@ -22,14 +22,14 @@ discard block |
||
| 22 | 22 | $this->initialize('Pontlyvalent', 'User'); |
| 23 | 23 | } |
| 24 | 24 | |
| 25 | - private function checkPontlyvalentOpen(){ |
|
| 25 | + private function checkPontlyvalentOpen() { |
|
| 26 | 26 | $lastPromo = $this->getConfig('promos.latest'); |
| 27 | 27 | |
| 28 | 28 | if ($this->user->getPromo() == $lastPromo) { |
| 29 | - throw new BadRequestHttpException('Ton tour n\'est pas encore arrivé, petit ' . $lastPromo . ' !'); |
|
| 29 | + throw new BadRequestHttpException('Ton tour n\'est pas encore arrivé, petit '.$lastPromo.' !'); |
|
| 30 | 30 | } |
| 31 | 31 | |
| 32 | - if($this->getConfig('pontlyvalent.open')) { |
|
| 32 | + if ($this->getConfig('pontlyvalent.open')) { |
|
| 33 | 33 | throw new BadRequestHttpException('Le pontlyvalent est fermé !'); |
| 34 | 34 | } |
| 35 | 35 | } |
@@ -88,7 +88,7 @@ discard block |
||
| 88 | 88 | |
| 89 | 89 | $pontlyvalent = $this->repository->getPontlyvalent($target, $this->user); |
| 90 | 90 | |
| 91 | - if(count($pontlyvalent) != 1) |
|
| 91 | + if (count($pontlyvalent) != 1) |
|
| 92 | 92 | throw new NotFoundHttpException(); |
| 93 | 93 | |
| 94 | 94 | return $this->json($pontlyvalent[0]); |
@@ -121,7 +121,7 @@ discard block |
||
| 121 | 121 | |
| 122 | 122 | $targetPromo = $this->getConfig('promos.assos'); |
| 123 | 123 | if ($target->getPromo() != $targetPromo) { |
| 124 | - throw new BadRequestHttpException('Ce n\'est pas un ' . $targetPromo . ' !'); |
|
| 124 | + throw new BadRequestHttpException('Ce n\'est pas un '.$targetPromo.' !'); |
|
| 125 | 125 | } |
| 126 | 126 | |
| 127 | 127 | $pontlyvalent = $this->repository->getPontlyvalent($target, $this->user); |