@@ -3,7 +3,6 @@ |
||
| 3 | 3 | namespace IrishDan\NotificationBundle\Dispatcher; |
| 4 | 4 | |
| 5 | 5 | use Doctrine\ORM\EntityManager; |
| 6 | -use IrishDan\NotificationBundle\Message\BaseMessage; |
|
| 7 | 6 | use IrishDan\NotificationBundle\Message\MessageInterface; |
| 8 | 7 | use Symfony\Component\PropertyAccess\PropertyAccess; |
| 9 | 8 | |
@@ -4,7 +4,6 @@ |
||
| 4 | 4 | |
| 5 | 5 | |
| 6 | 6 | use IrishDan\NotificationBundle\Channel\ChannelInterface; |
| 7 | -use IrishDan\NotificationBundle\Notification\NotifiableInterface; |
|
| 8 | 7 | use IrishDan\NotificationBundle\Notification\NotificationInterface; |
| 9 | 8 | |
| 10 | 9 | class Broadcaster |
@@ -5,7 +5,6 @@ |
||
| 5 | 5 | use IrishDan\NotificationBundle\Message\Message; |
| 6 | 6 | use IrishDan\NotificationBundle\Notification\NotificationInterface; |
| 7 | 7 | use IrishDan\NotificationBundle\Slackable; |
| 8 | -use IrishDan\NotificationBundle\Textable; |
|
| 9 | 8 | |
| 10 | 9 | class SlackWebhookFormatter implements MessageFormatterInterface |
| 11 | 10 | { |
@@ -21,8 +21,8 @@ |
||
| 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']); |
@@ -2,7 +2,6 @@ |
||
| 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; |
@@ -21,8 +21,8 @@ |
||
| 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 | } |
@@ -49,13 +49,13 @@ discard block |
||
| 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 |
||
| 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; |