@@ -10,11 +10,11 @@ |
||
| 10 | 10 | // Temporary for the prototype. |
| 11 | 11 | $loader->load('plugins.yml'); |
| 12 | 12 | /** |
| 13 | - * Created by PhpStorm. |
|
| 14 | - * User: olive |
|
| 15 | - * Date: 12/03/2017 |
|
| 16 | - * Time: 10:04 |
|
| 17 | - */ |
|
| 13 | + * Created by PhpStorm. |
|
| 14 | + * User: olive |
|
| 15 | + * Date: 12/03/2017 |
|
| 16 | + * Time: 10:04 |
|
| 17 | + */ |
|
| 18 | 18 | |
| 19 | 19 | namespace eXpansion\Framework\Config\DependencyInjection; |
| 20 | 20 | |
@@ -53,12 +53,12 @@ discard block |
||
| 53 | 53 | $firstElement = reset($configItems); |
| 54 | 54 | if (is_array($firstElement)) { |
| 55 | 55 | foreach ($configItems as $configId => $configItem) { |
| 56 | - $path = $parentId . '/' . $configId; |
|
| 56 | + $path = $parentId.'/'.$configId; |
|
| 57 | 57 | if (!$root->getChild($path)) { |
| 58 | 58 | $root->addChild( |
| 59 | 59 | ParentItem::class, |
| 60 | 60 | $path, |
| 61 | - 'expansion_config.menu.' . $configId, |
|
| 61 | + 'expansion_config.menu.'.$configId, |
|
| 62 | 62 | null |
| 63 | 63 | ); |
| 64 | 64 | } |
@@ -69,9 +69,9 @@ discard block |
||
| 69 | 69 | $root->addChild( |
| 70 | 70 | ChatCommandItem::class, |
| 71 | 71 | $parentId, |
| 72 | - 'expansion_config.menu.' . implode('.', explode('/', $parentId)), |
|
| 72 | + 'expansion_config.menu.'.implode('.', explode('/', $parentId)), |
|
| 73 | 73 | null, |
| 74 | - ['cmd' => '/admin config "' . $parentId . "'"] |
|
| 74 | + ['cmd' => '/admin config "'.$parentId."'"] |
|
| 75 | 75 | ); |
| 76 | 76 | } |
| 77 | 77 | } |
@@ -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] |
@@ -181,7 +181,7 @@ discard block |
||
| 181 | 181 | $configs = [ |
| 182 | 182 | 'global' => $this->globalConfigurations, |
| 183 | 183 | 'key' => $this->keyConfigurations, |
| 184 | - 'server-' . $this->gameDataStorage->getSystemInfo()->serverLogin => $this->serverConfigurations, |
|
| 184 | + 'server-'.$this->gameDataStorage->getSystemInfo()->serverLogin => $this->serverConfigurations, |
|
| 185 | 185 | ]; |
| 186 | 186 | |
| 187 | 187 | foreach ($configs as $filekey => $config) { |
@@ -209,7 +209,7 @@ discard block |
||
| 209 | 209 | $configs = [ |
| 210 | 210 | 'global' => $this->globalConfigurations, |
| 211 | 211 | 'key' => $this->keyConfigurations, |
| 212 | - 'server-' . $this->gameDataStorage->getSystemInfo()->serverLogin => $this->serverConfigurations, |
|
| 212 | + 'server-'.$this->gameDataStorage->getSystemInfo()->serverLogin => $this->serverConfigurations, |
|
| 213 | 213 | ]; |
| 214 | 214 | |
| 215 | 215 | foreach ($configs as $filekey => $config) { |
@@ -218,7 +218,7 @@ discard block |
||
| 218 | 218 | ['file' => "config-$filekey.json"] |
| 219 | 219 | ); |
| 220 | 220 | |
| 221 | - $encoded = json_encode($config->getArray(), JSON_UNESCAPED_SLASHES|JSON_PRETTY_PRINT); |
|
| 221 | + $encoded = json_encode($config->getArray(), JSON_UNESCAPED_SLASHES | JSON_PRETTY_PRINT); |
|
| 222 | 222 | $this->filesystem->put("config-$filekey.json", $encoded); |
| 223 | 223 | } |
| 224 | 224 | } |