Passed
Push — master ( 6a3b4a...6f7302 )
by Gerrit
03:04
created
Tests/Mapping/Drivers/MappingPHPDriverTest.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -12,8 +12,6 @@
 block discarded – undo
12 12
 
13 13
 use PHPUnit\Framework\TestCase;
14 14
 use Addiks\RDMBundle\Tests\Hydration\EntityExample;
15
-use Addiks\RDMBundle\Mapping\Annotation\Service;
16
-use ReflectionProperty;
17 15
 use Addiks\RDMBundle\Mapping\Drivers\MappingDriverInterface;
18 16
 use Addiks\RDMBundle\Mapping\Drivers\MappingPHPDriver;
19 17
 use Doctrine\Common\Persistence\Mapping\Driver\FileLocator;
Please login to merge, or discard this patch.
Tests/Mapping/Drivers/MappingXmlDriverTest.php 2 patches
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -12,8 +12,6 @@
 block discarded – undo
12 12
 
13 13
 use PHPUnit\Framework\TestCase;
14 14
 use Addiks\RDMBundle\Tests\Hydration\EntityExample;
15
-use Addiks\RDMBundle\Mapping\Annotation\Service;
16
-use ReflectionProperty;
17 15
 use Addiks\RDMBundle\Mapping\Drivers\MappingDriverInterface;
18 16
 use Doctrine\Common\Persistence\Mapping\Driver\FileLocator;
19 17
 use Addiks\RDMBundle\Mapping\Drivers\MappingXmlDriver;
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@
 block discarded – undo
88 88
             'bar' => new ServiceMapping($this->container, 'other_service', false, "in file '{$mappingFilePath}'"),
89 89
             'baz' => new ChoiceMapping('baz_column', [
90 90
                 'lorem' => new ServiceMapping($this->container, "lorem_service", false, "in file '{$mappingFilePath}'"),
91
-                'ipsum' => new ServiceMapping($this->container, "ipsum_service", true,  "in file '{$mappingFilePath}'"),
91
+                'ipsum' => new ServiceMapping($this->container, "ipsum_service", true, "in file '{$mappingFilePath}'"),
92 92
             ], "in file '{$mappingFilePath}'"),
93 93
             'faz' => new ChoiceMapping(new Column("faz_column", Type::getType('string'), ['notnull' => true]), [
94 94
                 'lorem' => new ServiceMapping($this->container, "lorem_service", false, "in file '{$mappingFilePath}'"),
Please login to merge, or discard this patch.
Tests/Mapping/Drivers/MappingYamlDriverTest.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -12,8 +12,6 @@
 block discarded – undo
12 12
 
13 13
 use PHPUnit\Framework\TestCase;
14 14
 use Addiks\RDMBundle\Tests\Hydration\EntityExample;
15
-use Addiks\RDMBundle\Mapping\Annotation\Service;
16
-use ReflectionProperty;
17 15
 use Addiks\RDMBundle\Mapping\Drivers\MappingDriverInterface;
18 16
 use Doctrine\Common\Persistence\Mapping\Driver\FileLocator;
19 17
 use Addiks\RDMBundle\Mapping\Drivers\MappingYamlDriver;
Please login to merge, or discard this patch.
DependencyInjection/AddiksRDMExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
         $configuration = new Configuration();
23 23
         $config = $this->processConfiguration($configuration, $configs);
24 24
 
25
-        $loader = new Loader\XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
25
+        $loader = new Loader\XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
26 26
         $loader->load('services.xml');
27 27
     }
28 28
 }
Please login to merge, or discard this patch.
DataLoader/SimpleSelectDataLoader.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
     }
70 70
 
71 71
     /**
72
-     * @param object $entity
72
+     * @param \Addiks\RDMBundle\Tests\Hydration\EntityExample $entity
73 73
      */
74 74
     public function loadDBALDataForEntity($entity, EntityManagerInterface $entityManager): array
75 75
     {
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
     }
161 161
 
162 162
     /**
163
-     * @param object $entity
163
+     * @param \Addiks\RDMBundle\Tests\Hydration\EntityExample $entity
164 164
      */
165 165
     public function storeDBALDataForEntity($entity, EntityManagerInterface $entityManager): void
166 166
     {
@@ -197,7 +197,7 @@  discard block
 block discarded – undo
197 197
     }
198 198
 
199 199
     /**
200
-     * @param object $entity
200
+     * @param \Addiks\RDMBundle\Tests\Hydration\EntityExample $entity
201 201
      */
202 202
     public function removeDBALDataForEntity($entity, EntityManagerInterface $entityManager): void
203 203
     {
Please login to merge, or discard this patch.
Tests/ValueObjectExample.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -59,6 +59,9 @@
 block discarded – undo
59 59
         return [$this->scalarValue, $this->lorem, $this->dolor];
60 60
     }
61 61
 
62
+    /**
63
+     * @param string $amet
64
+     */
62 65
     public function setAmet($amet)
63 66
     {
64 67
         $this->amet = $amet;
Please login to merge, or discard this patch.
Tests/Mapping/Drivers/MappingAnnotationDriverTest.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,6 @@
 block discarded – undo
23 23
 use Doctrine\DBAL\Schema\Column as DBALColumn;
24 24
 use Doctrine\DBAL\Types\Type;
25 25
 use Addiks\RDMBundle\Mapping\MappingInterface;
26
-use Addiks\RDMBundle\Mapping\Annotation\Obj;
27 26
 use Addiks\RDMBundle\Tests\ValueObjectExample;
28 27
 use Addiks\RDMBundle\Mapping\ObjectMapping;
29 28
 use Doctrine\ORM\Mapping\Column as ORMColumn;
Please login to merge, or discard this patch.
Mapping/ChoiceMapping.php 2 patches
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\MappingInterface;
15 15
 use Doctrine\DBAL\Schema\Column;
16 16
 use Doctrine\DBAL\Types\Type;
17
-use Doctrine\DBAL\Types\TextType;
18 17
 use Addiks\RDMBundle\Exception\InvalidMappingException;
19 18
 use Addiks\RDMBundle\Hydration\HydrationContextInterface;
20 19
 use Symfony\Component\DependencyInjection\ContainerInterface;
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -165,7 +165,7 @@
 block discarded – undo
165 165
             $choiceValue = $choiceMapping->resolveValue(
166 166
                 $context,
167 167
                 [] # <= I'm not sure how this parameter should be handled correctly in the future,
168
-                   #    but with the current supported features it *should* be irrelevant.
168
+                    #    but with the current supported features it *should* be irrelevant.
169 169
             );
170 170
 
171 171
             if ($choiceValue === $valueFromEntityField) {
Please login to merge, or discard this patch.
Tests/DataLoader/SimpleSelectDataLoaderTest.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -12,7 +12,6 @@  discard block
 block discarded – undo
12 12
 
13 13
 use Addiks\RDMBundle\DataLoader\SimpleSelectDataLoader;
14 14
 use Addiks\RDMBundle\Mapping\Drivers\MappingDriverInterface;
15
-use Addiks\RDMBundle\Mapping\EntityMapping;
16 15
 use Addiks\RDMBundle\Tests\Hydration\EntityExample;
17 16
 use Addiks\RDMBundle\Mapping\ChoiceMapping;
18 17
 use Addiks\RDMBundle\ValueResolver\ValueResolverInterface;
@@ -23,7 +22,6 @@  discard block
 block discarded – undo
23 22
 use Doctrine\ORM\Query\Expr;
24 23
 use Doctrine\DBAL\Driver\Statement;
25 24
 use PHPUnit\Framework\TestCase;
26
-use Addiks\RDMBundle\Mapping\ServiceMapping;
27 25
 use Doctrine\ORM\UnitOfWork;
28 26
 use Addiks\RDMBundle\Tests\Hydration\ServiceExample;
29 27
 use Addiks\RDMBundle\Mapping\MappingInterface;
Please login to merge, or discard this patch.