Completed
Push — master ( 94944b...7e3ecd )
by dan
02:38
created
DatabaseNotificationManager.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -17,6 +17,9 @@  discard block
 block discarded – undo
17 17
         $this->databaseConfiguration = $databaseConfiguration;
18 18
     }
19 19
 
20
+    /**
21
+     * @param \DateTime $now
22
+     */
20 23
     public function setReadAtDate(DatabaseNotificationInterface $notification, $now = null, $flush = true)
21 24
     {
22 25
         if (empty($now)) {
@@ -31,6 +34,9 @@  discard block
 block discarded – undo
31 34
         }
32 35
     }
33 36
 
37
+    /**
38
+     * @param \DateTime $now
39
+     */
34 40
     public function setUsersNotificationsAsRead(NotifiableInterface $notifiable, $now = null)
35 41
     {
36 42
         $entity = $this->notificationEntityName();
Please login to merge, or discard this patch.
Dispatcher/DatabaseMessageDispatcher.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -38,6 +38,9 @@
 block discarded – undo
38 38
         return false;
39 39
     }
40 40
 
41
+    /**
42
+     * @param MessageInterface $data
43
+     */
41 44
     protected function createDatabaseNotificationEntity($data)
42 45
     {
43 46
         if ($this->accessor === null) {
Please login to merge, or discard this patch.
Dispatcher/MailMessageDispatcher.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,8 +21,8 @@
 block discarded – undo
21 21
 
22 22
 
23 23
         $mail = \Swift_Message::newInstance()
24
-                              ->setSubject($messageData['subject'])
25
-                              ->setBody($messageData['body']);
24
+                                ->setSubject($messageData['subject'])
25
+                                ->setBody($messageData['body']);
26 26
 
27 27
         $mail->setFrom($dispatchData['from']);
28 28
         $mail->setTo($dispatchData['to']);
Please login to merge, or discard this patch.
Test/Channel/EventChannelTest.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,8 +21,8 @@
 block discarded – undo
21 21
         $this->notification = $this->getNotificationWithUser();
22 22
 
23 23
         $this->eventDispatcher = $this->getMockBuilder(EventDispatcherInterface::class)
24
-                                      ->disableOriginalConstructor()
25
-                                      ->getMock();
24
+                                        ->disableOriginalConstructor()
25
+                                        ->getMock();
26 26
 
27 27
         $this->eventChannel = new EventChannel($this->eventDispatcher);
28 28
     }
Please login to merge, or discard this patch.
Test/NotificationTestCase.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -49,13 +49,13 @@  discard block
 block discarded – undo
49 49
     protected function getMockFormatter($withMessage = false)
50 50
     {
51 51
         $formatter = $this->getMockBuilder(MessageFormatterInterface::class)
52
-                          ->disableOriginalConstructor()
53
-                          ->getMock();
52
+                            ->disableOriginalConstructor()
53
+                            ->getMock();
54 54
 
55 55
         if ($withMessage) {
56 56
             $formatter->expects($this->once())
57
-                      ->method('format')
58
-                      ->will($this->returnValue($this->getTestMessage()));
57
+                        ->method('format')
58
+                        ->will($this->returnValue($this->getTestMessage()));
59 59
         }
60 60
 
61 61
         return $formatter;
@@ -64,13 +64,13 @@  discard block
 block discarded – undo
64 64
     protected function getMockDispatcher($withDispatch = false, $returnValue = true)
65 65
     {
66 66
         $dispatcher = $this->getMockBuilder(MessageDispatcherInterface::class)
67
-                           ->disableOriginalConstructor()
68
-                           ->getMock();
67
+                            ->disableOriginalConstructor()
68
+                            ->getMock();
69 69
 
70 70
         if ($withDispatch) {
71 71
             $dispatcher->expects($this->once())
72
-                       ->method('dispatch')
73
-                       ->will($this->returnValue($returnValue));
72
+                        ->method('dispatch')
73
+                        ->will($this->returnValue($returnValue));
74 74
         }
75 75
 
76 76
         return $dispatcher;
Please login to merge, or discard this patch.
Command/CreateNotificationCommand.php 1 patch
Doc Comments   +12 added lines patch added patch discarded remove patch
@@ -155,6 +155,10 @@  discard block
 block discarded – undo
155 155
         $questionHelper->writeGeneratorSummary($output, []);
156 156
     }
157 157
 
158
+    /**
159
+     * @param \Sensio\Bundle\GeneratorBundle\Command\Helper\QuestionHelper $questionHelper
160
+     * @param InputInterface $input
161
+     */
158 162
     protected function createYesNoQuestion($questionHelper, $input, $channel)
159 163
     {
160 164
         $question = new Question(
@@ -164,12 +168,20 @@  discard block
 block discarded – undo
164 168
             ), 'yes'
165 169
         );
166 170
         $question->setNormalizer(
171
+
172
+            /**
173
+             * @param \Sensio\Bundle\GeneratorBundle\Command\Helper\QuestionHelper $value
174
+             */
167 175
             function ($value) {
168 176
                 return $value[0] == 'y' ? 'y' : 'n';
169 177
             }
170 178
         );
171 179
 
172 180
         $question->setValidator(
181
+
182
+            /**
183
+             * @param \Sensio\Bundle\GeneratorBundle\Command\Helper\QuestionHelper $answer
184
+             */
173 185
             function ($answer) {
174 186
                 // Should only contain letters.
175 187
                 $allowed = [
Please login to merge, or discard this patch.
DependencyInjection/NotificationExtension.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -86,6 +86,9 @@
 block discarded – undo
86 86
         }
87 87
     }
88 88
 
89
+    /**
90
+     * @param ContainerBuilder $container
91
+     */
89 92
     private function createBroadcaster($name, $broadcaster, $container)
90 93
     {
91 94
         // @TODO:
Please login to merge, or discard this patch.