@@ -3,7 +3,6 @@ |
||
| 3 | 3 | namespace eXpansion\Framework\Config\Ui\Window; |
| 4 | 4 | |
| 5 | 5 | use eXpansion\Framework\Config\Model\ConfigInterface; |
| 6 | -use eXpansion\Framework\Config\Services\ConfigManager; |
|
| 7 | 6 | use eXpansion\Framework\Config\Services\ConfigManagerInterface; |
| 8 | 7 | use eXpansion\Framework\Config\Services\ConfigUiManager; |
| 9 | 8 | use eXpansion\Framework\Core\Exceptions\PlayerException; |
@@ -44,7 +44,7 @@ |
||
| 44 | 44 | // Find all services to display configs. |
| 45 | 45 | $definition = $container->getDefinition(ConfigUiManager::class); |
| 46 | 46 | $services = $this->findAndSortTaggedServices('expansion.config.ui', $container); |
| 47 | - foreach($services as $service) { |
|
| 47 | + foreach ($services as $service) { |
|
| 48 | 48 | $definition->addMethodCall( |
| 49 | 49 | 'registerUi', |
| 50 | 50 | [$service] |
@@ -183,7 +183,7 @@ discard block |
||
| 183 | 183 | $configs = [ |
| 184 | 184 | 'global' => $this->globalConfigurations, |
| 185 | 185 | 'key' => $this->keyConfigurations, |
| 186 | - 'server-' . $this->gameDataStorage->getSystemInfo()->serverLogin => $this->serverConfigurations, |
|
| 186 | + 'server-'.$this->gameDataStorage->getSystemInfo()->serverLogin => $this->serverConfigurations, |
|
| 187 | 187 | ]; |
| 188 | 188 | |
| 189 | 189 | foreach ($configs as $filekey => $config) { |
@@ -211,7 +211,7 @@ discard block |
||
| 211 | 211 | $configs = [ |
| 212 | 212 | 'global' => $this->globalConfigurations, |
| 213 | 213 | 'key' => $this->keyConfigurations, |
| 214 | - 'server-' . $this->gameDataStorage->getSystemInfo()->serverLogin => $this->serverConfigurations, |
|
| 214 | + 'server-'.$this->gameDataStorage->getSystemInfo()->serverLogin => $this->serverConfigurations, |
|
| 215 | 215 | ]; |
| 216 | 216 | |
| 217 | 217 | foreach ($configs as $filekey => $config) { |
@@ -221,7 +221,7 @@ discard block |
||
| 221 | 221 | ); |
| 222 | 222 | |
| 223 | 223 | // TODO get only non default values. |
| 224 | - $encoded = json_encode($config->getArray(), JSON_UNESCAPED_SLASHES|JSON_PRETTY_PRINT); |
|
| 224 | + $encoded = json_encode($config->getArray(), JSON_UNESCAPED_SLASHES | JSON_PRETTY_PRINT); |
|
| 225 | 225 | $this->filesystem->put("config-$filekey.json", $encoded); |
| 226 | 226 | } |
| 227 | 227 | } |
@@ -37,7 +37,7 @@ |
||
| 37 | 37 | $frame = new Frame(); |
| 38 | 38 | |
| 39 | 39 | $descriptionButton = $this->uiFactory->createButton("?"); |
| 40 | - $rowLayout = $this->uiFactory->createLayoutLine( |
|
| 40 | + $rowLayout = $this->uiFactory->createLayoutLine( |
|
| 41 | 41 | 0, |
| 42 | 42 | 0, |
| 43 | 43 | [ |
@@ -73,9 +73,9 @@ discard block |
||
| 73 | 73 | { |
| 74 | 74 | foreach ($configItems as $configId => $configItem) { |
| 75 | 75 | $subItems = reset($configItem); |
| 76 | - $path = $parentId . '/' . $configId; |
|
| 77 | - $configPath = str_replace("admin/server/config/",'', $path); |
|
| 78 | - $translationKey = 'expansion_config.menu.' . implode('.', explode('/', $configPath)) . '.label'; |
|
| 76 | + $path = $parentId.'/'.$configId; |
|
| 77 | + $configPath = str_replace("admin/server/config/", '', $path); |
|
| 78 | + $translationKey = 'expansion_config.menu.'.implode('.', explode('/', $configPath)).'.label'; |
|
| 79 | 79 | |
| 80 | 80 | if (is_array($subItems)) { |
| 81 | 81 | $root->addChild( |
@@ -92,7 +92,7 @@ discard block |
||
| 92 | 92 | $path, |
| 93 | 93 | $translationKey, |
| 94 | 94 | null, |
| 95 | - ['cmd' => '/admin config "' . $configPath . '"'] |
|
| 95 | + ['cmd' => '/admin config "'.$configPath.'"'] |
|
| 96 | 96 | ); |
| 97 | 97 | } |
| 98 | 98 | } |