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