Completed
Pull Request — master (#233)
by De Cramer
11:00
created
eXpansion/Framework/Config/DependencyInjection/eXpansionConfigExtension.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -10,11 +10,11 @@
 block discarded – undo
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
 
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
@@ -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/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
@@ -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.