@@ -21,7 +21,7 @@ |
||
| 21 | 21 | private FormFactoryInterface $formFactory, |
| 22 | 22 | private TokenStorageInterface $tokenStorage, |
| 23 | 23 | private AuthorizationCheckerInterface $checker, |
| 24 | - $configurationGroups = []) |
|
| 24 | + $configurationGroups = []) |
|
| 25 | 25 | { |
| 26 | 26 | foreach ($configurationGroups as $group) { |
| 27 | 27 | $this->groups[$group->getNameSpace()] = $group; |
@@ -42,7 +42,7 @@ discard block |
||
| 42 | 42 | $groups = []; |
| 43 | 43 | |
| 44 | 44 | foreach ($this->groups as $key => $group) { |
| 45 | - $groups[str_replace($username . '.', '', $key)] = $group; |
|
| 45 | + $groups[str_replace($username.'.', '', $key)] = $group; |
|
| 46 | 46 | } |
| 47 | 47 | |
| 48 | 48 | return $groups; |
@@ -77,8 +77,8 @@ discard block |
||
| 77 | 77 | * @var BaseConfig $configuration |
| 78 | 78 | */ |
| 79 | 79 | foreach ($configurations as $configuration) { |
| 80 | - $key = str_replace($username . '.', '', $configuration->getId()); |
|
| 81 | - $key = str_replace($groupKey . '.', '', $key); |
|
| 80 | + $key = str_replace($username.'.', '', $configuration->getId()); |
|
| 81 | + $key = str_replace($groupKey.'.', '', $key); |
|
| 82 | 82 | |
| 83 | 83 | if (str_contains($configuration->getId(), $username)) { |
| 84 | 84 | $results[$key] = $configuration->getValue(); |
@@ -102,7 +102,7 @@ discard block |
||
| 102 | 102 | foreach ($configurations as $configuration) { |
| 103 | 103 | $value = $configuration->getValue(); |
| 104 | 104 | |
| 105 | - if (str_contains($configuration->getId(), $username . $key)) { |
|
| 105 | + if (str_contains($configuration->getId(), $username.$key)) { |
|
| 106 | 106 | break; |
| 107 | 107 | } |
| 108 | 108 | } |
@@ -176,12 +176,12 @@ discard block |
||
| 176 | 176 | $formData = $form->getData(); |
| 177 | 177 | |
| 178 | 178 | foreach ($formData as $k => $val) { |
| 179 | - $checkBoxKey = $k . 'Preference'; |
|
| 179 | + $checkBoxKey = $k.'Preference'; |
|
| 180 | 180 | |
| 181 | 181 | if (array_key_exists($checkBoxKey, $formData)) { |
| 182 | 182 | if ($formData[$checkBoxKey]) { |
| 183 | 183 | unset($formData[$k]); |
| 184 | - $this->repository->removeByKey($key . '.' . $k); |
|
| 184 | + $this->repository->removeByKey($key.'.'.$k); |
|
| 185 | 185 | } |
| 186 | 186 | |
| 187 | 187 | unset($types[$checkBoxKey]); |
@@ -221,10 +221,10 @@ discard block |
||
| 221 | 221 | |
| 222 | 222 | if (str_contains($configuration->getId(), $username)) { |
| 223 | 223 | $values[$key] = $configuration->getValue(); |
| 224 | - $values[$key . 'Preference'] = false; |
|
| 224 | + $values[$key.'Preference'] = false; |
|
| 225 | 225 | } elseif (!array_key_exists($key, $values)) { |
| 226 | 226 | $values[$key] = $configuration->getValue(); |
| 227 | - $values[$key . 'Preference'] = true; |
|
| 227 | + $values[$key.'Preference'] = true; |
|
| 228 | 228 | } |
| 229 | 229 | } |
| 230 | 230 | |
@@ -248,7 +248,7 @@ discard block |
||
| 248 | 248 | $key = str_replace("{$username}.", '', $key); |
| 249 | 249 | |
| 250 | 250 | if (!$isGlobal) { |
| 251 | - $key = $username . '.' . $key; |
|
| 251 | + $key = $username.'.'.$key; |
|
| 252 | 252 | } |
| 253 | 253 | |
| 254 | 254 | $result = $this->repository->getConfigurationValue($key); |