Passed
Push — master ( 23bac4...275ea3 )
by Luiz Kim
02:32
created
src/Service/ExtraDataService.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
     {
47 47
         $class = $this->getEntityName($entity);
48 48
 
49
-        $extraData = $this->getEntityByExtraData($extraFields,  $entityId,  $entity);
49
+        $extraData = $this->getEntityByExtraData($extraFields, $entityId, $entity);
50 50
         if ($extraData) return $extraData;
51 51
 
52 52
         $extraData = new ExtraData();
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
         return $this->manager->getRepository($class->getName())->find($extraData->getEntityId());
61 61
     }
62 62
 
63
-    public function discoveryExtraFields(string $fieldName, string $context, ?string $configs = '{}',  ?string $fieldType = 'text', ?bool $required = false): ExtraFields
63
+    public function discoveryExtraFields(string $fieldName, string $context, ?string $configs = '{}', ?string $fieldType = 'text', ?bool $required = false): ExtraFields
64 64
     {
65 65
 
66 66
         $extraFields = $this->manager->getRepository(ExtraFields::class)->findOneBy([
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
 
137 137
             //$this->manager->persist($entity);
138 138
         } else {
139
-            $json =       json_decode($this->request->getContent(), true);
139
+            $json = json_decode($this->request->getContent(), true);
140 140
             $extra_data = isset($json['extra-data']) ? $json['extra-data'] : null;
141 141
             if (!$extra_data)
142 142
                 return;
Please login to merge, or discard this patch.