@@ -73,9 +73,9 @@ discard block |
||
| 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 |
||
| 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 | } |
@@ -23,8 +23,8 @@ |
||
| 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 | } |
@@ -132,12 +132,12 @@ |
||
| 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); |
@@ -164,7 +164,7 @@ |
||
| 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 | |
@@ -111,7 +111,7 @@ discard block |
||
| 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 |
||
| 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); |
@@ -56,7 +56,7 @@ |
||
| 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 | } |
@@ -57,7 +57,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 | /** |
@@ -25,13 +25,13 @@ |
||
| 25 | 25 | foreach ($bundles as $bundle) { |
| 26 | 26 | $reflection = new \ReflectionClass($bundle); |
| 27 | 27 | |
| 28 | - if (is_file($file = dirname($reflection->getFilename()) . '/Resources/config/expansion_defaults/core_config.yml')) { |
|
| 28 | + if (is_file($file = dirname($reflection->getFilename()).'/Resources/config/expansion_defaults/core_config.yml')) { |
|
| 29 | 29 | $config = Yaml::parse(file_get_contents(realpath($file))); |
| 30 | 30 | $container->prependExtensionConfig('e_xpansion_core', $config['e_xpansion_core']); |
| 31 | 31 | } |
| 32 | 32 | } |
| 33 | 33 | |
| 34 | - if (is_file($file = $container->getParameter('kernel.root_dir') . '/config/expansion.yml')) { |
|
| 34 | + if (is_file($file = $container->getParameter('kernel.root_dir').'/config/expansion.yml')) { |
|
| 35 | 35 | $config = Yaml::parse(file_get_contents(realpath($file))); |
| 36 | 36 | $container->prependExtensionConfig('e_xpansion_core', $config['e_xpansion_core']); |
| 37 | 37 | } |
@@ -76,7 +76,7 @@ |
||
| 76 | 76 | ); |
| 77 | 77 | $this->application->stopApplication(); |
| 78 | 78 | |
| 79 | - $process = new Process("bin/" . $scriptToExecute . " &"); |
|
| 79 | + $process = new Process("bin/".$scriptToExecute." &"); |
|
| 80 | 80 | $process->start(); |
| 81 | 81 | } |
| 82 | 82 | } |
| 83 | 83 | \ No newline at end of file |