Completed
Push — master ( 154eb7...2fa72a )
by Martin
04:05
created
src/Page/EventPage.php 2 patches
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -123,6 +123,9 @@  discard block
 block discarded – undo
123 123
         return $sessions;
124 124
     }
125 125
 
126
+    /**
127
+     * @param Event $event
128
+     */
126 129
     public function getPolls($event)
127 130
     {
128 131
         $polls = $this->crawler->filter('.poll')->each(function (Crawler $node) use ($event) {
@@ -143,6 +146,9 @@  discard block
 block discarded – undo
143 146
         return new ArrayCollection($polls);
144 147
     }
145 148
 
149
+    /**
150
+     * @param Event $event
151
+     */
146 152
     public function getComments($event)
147 153
     {
148 154
         $comments = $this->crawler->filter('.comments .comment')->each(function (Crawler $node) use ($event) {
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
     {
84 84
         $sessions = new ArrayCollection();
85 85
 
86
-        $this->crawler->filter('#snippet--program dt')->each(function (Crawler $dt) use ($sessions, $event) {
86
+        $this->crawler->filter('#snippet--program dt')->each(function(Crawler $dt) use ($sessions, $event) {
87 87
             $session = new Session();
88 88
             $session->setEvent($event);
89 89
 
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
             $sessions->add($session);
100 100
         });
101 101
 
102
-        $this->crawler->filter('#snippet--program dd')->each(function (Crawler $dd, $i) use ($sessions) {
102
+        $this->crawler->filter('#snippet--program dd')->each(function(Crawler $dd, $i) use ($sessions) {
103 103
             $session = $sessions[$i];
104 104
             if (preg_match('/program-type-([^ ]+)/', $dd->attr('class'), $matches)) {
105 105
                 $session->setType($matches[1]);
@@ -125,11 +125,11 @@  discard block
 block discarded – undo
125 125
 
126 126
     public function getPolls($event)
127 127
     {
128
-        $polls = $this->crawler->filter('.poll')->each(function (Crawler $node) use ($event) {
128
+        $polls = $this->crawler->filter('.poll')->each(function(Crawler $node) use ($event) {
129 129
             $poll = new Poll();
130 130
             $poll->setEvent($event);
131 131
             $poll->setName(trim($node->filter('.pollName')->text()));
132
-            $data = $node->filter('.pollRow')->each(function ($node) {
132
+            $data = $node->filter('.pollRow')->each(function($node) {
133 133
                 return [
134 134
                     trim($node->filter('.pollRowText')->text()),
135 135
                     trim($node->filter('.progress')->text()),
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
 
146 146
     public function getComments($event)
147 147
     {
148
-        $comments = $this->crawler->filter('.comments .comment')->each(function (Crawler $node) use ($event) {
148
+        $comments = $this->crawler->filter('.comments .comment')->each(function(Crawler $node) use ($event) {
149 149
             $date = trim($node->filter('.comment-date')->text());
150 150
             $date = \DateTime::createFromFormat('d. m. Y v H:i', $date, new \DateTimeZone('Europe/Prague'));
151 151
 
Please login to merge, or discard this patch.