@@ -51,9 +51,9 @@ |
||
51 | 51 | { |
52 | 52 | $device = $this->discoveryDevice($deviceId); |
53 | 53 | |
54 | - $device_config = $this->discoveryDeviceConfig($device, $people); |
|
54 | + $device_config = $this->discoveryDeviceConfig($device, $people); |
|
55 | 55 | foreach ($configs as $key => $config) |
56 | - $device_config->addConfig($key, $config); |
|
56 | + $device_config->addConfig($key, $config); |
|
57 | 57 | |
58 | 58 | $this->manager->persist($device_config); |
59 | 59 | $this->manager->flush(); |
@@ -19,13 +19,13 @@ discard block |
||
19 | 19 | public function getConfig(People $people, $key, $json = false) |
20 | 20 | { |
21 | 21 | $config = $this->discoveryConfig($people, $key, false); |
22 | - $value = $config ? $config->getConfigValue() : null; |
|
22 | + $value = $config ? $config->getConfigValue() : null; |
|
23 | 23 | return $json ? json_decode($value, true) : $value; |
24 | 24 | } |
25 | 25 | |
26 | 26 | private function discoveryConfig(People $people, $key, $create = true): ?Config |
27 | 27 | { |
28 | - $config = $this->manager->getRepository(Config::class)->findOneBy([ |
|
28 | + $config = $this->manager->getRepository(Config::class)->findOneBy([ |
|
29 | 29 | 'people' => $people, |
30 | 30 | 'configKey' => $key |
31 | 31 | ]); |
@@ -149,7 +149,7 @@ discard block |
||
149 | 149 | |
150 | 150 | private function discoveryInfinitePayWallet(People $company) |
151 | 151 | { |
152 | - $paymentTypes = [ |
|
152 | + $paymentTypes = [ |
|
153 | 153 | [ |
154 | 154 | 'paymentType' => 'Débito', |
155 | 155 | 'frequency' => 'single', |