Passed
Push — master ( 28a360...53c48c )
by Luiz Kim
03:04 queued 33s
created
src/Service/ExtraDataService.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
     }
28 28
 
29 29
 
30
-    public function getEntityByExtraData(ExtraFields $extraFields,  string $code, object | string $entity)
30
+    public function getEntityByExtraData(ExtraFields $extraFields, string $code, object | string $entity)
31 31
     {
32 32
         $class = $this->getEntityName($entity);
33 33
         $extraData = $this->manager->getRepository(ExtraData::class)->findOneBy([
@@ -42,11 +42,11 @@  discard block
 block discarded – undo
42 42
     }
43 43
 
44 44
 
45
-    public function discoveryExtraData(int|string $entityId, ExtraFields $extraFields, string $code, object | string $entity)
45
+    public function discoveryExtraData(int | string $entityId, ExtraFields $extraFields, string $code, object | string $entity)
46 46
     {
47 47
         $class = $this->getEntityName($entity);
48 48
 
49
-        $extraData = $this->getEntityByExtraData($extraFields,  $code,  $entity);
49
+        $extraData = $this->getEntityByExtraData($extraFields, $code, $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.