Completed
Push — master ( 3d514c...0dc147 )
by
unknown
14:07
created
src/Rottenwood/KingdomBundle/Command/Console/CreateItemsCommand.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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) {
Please login to merge, or discard this patch.
src/Rottenwood/KingdomBundle/Command/Console/CreateMapCommand.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Rottenwood/KingdomBundle/Command/Console/CreateUserCommand.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -88,9 +88,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
132 132
             $user = $userRepository->findOneByEmail($email);
133 133
         }
134 134
 
135
-        return (bool)$user;
135
+        return (bool) $user;
136 136
     }
137 137
 }
Please login to merge, or discard this patch.
src/Rottenwood/KingdomBundle/Command/Console/Integration/Truncate.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,14 +29,14 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/Rottenwood/KingdomBundle/Command/Console/NodeLogCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
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));
Please login to merge, or discard this patch.
src/Rottenwood/KingdomBundle/Command/ExecuteCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
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 {
Please login to merge, or discard this patch.
src/Rottenwood/UserBundle/DependencyInjection/RottenwoodUserExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
Rottenwood/KingdomBundle/DependencyInjection/RottenwoodKingdomExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/Rottenwood/KingdomBundle/Service/UserService.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.