Completed
Push — master ( 0d48e6...94ca10 )
by Petr
17:04
created
src/Rottenwood/KingdomBundle/Command/Console/CreateRobotCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -70,8 +70,8 @@
 block discarded – undo
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)',
Please login to merge, or discard this patch.
src/Rottenwood/KingdomBundle/Command/Game/ShowPlayersInRoom.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
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' => 'стоит тут.',
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
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
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
@@ -17,7 +17,7 @@
 block discarded – undo
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
 }
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
@@ -17,7 +17,7 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.