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