Passed
Push — master ( 1bfa7d...491d8e )
by Gerrit
03:08
created
Hydration/HydrationContextInterface.php 1 patch
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -41,6 +41,7 @@  discard block
 block discarded – undo
41 41
      * (The same object may occur in multiple different locations in an object graph.)
42 42
      *
43 43
      * @param mixed $value
44
+     * @return void
44 45
      */
45 46
     public function registerValue(string $id, $value): void;
46 47
 
@@ -70,6 +71,7 @@  discard block
 block discarded – undo
70 71
 
71 72
     /**
72 73
      * @param object|string|null $value
74
+     * @return void
73 75
      */
74 76
     public function pushOnObjectHydrationStack($value): void;
75 77
 
Please login to merge, or discard this patch.
Mapping/Drivers/CachedMappingDriver.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 Psr\Cache\CacheItemInterface;
15 15
 use Addiks\RDMBundle\Mapping\Drivers\MappingDriverInterface;
16 16
 use Addiks\RDMBundle\Mapping\EntityMappingInterface;
17
-use Addiks\RDMBundle\Mapping\MappingInterface;
18 17
 use Webmozart\Assert\Assert;
19 18
 use Symfony\Component\DependencyInjection\ContainerInterface;
20 19
 
Please login to merge, or discard this patch.
Mapping/Drivers/MappingXmlDriver.php 3 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -779,6 +779,9 @@
 block discarded – undo
779 779
         return is_object($attributeNode);
780 780
     }
781 781
 
782
+    /**
783
+     * @param string $default
784
+     */
782 785
     private function readAttributeValue(DOMNode $node, string $attributeName, ?string $default = null): ?string
783 786
     {
784 787
         /** @var DOMNamedNodeMap $nodeAttributes */
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,6 @@
 block discarded – undo
37 37
 use Symfony\Component\HttpKernel\KernelInterface;
38 38
 use Symfony\Component\DependencyInjection\ContainerInterface;
39 39
 use ErrorException;
40
-use DOMElement;
41 40
 use Webmozart\Assert\Assert;
42 41
 
43 42
 final class MappingXmlDriver implements MappingDriverInterface
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -124,7 +124,7 @@
 block discarded – undo
124 124
             throw new InvalidMappingException(sprintf(
125 125
                 "Missing referenced orm file '%s'%s!",
126 126
                 $mappingFile,
127
-                is_string($parentMappingFile) ?sprintf(", referenced in file '%s'", $parentMappingFile) :''
127
+                is_string($parentMappingFile) ?sprintf(", referenced in file '%s'", $parentMappingFile) : ''
128 128
             ));
129 129
         }
130 130
 
Please login to merge, or discard this patch.
Mapping/EntityMapping.php 1 patch
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -13,13 +13,10 @@
 block discarded – undo
13 13
 use Addiks\RDMBundle\Mapping\MappingInterface;
14 14
 use Addiks\RDMBundle\Mapping\EntityMappingInterface;
15 15
 use Doctrine\DBAL\Schema\Column;
16
-use Addiks\RDMBundle\Mapping\ObjectMapping;
17 16
 use Webmozart\Assert\Assert;
18 17
 use Addiks\RDMBundle\Hydration\HydrationContextInterface;
19 18
 use Symfony\Component\DependencyInjection\ContainerInterface;
20
-use Doctrine\ORM\EntityManagerInterface;
21 19
 use ReflectionClass;
22
-use Addiks\RDMBundle\Hydration\HydrationContext;
23 20
 use ErrorException;
24 21
 use ReflectionProperty;
25 22
 use ReflectionObject;
Please login to merge, or discard this patch.
Mapping/MappingInterface.php 1 patch
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -71,6 +71,7 @@  discard block
 block discarded – undo
71 71
      * @param mixed            $actualValue
72 72
      *
73 73
      * @throws FailedRDMAssertionExceptionInterface
74
+     * @return void
74 75
      */
75 76
     public function assertValue(
76 77
         HydrationContextInterface $context,
@@ -84,6 +85,7 @@  discard block
 block discarded – undo
84 85
      *
85 86
      * This method gets called directly after unserializing a mapping-object when loading it from cache.
86 87
      * It allows the mapping-objects to re-fill themself with other objects that may not be able to get serialized.
88
+     * @return void
87 89
      */
88 90
     public function wakeUpMapping(ContainerInterface $container): void;
89 91
 
Please login to merge, or discard this patch.
Mapping/CallDefinition.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -138,7 +138,7 @@
 block discarded – undo
138 138
             }
139 139
 
140 140
             if (!empty($calleeDescription)) {
141
-                $calleeDescription .= $this->isStaticCall ?'::' :'->';
141
+                $calleeDescription .= $this->isStaticCall ? '::' : '->';
142 142
             }
143 143
 
144 144
             throw new ORMException(sprintf(
Please login to merge, or discard this patch.