@@ -1,8 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @author: Rottenwood |
|
| 4 | - * @date : 15.11.15 22:54 |
|
| 5 | - */ |
|
| 3 | + * @author: Rottenwood |
|
| 4 | + * @date : 15.11.15 22:54 |
|
| 5 | + */ |
|
| 6 | 6 | |
| 7 | 7 | namespace Rottenwood\UserBundle\Loggers; |
| 8 | 8 | |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | $configuration = new Configuration(); |
| 14 | 14 | $config = $this->processConfiguration($configuration, $configs); |
| 15 | 15 | |
| 16 | - $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
| 16 | + $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
| 17 | 17 | $loader->load('services.yml'); |
| 18 | 18 | } |
| 19 | 19 | } |
@@ -68,7 +68,7 @@ discard block |
||
| 68 | 68 | public function getOnlineUsersIdsInRoom(Room $room, $excludePlayerIds = []) |
| 69 | 69 | { |
| 70 | 70 | return array_map( |
| 71 | - function (User $user) { |
|
| 71 | + function(User $user) { |
|
| 72 | 72 | return $user->getId(); |
| 73 | 73 | }, |
| 74 | 74 | $this->getOnlineUsersInRoom($room, $excludePlayerIds) |
@@ -234,7 +234,7 @@ discard block |
||
| 234 | 234 | $finder = new Finder(); |
| 235 | 235 | |
| 236 | 236 | $prefix = 'male'; |
| 237 | - $avatarPath = $this->kernel->getRootDir() . '/../web/img/avatars/' . $prefix; |
|
| 237 | + $avatarPath = $this->kernel->getRootDir().'/../web/img/avatars/'.$prefix; |
|
| 238 | 238 | |
| 239 | 239 | $files = $finder->files()->in($avatarPath); |
| 240 | 240 | |
@@ -244,7 +244,7 @@ discard block |
||
| 244 | 244 | $avatars[] = $file->getBasename('.jpg'); |
| 245 | 245 | } |
| 246 | 246 | |
| 247 | - $avatar = $prefix . '/' . $avatars[array_rand($avatars)]; |
|
| 247 | + $avatar = $prefix.'/'.$avatars[array_rand($avatars)]; |
|
| 248 | 248 | |
| 249 | 249 | return $avatar; |
| 250 | 250 | } |
@@ -258,7 +258,7 @@ discard block |
||
| 258 | 258 | { |
| 259 | 259 | $englishLetters = implode('', array_keys($this->getAlphabet())); |
| 260 | 260 | $cyrillicLetters = 'абвгдеёжзиклмнопрстуфхцчшщьыъэюяАБВГДЕЁЖЗИКЛМНОПРСТУФХЦЧШЩЬЫЪЭЮЯ'; |
| 261 | - $pattern = '[^' . preg_quote($englishLetters . $cyrillicLetters, '/') . ']'; |
|
| 261 | + $pattern = '[^'.preg_quote($englishLetters.$cyrillicLetters, '/').']'; |
|
| 262 | 262 | |
| 263 | 263 | $stringWithoutSpecialChars = mb_ereg_replace($pattern, '', $string); |
| 264 | 264 | |
@@ -62,8 +62,8 @@ |
||
| 62 | 62 | $output->writeln('робот создан!'); |
| 63 | 63 | |
| 64 | 64 | $output->writeln('===================================='); |
| 65 | - $output->writeln('Id: ' . $robot->getId()); |
|
| 66 | - $output->writeln('Имя: ' . $robot->getName()); |
|
| 65 | + $output->writeln('Id: '.$robot->getId()); |
|
| 66 | + $output->writeln('Имя: '.$robot->getName()); |
|
| 67 | 67 | $output->writeln( |
| 68 | 68 | sprintf('Комната: [%d]%s %d/%d (%d)', |
| 69 | 69 | $room->getId(), |
@@ -17,9 +17,9 @@ |
||
| 17 | 17 | { |
| 18 | 18 | parent::__construct(); |
| 19 | 19 | |
| 20 | - $username = 'Robot_' . $this->generateRandomLetters(); |
|
| 20 | + $username = 'Robot_'.$this->generateRandomLetters(); |
|
| 21 | 21 | $this->setUsername($username); |
| 22 | - $this->setEmail($username . '@' . $this->generateRandomLetters() . '.bot'); |
|
| 22 | + $this->setEmail($username.'@'.$this->generateRandomLetters().'.bot'); |
|
| 23 | 23 | $this->setPlainPassword($this->generateRandomLetters()); |
| 24 | 24 | } |
| 25 | 25 | |
@@ -1,8 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @author: Rottenwood |
|
| 4 | - * @date : 15.11.15 22:23 |
|
| 5 | - */ |
|
| 3 | + * @author: Rottenwood |
|
| 4 | + * @date : 15.11.15 22:23 |
|
| 5 | + */ |
|
| 6 | 6 | |
| 7 | 7 | namespace Rottenwood\KingdomBundle\Entity\Infrastructure; |
| 8 | 8 | |
@@ -18,7 +18,7 @@ |
||
| 18 | 18 | |
| 19 | 19 | /** |
| 20 | 20 | * @param Room $room |
| 21 | - * @param array $onlinePlayerIds |
|
| 21 | + * @param integer[] $onlinePlayerIds |
|
| 22 | 22 | * @param array $excludePlayerIds |
| 23 | 23 | * @return Human[] |
| 24 | 24 | */ |