@@ -25,13 +25,13 @@ |
||
25 | 25 | public function getConfig(People $people, $key, $json = false) |
26 | 26 | { |
27 | 27 | $config = $this->discoveryConfig($people, $key, false); |
28 | - $value = $config ? $config->getConfigValue() : null; |
|
28 | + $value = $config ? $config->getConfigValue() : null; |
|
29 | 29 | return $json ? json_decode($value) : $value; |
30 | 30 | } |
31 | 31 | |
32 | 32 | private function discoveryConfig(People $people, $key, $create = true): ?Config |
33 | 33 | { |
34 | - $config = $this->manager->getRepository(Config::class)->findOneBy([ |
|
34 | + $config = $this->manager->getRepository(Config::class)->findOneBy([ |
|
35 | 35 | 'people' => $people, |
36 | 36 | 'configKey' => $key |
37 | 37 | ]); |