Passed
Push — master ( 59ef72...ed809e )
by Gerrit
04:43
created
Tests/Hydration/EntityHydratorTest.php 1 patch
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -13,14 +13,11 @@
 block discarded – undo
13 13
 use PHPUnit\Framework\TestCase;
14 14
 use Addiks\RDMBundle\Hydration\EntityHydrator;
15 15
 use Addiks\RDMBundle\Mapping\Drivers\MappingDriverInterface;
16
-use Addiks\RDMBundle\Mapping\Annotation\Service;
17 16
 use Addiks\RDMBundle\Tests\Hydration\ServiceExample;
18 17
 use Addiks\RDMBundle\Tests\Hydration\EntityExample;
19
-use ErrorException;
20 18
 use Addiks\RDMBundle\Mapping\ServiceMapping;
21 19
 use Addiks\RDMBundle\Mapping\EntityMapping;
22 20
 use Addiks\RDMBundle\ValueResolver\ValueResolverInterface;
23
-use Addiks\RDMBundle\Exception\FailedRDMAssertionExceptionInterface;
24 21
 use Addiks\RDMBundle\DataLoader\DataLoaderInterface;
25 22
 use Doctrine\ORM\EntityManagerInterface;
26 23
 
Please login to merge, or discard this patch.
Tests/IntegrationTest.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,6 @@
 block discarded – undo
44 44
 use Addiks\RDMBundle\Tests\Hydration\ServiceExample;
45 45
 use Addiks\RDMBundle\Mapping\Annotation\Service;
46 46
 use Addiks\RDMBundle\Exception\FailedRDMAssertionExceptionInterface;
47
-use Doctrine\ORM\Event\OnFlushEventArgs;
48 47
 use Doctrine\ORM\UnitOfWork;
49 48
 use Doctrine\DBAL\Connection;
50 49
 use Doctrine\DBAL\Statement;
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
 
124 124
         $this->loader = new XmlFileLoader(
125 125
             $this->container,
126
-            new FileLocator(__DIR__ . '/../Resources/config')
126
+            new FileLocator(__DIR__.'/../Resources/config')
127 127
         );
128 128
     }
129 129
 
@@ -494,7 +494,7 @@  discard block
 block discarded – undo
494 494
     private function configureMockedAnnotationReader(AnnotationReader $annotationReader, array $annotationMap)
495 495
     {
496 496
         $annotationReader->method('getClassAnnotations')->will($this->returnCallback(
497
-            function (ReflectionClass $reflectionClass) {
497
+            function(ReflectionClass $reflectionClass) {
498 498
                 if ($reflectionClass->getName() === EntityExample::class) {
499 499
                     return [new Entity()];
500 500
                 }
@@ -502,7 +502,7 @@  discard block
 block discarded – undo
502 502
         ));
503 503
 
504 504
         $annotationReader->method('getPropertyAnnotation')->will($this->returnCallback(
505
-            function (ReflectionProperty $reflectionProperty, string $annotationName) use ($annotationMap) {
505
+            function(ReflectionProperty $reflectionProperty, string $annotationName) use ($annotationMap) {
506 506
                 /** @var ReflectionClass $reflectionClass */
507 507
                 $reflectionClass = $reflectionProperty->getDeclaringClass();
508 508
 
@@ -519,7 +519,7 @@  discard block
 block discarded – undo
519 519
         ));
520 520
 
521 521
         $annotationReader->method('getPropertyAnnotations')->will($this->returnCallback(
522
-            function (ReflectionProperty $reflectionProperty) use ($annotationMap) {
522
+            function(ReflectionProperty $reflectionProperty) use ($annotationMap) {
523 523
                 /** @var ReflectionClass $reflectionClass */
524 524
                 $reflectionClass = $reflectionProperty->getDeclaringClass();
525 525
 
Please login to merge, or discard this patch.
Tests/Mapping/DriverFactories/MappingAnnotationDriverFactoryTest.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -11,8 +11,6 @@
 block discarded – undo
11 11
 namespace Addiks\RDMBundle\Tests\Mapping\DriverFactories;
12 12
 
13 13
 use PHPUnit\Framework\TestCase;
14
-use Addiks\RDMBundle\Mapping\DriverFactories\MappingDriverFactoryInterface;
15
-use Addiks\RDMBundle\Mapping\Drivers\MappingDriverInterface;
16 14
 use Addiks\RDMBundle\Mapping\DriverFactories\MappingAnnotationDriverFactory;
17 15
 use Addiks\RDMBundle\Mapping\Drivers\MappingAnnotationDriver;
18 16
 use Doctrine\ORM\Mapping\Driver\AnnotationDriver;
Please login to merge, or discard this patch.
Tests/Mapping/DriverFactories/MappingDriverFactoryAggregateTest.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,6 @@
 block discarded – undo
14 14
 use Addiks\RDMBundle\Mapping\DriverFactories\MappingDriverFactoryInterface;
15 15
 use Doctrine\Common\Persistence\Mapping\Driver\MappingDriver;
16 16
 use Addiks\RDMBundle\Mapping\Drivers\MappingDriverInterface;
17
-use Addiks\RDMBundle\Tests\Hydration\EntityExample;
18 17
 use Addiks\RDMBundle\Mapping\DriverFactories\MappingDriverFactoryAggregate;
19 18
 
20 19
 final class MappingDriverFactoryAggregateTest extends TestCase
Please login to merge, or discard this patch.
Tests/Mapping/DriverFactories/MappingDriverFactoryLazyLoadProxyTest.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,6 @@
 block discarded – undo
14 14
 use Addiks\RDMBundle\Mapping\DriverFactories\MappingDriverFactoryInterface;
15 15
 use Doctrine\Common\Persistence\Mapping\Driver\MappingDriver;
16 16
 use Addiks\RDMBundle\Mapping\Drivers\MappingDriverInterface;
17
-use Addiks\RDMBundle\Tests\Hydration\EntityExample;
18 17
 use Addiks\RDMBundle\Mapping\DriverFactories\MappingDriverFactoryLazyLoadProxy;
19 18
 use Symfony\Component\DependencyInjection\ContainerInterface;
20 19
 
Please login to merge, or discard this patch.
Tests/Mapping/DriverFactories/MappingPHPDriverFactoryTest.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -11,8 +11,6 @@
 block discarded – undo
11 11
 namespace Addiks\RDMBundle\Tests\Mapping\DriverFactories;
12 12
 
13 13
 use PHPUnit\Framework\TestCase;
14
-use Addiks\RDMBundle\Mapping\DriverFactories\MappingDriverFactoryInterface;
15
-use Addiks\RDMBundle\Mapping\Drivers\MappingDriverInterface;
16 14
 use Addiks\RDMBundle\Mapping\DriverFactories\MappingPHPDriverFactory;
17 15
 use Doctrine\ORM\Mapping\Driver\PHPDriver;
18 16
 use Addiks\RDMBundle\Mapping\Drivers\MappingPHPDriver;
Please login to merge, or discard this patch.
Tests/Mapping/DriverFactories/MappingXMLDriverFactoryTest.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -11,8 +11,6 @@
 block discarded – undo
11 11
 namespace Addiks\RDMBundle\Tests\Mapping\DriverFactories;
12 12
 
13 13
 use PHPUnit\Framework\TestCase;
14
-use Addiks\RDMBundle\Mapping\DriverFactories\MappingDriverFactoryInterface;
15
-use Addiks\RDMBundle\Mapping\Drivers\MappingDriverInterface;
16 14
 use Addiks\RDMBundle\Mapping\DriverFactories\MappingXMLDriverFactory;
17 15
 use Addiks\RDMBundle\Mapping\Drivers\MappingXmlDriver;
18 16
 use Doctrine\ORM\Mapping\Driver\XmlDriver;
Please login to merge, or discard this patch.
Tests/Mapping/DriverFactories/MappingYamlDriverFactoryTest.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -11,8 +11,6 @@
 block discarded – undo
11 11
 namespace Addiks\RDMBundle\Tests\Mapping\DriverFactories;
12 12
 
13 13
 use PHPUnit\Framework\TestCase;
14
-use Addiks\RDMBundle\Mapping\DriverFactories\MappingDriverFactoryInterface;
15
-use Addiks\RDMBundle\Mapping\Drivers\MappingDriverInterface;
16 14
 use Doctrine\Common\Persistence\Mapping\Driver\FileLocator;
17 15
 use Addiks\RDMBundle\Mapping\DriverFactories\MappingYamlDriverFactory;
18 16
 use Addiks\RDMBundle\Mapping\Drivers\MappingYamlDriver;
Please login to merge, or discard this patch.
Tests/Mapping/Drivers/MappingDriverChainTest.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,6 @@
 block discarded – undo
13 13
 use PHPUnit\Framework\TestCase;
14 14
 use Addiks\RDMBundle\Tests\Hydration\EntityExample;
15 15
 use Addiks\RDMBundle\Mapping\Annotation\Service;
16
-use ReflectionProperty;
17 16
 use Addiks\RDMBundle\Mapping\Drivers\MappingDriverChain;
18 17
 use Addiks\RDMBundle\Mapping\Drivers\MappingDriverInterface;
19 18
 use Addiks\RDMBundle\Mapping\EntityMapping;
Please login to merge, or discard this patch.