Completed
Push — master ( 2e7e9f...7f9413 )
by
unknown
17:25
created
src/Rottenwood/UserBundle/Loggers/RegistrationLogger.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
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
 
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.
src/Rottenwood/KingdomBundle/Command/Console/CreateRobotCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -62,8 +62,8 @@
 block discarded – undo
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(),
Please login to merge, or discard this patch.
src/Rottenwood/KingdomBundle/Entity/Robot.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,9 +17,9 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Rottenwood/KingdomBundle/Entity/Infrastructure/User.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Rottenwood/KingdomBundle/Entity/Infrastructure/HumanRepository.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
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
      */
Please login to merge, or discard this patch.