Completed
Push — master ( 97d9ef...d59c85 )
by Joachim
12:51
created
src/Entity/AbstractEntity.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
     {
27 27
         $hydrator = $this->getHydrator();
28 28
 
29
-        if($useConversions && is_array($this->hydrateConversions)) {
29
+        if ($useConversions && is_array($this->hydrateConversions)) {
30 30
             $data = $this->convert($data, $this->hydrateConversions);
31 31
         }
32 32
 
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
 
40 40
         $data = $hydrator->extract($this);
41 41
 
42
-        if($useConversions && is_array($this->extractConversions)) {
42
+        if ($useConversions && is_array($this->extractConversions)) {
43 43
             $data = $this->convert($data, $this->extractConversions);
44 44
         }
45 45
 
@@ -49,12 +49,12 @@  discard block
 block discarded – undo
49 49
     protected function convert(array $data, $conversions) : array
50 50
     {
51 51
         foreach ($conversions as $from => $to) {
52
-            if(isset($data[$to])) {
52
+            if (isset($data[$to])) {
53 53
                 throw new \InvalidArgumentException('The $to argument in the $data object is already set');
54 54
             }
55 55
 
56 56
             $tmp = $data[$from] ?? null;
57
-            if($tmp) {
57
+            if ($tmp) {
58 58
                 unset($data[$from]);
59 59
                 $data[$to] = $tmp;
60 60
             }
Please login to merge, or discard this patch.