Passed
Push — dartcafe-patch-1 ( cdd2aa...76d9a9 )
by René
02:01
created
lib/Controller/PageController.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -246,7 +246,7 @@  discard block
 block discarded – undo
246 246
 			]);
247 247
 		} else {
248 248
 			User::checkLoggedIn();
249
-			return new TemplateResponse('polls', 'no.acc.tmpl', []);
249
+			return new TemplateResponse('polls', 'no.acc.tmpl', [ ]);
250 250
 		}
251 251
 	}
252 252
 
@@ -393,7 +393,7 @@  discard block
 block discarded – undo
393 393
 	 */
394 394
 	public function createPoll() {
395 395
 		return new TemplateResponse('polls', 'create.tmpl',
396
-			['userId' => $this->userId, 'userMgr' => $this->manager, 'urlGenerator' => $this->urlGenerator]);
396
+			[ 'userId' => $this->userId, 'userMgr' => $this->manager, 'urlGenerator' => $this->urlGenerator ]);
397 397
 	}
398 398
 
399 399
 	/**
@@ -545,15 +545,15 @@  discard block
 block discarded – undo
545 545
 					$part = new Participation();
546 546
 					$part->setPollId($pollId);
547 547
 					$part->setUserId($userId);
548
-					$part->setDt(date('Y-m-d H:i:s', $dates[$i]));
549
-					$part->setType($types[$i]);
548
+					$part->setDt(date('Y-m-d H:i:s', $dates[ $i ]));
549
+					$part->setType($types[ $i ]);
550 550
 					$this->participationMapper->insert($part);
551 551
 				} else {
552 552
 					$part = new ParticipationText();
553 553
 					$part->setPollId($pollId);
554 554
 					$part->setUserId($userId);
555
-					$part->setText($dates[$i]);
556
-					$part->setType($types[$i]);
555
+					$part->setText($dates[ $i ]);
556
+					$part->setType($types[ $i ]);
557 557
 					$this->participationTextMapper->insert($part);
558 558
 				}
559 559
 
@@ -561,7 +561,7 @@  discard block
 block discarded – undo
561 561
 			$this->sendNotifications($pollId, $userId);
562 562
 		}
563 563
 		$hash = $poll->getHash();
564
-		$url = $this->urlGenerator->linkToRoute('polls.page.goto_poll', ['hash' => $hash]);
564
+		$url = $this->urlGenerator->linkToRoute('polls.page.goto_poll', [ 'hash' => $hash ]);
565 565
 		return new RedirectResponse($url);
566 566
 	}
567 567
 
Please login to merge, or discard this patch.