Completed
Pull Request — master (#352)
by php-br
61:36
created
src/Oro/Bundle/EmailBundle/Controller/Api/Soap/EmailController.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
3 3
 namespace Oro\Bundle\EmailBundle\Controller\Api\Soap;
4 4
 
5 5
 use BeSimple\SoapBundle\ServiceDefinition\Annotation as Soap;
6
-
7 6
 use Oro\Bundle\EmailBundle\Cache\EmailCacheManager;
8 7
 use Oro\Bundle\EmailBundle\Entity\Email;
9 8
 use Oro\Bundle\EmailBundle\Entity\EmailAttachmentContent;
Please login to merge, or discard this patch.
src/Oro/Bundle/EmailBundle/Controller/AutoResponseRuleController.php 1 patch
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -4,14 +4,11 @@
 block discarded – undo
4 4
 
5 5
 use Doctrine\ORM\EntityManager;
6 6
 use Doctrine\ORM\PersistentCollection;
7
-
8 7
 use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
9 8
 use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
10
-
11 9
 use Symfony\Bundle\FrameworkBundle\Controller\Controller;
12 10
 use Symfony\Component\EventDispatcher\EventDispatcherInterface;
13 11
 use Symfony\Component\HttpFoundation\Request;
14
-
15 12
 use Oro\Bundle\EmailBundle\Entity\AutoResponseRule;
16 13
 use Oro\Bundle\EmailBundle\Entity\EmailTemplate;
17 14
 use Oro\Bundle\EmailBundle\Entity\Repository\AutoResponseRuleRepository;
Please login to merge, or discard this patch.
src/Oro/Bundle/EmailBundle/Controller/EmailController.php 1 patch
Unused Use Statements   -7 removed lines patch added patch discarded remove patch
@@ -4,21 +4,14 @@
 block discarded – undo
4 4
 
5 5
 use Doctrine\ORM\EntityManager;
6 6
 use Doctrine\ORM\EntityRepository;
7
-use Doctrine\ORM\Query;
8
-
9 7
 use FOS\RestBundle\Util\Codes;
10
-
11 8
 use Symfony\Bundle\FrameworkBundle\Controller\Controller;
12 9
 use Symfony\Component\HttpFoundation\JsonResponse;
13 10
 use Symfony\Component\HttpFoundation\Request;
14 11
 use Symfony\Component\HttpFoundation\Response;
15
-use Symfony\Component\Routing\Generator\UrlGeneratorInterface;
16 12
 use Symfony\Component\Security\Core\Exception\AccessDeniedException;
17
-
18 13
 use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
19 14
 use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
20
-
21
-use Oro\Bundle\EmailBundle\Model\WebSocket\WebSocketSendProcessor;
22 15
 use Oro\Bundle\EmailBundle\Cache\EmailCacheManager;
23 16
 use Oro\Bundle\EmailBundle\Entity\Manager\EmailManager;
24 17
 use Oro\Bundle\EmailBundle\Entity\Email;
Please login to merge, or discard this patch.
src/Oro/Bundle/EmailBundle/Controller/EmailTemplateController.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -5,10 +5,8 @@
 block discarded – undo
5 5
 use Doctrine\ORM\EntityManager;
6 6
 use Symfony\Bundle\FrameworkBundle\Controller\Controller;
7 7
 use Symfony\Component\Form\FormInterface;
8
-
9 8
 use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
10 9
 use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
11
-
12 10
 use Oro\Bundle\SecurityBundle\Annotation\Acl;
13 11
 use Oro\Bundle\SecurityBundle\Annotation\AclAncestor;
14 12
 use Oro\Bundle\EmailBundle\Entity\EmailTemplate;
Please login to merge, or discard this patch.
src/Oro/Bundle/EmailBundle/Datagrid/EmailGridHelper.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -109,7 +109,7 @@
 block discarded – undo
109 109
     /**
110 110
      * Returns callback for configuration of grid/actions visibility per row
111 111
      *
112
-     * @return callable
112
+     * @return \Closure
113 113
      */
114 114
     public function getActionConfigurationClosure()
115 115
     {
Please login to merge, or discard this patch.
src/Oro/Bundle/EmailBundle/Datagrid/EmailQueryFactory.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,6 @@
 block discarded – undo
4 4
 
5 5
 use Doctrine\Bundle\DoctrineBundle\Registry;
6 6
 use Doctrine\ORM\QueryBuilder;
7
-
8 7
 use Oro\Bundle\EntityBundle\Provider\EntityNameResolver;
9 8
 use Oro\Bundle\EmailBundle\Entity\Provider\EmailOwnerProviderStorage;
10 9
 use Oro\Bundle\SecurityBundle\SecurityFacade;
Please login to merge, or discard this patch.
Bundle/EmailBundle/Datagrid/Extension/MassAction/MarkMassActionHandler.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -3,10 +3,8 @@
 block discarded – undo
3 3
 namespace Oro\Bundle\EmailBundle\Datagrid\Extension\MassAction;
4 4
 
5 5
 use Doctrine\ORM\EntityManager;
6
-
7 6
 use Symfony\Component\Translation\TranslatorInterface;
8 7
 use Symfony\Component\Security\Core\SecurityContext;
9
-
10 8
 use Oro\Bundle\DataGridBundle\Extension\MassAction\MassActionResponse;
11 9
 use Oro\Bundle\DataGridBundle\Extension\MassAction\MassActionHandlerInterface;
12 10
 use Oro\Bundle\DataGridBundle\Extension\MassAction\MassActionHandlerArgs;
Please login to merge, or discard this patch.
src/Oro/Bundle/EmailBundle/DependencyInjection/Configuration.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,6 @@
 block discarded – undo
4 4
 
5 5
 use Symfony\Component\Config\Definition\Builder\TreeBuilder;
6 6
 use Symfony\Component\Config\Definition\ConfigurationInterface;
7
-
8 7
 use Oro\Bundle\ConfigBundle\DependencyInjection\SettingsBuilder;
9 8
 
10 9
 /**
Please login to merge, or discard this patch.
src/Oro/Bundle/EmailBundle/Entity/Mailbox.php 2 patches
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -220,7 +220,7 @@  discard block
 block discarded – undo
220 220
     }
221 221
 
222 222
     /**
223
-     * @return MailboxProcessSettings|null
223
+     * @return MailboxProcessSettings
224 224
      */
225 225
     public function getProcessSettings()
226 226
     {
@@ -333,7 +333,7 @@  discard block
 block discarded – undo
333 333
     }
334 334
 
335 335
     /**
336
-     * @return Collection|EmailUser[]
336
+     * @return EmailUser[]
337 337
      */
338 338
     public function getEmailUsers()
339 339
     {
@@ -425,7 +425,7 @@  discard block
 block discarded – undo
425 425
     }
426 426
 
427 427
     /**
428
-     * @param AutoResponseRule[]|Collection $autoResponseRules
428
+     * @param Collection $autoResponseRules
429 429
      */
430 430
     public function setAutoResponseRules(Collection $autoResponseRules)
431 431
     {
Please login to merge, or discard this patch.
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -5,9 +5,7 @@
 block discarded – undo
5 5
 use Doctrine\Common\Collections\ArrayCollection;
6 6
 use Doctrine\Common\Collections\Collection;
7 7
 use Doctrine\ORM\Mapping as ORM;
8
-
9 8
 use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
10
-
11 9
 use Oro\Bundle\EmailBundle\Model\EmailHolderInterface;
12 10
 use Oro\Bundle\EntityConfigBundle\Metadata\Annotation\Config;
13 11
 use Oro\Bundle\EntityConfigBundle\Metadata\Annotation\ConfigField;
Please login to merge, or discard this patch.