Passed
Push — master ( 6e98f4...3ba681 )
by Luiz Kim
02:50
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::class)->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([
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
 
133 133
             //$this->manager->persist($entity);
134 134
         } else {
135
-            $json =       json_decode($this->request->getContent(), true);
135
+            $json = json_decode($this->request->getContent(), true);
136 136
             $extra_data = isset($json['extra-data']) ? $json['extra-data'] : null;
137 137
             if (!$extra_data)
138 138
                 return;
Please login to merge, or discard this patch.