@@ -34,12 +34,12 @@ |
||
| 34 | 34 | $map = []; |
| 35 | 35 | |
| 36 | 36 | for ($y = $currentY - $this->mapRadius, $relativeY = 1, $relativeX = 1; |
| 37 | - $y <= $currentY + $this->mapRadius; |
|
| 38 | - $y++, $relativeY++, $relativeX = 1) { |
|
| 37 | + $y <= $currentY + $this->mapRadius; |
|
| 38 | + $y++, $relativeY++, $relativeX = 1) { |
|
| 39 | 39 | |
| 40 | 40 | for ($x = $currentX - $this->mapRadius; |
| 41 | - $x <= $currentX + $this->mapRadius; |
|
| 42 | - $x++, $relativeX++) { |
|
| 41 | + $x <= $currentX + $this->mapRadius; |
|
| 42 | + $x++, $relativeX++) { |
|
| 43 | 43 | |
| 44 | 44 | // пропуск центра карты, комнаты где находится персонаж |
| 45 | 45 | if ($relativeY == 3 && $relativeX == 3) { |
@@ -19,7 +19,7 @@ |
||
| 19 | 19 | public function execute(): CommandResponse |
| 20 | 20 | { |
| 21 | 21 | $playersInRoom = array_map( |
| 22 | - function (User $user) { |
|
| 22 | + function(User $user) { |
|
| 23 | 23 | return [ |
| 24 | 24 | 'name' => $user->getName(), |
| 25 | 25 | 'stance' => 'стоит тут.', |
@@ -84,7 +84,7 @@ discard block |
||
| 84 | 84 | ); |
| 85 | 85 | } |
| 86 | 86 | |
| 87 | - private function updateUserAndForm(User &$user, FormInterface &$form, UserService $userService) |
|
| 87 | + private function updateUserAndForm(User&$user, FormInterface&$form, UserService $userService) |
|
| 88 | 88 | { |
| 89 | 89 | $cyrillicName = $userService->transliterate($user->getLiteralUsername()); |
| 90 | 90 | |
@@ -103,7 +103,7 @@ discard block |
||
| 103 | 103 | */ |
| 104 | 104 | private function isAllreadyExists($name) |
| 105 | 105 | { |
| 106 | - return (bool)($this->get('kingdom.human_repository')->findByName($name)); |
|
| 106 | + return (bool) ($this->get('kingdom.human_repository')->findByName($name)); |
|
| 107 | 107 | } |
| 108 | 108 | |
| 109 | 109 | /** |