@@ -20,6 +20,7 @@ |
||
20 | 20 | |
21 | 21 | /** |
22 | 22 | * {@inheritdoc} |
23 | + * @param \OroCRM\Bundle\SalesBundle\Entity\Opportunity $entity |
|
23 | 24 | */ |
24 | 25 | public function afterProcess($entity) |
25 | 26 | { |
@@ -86,7 +86,7 @@ |
||
86 | 86 | /** |
87 | 87 | * @param Schema $schema |
88 | 88 | * @param ExtendExtension $extendExtension |
89 | - * @param array $immutableCodes |
|
89 | + * @param string[] $immutableCodes |
|
90 | 90 | */ |
91 | 91 | public static function addStatusField(Schema $schema, ExtendExtension $extendExtension, array $immutableCodes) |
92 | 92 | { |
@@ -4,10 +4,6 @@ |
||
4 | 4 | |
5 | 5 | use Doctrine\Common\DataFixtures\AbstractFixture; |
6 | 6 | use Doctrine\Common\Persistence\ObjectManager; |
7 | - |
|
8 | -use Symfony\Component\DependencyInjection\ContainerAwareInterface; |
|
9 | -use Symfony\Component\DependencyInjection\ContainerInterface; |
|
10 | - |
|
11 | 7 | use Oro\Bundle\EntityExtendBundle\Tools\ExtendHelper; |
12 | 8 | use Oro\Bundle\OrganizationBundle\Entity\Organization; |
13 | 9 | use OroCRM\Bundle\SalesBundle\Entity\Opportunity; |
@@ -181,7 +181,7 @@ |
||
181 | 181 | } |
182 | 182 | |
183 | 183 | /** |
184 | - * @param mixed $data |
|
184 | + * @param Opportunity $data |
|
185 | 185 | * |
186 | 186 | * @return FormEvent |
187 | 187 | */ |
@@ -2,11 +2,6 @@ |
||
2 | 2 | |
3 | 3 | namespace OroCRM\Bundle\SalesBundle\Tests\Unit\Entity; |
4 | 4 | |
5 | -use Doctrine\ORM\EntityManager; |
|
6 | - |
|
7 | -use Oro\Bundle\ConfigBundle\Config\ConfigManager; |
|
8 | -use Oro\Bundle\EntityExtendBundle\Entity\AbstractEnumValue; |
|
9 | - |
|
10 | 5 | use OroCRM\Bundle\SalesBundle\Entity\Opportunity; |
11 | 6 | use OroCRM\Bundle\SalesBundle\Handler\OpportunityApiHandler; |
12 | 7 |
@@ -336,7 +336,7 @@ |
||
336 | 336 | } |
337 | 337 | |
338 | 338 | /** |
339 | - * @param $key |
|
339 | + * @param string $key |
|
340 | 340 | * |
341 | 341 | * @return mixed |
342 | 342 | */ |
@@ -3,18 +3,14 @@ |
||
3 | 3 | namespace OroCRM\Bundle\SalesBundle\Provider\Opportunity; |
4 | 4 | |
5 | 5 | use Symfony\Bridge\Doctrine\RegistryInterface; |
6 | - |
|
7 | 6 | use Doctrine\ORM\EntityRepository; |
8 | -use Doctrine\ORM\Query\Expr\Composite; |
|
9 | 7 | use Doctrine\ORM\Query\Expr\Join; |
10 | 8 | use Doctrine\ORM\QueryBuilder; |
11 | - |
|
12 | 9 | use Oro\Bundle\QueryDesignerBundle\QueryDesigner\FilterProcessor; |
13 | 10 | use Oro\Bundle\EntityExtendBundle\Provider\EnumValueProvider; |
14 | 11 | use Oro\Bundle\SecurityBundle\ORM\Walker\AclHelper; |
15 | 12 | use Oro\Bundle\UserBundle\Entity\Repository\UserRepository; |
16 | 13 | use Oro\Component\DoctrineUtils\ORM\QueryUtils; |
17 | - |
|
18 | 14 | use OroCRM\Bundle\SalesBundle\Entity\Repository\OpportunityRepository; |
19 | 15 | |
20 | 16 | class ForecastProvider |