Completed
Push — master ( 94944b...7e3ecd )
by dan
02:38
created
Command/CreateDatabaseNotificationCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
 
50 50
         // @TODO: Add existing bundle validation
51 51
         $question->setValidator(['Sensio\Bundle\GeneratorBundle\Command\Validators', 'validateBundleName']);
52
-        $question->setNormalizer(function ($value) {
52
+        $question->setNormalizer(function($value) {
53 53
             return $value ? trim($value) : '';
54 54
         });
55 55
         $question->setMaxAttempts(2);
Please login to merge, or discard this patch.
NotificationCollection.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
     public function markAsRead()
36 36
     {
37 37
         // @TODO: sort it.
38
-        $this->entities->forAll(function ($notification) {
38
+        $this->entities->forAll(function($notification) {
39 39
             $notification->markAsRead();
40 40
         });
41 41
     }
Please login to merge, or discard this patch.
Command/CreateNotificationCommand.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
         // @TODO: Add existing bundle validation
63 63
         $question->setValidator(['Sensio\Bundle\GeneratorBundle\Command\Validators', 'validateBundleName']);
64 64
         $question->setNormalizer(
65
-            function ($value) {
65
+            function($value) {
66 66
                 return $value ? trim($value) : '';
67 67
             }
68 68
         );
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
             $input->getOption('notification_name')
86 86
         );
87 87
         $question->setValidator(
88
-            function ($answer) {
88
+            function($answer) {
89 89
                 // Should only contain letters.
90 90
                 $valid = preg_match('/^[a-zA-Z]+$/', $answer);
91 91
                 if (!$valid) {
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
             }
99 99
         );
100 100
         $question->setNormalizer(
101
-            function ($value) {
101
+            function($value) {
102 102
                 return $value ? trim($value) : '';
103 103
             }
104 104
         );
@@ -164,19 +164,19 @@  discard block
 block discarded – undo
164 164
             ), 'yes'
165 165
         );
166 166
         $question->setNormalizer(
167
-            function ($value) {
167
+            function($value) {
168 168
                 return $value[0] == 'y' ? 'y' : 'n';
169 169
             }
170 170
         );
171 171
 
172 172
         $question->setValidator(
173
-            function ($answer) {
173
+            function($answer) {
174 174
                 // Should only contain letters.
175 175
                 $allowed = [
176 176
                     'y',
177 177
                     'n',
178 178
                 ];
179
-                $valid   = in_array($answer, $allowed);
179
+                $valid = in_array($answer, $allowed);
180 180
                 if (!$valid) {
181 181
                     throw new \RuntimeException(
182 182
                         'Only allowed value are ' . implode(', ', $allowed)
Please login to merge, or discard this patch.
Dispatcher/NexmoMessageDispatcher.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
         $messageData  = $message->getMessageData();
26 26
 
27 27
         if (empty($this->client)) {
28
-            $credentials  = new Client\Credentials\Basic(
28
+            $credentials = new Client\Credentials\Basic(
29 29
                 $this->nexmoConfiguration['api_key'],
30 30
                 $this->nexmoConfiguration['api_secret']
31 31
             );
Please login to merge, or discard this patch.
NotificationManager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
         $this->channelManager = $channelManager;
30 30
     }
31 31
 
32
-    public function broadcast(NotificationInterface $notificatin, array $broadcasters  = null) {
32
+    public function broadcast(NotificationInterface $notificatin, array $broadcasters = null) {
33 33
 
34 34
     }
35 35
 
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.
PusherManager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
             'cluster'   => $this->config['cluster'],
34 34
             'encrypted' => $this->config['encrypted'],
35 35
         ];
36
-        $pusher  = new \Pusher(
36
+        $pusher = new \Pusher(
37 37
             $this->config['auth_key'],
38 38
             $this->config['secret'],
39 39
             $this->config['app_id'],
Please login to merge, or discard this patch.