@@ -3,12 +3,10 @@ |
||
3 | 3 | namespace OroCRM\Bundle\ChannelBundle\Provider; |
4 | 4 | |
5 | 5 | use Symfony\Component\Routing\RouterInterface; |
6 | - |
|
7 | 6 | use Oro\Bundle\EntityConfigBundle\Config\ConfigInterface; |
8 | 7 | use Oro\Bundle\EntityExtendBundle\EntityConfig\ExtendScope; |
9 | 8 | use Oro\Bundle\EntityBundle\Provider\EntityProvider; |
10 | 9 | use Oro\Bundle\EntityConfigBundle\Config\ConfigManager; |
11 | -use Oro\Bundle\EntityConfigBundle\Entity\EntityConfigModel; |
|
12 | 10 | |
13 | 11 | class MetadataProvider implements MetadataProviderInterface |
14 | 12 | { |
@@ -41,7 +41,7 @@ |
||
41 | 41 | } |
42 | 42 | |
43 | 43 | /** |
44 | - * @return Channel|bool |
|
44 | + * @return null|Channel |
|
45 | 45 | */ |
46 | 46 | protected function getChannelReference() |
47 | 47 | { |
@@ -3,10 +3,8 @@ |
||
3 | 3 | namespace OroCRM\Bundle\TestFrameworkBundle\Tests\Performance; |
4 | 4 | |
5 | 5 | use Symfony\Bundle\FrameworkBundle\Console\Application; |
6 | - |
|
7 | 6 | use Symfony\Component\HttpKernel\Kernel; |
8 | 7 | use Symfony\Component\DependencyInjection\Container; |
9 | - |
|
10 | 8 | use Oro\Bundle\TestFrameworkBundle\Test\WebTestCase; |
11 | 9 | |
12 | 10 | class LoadTest extends WebTestCase |
@@ -3,10 +3,7 @@ |
||
3 | 3 | namespace OroCRM\Bundle\ChannelBundle\Tests\Functional\Controller; |
4 | 4 | |
5 | 5 | use Symfony\Component\Form\Form; |
6 | - |
|
7 | 6 | use Oro\Bundle\TestFrameworkBundle\Test\WebTestCase; |
8 | -use Oro\Bundle\OrganizationBundle\Entity\Organization; |
|
9 | -use Oro\Bundle\OrganizationBundle\Migrations\Data\ORM\LoadOrganizationAndBusinessUnitData; |
|
10 | 7 | |
11 | 8 | /** |
12 | 9 | * @outputBuffering enabled |
@@ -71,7 +71,7 @@ |
||
71 | 71 | * @param string $name |
72 | 72 | * @param \DateTime $created |
73 | 73 | * |
74 | - * @return mixed |
|
74 | + * @return null|\OroCRM\Bundle\ChannelBundle\Entity\Channel |
|
75 | 75 | */ |
76 | 76 | protected function ensureChannelCreated(EntityManager $em, $name, \DateTime $created) |
77 | 77 | { |
@@ -4,15 +4,12 @@ |
||
4 | 4 | |
5 | 5 | use Doctrine\Common\Collections\ArrayCollection; |
6 | 6 | use Doctrine\ORM\EntityRepository; |
7 | - |
|
8 | 7 | use Doctrine\Common\DataFixtures\AbstractFixture; |
9 | 8 | use Doctrine\Common\Persistence\ObjectManager; |
10 | - |
|
11 | 9 | use Oro\Bundle\OrganizationBundle\Entity\BusinessUnit; |
12 | 10 | use Oro\Bundle\OrganizationBundle\Entity\Organization; |
13 | 11 | use Symfony\Component\DependencyInjection\ContainerInterface; |
14 | 12 | use Symfony\Component\DependencyInjection\ContainerAwareInterface; |
15 | - |
|
16 | 13 | use Oro\Bundle\UserBundle\Entity\UserManager; |
17 | 14 | use Oro\Bundle\UserBundle\Entity\User; |
18 | 15 |
@@ -2,14 +2,11 @@ |
||
2 | 2 | |
3 | 3 | namespace OroCRM\Bundle\ChannelBundle\Tests\Unit\EventListener; |
4 | 4 | |
5 | -use Doctrine\ORM\Event\OnClearEventArgs; |
|
6 | 5 | use Doctrine\ORM\UnitOfWork; |
7 | 6 | use Doctrine\ORM\EntityManager; |
8 | 7 | use Doctrine\ORM\Event\OnFlushEventArgs; |
9 | 8 | use Doctrine\ORM\Event\PostFlushEventArgs; |
10 | - |
|
11 | 9 | use Oro\Bundle\TestFrameworkBundle\Test\Doctrine\ORM\OrmTestCase; |
12 | - |
|
13 | 10 | use OroCRM\Bundle\ChannelBundle\Tests\Unit\Stubs\Entity\Customer; |
14 | 11 | use OroCRM\Bundle\ChannelBundle\EventListener\ChannelDoctrineListener; |
15 | 12 | use OroCRM\Bundle\ChannelBundle\Entity\Repository\LifetimeHistoryRepository; |
@@ -151,7 +151,7 @@ |
||
151 | 151 | |
152 | 152 | /** |
153 | 153 | * @param bool $expectedSubmit |
154 | - * @param mixed $expectedException |
|
154 | + * @param string|null $expectedException |
|
155 | 155 | */ |
156 | 156 | private function initializeMocks($expectedSubmit, $expectedException) |
157 | 157 | { |
@@ -3,10 +3,8 @@ |
||
3 | 3 | namespace OroCRM\Bundle\TestFrameworkBundle\Tests\Performance; |
4 | 4 | |
5 | 5 | use Symfony\Bundle\FrameworkBundle\Console\Application; |
6 | - |
|
7 | 6 | use Symfony\Component\HttpKernel\Kernel; |
8 | 7 | use Symfony\Component\DependencyInjection\Container; |
9 | - |
|
10 | 8 | use Oro\Bundle\TestFrameworkBundle\Test\WebTestCase; |
11 | 9 | |
12 | 10 | class LoadTest extends WebTestCase |
@@ -164,7 +164,7 @@ |
||
164 | 164 | } |
165 | 165 | |
166 | 166 | /** |
167 | - * @param $index |
|
167 | + * @param integer $index |
|
168 | 168 | * |
169 | 169 | * @return array |
170 | 170 | */ |
@@ -3,10 +3,8 @@ |
||
3 | 3 | namespace OroCRM\Bundle\TestFrameworkBundle\Tests\Performance; |
4 | 4 | |
5 | 5 | use Symfony\Bundle\FrameworkBundle\Console\Application; |
6 | - |
|
7 | 6 | use Symfony\Component\HttpKernel\Kernel; |
8 | 7 | use Symfony\Component\DependencyInjection\Container; |
9 | - |
|
10 | 8 | use Oro\Bundle\TestFrameworkBundle\Test\WebTestCase; |
11 | 9 | |
12 | 10 | class LoadTest extends WebTestCase |
@@ -2,15 +2,10 @@ |
||
2 | 2 | |
3 | 3 | namespace OroCRM\Bundle\ContactBundle\Controller; |
4 | 4 | |
5 | -use Symfony\Component\HttpFoundation\Request; |
|
6 | 5 | use Symfony\Bundle\FrameworkBundle\Controller\Controller; |
7 | - |
|
8 | 6 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; |
9 | 7 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template; |
10 | - |
|
11 | 8 | use Oro\Bundle\SecurityBundle\Annotation\Acl; |
12 | -use Oro\Bundle\SecurityBundle\Annotation\AclAncestor; |
|
13 | - |
|
14 | 9 | use OroCRM\Bundle\ContactBundle\Entity\Group; |
15 | 10 | |
16 | 11 | /** |
@@ -3,8 +3,6 @@ |
||
3 | 3 | namespace OroCRM\Bundle\ContactBundle\Entity\Repository; |
4 | 4 | |
5 | 5 | use Doctrine\ORM\EntityRepository; |
6 | -use Doctrine\ORM\QueryBuilder; |
|
7 | - |
|
8 | 6 | use Oro\Bundle\EmailBundle\Entity\Repository\EmailAwareRepository; |
9 | 7 | |
10 | 8 | class ContactRepository extends EntityRepository implements EmailAwareRepository |