Completed
Push — master ( e3a73f...40fe4a )
by dan
02:29
created
DependencyInjection/NotificationExtension.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -95,6 +95,9 @@
 block discarded – undo
95 95
         }
96 96
     }
97 97
 
98
+    /**
99
+     * @param ContainerBuilder $container
100
+     */
98 101
     private function createBroadcaster($name, $broadcaster, $container)
99 102
     {
100 103
         //
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace IrishDan\NotificationBundle\DependencyInjection;
4 4
 
5
-use IrishDan\NotificationBundle\DependencyInjection\Factory\Broadcaster\SlackBroadcasterFactory;
6 5
 use Symfony\Component\DependencyInjection\Definition;
7 6
 use Symfony\Component\DependencyInjection\Reference;
8 7
 use Symfony\Component\HttpKernel\DependencyInjection\Extension;
Please login to merge, or discard this patch.
Channel/EventChannel.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -72,8 +72,7 @@
 block discarded – undo
72 72
         try {
73 73
             if (!empty($this->dispatchers[$dispatcherKey])) {
74 74
                 $this->dispatchers[$dispatcherKey]->dispatch($message);
75
-            }
76
-            else {
75
+            } else {
77 76
                 throw new MessageDispatchException(
78 77
                     sprintf('No dispatcher available with key "%s"', $dispatcherKey)
79 78
                 );
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.