@@ -4,21 +4,16 @@ |
||
4 | 4 | |
5 | 5 | use Doctrine\ORM\QueryBuilder; |
6 | 6 | use Nelmio\ApiDocBundle\Annotation\ApiDoc; |
7 | - |
|
8 | 7 | use Oro\Bundle\SearchBundle\Event\PrepareResultItemEvent; |
9 | 8 | use Symfony\Component\HttpFoundation\Response; |
10 | 9 | use Symfony\Component\HttpFoundation\JsonResponse; |
11 | - |
|
12 | -use Doctrine\ORM\Query; |
|
13 | 10 | use Doctrine\ORM\UnitOfWork; |
14 | 11 | use Doctrine\ORM\Proxy\Proxy; |
15 | 12 | use Doctrine\Common\Collections\Criteria; |
16 | - |
|
17 | 13 | use FOS\RestBundle\Util\Codes; |
18 | 14 | use FOS\RestBundle\View\View; |
19 | 15 | use FOS\RestBundle\Controller\FOSRestController; |
20 | 16 | use FOS\RestBundle\Request\ParamFetcherInterface; |
21 | - |
|
22 | 17 | use Oro\Bundle\EntityBundle\ORM\SqlQueryBuilder; |
23 | 18 | use Oro\Bundle\SearchBundle\Query\Query as SearchQuery; |
24 | 19 | use Oro\Bundle\SearchBundle\Query\Result\Item as SearchResultItem; |
@@ -29,7 +29,6 @@ discard block |
||
29 | 29 | /** |
30 | 30 | * Create new |
31 | 31 | * |
32 | - * @param mixed $_ [optional] Arguments will be passed to createEntity method |
|
33 | 32 | * @return integer |
34 | 33 | */ |
35 | 34 | public function handleCreateRequest() |
@@ -43,7 +42,6 @@ discard block |
||
43 | 42 | /** |
44 | 43 | * Create new entity |
45 | 44 | * |
46 | - * @param mixed $_ [optional] Arguments will be passed to createEntity method of manager (result of getManager) |
|
47 | 45 | * @return mixed |
48 | 46 | */ |
49 | 47 | protected function createEntity() |
@@ -3,11 +3,9 @@ |
||
3 | 3 | namespace Oro\Bundle\SoapBundle\Controller\Api\Soap; |
4 | 4 | |
5 | 5 | use Doctrine\Common\Collections\Collection; |
6 | - |
|
7 | 6 | use Doctrine\ORM\EntityNotFoundException; |
8 | 7 | use Symfony\Component\Form\FormError; |
9 | 8 | use Symfony\Component\Form\FormInterface; |
10 | - |
|
11 | 9 | use Oro\Bundle\SoapBundle\Controller\Api\FormAwareInterface; |
12 | 10 | use Oro\Bundle\SoapBundle\Controller\Api\FormHandlerAwareInterface; |
13 | 11 | use Oro\Bundle\SoapBundle\Handler\DeleteHandler; |
@@ -6,7 +6,6 @@ |
||
6 | 6 | use Symfony\Component\Form\FormEvents; |
7 | 7 | use Symfony\Component\Form\FormEvent; |
8 | 8 | use Symfony\Component\Form\FormInterface; |
9 | - |
|
10 | 9 | use Doctrine\Common\Collections\Collection; |
11 | 10 | |
12 | 11 | /** |
@@ -4,9 +4,7 @@ |
||
4 | 4 | |
5 | 5 | use Symfony\Component\Form\FormInterface; |
6 | 6 | use Symfony\Component\HttpFoundation\Request; |
7 | - |
|
8 | 7 | use Doctrine\Common\Persistence\ObjectManager; |
9 | - |
|
10 | 8 | use Oro\Bundle\SoapBundle\Controller\Api\FormAwareInterface; |
11 | 9 | |
12 | 10 | class ApiFormHandler implements FormAwareInterface |
@@ -85,7 +85,7 @@ |
||
85 | 85 | |
86 | 86 | /** |
87 | 87 | * @param string $key |
88 | - * @param null $default |
|
88 | + * @param string $default |
|
89 | 89 | * |
90 | 90 | * @return null |
91 | 91 | */ |
@@ -4,7 +4,6 @@ |
||
4 | 4 | |
5 | 5 | use Symfony\Component\HttpFoundation\Request; |
6 | 6 | use Symfony\Component\HttpFoundation\Response; |
7 | - |
|
8 | 7 | use Oro\Bundle\SoapBundle\Controller\Api\FormAwareInterface; |
9 | 8 | use Oro\Bundle\SoapBundle\Controller\Api\EntityManagerAwareInterface; |
10 | 9 |
@@ -4,7 +4,6 @@ |
||
4 | 4 | |
5 | 5 | use Doctrine\ORM\Query; |
6 | 6 | use Doctrine\ORM\QueryBuilder; |
7 | - |
|
8 | 7 | use Oro\Bundle\BatchBundle\ORM\Query\QueryCountCalculator; |
9 | 8 | use Oro\Bundle\BatchBundle\ORM\QueryBuilder\CountQueryBuilderOptimizer; |
10 | 9 | use Oro\Bundle\EntityBundle\ORM\SqlQuery; |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace Oro\Bundle\SoapBundle\ServiceDefinition\Loader; |
4 | 4 | |
5 | 5 | use Symfony\Component\Config\FileLocator; |
6 | - |
|
7 | 6 | use BeSimple\SoapBundle\ServiceDefinition\Loader\AnnotationFileLoader; |
8 | 7 | use BeSimple\SoapBundle\ServiceDefinition\Loader\AnnotationClassLoader; |
9 | 8 |
@@ -4,7 +4,6 @@ |
||
4 | 4 | |
5 | 5 | use Doctrine\Common\Collections\ArrayCollection; |
6 | 6 | use Doctrine\Common\Collections\Criteria; |
7 | - |
|
8 | 7 | use Oro\Bundle\SoapBundle\Entity\Manager\ApiEntityManager; |
9 | 8 | use Oro\Bundle\SoapBundle\Tests\Unit\Entity\Manager\Stub\Entity; |
10 | 9 |
@@ -4,7 +4,6 @@ |
||
4 | 4 | |
5 | 5 | use Symfony\Component\HttpFoundation\Request; |
6 | 6 | use Symfony\Component\HttpFoundation\Response; |
7 | - |
|
8 | 7 | use Oro\Bundle\SoapBundle\Handler\Context; |
9 | 8 | |
10 | 9 | class ContextTest extends \PHPUnit_Framework_TestCase |