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