@@ -70,8 +70,8 @@ |
||
| 70 | 70 | $output->writeln('Робот создан!'); |
| 71 | 71 | |
| 72 | 72 | $output->writeln('===================================='); |
| 73 | - $output->writeln('Id: ' . $robot->getId()); |
|
| 74 | - $output->writeln('Имя: ' . $robot->getName()); |
|
| 73 | + $output->writeln('Id: '.$robot->getId()); |
|
| 74 | + $output->writeln('Имя: '.$robot->getName()); |
|
| 75 | 75 | $output->writeln( |
| 76 | 76 | sprintf( |
| 77 | 77 | 'Комната: [%d]%s %d/%d (%d)', |
@@ -17,7 +17,7 @@ |
||
| 17 | 17 | public function execute(): CommandResponse |
| 18 | 18 | { |
| 19 | 19 | $playersInRoom = array_map( |
| 20 | - function (User $user) { |
|
| 20 | + function(User $user) { |
|
| 21 | 21 | return [ |
| 22 | 22 | 'name' => $user->getName(), |
| 23 | 23 | 'stance' => 'стоит тут.', |
@@ -78,7 +78,7 @@ discard block |
||
| 78 | 78 | public function getOnlineUsersIdsInRoom(Room $room, $excludePlayerIds = []): array |
| 79 | 79 | { |
| 80 | 80 | return array_map( |
| 81 | - function (User $user) { |
|
| 81 | + function(User $user) { |
|
| 82 | 82 | return $user->getId(); |
| 83 | 83 | }, |
| 84 | 84 | $this->getOnlineHumansInRoom($room, $excludePlayerIds) |
@@ -335,7 +335,7 @@ discard block |
||
| 335 | 335 | $finder = new Finder(); |
| 336 | 336 | |
| 337 | 337 | $prefix = 'male'; |
| 338 | - $avatarPath = $this->kernel->getRootDir() . '/../web/img/avatars/' . $prefix; |
|
| 338 | + $avatarPath = $this->kernel->getRootDir().'/../web/img/avatars/'.$prefix; |
|
| 339 | 339 | |
| 340 | 340 | $files = $finder->files()->in($avatarPath); |
| 341 | 341 | |
@@ -345,7 +345,7 @@ discard block |
||
| 345 | 345 | $avatars[] = $file->getBasename('.jpg'); |
| 346 | 346 | } |
| 347 | 347 | |
| 348 | - $avatar = $prefix . '/' . $avatars[array_rand($avatars)]; |
|
| 348 | + $avatar = $prefix.'/'.$avatars[array_rand($avatars)]; |
|
| 349 | 349 | |
| 350 | 350 | return $avatar; |
| 351 | 351 | } |
@@ -359,7 +359,7 @@ discard block |
||
| 359 | 359 | { |
| 360 | 360 | $englishLetters = implode('', array_keys($this->getAlphabet())); |
| 361 | 361 | $cyrillicLetters = 'абвгдеёжзиклмнопрстуфхцчшщьыъэюяАБВГДЕЁЖЗИКЛМНОПРСТУФХЦЧШЩЬЫЪЭЮЯ'; |
| 362 | - $pattern = '[^' . preg_quote($englishLetters . $cyrillicLetters, '/') . ']'; |
|
| 362 | + $pattern = '[^'.preg_quote($englishLetters.$cyrillicLetters, '/').']'; |
|
| 363 | 363 | |
| 364 | 364 | $stringWithoutSpecialChars = mb_ereg_replace($pattern, '', $string); |
| 365 | 365 | |
@@ -17,7 +17,7 @@ |
||
| 17 | 17 | $configuration = new Configuration(); |
| 18 | 18 | $this->processConfiguration($configuration, $configs); |
| 19 | 19 | |
| 20 | - $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
| 20 | + $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
| 21 | 21 | $loader->load('services.yml'); |
| 22 | 22 | } |
| 23 | 23 | } |
@@ -17,7 +17,7 @@ |
||
| 17 | 17 | $configuration = new Configuration(); |
| 18 | 18 | $this->processConfiguration($configuration, $configs); |
| 19 | 19 | |
| 20 | - $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
| 20 | + $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
| 21 | 21 | $loader->load('services.yml'); |
| 22 | 22 | } |
| 23 | 23 | } |