Completed
Push — master ( bbe9d4...e82ffc )
by De Cramer
10s
created
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
                     'admin_config', // Default config on each element.
95
-                    ['cmd' => '/admin config "' . $configPath . '"']
95
+                    ['cmd' => '/admin config "'.$configPath.'"']
96 96
                 );
97 97
             }
98 98
         }
Please login to merge, or discard this patch.
src/eXpansion/Framework/GameManiaplanet/DataProviders/BillDataProvider.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -23,8 +23,8 @@
 block discarded – undo
23 23
     {
24 24
         $bill = new Bill();
25 25
         $bill->stateName = $stateName;
26
-        $bill->transactionId = (int)$transactionId;
27
-        $bill->state = (int)$state;
28
-        $this->dispatch(__FUNCTION__, [(int)$billId, $bill]);
26
+        $bill->transactionId = (int) $transactionId;
27
+        $bill->state = (int) $state;
28
+        $this->dispatch(__FUNCTION__, [(int) $billId, $bill]);
29 29
     }
30 30
 }
Please login to merge, or discard this patch.
src/eXpansion/Framework/GameCurrencyBundle/Plugins/Gui/BillWindow.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -132,12 +132,12 @@
 block discarded – undo
132 132
 
133 133
         $this->currencyService->sendBill(
134 134
             $bill,
135
-            function () use ($manialink, $bill) {
135
+            function() use ($manialink, $bill) {
136 136
                 $this->notifications->info("Successfully payed ".$bill->getAmount()."p to ".$bill->getReceiverlogin(),
137 137
                     [], "Success", 3500, $manialink->getUserGroup());
138 138
                 $this->closeManialink($manialink);
139 139
             },
140
-            function ($status) use ($manialink) {
140
+            function($status) use ($manialink) {
141 141
                 $this->notifications->error("Server said: ".$status,
142 142
                     [], "Error", 10500, $manialink->getUserGroup());
143 143
                 $this->closeManialink($manialink);
Please login to merge, or discard this patch.
src/eXpansion/Framework/Core/Plugins/GuiHandler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -164,7 +164,7 @@
 block discarded – undo
164 164
                 $size = strlen($mlData['ml']);
165 165
             }
166 166
 
167
-            $logins = array_filter($mlData['logins'], function ($value) {
167
+            $logins = array_filter($mlData['logins'], function($value) {
168 168
                 return $value != '';
169 169
             });
170 170
 
Please login to merge, or discard this patch.
src/eXpansion/Framework/Core/Services/DedicatedConnection/Factory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
                 $this->console->getSfStyleOutput()->error(
91 91
                     [
92 92
                         "Looks like your Dedicated server is either offline or has wrong config settings",
93
-                        "Error message: " . $lastExcelption->getMessage()
93
+                        "Error message: ".$lastExcelption->getMessage()
94 94
                     ]
95 95
                 );
96 96
                 $this->logger->error("Unable to open connection for Dedicated server", ["exception" => $lastExcelption]);
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
                     ]
149 149
                 );
150 150
             }
151
-        } while($attempts < $maxAttempts && !is_null($lastExcelption));
151
+        } while ($attempts < $maxAttempts && !is_null($lastExcelption));
152 152
 
153 153
         return $lastExcelption;
154 154
     }
Please login to merge, or discard this patch.
eXpansion/Framework/GameManiaplanet/DataProviders/MapListDataProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
         }
112 112
 
113 113
         try {
114
-            $currentMap = $this->factory->getConnection()->getCurrentMapInfo();  // sync better
114
+            $currentMap = $this->factory->getConnection()->getCurrentMapInfo(); // sync better
115 115
         } catch (\Exception $e) {
116 116
             // fallback to use map storage
117 117
             $currentMap = $this->mapStorage->getMapByIndex($curMapIndex);
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
         }
129 129
 
130 130
         try {
131
-            $nextMap = $this->factory->getConnection()->getNextMapInfo();  // sync better
131
+            $nextMap = $this->factory->getConnection()->getNextMapInfo(); // sync better
132 132
         } catch (\Exception $e) {
133 133
             // fallback to use map storage
134 134
             $nextMap = $this->mapStorage->getMapByIndex($nextMapIndex);
Please login to merge, or discard this patch.
src/eXpansion/Framework/Core/Listener/BaseStorageUpdateListener.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
56 56
     public static function getSubscribedEvents()
57 57
     {
58 58
         return [
59
-            'maniaplanet.game.BeginMap' => 'onManiaplanetGameBeginMap' ,
59
+            'maniaplanet.game.BeginMap' => 'onManiaplanetGameBeginMap',
60 60
             Factory::EVENT_CONNECTED => 'onConnectionToDedicated'
61 61
         ];
62 62
     }
Please login to merge, or discard this patch.
src/eXpansion/Framework/Config/Ui/Fields/TextListField.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
             ->setAction(
58 58
                 $this->actionFactory->createManialinkAction(
59 59
                     $manialink,
60
-                    function (ManialinkInterface $manialink, $login, $entries, $args) use ($manialinkFactory) {
60
+                    function(ManialinkInterface $manialink, $login, $entries, $args) use ($manialinkFactory) {
61 61
                         /** @var TextListConfig $config */
62 62
                         $config = $args['config'];
63 63
 
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
                 )
72 72
             );
73 73
 
74
-        $elements = [$this->uiFactory->createLayoutLine(0,0, [$input, $addButton])];
74
+        $elements = [$this->uiFactory->createLayoutLine(0, 0, [$input, $addButton])];
75 75
         foreach ($config->get() as $element) {
76 76
             $elements[] = $this->getElementLine($config, $manialink, $element, $width, $manialinkFactory);
77 77
         }
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
             ->setAction(
103 103
                 $this->actionFactory->createManialinkAction(
104 104
                     $manialink,
105
-                    function (ManialinkInterface $manialink, $login, $entries, $args) use ($manialinkFactory) {
105
+                    function(ManialinkInterface $manialink, $login, $entries, $args) use ($manialinkFactory) {
106 106
                         /** @var TextListConfig $config */
107 107
                         $config = $args['config'];
108 108
                         $config->remove($args['element']);
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
                 )
114 114
             );
115 115
 
116
-        return $this->uiFactory->createLayoutLine(0,0, [$label, $delButton]);
116
+        return $this->uiFactory->createLayoutLine(0, 0, [$label, $delButton]);
117 117
     }
118 118
 
119 119
     /**
Please login to merge, or discard this patch.
eXpansion/Framework/AdminGroups/DependencyInjection/Compiler/ConfigPass.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -35,15 +35,15 @@  discard block
 block discarded – undo
35 35
 
36 36
         foreach ($groups as $groupCode => $group)
37 37
         {
38
-            $pathPrefix = $container->getParameter('expansion.admin_groups.config.path') . "/$groupCode";
38
+            $pathPrefix = $container->getParameter('expansion.admin_groups.config.path')."/$groupCode";
39 39
 
40
-            $id = 'expansion.admin_groups.config.label.' . $groupCode;
40
+            $id = 'expansion.admin_groups.config.label.'.$groupCode;
41 41
             $container->setDefinition($id, new ChildDefinition('expansion.admin_groups.config.label.abstract'))
42 42
                 ->replaceArgument('$path', "$pathPrefix/label")
43 43
                 ->replaceArgument('$defaultValue', $group['label']);
44 44
             $configManager->addMethodCall('registerConfig', [new Reference($id), $id]);
45 45
 
46
-            $id = 'expansion.admin_groups.config.logins.' . $groupCode;
46
+            $id = 'expansion.admin_groups.config.logins.'.$groupCode;
47 47
             $container->setDefinition($id, new ChildDefinition('expansion.admin_groups.config.logins.abstract'))
48 48
                 ->setArgument('$path', "$pathPrefix/logins")
49 49
                 ->setArgument('$defaultValue', $group['logins']);
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
 
52 52
             if ($groupCode != "master_admin") {
53 53
                 foreach ($permissions as $permission) {
54
-                    $id = 'expansion.admin_groups.config.permissions.' . $groupCode . ".$permission";
54
+                    $id = 'expansion.admin_groups.config.permissions.'.$groupCode.".$permission";
55 55
                     $container->setDefinition($id, new ChildDefinition('expansion.admin_groups.config.permissions.abstract'))
56 56
                         ->setArgument('$path', "$pathPrefix/perm_$permission")
57 57
                         ->setArgument('$defaultValue', $group['logins'])
Please login to merge, or discard this patch.