Passed
Push — dartcafe-patch-1 ( 095f44...8dca15 )
by René
02:32
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
 
@@ -387,7 +387,7 @@  discard block
 block discarded – undo
387 387
      */
388 388
     public function createPoll() {
389 389
         return new TemplateResponse('polls', 'create.tmpl',
390
-            ['userId' => $this->userId, 'userMgr' => $this->manager, 'urlGenerator' => $this->urlGenerator]);
390
+            [ 'userId' => $this->userId, 'userMgr' => $this->manager, 'urlGenerator' => $this->urlGenerator ]);
391 391
     }
392 392
 
393 393
     /**
@@ -539,15 +539,15 @@  discard block
 block discarded – undo
539 539
                     $part = new Participation();
540 540
                     $part->setPollId($pollId);
541 541
                     $part->setUserId($userId);
542
-                    $part->setDt(date('Y-m-d H:i:s', $dates[$i]));
543
-                    $part->setType($types[$i]);
542
+                    $part->setDt(date('Y-m-d H:i:s', $dates[ $i ]));
543
+                    $part->setType($types[ $i ]);
544 544
                     $this->participationMapper->insert($part);
545 545
                 } else {
546 546
                     $part = new ParticipationText();
547 547
                     $part->setPollId($pollId);
548 548
                     $part->setUserId($userId);
549
-                    $part->setText($dates[$i]);
550
-                    $part->setType($types[$i]);
549
+                    $part->setText($dates[ $i ]);
550
+                    $part->setType($types[ $i ]);
551 551
                     $this->participationTextMapper->insert($part);
552 552
                 }
553 553
 
@@ -555,7 +555,7 @@  discard block
 block discarded – undo
555 555
             $this->sendNotifications($pollId, $userId);
556 556
         }
557 557
         $hash = $poll->getHash();
558
-        $url = $this->urlGenerator->linkToRoute('polls.page.goto_poll', ['hash' => $hash]);
558
+        $url = $this->urlGenerator->linkToRoute('polls.page.goto_poll', [ 'hash' => $hash ]);
559 559
         return new RedirectResponse($url);
560 560
     }
561 561
 
Please login to merge, or discard this patch.