@@ -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 | } |
@@ -102,7 +102,7 @@ discard block |
||
| 102 | 102 | |
| 103 | 103 | $this->currencyService->sendBill( |
| 104 | 104 | $bill, |
| 105 | - function () use ($bill, $login) { |
|
| 105 | + function() use ($bill, $login) { |
|
| 106 | 106 | $player = $this->playerStorage->getPlayerInfo($login); |
| 107 | 107 | $amount = $bill->getAmount(); |
| 108 | 108 | $this->chatNotification->sendMessage( |
@@ -111,7 +111,7 @@ discard block |
||
| 111 | 111 | ['amount' => $amount, 'nickname' => $player->getNickName()] |
| 112 | 112 | ); |
| 113 | 113 | }, |
| 114 | - function ($error) use ($login) { |
|
| 114 | + function($error) use ($login) { |
|
| 115 | 115 | $this->chatNotification->sendMessage( |
| 116 | 116 | 'expansion_game_currency.donate.error', |
| 117 | 117 | $login, |