@@ -192,12 +192,12 @@ discard block |
||
| 192 | 192 | return $this->status; |
| 193 | 193 | } |
| 194 | 194 | |
| 195 | - /** |
|
| 196 | - * Set response |
|
| 197 | - * |
|
| 198 | - * @param string $response |
|
| 199 | - * @return $this |
|
| 200 | - */ |
|
| 195 | + /** |
|
| 196 | + * Set response |
|
| 197 | + * |
|
| 198 | + * @param string $response |
|
| 199 | + * @return $this |
|
| 200 | + */ |
|
| 201 | 201 | public function setResponse(string $response): Self |
| 202 | 202 | { |
| 203 | 203 | $this->response = $response; |
@@ -284,12 +284,12 @@ discard block |
||
| 284 | 284 | return $this->chart; |
| 285 | 285 | } |
| 286 | 286 | |
| 287 | - /** |
|
| 288 | - * Set checkedAt |
|
| 289 | - * |
|
| 290 | - * @param DateTime $checkedAt |
|
| 291 | - * @return $this |
|
| 292 | - */ |
|
| 287 | + /** |
|
| 288 | + * Set checkedAt |
|
| 289 | + * |
|
| 290 | + * @param DateTime $checkedAt |
|
| 291 | + * @return $this |
|
| 292 | + */ |
|
| 293 | 293 | public function setCheckedAt(DateTime $checkedAt): Self |
| 294 | 294 | { |
| 295 | 295 | $this->checkedAt = $checkedAt; |
@@ -156,7 +156,7 @@ |
||
| 156 | 156 | */ |
| 157 | 157 | public function setVideo(Video $video): Self |
| 158 | 158 | { |
| 159 | - $this->video= $video; |
|
| 159 | + $this->video = $video; |
|
| 160 | 160 | return $this; |
| 161 | 161 | } |
| 162 | 162 | |
@@ -259,9 +259,9 @@ |
||
| 259 | 259 | } |
| 260 | 260 | } |
| 261 | 261 | |
| 262 | - /** |
|
| 263 | - * @return array |
|
| 264 | - */ |
|
| 262 | + /** |
|
| 263 | + * @return array |
|
| 264 | + */ |
|
| 265 | 265 | public static function getTypeChoices(): array |
| 266 | 266 | { |
| 267 | 267 | return [ |
@@ -17,7 +17,7 @@ |
||
| 17 | 17 | { |
| 18 | 18 | const TYPE_CONNEXION = 'Connexion'; |
| 19 | 19 | const TYPE_DON = 'Don'; |
| 20 | - const TYPE_FORUM= 'Forum'; |
|
| 20 | + const TYPE_FORUM = 'Forum'; |
|
| 21 | 21 | const TYPE_INSCRIPTION = 'Inscription'; |
| 22 | 22 | const TYPE_MASTER = 'Master'; |
| 23 | 23 | const TYPE_PLATFORM = 'Platform'; |
@@ -34,9 +34,9 @@ discard block |
||
| 34 | 34 | */ |
| 35 | 35 | private string $status = self::STATUS_IN_PROGRESS; |
| 36 | 36 | |
| 37 | - /** |
|
| 38 | - * @ORM\Column(name="response", type="text", nullable=true) |
|
| 39 | - */ |
|
| 37 | + /** |
|
| 38 | + * @ORM\Column(name="response", type="text", nullable=true) |
|
| 39 | + */ |
|
| 40 | 40 | private ?string $response = null; |
| 41 | 41 | |
| 42 | 42 | /** |
@@ -126,12 +126,12 @@ discard block |
||
| 126 | 126 | return $this->status; |
| 127 | 127 | } |
| 128 | 128 | |
| 129 | - /** |
|
| 130 | - * Set response |
|
| 131 | - * |
|
| 132 | - * @param string $response |
|
| 133 | - * @return $this |
|
| 134 | - */ |
|
| 129 | + /** |
|
| 130 | + * Set response |
|
| 131 | + * |
|
| 132 | + * @param string $response |
|
| 133 | + * @return $this |
|
| 134 | + */ |
|
| 135 | 135 | public function setResponse(string $response): self |
| 136 | 136 | { |
| 137 | 137 | $this->response = $response; |
@@ -62,10 +62,10 @@ |
||
| 62 | 62 | return $this->libSerie; |
| 63 | 63 | } |
| 64 | 64 | |
| 65 | - /** |
|
| 66 | - * @param string $libSerie |
|
| 67 | - * @return $this |
|
| 68 | - */ |
|
| 65 | + /** |
|
| 66 | + * @param string $libSerie |
|
| 67 | + * @return $this |
|
| 68 | + */ |
|
| 69 | 69 | public function setLibSerie(string $libSerie): Serie |
| 70 | 70 | { |
| 71 | 71 | $this->libSerie = $libSerie; |
@@ -311,7 +311,7 @@ |
||
| 311 | 311 | $this->setType(self::TYPE_YOUTUBE); |
| 312 | 312 | $explode = explode('=', $this->getUrl()); |
| 313 | 313 | $this->setVideoId($explode[1]); |
| 314 | - } elseif (strpos($this->getUrl(), 'youtu.be')) { |
|
| 314 | + } elseif (strpos($this->getUrl(), 'youtu.be')) { |
|
| 315 | 315 | $this->setType(self::TYPE_YOUTUBE); |
| 316 | 316 | $this->setVideoId(substr($this->getUrl(), strripos($this->getUrl(), '/') + 1, strlen($this->getUrl()) - 1)); |
| 317 | 317 | } elseif (strpos($this->getUrl(), 'twitch')) { |
@@ -332,7 +332,7 @@ |
||
| 332 | 332 | if ($this->getType() == self::TYPE_YOUTUBE) { |
| 333 | 333 | return 'https://www.youtube.com/embed/' . $this->getVideoId(); |
| 334 | 334 | } elseif ($this->getType() == self::TYPE_TWITCH) { |
| 335 | - return 'https://player.twitch.tv/?autoplay=false&video=v' . $this->getVideoId() . '&parent=' .$_SERVER['SERVER_NAME']; |
|
| 335 | + return 'https://player.twitch.tv/?autoplay=false&video=v' . $this->getVideoId() . '&parent=' . $_SERVER['SERVER_NAME']; |
|
| 336 | 336 | } else { |
| 337 | 337 | return $this->getUrl(); |
| 338 | 338 | } |
@@ -22,7 +22,7 @@ discard block |
||
| 22 | 22 | $this->proofRequestRepository = $proofRequestRepository; |
| 23 | 23 | } |
| 24 | 24 | |
| 25 | - public function autocomplete($q) |
|
| 25 | + public function autocomplete($q) |
|
| 26 | 26 | { |
| 27 | 27 | return $this->playerRepository->autocomplete($q); |
| 28 | 28 | } |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | { |
| 38 | 38 | $nb = $this->proofRequestRepository->getNbRequestFromToDay($player); |
| 39 | 39 | if ($nb >= 3) { |
| 40 | - return false; |
|
| 40 | + return false; |
|
| 41 | 41 | } |
| 42 | 42 | return true; |
| 43 | 43 | } |
@@ -16,14 +16,13 @@ |
||
| 16 | 16 | public function __construct( |
| 17 | 17 | PlayerRepository $playerRepository, |
| 18 | 18 | ProofRequestRepository $proofRequestRepository |
| 19 | - ) |
|
| 20 | - { |
|
| 19 | + ) { |
|
| 21 | 20 | $this->playerRepository = $playerRepository; |
| 22 | 21 | $this->proofRequestRepository = $proofRequestRepository; |
| 23 | 22 | } |
| 24 | 23 | |
| 25 | 24 | public function autocomplete($q) |
| 26 | - { |
|
| 25 | + { |
|
| 27 | 26 | return $this->playerRepository->autocomplete($q); |
| 28 | 27 | } |
| 29 | 28 | |
@@ -23,7 +23,8 @@ |
||
| 23 | 23 | * @param $game |
| 24 | 24 | * @param $platform |
| 25 | 25 | */ |
| 26 | - public function majPlatform($player, $game, $platform) { |
|
| 26 | + public function majPlatform($player, $game, $platform) |
|
| 27 | + { |
|
| 27 | 28 | // Update platform |
| 28 | 29 | $this->playerChartRepository->majPlatform( |
| 29 | 30 | $player, |
@@ -43,11 +43,11 @@ |
||
| 43 | 43 | return $query->getResult(); |
| 44 | 44 | } |
| 45 | 45 | |
| 46 | - /** |
|
| 47 | - * @param DateTime $date1 |
|
| 48 | - * @param DateTime $date2 |
|
| 49 | - * @return array |
|
| 50 | - */ |
|
| 46 | + /** |
|
| 47 | + * @param DateTime $date1 |
|
| 48 | + * @param DateTime $date2 |
|
| 49 | + * @return array |
|
| 50 | + */ |
|
| 51 | 51 | public function getNbPostDay(DateTime $date1, DateTime $date2): array |
| 52 | 52 | { |
| 53 | 53 | $query = $this->em->createQuery(" |
@@ -30,9 +30,9 @@ |
||
| 30 | 30 | $this->em->flush(); |
| 31 | 31 | } |
| 32 | 32 | |
| 33 | - /** |
|
| 34 | - * @return array |
|
| 35 | - */ |
|
| 33 | + /** |
|
| 34 | + * @return array |
|
| 35 | + */ |
|
| 36 | 36 | private function getScoreToDesactivate(): array |
| 37 | 37 | { |
| 38 | 38 | $date = new \DateTime(); |