@@ -47,7 +47,7 @@ |
||
47 | 47 | * |
48 | 48 | * @param object $target Any configurable entity that can have notes |
49 | 49 | * |
50 | - * @return object This object |
|
50 | + * @return ExtendNote This object |
|
51 | 51 | */ |
52 | 52 | public function setTarget($target) |
53 | 53 | { |
@@ -4,9 +4,7 @@ |
||
4 | 4 | |
5 | 5 | use Doctrine\ORM\Mapping as ORM; |
6 | 6 | use Doctrine\Common\Collections\ArrayCollection; |
7 | - |
|
8 | 7 | use Symfony\Component\Validator\Context\ExecutionContextInterface; |
9 | - |
|
10 | 8 | use Oro\Bundle\UserBundle\Entity\User; |
11 | 9 | use Oro\Bundle\UserBundle\Entity\Group; |
12 | 10 |
@@ -4,7 +4,6 @@ |
||
4 | 4 | |
5 | 5 | use Doctrine\Common\Collections\ArrayCollection; |
6 | 6 | use Doctrine\ORM\EntityRepository; |
7 | - |
|
8 | 7 | use Oro\Bundle\NotificationBundle\Entity\NotificationEmailInterface; |
9 | 8 | use Oro\Bundle\NotificationBundle\Entity\RecipientList; |
10 | 9 | use Oro\Bundle\EmailBundle\Model\EmailHolderInterface; |
@@ -4,7 +4,6 @@ |
||
4 | 4 | |
5 | 5 | use Doctrine\Common\Util\ClassUtils; |
6 | 6 | use Doctrine\ORM\EntityManager; |
7 | - |
|
8 | 7 | use Oro\Bundle\EntityConfigBundle\Provider\ConfigProvider; |
9 | 8 | use Oro\Bundle\NotificationBundle\Processor\EmailNotificationInterface; |
10 | 9 | use Oro\Bundle\NotificationBundle\Entity\EmailNotification; |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace Oro\Bundle\NotificationBundle\Event\Handler; |
4 | 4 | |
5 | 5 | use Doctrine\ORM\EntityManager; |
6 | - |
|
7 | 6 | use Oro\Bundle\EntityConfigBundle\Provider\ConfigProvider; |
8 | 7 | use Oro\Bundle\NotificationBundle\Event\NotificationEvent; |
9 | 8 | use Oro\Bundle\NotificationBundle\Entity\EmailNotification; |
@@ -3,10 +3,8 @@ |
||
3 | 3 | namespace Oro\Bundle\NotificationBundle\Form\Handler; |
4 | 4 | |
5 | 5 | use Doctrine\Common\Persistence\ObjectManager; |
6 | - |
|
7 | 6 | use Symfony\Component\Form\FormInterface; |
8 | 7 | use Symfony\Component\HttpFoundation\Request; |
9 | - |
|
10 | 8 | use Oro\Bundle\NotificationBundle\Entity\EmailNotification; |
11 | 9 | |
12 | 10 | class EmailNotificationHandler |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace Oro\Bundle\NotificationBundle\Form\Type; |
4 | 4 | |
5 | 5 | use Doctrine\ORM\EntityManager; |
6 | - |
|
7 | 6 | use Symfony\Component\Form\AbstractType; |
8 | 7 | use Symfony\Component\Form\FormBuilderInterface; |
9 | 8 | use Symfony\Component\OptionsResolver\OptionsResolverInterface; |
@@ -62,7 +62,7 @@ |
||
62 | 62 | * Checks if command is already queued. |
63 | 63 | * |
64 | 64 | * @param string $command |
65 | - * @return Job |
|
65 | + * @return boolean |
|
66 | 66 | */ |
67 | 67 | protected function hasNotFinishedJob($command) |
68 | 68 | { |
@@ -3,11 +3,8 @@ |
||
3 | 3 | namespace Oro\Bundle\NotificationBundle\Processor; |
4 | 4 | |
5 | 5 | use Psr\Log\LoggerInterface; |
6 | - |
|
7 | 6 | use Doctrine\ORM\EntityManager; |
8 | - |
|
9 | 7 | use JMS\JobQueueBundle\Entity\Job; |
10 | - |
|
11 | 8 | use Oro\Bundle\NotificationBundle\Doctrine\EntityPool; |
12 | 9 | |
13 | 10 | abstract class AbstractNotificationProcessor |
@@ -3,11 +3,8 @@ |
||
3 | 3 | namespace Oro\Bundle\NotificationBundle\Processor; |
4 | 4 | |
5 | 5 | use Doctrine\ORM\EntityManager; |
6 | - |
|
7 | 6 | use JMS\JobQueueBundle\Entity\Job; |
8 | - |
|
9 | 7 | use Psr\Log\LoggerInterface; |
10 | - |
|
11 | 8 | use Oro\Bundle\ConfigBundle\Config\ConfigManager; |
12 | 9 | use Oro\Bundle\EmailBundle\Provider\EmailRenderer; |
13 | 10 | use Oro\Bundle\NotificationBundle\Doctrine\EntityPool; |