@@ -43,7 +43,7 @@ discard block  | 
                                                    ||
| 43 | 43 | |
| 44 | 44 |              foreach ($allNewItemsData as $newItemType => $newItemsData) { | 
                                                        
| 45 | 45 | $newItemType = mb_convert_case($newItemType, MB_CASE_TITLE);  | 
                                                        
| 46 | - $itemClass = 'Rottenwood\\KingdomBundle\\Entity\\Items\\' . $newItemType;  | 
                                                        |
| 46 | + $itemClass = 'Rottenwood\\KingdomBundle\\Entity\\Items\\'.$newItemType;  | 
                                                        |
| 47 | 47 | |
| 48 | 48 |                  foreach ($newItemsData as $newItemId => $newItemData) { | 
                                                        
| 49 | 49 | /** @var Item $newItem */  | 
                                                        
@@ -90,7 +90,7 @@ discard block  | 
                                                    ||
| 90 | 90 | |
| 91 | 91 | $em->flush();  | 
                                                        
| 92 | 92 | |
| 93 | -            $output->writeln('Создано новых предметов: ' . count($itemRepository->findAll())); | 
                                                        |
| 93 | +            $output->writeln('Создано новых предметов: '.count($itemRepository->findAll())); | 
                                                        |
| 94 | 94 | }  | 
                                                        
| 95 | 95 | }  | 
                                                        
| 96 | 96 | |
@@ -103,7 +103,7 @@ discard block  | 
                                                    ||
| 103 | 103 | $fileFinder = new Finder();  | 
                                                        
| 104 | 104 | |
| 105 | 105 | /** @var SplFileInfo[] $yamlFiles */  | 
                                                        
| 106 | -        $yamlFiles = $fileFinder->files()->in(__DIR__ . '/../../Resources/items')->name('*.yml'); | 
                                                        |
| 106 | +        $yamlFiles = $fileFinder->files()->in(__DIR__.'/../../Resources/items')->name('*.yml'); | 
                                                        |
| 107 | 107 | |
| 108 | 108 | $yamlData = [];  | 
                                                        
| 109 | 109 |          foreach ($yamlFiles as $yamlFile) { | 
                                                        
@@ -42,7 +42,7 @@ discard block  | 
                                                    ||
| 42 | 42 | */  | 
                                                        
| 43 | 43 |      private function createRoomTypes(AbstractRepository $repository, OutputInterface $output) { | 
                                                        
| 44 | 44 | /** @var SplFileInfo[] $typeClasses */  | 
                                                        
| 45 | -        $typeClasses = (new Finder())->files()->name('*.php')->in(__DIR__ . '/../../Entity/RoomTypes'); | 
                                                        |
| 45 | +        $typeClasses = (new Finder())->files()->name('*.php')->in(__DIR__.'/../../Entity/RoomTypes'); | 
                                                        |
| 46 | 46 | $typeNamespace = 'Rottenwood\\KingdomBundle\\Entity\\RoomTypes\\';  | 
                                                        
| 47 | 47 | |
| 48 | 48 |          $output->write('Создание типов комнат ... '); | 
                                                        
@@ -50,7 +50,7 @@ discard block  | 
                                                    ||
| 50 | 50 | $roomTypes = [];  | 
                                                        
| 51 | 51 |          foreach ($typeClasses as $typeFile) { | 
                                                        
| 52 | 52 |              $typeName = $typeFile->getBasename('.php'); | 
                                                        
| 53 | - $typeClass = $typeNamespace . $typeName;  | 
                                                        |
| 53 | + $typeClass = $typeNamespace.$typeName;  | 
                                                        |
| 54 | 54 | $roomType = new $typeClass();  | 
                                                        
| 55 | 55 | $roomTypes[strtolower($typeName)] = $roomType;  | 
                                                        
| 56 | 56 | $repository->persist($roomType);  | 
                                                        
@@ -69,7 +69,7 @@ discard block  | 
                                                    ||
| 69 | 69 | */  | 
                                                        
| 70 | 70 |      private function createRooms(AbstractRepository $repository, array $roomTypes, OutputInterface $output) { | 
                                                        
| 71 | 71 | $yamlParser = new Yaml();  | 
                                                        
| 72 | - $roomsData = $yamlParser->parse(__DIR__ . '/../../Resources/rooms/rooms.yml');  | 
                                                        |
| 72 | + $roomsData = $yamlParser->parse(__DIR__.'/../../Resources/rooms/rooms.yml');  | 
                                                        |
| 73 | 73 | |
| 74 | 74 |          $output->write('Создание новых комнат ... '); | 
                                                        
| 75 | 75 | |
@@ -88,9 +88,9 @@ discard block  | 
                                                    ||
| 88 | 88 |              $output->writeln('персонаж создан!'); | 
                                                        
| 89 | 89 | |
| 90 | 90 |              $output->writeln('===================================='); | 
                                                        
| 91 | -            $output->writeln('Логин: ' . $username); | 
                                                        |
| 92 | -            $output->writeln('Пароль: ' . $password); | 
                                                        |
| 93 | -            $output->writeln('E-mail: ' . $email); | 
                                                        |
| 91 | +            $output->writeln('Логин: '.$username); | 
                                                        |
| 92 | +            $output->writeln('Пароль: '.$password); | 
                                                        |
| 93 | +            $output->writeln('E-mail: '.$email); | 
                                                        |
| 94 | 94 |              $output->writeln('===================================='); | 
                                                        
| 95 | 95 | |
| 96 | 96 | /** @var RegistrationLogger $logger */  | 
                                                        
@@ -132,6 +132,6 @@ discard block  | 
                                                    ||
| 132 | 132 | $user = $userRepository->findOneByEmail($email);  | 
                                                        
| 133 | 133 | }  | 
                                                        
| 134 | 134 | |
| 135 | - return (bool)$user;  | 
                                                        |
| 135 | + return (bool) $user;  | 
                                                        |
| 136 | 136 | }  | 
                                                        
| 137 | 137 | }  | 
                                                        
@@ -29,14 +29,14 @@  | 
                                                    ||
| 29 | 29 | |
| 30 | 30 |          try { | 
                                                        
| 31 | 31 |              $connection->query('SET FOREIGN_KEY_CHECKS=0'); | 
                                                        
| 32 | -            $connection->query('DELETE FROM ' . $tableName); | 
                                                        |
| 32 | +            $connection->query('DELETE FROM '.$tableName); | 
                                                        |
| 33 | 33 |              $connection->query('SET FOREIGN_KEY_CHECKS=1'); | 
                                                        
| 34 | 34 | $connection->commit();  | 
                                                        
| 35 | 35 |          } catch (\Exception $e) { | 
                                                        
| 36 | 36 | $connection->rollback();  | 
                                                        
| 37 | 37 | }  | 
                                                        
| 38 | 38 | |
| 39 | -        $connection->exec('ALTER TABLE ' . $tableName . ' AUTO_INCREMENT = 1;'); | 
                                                        |
| 39 | +        $connection->exec('ALTER TABLE '.$tableName.' AUTO_INCREMENT = 1;'); | 
                                                        |
| 40 | 40 | |
| 41 | 41 |          if ($output) { | 
                                                        
| 42 | 42 | $output->writeln($endEcho);  | 
                                                        
@@ -42,7 +42,7 @@  | 
                                                    ||
| 42 | 42 |          } elseif ($event == 'playerExit') { | 
                                                        
| 43 | 43 | $eventPhrase = 'вышел из игры';  | 
                                                        
| 44 | 44 |          } else { | 
                                                        
| 45 | -            throw new InvalidCommandParameter('Неизвестное событие: ' . $event); | 
                                                        |
| 45 | +            throw new InvalidCommandParameter('Неизвестное событие: '.$event); | 
                                                        |
| 46 | 46 | }  | 
                                                        
| 47 | 47 | |
| 48 | 48 |          $logger->info(sprintf('[%d]%s %s', $userId, $userName, $eventPhrase)); | 
                                                        
@@ -49,7 +49,7 @@  | 
                                                    ||
| 49 | 49 | * @return string json  | 
                                                        
| 50 | 50 | */  | 
                                                        
| 51 | 51 |      private function executeExternal($userId, $commandName, $parameters) { | 
                                                        
| 52 | - $commandClass = __NAMESPACE__ . '\\Game\\' . ucfirst($commandName);  | 
                                                        |
| 52 | + $commandClass = __NAMESPACE__.'\\Game\\'.ucfirst($commandName);  | 
                                                        |
| 53 | 53 | $container = $this->getContainer();  | 
                                                        
| 54 | 54 | |
| 55 | 55 |          try { | 
                                                        
@@ -1,8 +1,8 @@  | 
                                                    ||
| 1 | 1 | <?php  | 
                                                        
| 2 | 2 | /**  | 
                                                        
| 3 | - * @author: Rottenwood  | 
                                                        |
| 4 | - * @date : 20.11.15 23:53  | 
                                                        |
| 5 | - */  | 
                                                        |
| 3 | + * @author: Rottenwood  | 
                                                        |
| 4 | + * @date : 20.11.15 23:53  | 
                                                        |
| 5 | + */  | 
                                                        |
| 6 | 6 | |
| 7 | 7 | namespace Rottenwood\KingdomBundle\Entity\Infrastructure;  | 
                                                        
| 8 | 8 | |
@@ -1,8 +1,8 @@  | 
                                                    ||
| 1 | 1 | <?php  | 
                                                        
| 2 | 2 | /**  | 
                                                        
| 3 | - * Author: Rottenwood  | 
                                                        |
| 4 | - * Date Created: 31.07.15 19:40  | 
                                                        |
| 5 | - */  | 
                                                        |
| 3 | + * Author: Rottenwood  | 
                                                        |
| 4 | + * Date Created: 31.07.15 19:40  | 
                                                        |
| 5 | + */  | 
                                                        |
| 6 | 6 | namespace Rottenwood\KingdomBundle\Redis;  | 
                                                        
| 7 | 7 | |
| 8 | 8 |  interface RedisClientInterface { | 
                                                        
@@ -81,7 +81,7 @@  | 
                                                    ||
| 81 | 81 | );  | 
                                                        
| 82 | 82 | }  | 
                                                        
| 83 | 83 | |
| 84 | -    private function updateUserAndForm(User &$user, FormInterface &$form, UserService $userService) { | 
                                                        |
| 84 | +    private function updateUserAndForm(User&$user, FormInterface&$form, UserService $userService) { | 
                                                        |
| 85 | 85 | $cyrillicName = $userService->transliterate($user->getLiteralUsername());  | 
                                                        
| 86 | 86 | |
| 87 | 87 |          if ($this->isAllreadyExists($cyrillicName)) { |