@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace OroCRM\Bundle\ContactUsBundle\Migrations\Schema\v1_4; |
4 | 4 | |
5 | 5 | use Doctrine\DBAL\Schema\Schema; |
6 | - |
|
7 | 6 | use Oro\Bundle\EntityExtendBundle\Migration\OroOptions; |
8 | 7 | use Oro\Bundle\MigrationBundle\Migration\Migration; |
9 | 8 | use Oro\Bundle\MigrationBundle\Migration\QueryBag; |
@@ -4,11 +4,9 @@ |
||
4 | 4 | |
5 | 5 | use Doctrine\Common\DataFixtures\AbstractFixture; |
6 | 6 | use Doctrine\Common\Persistence\ObjectManager; |
7 | - |
|
8 | 7 | use OroCRM\Bundle\ChannelBundle\Builder\BuilderFactory; |
9 | 8 | use OroCRM\Bundle\ChannelBundle\Entity\Channel; |
10 | 9 | use OroCRM\Bundle\ContactUsBundle\Entity\ContactRequest; |
11 | - |
|
12 | 10 | use Symfony\Component\DependencyInjection\ContainerAwareInterface; |
13 | 11 | use Symfony\Component\DependencyInjection\ContainerInterface; |
14 | 12 |
@@ -3,10 +3,8 @@ |
||
3 | 3 | namespace OroCRM\Bundle\ContactUsBundle\Tests\Unit\Form\Handler; |
4 | 4 | |
5 | 5 | use Doctrine\ORM\EntityManager; |
6 | - |
|
7 | 6 | use Symfony\Component\Form\FormInterface; |
8 | 7 | use Symfony\Component\HttpFoundation\Request; |
9 | - |
|
10 | 8 | use OroCRM\Bundle\ContactUsBundle\Entity\ContactRequest; |
11 | 9 | use OroCRM\Bundle\ContactUsBundle\Form\Handler\ContactRequestHandler; |
12 | 10 |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace OroCRM\Bundle\ContactUsBundle\Validator; |
4 | 4 | |
5 | 5 | use Symfony\Component\Validator\Context\ExecutionContextInterface; |
6 | - |
|
7 | 6 | use OroCRM\Bundle\ContactUsBundle\Entity\ContactRequest; |
8 | 7 | |
9 | 8 | class ContactRequestCallbackValidator |
@@ -78,7 +78,7 @@ |
||
78 | 78 | * @param string $countryCode ISO2 code |
79 | 79 | * @param string $code region code |
80 | 80 | * |
81 | - * @return null|Region |
|
81 | + * @return Region |
|
82 | 82 | */ |
83 | 83 | protected function getRegionReference($countryCode, $code) |
84 | 84 | { |
@@ -4,10 +4,8 @@ |
||
4 | 4 | |
5 | 5 | use Doctrine\ORM\EntityManager; |
6 | 6 | use Doctrine\Common\DataFixtures\AbstractFixture; |
7 | - |
|
8 | 7 | use Symfony\Component\DependencyInjection\ContainerInterface; |
9 | 8 | use Symfony\Component\DependencyInjection\ContainerAwareInterface; |
10 | - |
|
11 | 9 | use Oro\Bundle\UserBundle\Entity\User; |
12 | 10 | use Oro\Bundle\AddressBundle\Entity\Region; |
13 | 11 | use Oro\Bundle\AddressBundle\Entity\Country; |
@@ -2,12 +2,8 @@ |
||
2 | 2 | |
3 | 3 | namespace OroCRM\Bundle\DemoDataBundle\Migrations\Data\Demo\ORM; |
4 | 4 | |
5 | -use Symfony\Component\DependencyInjection\ContainerInterface; |
|
6 | -use Symfony\Component\DependencyInjection\ContainerAwareInterface; |
|
7 | - |
|
8 | 5 | use Doctrine\Common\Persistence\ObjectManager; |
9 | 6 | use Doctrine\Common\DataFixtures\DependentFixtureInterface; |
10 | - |
|
11 | 7 | use OroCRM\Bundle\AccountBundle\Entity\Account; |
12 | 8 | use Oro\Bundle\OrganizationBundle\Entity\Organization; |
13 | 9 |
@@ -4,10 +4,8 @@ |
||
4 | 4 | |
5 | 5 | use Doctrine\Common\Persistence\ObjectManager; |
6 | 6 | use Doctrine\Common\DataFixtures\DependentFixtureInterface; |
7 | - |
|
8 | 7 | use Oro\Bundle\AddressBundle\Entity\Address; |
9 | 8 | use Oro\Bundle\OrganizationBundle\Entity\Organization; |
10 | - |
|
11 | 9 | use OroCRM\Bundle\AccountBundle\Entity\Account; |
12 | 10 | use OroCRM\Bundle\ChannelBundle\Entity\Channel; |
13 | 11 | use OroCRM\Bundle\SalesBundle\Entity\B2bCustomer; |
@@ -100,7 +100,7 @@ discard block |
||
100 | 100 | |
101 | 101 | /** |
102 | 102 | * @param EntityManager $manager |
103 | - * @param mixed $object |
|
103 | + * @param BusinessUnit $object |
|
104 | 104 | */ |
105 | 105 | private function persistAndFlush($manager, $object) |
106 | 106 | { |
@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | |
111 | 111 | /** |
112 | 112 | * @param EntityManager $manager |
113 | - * @param mixed $object |
|
113 | + * @param BusinessUnit $object |
|
114 | 114 | */ |
115 | 115 | private function persist($manager, $object) |
116 | 116 | { |
@@ -3,12 +3,10 @@ |
||
3 | 3 | |
4 | 4 | use Symfony\Component\DependencyInjection\ContainerInterface; |
5 | 5 | use Symfony\Component\DependencyInjection\ContainerAwareInterface; |
6 | - |
|
7 | 6 | use Doctrine\Common\DataFixtures\AbstractFixture; |
8 | 7 | use Doctrine\Common\Persistence\ObjectManager; |
9 | 8 | use Doctrine\ORM\EntityRepository; |
10 | 9 | use Doctrine\ORM\EntityManager; |
11 | - |
|
12 | 10 | use Oro\Bundle\OrganizationBundle\Entity\BusinessUnit; |
13 | 11 | use Oro\Bundle\OrganizationBundle\Entity\Organization; |
14 | 12 |
@@ -5,10 +5,8 @@ |
||
5 | 5 | use Doctrine\Common\DataFixtures\AbstractFixture; |
6 | 6 | use Doctrine\Common\Persistence\ObjectManager; |
7 | 7 | use Doctrine\Common\DataFixtures\DependentFixtureInterface; |
8 | - |
|
9 | 8 | use Symfony\Component\DependencyInjection\ContainerInterface; |
10 | 9 | use Symfony\Component\DependencyInjection\ContainerAwareInterface; |
11 | - |
|
12 | 10 | use Oro\Bundle\UserBundle\Entity\User; |
13 | 11 | use Oro\Bundle\OrganizationBundle\Entity\Organization; |
14 | 12 | use Oro\Bundle\SecurityBundle\Authentication\Token\UsernamePasswordOrganizationToken; |