Completed
Pull Request — master (#233)
by De Cramer
11:00
created
src/eXpansion/Framework/Config/Plugins/MenuItems.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -53,12 +53,12 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     }
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
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.