@@ -6,10 +6,8 @@ |
||
6 | 6 | use Doctrine\Common\Persistence\ObjectManager; |
7 | 7 | use Doctrine\Common\DataFixtures\AbstractFixture; |
8 | 8 | use Doctrine\Common\DataFixtures\DependentFixtureInterface; |
9 | - |
|
10 | 9 | use Symfony\Component\DependencyInjection\ContainerInterface; |
11 | 10 | use Symfony\Component\DependencyInjection\ContainerAwareInterface; |
12 | - |
|
13 | 11 | use Oro\Bundle\ReportBundle\Entity\Report; |
14 | 12 | use Oro\Bundle\ReportBundle\Entity\ReportType; |
15 | 13 |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace OroCRM\Bundle\SalesBundle\Migrations\Schema\v1_0; |
4 | 4 | |
5 | 5 | use Doctrine\DBAL\Schema\Schema; |
6 | - |
|
7 | 6 | use Oro\Bundle\EntityExtendBundle\Migration\Extension\ExtendExtension; |
8 | 7 | use Oro\Bundle\EntityExtendBundle\Migration\Extension\ExtendExtensionAwareInterface; |
9 | 8 | use Oro\Bundle\MigrationBundle\Migration\Migration; |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace OroCRM\Bundle\SalesBundle\Migrations\Schema\v1_10; |
4 | 4 | |
5 | 5 | use Psr\Log\LoggerInterface; |
6 | - |
|
7 | 6 | use Oro\Bundle\MigrationBundle\Migration\ArrayLogger; |
8 | 7 | use Oro\Bundle\MigrationBundle\Migration\ParametrizedMigrationQuery; |
9 | 8 |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace OroCRM\Bundle\SalesBundle\Migrations\Schema\v1_17; |
4 | 4 | |
5 | 5 | use Doctrine\DBAL\Schema\Schema; |
6 | - |
|
7 | 6 | use Oro\Bundle\ActivityBundle\EntityConfig\ActivityScope; |
8 | 7 | use Oro\Bundle\ActivityBundle\Migration\Extension\ActivityExtension; |
9 | 8 | use Oro\Bundle\ActivityBundle\Migration\Extension\ActivityExtensionAwareInterface; |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace OroCRM\Bundle\SalesBundle\Provider; |
4 | 4 | |
5 | 5 | use Symfony\Bridge\Doctrine\RegistryInterface; |
6 | - |
|
7 | 6 | use Oro\Bundle\DashboardBundle\Provider\BigNumber\BigNumberDateHelper; |
8 | 7 | use Oro\Bundle\SecurityBundle\ORM\Walker\AclHelper; |
9 | 8 |
@@ -179,8 +179,8 @@ |
||
179 | 179 | } |
180 | 180 | |
181 | 181 | /** |
182 | - * @param $dataType |
|
183 | - * @param $lessIsBetter |
|
182 | + * @param string $dataType |
|
183 | + * @param boolean $lessIsBetter |
|
184 | 184 | * @param $pastResult |
185 | 185 | * @param $deviation |
186 | 186 | * @param $result |
@@ -3,14 +3,12 @@ |
||
3 | 3 | namespace OroCRM\Bundle\SalesBundle\Provider; |
4 | 4 | |
5 | 5 | use Symfony\Component\Translation\TranslatorInterface; |
6 | - |
|
7 | 6 | use Oro\Bundle\DashboardBundle\Model\WidgetOptionBag; |
8 | 7 | use Oro\Bundle\DashboardBundle\Provider\Converters\FilterDateRangeConverter; |
9 | 8 | use Oro\Bundle\LocaleBundle\Formatter\DateTimeFormatter; |
10 | 9 | use Oro\Bundle\LocaleBundle\Formatter\NumberFormatter; |
11 | 10 | use Oro\Bundle\DashboardBundle\Helper\DateHelper; |
12 | 11 | use Oro\Bundle\UserBundle\Dashboard\OwnerHelper; |
13 | - |
|
14 | 12 | use OroCRM\Bundle\SalesBundle\Provider\Opportunity\ForecastProvider; |
15 | 13 | |
16 | 14 | /** |
@@ -181,7 +181,7 @@ |
||
181 | 181 | } |
182 | 182 | |
183 | 183 | /** |
184 | - * @return Channel |
|
184 | + * @return LoadSalesBundleFixtures |
|
185 | 185 | */ |
186 | 186 | protected function createChannel() |
187 | 187 | { |
@@ -4,12 +4,10 @@ discard block |
||
4 | 4 | |
5 | 5 | use Doctrine\Common\DataFixtures\AbstractFixture; |
6 | 6 | use Doctrine\Common\Persistence\ObjectManager; |
7 | - |
|
8 | 7 | use Oro\Bundle\AddressBundle\Entity\Address; |
9 | 8 | use Oro\Bundle\AddressBundle\Entity\Country; |
10 | 9 | use Oro\Bundle\UserBundle\Entity\User; |
11 | 10 | use Oro\Bundle\OrganizationBundle\Entity\Organization; |
12 | - |
|
13 | 11 | use OroCRM\Bundle\AccountBundle\Entity\Account; |
14 | 12 | use OroCRM\Bundle\ContactBundle\Entity\Contact; |
15 | 13 | use OroCRM\Bundle\ChannelBundle\Builder\BuilderFactory; |
@@ -19,7 +17,6 @@ discard block |
||
19 | 17 | use OroCRM\Bundle\SalesBundle\Entity\LeadEmail; |
20 | 18 | use OroCRM\Bundle\SalesBundle\Entity\Opportunity; |
21 | 19 | use OroCRM\Bundle\SalesBundle\Entity\SalesFunnel; |
22 | - |
|
23 | 20 | use Symfony\Component\DependencyInjection\ContainerAwareInterface; |
24 | 21 | use Symfony\Component\DependencyInjection\ContainerInterface; |
25 | 22 |
@@ -5,10 +5,8 @@ |
||
5 | 5 | use OroCRM\Bundle\ChannelBundle\Provider\RequestChannelProvider; |
6 | 6 | use OroCRM\Bundle\SalesBundle\Entity\B2bCustomer; |
7 | 7 | use OroCRM\Bundle\SalesBundle\Form\Handler\B2bCustomerHandler; |
8 | - |
|
9 | 8 | use Symfony\Component\Form\FormInterface; |
10 | 9 | use Symfony\Component\HttpFoundation\Request; |
11 | - |
|
12 | 10 | use Doctrine\Common\Persistence\ObjectManager; |
13 | 11 | |
14 | 12 | class B2bCustomerHandlerTest extends \PHPUnit_Framework_TestCase |
@@ -294,8 +294,8 @@ discard block |
||
294 | 294 | /** |
295 | 295 | * Persist object |
296 | 296 | * |
297 | - * @param mixed $manager |
|
298 | - * @param mixed $object |
|
297 | + * @param Account $manager |
|
298 | + * @param Account $object |
|
299 | 299 | */ |
300 | 300 | private function persist($manager, $object) |
301 | 301 | { |
@@ -305,7 +305,7 @@ discard block |
||
305 | 305 | /** |
306 | 306 | * Flush objects |
307 | 307 | * |
308 | - * @param mixed $manager |
|
308 | + * @param Account $manager |
|
309 | 309 | */ |
310 | 310 | private function flush($manager) |
311 | 311 | { |
@@ -5,26 +5,20 @@ |
||
5 | 5 | use Oro\Bundle\OrganizationBundle\Entity\Organization; |
6 | 6 | use Symfony\Component\DependencyInjection\ContainerAwareInterface; |
7 | 7 | use Symfony\Component\DependencyInjection\ContainerInterface; |
8 | - |
|
9 | 8 | use Doctrine\Common\Collections\Collection; |
10 | 9 | use Doctrine\Common\DataFixtures\AbstractFixture; |
11 | 10 | use Doctrine\Common\Persistence\ObjectManager; |
12 | - |
|
13 | 11 | use Doctrine\ORM\EntityManager; |
14 | 12 | use Doctrine\ORM\EntityRepository; |
15 | - |
|
16 | 13 | use OroCRM\Bundle\AccountBundle\Entity\Account; |
17 | 14 | use OroCRM\Bundle\ContactBundle\Entity\Contact; |
18 | - |
|
19 | 15 | use Oro\Bundle\AddressBundle\Entity\Country; |
20 | 16 | use Oro\Bundle\AddressBundle\Entity\Region; |
21 | - |
|
22 | 17 | use OroCRM\Bundle\ContactBundle\Entity\ContactAddress; |
23 | 18 | use OroCRM\Bundle\ContactBundle\Entity\ContactEmail; |
24 | 19 | use OroCRM\Bundle\ContactBundle\Entity\ContactPhone; |
25 | 20 | use OroCRM\Bundle\ContactBundle\Entity\Group; |
26 | 21 | use OroCRM\Bundle\ContactBundle\Entity\Source; |
27 | - |
|
28 | 22 | use Oro\Bundle\UserBundle\Entity\User; |
29 | 23 | use Oro\Bundle\UserBundle\Entity\UserManager; |
30 | 24 |