@@ -45,7 +45,7 @@ |
||
| 45 | 45 | * |
| 46 | 46 | * @param object $target Any configurable entity that can have notes |
| 47 | 47 | * |
| 48 | - * @return object This object |
|
| 48 | + * @return ExtendAttachment This object |
|
| 49 | 49 | */ |
| 50 | 50 | public function setTarget($target) |
| 51 | 51 | { |
@@ -5,7 +5,6 @@ |
||
| 5 | 5 | use Oro\Bundle\AttachmentBundle\Entity\Attachment; |
| 6 | 6 | use Oro\Bundle\AttachmentBundle\Entity\File; |
| 7 | 7 | use Oro\Bundle\AttachmentBundle\Tests\Unit\Fixtures\TestUser; |
| 8 | - |
|
| 9 | 8 | use Oro\Bundle\OrganizationBundle\Entity\Organization; |
| 10 | 9 | |
| 11 | 10 | class AttachmentTest extends EntityTestAbstract |
@@ -3,7 +3,6 @@ |
||
| 3 | 3 | namespace Oro\Bundle\AttachmentBundle\Tests\Unit\Entity; |
| 4 | 4 | |
| 5 | 5 | use Symfony\Component\HttpFoundation\File\File as FileType; |
| 6 | - |
|
| 7 | 6 | use Oro\Bundle\AttachmentBundle\Entity\File; |
| 8 | 7 | use Oro\Bundle\AttachmentBundle\Tests\Unit\Fixtures\TestUser; |
| 9 | 8 | |
@@ -5,7 +5,6 @@ |
||
| 5 | 5 | use Symfony\Component\PropertyAccess\PropertyAccess; |
| 6 | 6 | use Symfony\Component\Validator\ConstraintViolation; |
| 7 | 7 | use Symfony\Component\Validator\ConstraintViolationList; |
| 8 | - |
|
| 9 | 8 | use Oro\Bundle\AttachmentBundle\Entity\File; |
| 10 | 9 | use Oro\Bundle\AttachmentBundle\ImportExport\FileNormalizer; |
| 11 | 10 | |
@@ -76,7 +76,7 @@ discard block |
||
| 76 | 76 | /** |
| 77 | 77 | * Get file url |
| 78 | 78 | * |
| 79 | - * @param object $parentEntity |
|
| 79 | + * @param \Oro\Bundle\AttachmentBundle\Tests\Unit\Fixtures\TestClass $parentEntity |
|
| 80 | 80 | * @param string $fieldName |
| 81 | 81 | * @param File $attachment |
| 82 | 82 | * @param string $type |
@@ -139,7 +139,7 @@ discard block |
||
| 139 | 139 | * Get file view html block |
| 140 | 140 | * |
| 141 | 141 | * @param \Twig_Environment $environment |
| 142 | - * @param object $parentEntity |
|
| 142 | + * @param \Oro\Bundle\AttachmentBundle\Tests\Unit\Fixtures\TestClass $parentEntity |
|
| 143 | 143 | * @param string $fieldName |
| 144 | 144 | * @param File $attachment |
| 145 | 145 | * |
@@ -222,7 +222,7 @@ discard block |
||
| 222 | 222 | /** |
| 223 | 223 | * Get attachment image resized with config values |
| 224 | 224 | * |
| 225 | - * @param object $parentEntity |
|
| 225 | + * @param \Oro\Bundle\AttachmentBundle\Tests\Unit\Fixtures\TestAttachment $parentEntity |
|
| 226 | 226 | * @param string $fieldName |
| 227 | 227 | * @param File $attachment |
| 228 | 228 | * |
@@ -3,13 +3,10 @@ |
||
| 3 | 3 | namespace Oro\Bundle\AttachmentBundle\Twig; |
| 4 | 4 | |
| 5 | 5 | use Doctrine\Common\Persistence\ManagerRegistry; |
| 6 | - |
|
| 7 | 6 | use Symfony\Component\PropertyAccess\PropertyAccess; |
| 8 | 7 | use Symfony\Component\Security\Core\Util\ClassUtils; |
| 9 | - |
|
| 10 | 8 | use Oro\Bundle\AttachmentBundle\Entity\File; |
| 11 | 9 | use Oro\Bundle\AttachmentBundle\Manager\AttachmentManager; |
| 12 | - |
|
| 13 | 10 | use Oro\Bundle\EntityConfigBundle\Config\ConfigManager; |
| 14 | 11 | use Oro\Bundle\EntityConfigBundle\Provider\ConfigProvider; |
| 15 | 12 | |
@@ -4,12 +4,9 @@ |
||
| 4 | 4 | |
| 5 | 5 | use Symfony\Component\Validator\Validator\ValidatorInterface; |
| 6 | 6 | use Symfony\Component\Validator\Constraints\File as FileConstraint; |
| 7 | - |
|
| 8 | 7 | use Oro\Bundle\AttachmentBundle\Entity\File; |
| 9 | 8 | use Oro\Bundle\AttachmentBundle\Entity\Attachment; |
| 10 | - |
|
| 11 | 9 | use Oro\Bundle\ConfigBundle\Config\ConfigManager as Configuration; |
| 12 | - |
|
| 13 | 10 | use Oro\Bundle\EntityConfigBundle\Config\Id\FieldConfigId; |
| 14 | 11 | use Oro\Bundle\EntityConfigBundle\Config\Config; |
| 15 | 12 | use Oro\Bundle\EntityConfigBundle\Config\ConfigManager; |
@@ -133,7 +133,7 @@ |
||
| 133 | 133 | /** |
| 134 | 134 | * Find job executions created before the given date time |
| 135 | 135 | * |
| 136 | - * @param $endTime |
|
| 136 | + * @param \DateTime $endTime |
|
| 137 | 137 | * |
| 138 | 138 | * @return QueryBuilder |
| 139 | 139 | */ |
@@ -3,16 +3,13 @@ |
||
| 3 | 3 | namespace Oro\Bundle\BatchBundle\Command; |
| 4 | 4 | |
| 5 | 5 | use Akeneo\Bundle\BatchBundle\Job\BatchStatus; |
| 6 | - |
|
| 7 | 6 | use Doctrine\ORM\AbstractQuery; |
| 8 | 7 | use Doctrine\ORM\EntityManager; |
| 9 | 8 | use Doctrine\ORM\QueryBuilder; |
| 10 | - |
|
| 11 | 9 | use Symfony\Component\Console\Input\InputOption; |
| 12 | 10 | use Symfony\Component\Console\Input\InputInterface; |
| 13 | 11 | use Symfony\Component\Console\Output\OutputInterface; |
| 14 | 12 | use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand; |
| 15 | - |
|
| 16 | 13 | use Oro\Bundle\CronBundle\Command\CronCommandInterface; |
| 17 | 14 | use Oro\Bundle\BatchBundle\ORM\Query\DeletionQueryResultIterator; |
| 18 | 15 | |
@@ -5,7 +5,6 @@ |
||
| 5 | 5 | use Doctrine\ORM\Query; |
| 6 | 6 | use Doctrine\ORM\Tools\Pagination\Paginator; |
| 7 | 7 | use Doctrine\ORM\Tools\Pagination\CountWalker; |
| 8 | - |
|
| 9 | 8 | use Oro\Bundle\EntityBundle\ORM\QueryUtils; |
| 10 | 9 | use Oro\Bundle\EntityBundle\ORM\SqlQuery; |
| 11 | 10 | |
@@ -5,7 +5,6 @@ |
||
| 5 | 5 | use Doctrine\ORM\Mapping\ClassMetadata; |
| 6 | 6 | use Doctrine\ORM\Query\Expr; |
| 7 | 7 | use Doctrine\ORM\QueryBuilder; |
| 8 | - |
|
| 9 | 8 | use Oro\Bundle\BatchBundle\Event\CountQueryOptimizationEvent; |
| 10 | 9 | use Symfony\Component\EventDispatcher\EventDispatcherInterface; |
| 11 | 10 | |