@@ -319,7 +319,7 @@ |
||
| 319 | 319 | * @param string $commandPrefix |
| 320 | 320 | * @param int $commandSize - windows shell-command is limited by 8kb |
| 321 | 321 | * |
| 322 | - * @return array of commands to be executed |
|
| 322 | + * @return string[] of commands to be executed |
|
| 323 | 323 | */ |
| 324 | 324 | protected function makeCommands(array $paths, $commandPrefix, $commandSize = 8000) |
| 325 | 325 | { |
@@ -5,8 +5,8 @@ discard block |
||
| 5 | 5 | trait ReflectionHelperTrait |
| 6 | 6 | { |
| 7 | 7 | /** |
| 8 | - * @param mixed $class |
|
| 9 | - * @param mixed $subclass |
|
| 8 | + * @param string $class |
|
| 9 | + * @param string $subclass |
|
| 10 | 10 | */ |
| 11 | 11 | public function assertSubclassOf($class, $subclass) |
| 12 | 12 | { |
@@ -15,8 +15,8 @@ discard block |
||
| 15 | 15 | } |
| 16 | 16 | |
| 17 | 17 | /** |
| 18 | - * @param mixed $interface |
|
| 19 | - * @param mixed $class |
|
| 18 | + * @param string $interface |
|
| 19 | + * @param string $class |
|
| 20 | 20 | */ |
| 21 | 21 | public function assertImplementsInterface($interface, $class) |
| 22 | 22 | { |
@@ -283,7 +283,7 @@ discard block |
||
| 283 | 283 | * @param \Composer\Package\PackageInterface $package |
| 284 | 284 | * @param string $targetDir |
| 285 | 285 | * |
| 286 | - * @return \PHPUnit_Framework_MockObject_MockObject|InstallationManager |
|
| 286 | + * @return InstallationManager |
|
| 287 | 287 | */ |
| 288 | 288 | protected function createInstallationManagerMock(PackageInterface $package = null, $targetDir = null) |
| 289 | 289 | { |
@@ -299,9 +299,9 @@ discard block |
||
| 299 | 299 | } |
| 300 | 300 | |
| 301 | 301 | /** |
| 302 | - * @param $annotationLabel |
|
| 303 | - * @param $pathToFile |
|
| 304 | - * @param $scriptOutput |
|
| 302 | + * @param string $annotationLabel |
|
| 303 | + * @param string $pathToFile |
|
| 304 | + * @param string $scriptOutput |
|
| 305 | 305 | * |
| 306 | 306 | * @return string |
| 307 | 307 | */ |
@@ -3,7 +3,6 @@ |
||
| 3 | 3 | namespace Oro\Component\PropertyAccess\Tests\Unit; |
| 4 | 4 | |
| 5 | 5 | use Symfony\Component\PropertyAccess\Exception\NoSuchPropertyException; |
| 6 | - |
|
| 7 | 6 | use Oro\Component\PropertyAccess\PropertyAccessor; |
| 8 | 7 | use Oro\Component\PropertyAccess\Tests\Unit\Fixtures\TestClass; |
| 9 | 8 | use Oro\Component\PropertyAccess\Tests\Unit\Fixtures\TestClassMagicCall; |
@@ -3,7 +3,6 @@ |
||
| 3 | 3 | |
| 4 | 4 | use Composer\Package\PackageInterface; |
| 5 | 5 | use Oro\Bundle\DistributionBundle\Manager\Helper\ChangeSetBuilder; |
| 6 | -use Oro\Bundle\DistributionBundle\Test\PhpUnit\Helper\MockHelperTrait; |
|
| 7 | 6 | |
| 8 | 7 | class ChangeSetBuilderTest extends \PHPUnit_Framework_TestCase |
| 9 | 8 | { |
@@ -103,7 +103,7 @@ |
||
| 103 | 103 | |
| 104 | 104 | /** |
| 105 | 105 | * @param $object |
| 106 | - * @param $objectClass |
|
| 106 | + * @param string $objectClass |
|
| 107 | 107 | * |
| 108 | 108 | * @return mixed |
| 109 | 109 | */ |
@@ -4,9 +4,7 @@ |
||
| 4 | 4 | |
| 5 | 5 | use Doctrine\Common\EventManager; |
| 6 | 6 | use Doctrine\DBAL\Driver\Connection; |
| 7 | - |
|
| 8 | 7 | use Symfony\Component\Filesystem\Filesystem; |
| 9 | - |
|
| 10 | 8 | use Oro\Component\TestUtils\ORM\Mocks\DriverMock; |
| 11 | 9 | use Oro\Component\TestUtils\ORM\Mocks\EntityManagerMock; |
| 12 | 10 | |
@@ -215,7 +215,7 @@ discard block |
||
| 215 | 215 | |
| 216 | 216 | /** |
| 217 | 217 | * @param EmailEntity $emailEntity |
| 218 | - * @param $templatePath |
|
| 218 | + * @param string|null $templatePath |
|
| 219 | 219 | * |
| 220 | 220 | * @return null|string |
| 221 | 221 | */ |
@@ -232,8 +232,8 @@ discard block |
||
| 232 | 232 | } |
| 233 | 233 | |
| 234 | 234 | /** |
| 235 | - * @param $prefix |
|
| 236 | - * @param $subject |
|
| 235 | + * @param string $prefix |
|
| 236 | + * @param string $subject |
|
| 237 | 237 | * |
| 238 | 238 | * @return string |
| 239 | 239 | */ |
@@ -248,7 +248,7 @@ discard block |
||
| 248 | 248 | /** |
| 249 | 249 | * @param string $entityClass |
| 250 | 250 | * @param string $entityId |
| 251 | - * @return object |
|
| 251 | + * @return \Oro\Bundle\EmailBundle\Model\EmailTemplateInterface |
|
| 252 | 252 | */ |
| 253 | 253 | public function getTargetEntity($entityClass, $entityId) |
| 254 | 254 | { |
@@ -4,9 +4,7 @@ |
||
| 4 | 4 | |
| 5 | 5 | use Doctrine\Common\EventManager; |
| 6 | 6 | use Doctrine\DBAL\Driver\Connection; |
| 7 | - |
|
| 8 | 7 | use Symfony\Component\Filesystem\Filesystem; |
| 9 | - |
|
| 10 | 8 | use Oro\Component\TestUtils\ORM\Mocks\DriverMock; |
| 11 | 9 | use Oro\Component\TestUtils\ORM\Mocks\EntityManagerMock; |
| 12 | 10 | |
@@ -6,12 +6,8 @@ |
||
| 6 | 6 | use FOS\RestBundle\Controller\Annotations\RouteResource; |
| 7 | 7 | use FOS\RestBundle\Controller\Annotations\QueryParam; |
| 8 | 8 | use FOS\RestBundle\Controller\Annotations\Get; |
| 9 | -use FOS\RestBundle\Controller\Annotations\Delete; |
|
| 10 | - |
|
| 11 | 9 | use Nelmio\ApiDocBundle\Annotation\ApiDoc; |
| 12 | - |
|
| 13 | 10 | use Symfony\Component\HttpFoundation\Response; |
| 14 | - |
|
| 15 | 11 | use Oro\Bundle\SecurityBundle\Annotation\AclAncestor; |
| 16 | 12 | use Oro\Bundle\SoapBundle\Controller\Api\Rest\RestController; |
| 17 | 13 | use Oro\Bundle\SoapBundle\Request\Parameters\Filter\StringToArrayParameterFilter; |
@@ -6,14 +6,9 @@ |
||
| 6 | 6 | use FOS\RestBundle\Controller\Annotations\RouteResource; |
| 7 | 7 | use FOS\RestBundle\Controller\Annotations\QueryParam; |
| 8 | 8 | use FOS\RestBundle\Controller\Annotations\Get; |
| 9 | -use FOS\RestBundle\Controller\Annotations\Delete; |
|
| 10 | - |
|
| 11 | 9 | use Nelmio\ApiDocBundle\Annotation\ApiDoc; |
| 12 | - |
|
| 13 | 10 | use Symfony\Component\HttpFoundation\Response; |
| 14 | - |
|
| 15 | 11 | use Oro\Bundle\SecurityBundle\Annotation\AclAncestor; |
| 16 | -use Oro\Bundle\SecurityBundle\SecurityFacade; |
|
| 17 | 12 | use Oro\Bundle\SoapBundle\Controller\Api\Rest\RestGetController; |
| 18 | 13 | |
| 19 | 14 | /** |
@@ -4,21 +4,14 @@ |
||
| 4 | 4 | |
| 5 | 5 | use Doctrine\ORM\EntityManager; |
| 6 | 6 | use Doctrine\ORM\EntityRepository; |
| 7 | -use Doctrine\ORM\Query; |
|
| 8 | - |
|
| 9 | 7 | use FOS\RestBundle\Util\Codes; |
| 10 | - |
|
| 11 | 8 | use Symfony\Bundle\FrameworkBundle\Controller\Controller; |
| 12 | 9 | use Symfony\Component\HttpFoundation\JsonResponse; |
| 13 | 10 | use Symfony\Component\HttpFoundation\Request; |
| 14 | 11 | use Symfony\Component\HttpFoundation\Response; |
| 15 | -use Symfony\Component\Routing\Generator\UrlGeneratorInterface; |
|
| 16 | 12 | use Symfony\Component\Security\Core\Exception\AccessDeniedException; |
| 17 | - |
|
| 18 | 13 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; |
| 19 | 14 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template; |
| 20 | - |
|
| 21 | -use Oro\Bundle\EmailBundle\Model\WebSocket\WebSocketSendProcessor; |
|
| 22 | 15 | use Oro\Bundle\EmailBundle\Cache\EmailCacheManager; |
| 23 | 16 | use Oro\Bundle\EmailBundle\Entity\Manager\EmailManager; |
| 24 | 17 | use Oro\Bundle\EmailBundle\Entity\Email; |