Completed
Pull Request — master (#352)
by php-br
61:36
created
Oro/Bundle/AttachmentBundle/Tests/Unit/ImportExport/FileNormalizerTest.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,6 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
Oro/Bundle/AttachmentBundle/Tests/Unit/Provider/AttachmentProviderTest.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
3 3
 namespace Oro\Bundle\AttachmentBundle\Tests\Unit\Provider;
4 4
 
5 5
 use Doctrine\ORM\EntityManager;
6
-
7 6
 use Oro\Bundle\AttachmentBundle\EntityConfig\AttachmentConfig;
8 7
 use Oro\Bundle\AttachmentBundle\Provider\AttachmentProvider;
9 8
 use Oro\Bundle\AttachmentBundle\Tests\Unit\Fixtures\TestClass;
Please login to merge, or discard this patch.
src/Oro/Bundle/AttachmentBundle/Twig/FileExtension.php 2 patches
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
      *
Please login to merge, or discard this patch.
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -3,13 +3,10 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Oro/Bundle/AttachmentBundle/Validator/ConfigFileValidator.php 1 patch
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -4,12 +4,9 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/Oro/Bundle/BatchBundle/Command/CleanupCommand.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -133,7 +133,7 @@
 block discarded – undo
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
      */
Please login to merge, or discard this patch.
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -3,16 +3,13 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Oro/Bundle/BatchBundle/ORM/Query/QueryCountCalculator.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,6 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Oro/Bundle/BatchBundle/ORM/QueryBuilder/CountQueryBuilderOptimizer.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,6 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Oro/Bundle/BatchBundle/Step/StepExecutor.php 2 patches
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
     /**
74 74
      * Get reader
75 75
      *
76
-     * @return ItemReaderInterface|null
76
+     * @return ItemReaderInterface
77 77
      */
78 78
     public function getReader()
79 79
     {
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
     /**
98 98
      * Get writer
99 99
      *
100
-     * @return ItemWriterInterface|null
100
+     * @return ItemWriterInterface
101 101
      */
102 102
     public function getWriter()
103 103
     {
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
     /**
122 122
      * Get processor
123 123
      *
124
-     * @return ItemProcessorInterface|null
124
+     * @return ItemProcessorInterface
125 125
      */
126 126
     public function getProcessor()
127 127
     {
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,6 @@
 block discarded – undo
7 7
 use Akeneo\Bundle\BatchBundle\Item\ItemProcessorInterface;
8 8
 use Akeneo\Bundle\BatchBundle\Item\ItemWriterInterface;
9 9
 use Akeneo\Bundle\BatchBundle\Item\InvalidItemException;
10
-
11 10
 use Oro\Bundle\BatchBundle\Item\Support\ClosableInterface;
12 11
 
13 12
 class StepExecutor
Please login to merge, or discard this patch.
Bundle/BatchBundle/Tests/Unit/ORM/Query/BufferedQueryResultIteratorTest.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -4,11 +4,9 @@
 block discarded – undo
4 4
 
5 5
 use Doctrine\Common\Annotations\AnnotationReader;
6 6
 use Doctrine\ORM\Mapping\Driver\AnnotationDriver;
7
-
8 7
 use Doctrine\ORM\Query;
9 8
 use Oro\Bundle\TestFrameworkBundle\Test\Doctrine\ORM\OrmTestCase;
10 9
 use Oro\Bundle\TestFrameworkBundle\Test\Doctrine\ORM\Mocks\EntityManagerMock;
11
-
12 10
 use Oro\Bundle\BatchBundle\ORM\Query\BufferedQueryResultIterator;
13 11
 
14 12
 class BufferedQueryResultIteratorTest extends OrmTestCase
Please login to merge, or discard this patch.