@@ -4,10 +4,8 @@ |
||
4 | 4 | |
5 | 5 | use Doctrine\Common\DataFixtures\AbstractFixture; |
6 | 6 | use Doctrine\Common\Persistence\ObjectManager; |
7 | - |
|
8 | 7 | use OroCRM\Bundle\AnalyticsBundle\Model\RFMAwareInterface; |
9 | 8 | use Symfony\Component\PropertyAccess\PropertyAccess; |
10 | - |
|
11 | 9 | use OroCRM\Bundle\ChannelBundle\Entity\Channel; |
12 | 10 | |
13 | 11 | class LoadChannelData extends AbstractFixture |
@@ -5,9 +5,7 @@ |
||
5 | 5 | use Doctrine\Common\DataFixtures\AbstractFixture; |
6 | 6 | use Doctrine\Common\DataFixtures\DependentFixtureInterface; |
7 | 7 | use Doctrine\Common\Persistence\ObjectManager; |
8 | - |
|
9 | 8 | use Symfony\Component\PropertyAccess\PropertyAccess; |
10 | - |
|
11 | 9 | use OroCRM\Bundle\ChannelBundle\Entity\Channel; |
12 | 10 | use OroCRM\Bundle\MagentoBundle\Entity\Customer; |
13 | 11 |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace OroCRM\Bundle\AnalyticsBundle\Tests\Unit\DependencyInjection\CompilerPass; |
4 | 4 | |
5 | 5 | use Symfony\Component\DependencyInjection\ContainerBuilder; |
6 | - |
|
7 | 6 | use OroCRM\Bundle\AnalyticsBundle\DependencyInjection\CompilerPass\AnalyticsBuilderPass; |
8 | 7 | |
9 | 8 | class AnalyticsBuilderPassTest extends \PHPUnit_Framework_TestCase |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace OroCRM\Bundle\AnalyticsBundle\Tests\Unit\DependencyInjection\CompilerPass; |
4 | 4 | |
5 | 5 | use Symfony\Component\DependencyInjection\ContainerBuilder; |
6 | - |
|
7 | 6 | use OroCRM\Bundle\AnalyticsBundle\DependencyInjection\CompilerPass\RFMBuilderPass; |
8 | 7 | |
9 | 8 | class RFMBuilderPassTest extends \PHPUnit_Framework_TestCase |
@@ -4,7 +4,6 @@ |
||
4 | 4 | |
5 | 5 | use Doctrine\ORM\EntityManager; |
6 | 6 | use Doctrine\ORM\Event\OnFlushEventArgs; |
7 | - |
|
8 | 7 | use OroCRM\Bundle\AnalyticsBundle\Entity\RFMMetricCategory; |
9 | 8 | use OroCRM\Bundle\AnalyticsBundle\EventListener\RFMCategoryListener; |
10 | 9 | use OroCRM\Bundle\AnalyticsBundle\Model\RFMMetricStateManager; |
@@ -6,10 +6,8 @@ |
||
6 | 6 | use Doctrine\ORM\EntityManager; |
7 | 7 | use Doctrine\ORM\Mapping\ClassMetadata; |
8 | 8 | use Doctrine\ORM\PersistentCollection; |
9 | - |
|
10 | 9 | use Symfony\Component\Form\FormBuilderInterface; |
11 | 10 | use Symfony\Component\Form\FormEvent; |
12 | - |
|
13 | 11 | use Oro\Bundle\EntityBundle\ORM\DoctrineHelper; |
14 | 12 | use OroCRM\Bundle\AnalyticsBundle\Entity\RFMMetricCategory; |
15 | 13 | use OroCRM\Bundle\AnalyticsBundle\Form\Extension\ChannelTypeExtension; |
@@ -270,7 +270,7 @@ |
||
270 | 270 | } |
271 | 271 | |
272 | 272 | /** |
273 | - * @param array $items |
|
273 | + * @param RFMMetricCategory[] $items |
|
274 | 274 | * |
275 | 275 | * @return PersistentCollection |
276 | 276 | */ |
@@ -6,9 +6,7 @@ |
||
6 | 6 | use Doctrine\ORM\EntityManager; |
7 | 7 | use Doctrine\ORM\Mapping\ClassMetadata; |
8 | 8 | use Doctrine\ORM\PersistentCollection; |
9 | - |
|
10 | 9 | use Symfony\Component\Validator\ExecutionContextInterface; |
11 | - |
|
12 | 10 | use OroCRM\Bundle\AnalyticsBundle\Entity\RFMMetricCategory; |
13 | 11 | use OroCRM\Bundle\AnalyticsBundle\Validator\CategoriesConstraint; |
14 | 12 | use OroCRM\Bundle\AnalyticsBundle\Validator\CategoriesValidator; |
@@ -18,7 +18,7 @@ |
||
18 | 18 | /** |
19 | 19 | * Validate collection. |
20 | 20 | * |
21 | - * @param PersistentCollection|RFMMetricCategory[] $value |
|
21 | + * @param PersistentCollection $value |
|
22 | 22 | * @param CategoriesConstraint $constraint |
23 | 23 | * |
24 | 24 | * {@inheritdoc} |
@@ -5,10 +5,8 @@ |
||
5 | 5 | use Doctrine\Common\Collections\Collection; |
6 | 6 | use Doctrine\Common\Collections\Criteria; |
7 | 7 | use Doctrine\ORM\PersistentCollection; |
8 | - |
|
9 | 8 | use Symfony\Component\Validator\Constraint; |
10 | 9 | use Symfony\Component\Validator\ConstraintValidator; |
11 | - |
|
12 | 10 | use OroCRM\Bundle\AnalyticsBundle\Entity\RFMMetricCategory; |
13 | 11 | |
14 | 12 | class CategoriesValidator extends ConstraintValidator |
@@ -3,11 +3,9 @@ |
||
3 | 3 | namespace OroCRM\Bundle\CampaignBundle\Command; |
4 | 4 | |
5 | 5 | use Doctrine\ORM\EntityManager; |
6 | - |
|
7 | 6 | use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand; |
8 | 7 | use Symfony\Component\Console\Input\InputInterface; |
9 | 8 | use Symfony\Component\Console\Output\OutputInterface; |
10 | - |
|
11 | 9 | use Oro\Bundle\CronBundle\Command\CronCommandInterface; |
12 | 10 | use Oro\Bundle\EntityBundle\ORM\DoctrineHelper; |
13 | 11 | use OroCRM\Bundle\CampaignBundle\Entity\Campaign; |