Completed
Pull Request — master (#233)
by De Cramer
10:00
created
src/eXpansion/Framework/Config/Ui/Window/ConfigWindowFactory.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/eXpansion/Framework/Config/DependencyInjection/Compiler/ConfigPass.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
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]
Please login to merge, or discard this patch.
src/eXpansion/Framework/Config/Services/ConfigManager.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/eXpansion/Framework/Config/Ui/Fields/TextField.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
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
             [
Please login to merge, or discard this patch.
src/eXpansion/Framework/Config/Plugins/MenuItems.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -73,9 +73,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
         }
Please login to merge, or discard this patch.