Completed
Push — master ( 5816ac...999f09 )
by Petr
03:08
created
src/Rottenwood/KingdomBundle/Service/UserService.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -250,7 +250,7 @@
 block discarded – undo
250 250
 
251 251
     /**
252 252
      * Массив соответствия русских букв латинским
253
-     * @return string[]
253
+     * @return string
254 254
      */
255 255
     private function getAlphabet() {
256 256
         return [
Please login to merge, or discard this patch.
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -224,7 +224,7 @@  discard block
 block discarded – undo
224 224
         $finder = new Finder();
225 225
 
226 226
         $prefix = 'male';
227
-        $avatarPath = $this->kernel->getRootDir() . '/../web/img/avatars/' . $prefix;
227
+        $avatarPath = $this->kernel->getRootDir().'/../web/img/avatars/'.$prefix;
228 228
 
229 229
         $files = $finder->files()->in($avatarPath);
230 230
 
@@ -234,7 +234,7 @@  discard block
 block discarded – undo
234 234
             $avatars[] = $file->getBasename('.jpg');
235 235
         }
236 236
 
237
-        $avatar = $prefix . '/' . $avatars[array_rand($avatars)];
237
+        $avatar = $prefix.'/'.$avatars[array_rand($avatars)];
238 238
 
239 239
         return $avatar;
240 240
     }
@@ -254,17 +254,17 @@  discard block
 block discarded – undo
254 254
      */
255 255
     private function getAlphabet() {
256 256
         return [
257
-            'a' => 'а',  'b' => 'б', 'c' => 'ц', 'd' => 'д',  'e' => 'е',
258
-            'f' => 'ф',  'g' => 'г', 'h' => 'х', 'i' => 'ай', 'j' => 'дж',
259
-            'k' => 'к',  'l' => 'л', 'm' => 'м', 'n' => 'н',  'o' => 'о',
260
-            'p' => 'п',  'q' => 'к', 'r' => 'р', 's' => 'с',  't' => 'т',
261
-            'u' => 'у',  'v' => 'в', 'w' => 'в', 'x' => 'кс', 'y' => 'й',
262
-            'z' => 'з',  'A' => 'А', 'B' => 'Б', 'C' => 'Ц',  'D' => 'Д',
263
-            'E' => 'Е',  'F' => 'Ф', 'G' => 'Г', 'H' => 'Х',  'I' => 'Ай',
264
-            'J' => 'Дж', 'K' => 'К', 'L' => 'Л', 'M' => 'М',  'N' => 'Н',
265
-            'O' => 'О',  'P' => 'П', 'Q' => 'К', 'R' => 'Р',  'S' => 'С',
266
-            'T' => 'Т',  'U' => 'Ю', 'V' => 'В', 'W' => 'В',  'X' => 'Кс',
267
-            'Y' => 'Й',  'Z' => 'З',
257
+            'a' => 'а', 'b' => 'б', 'c' => 'ц', 'd' => 'д', 'e' => 'е',
258
+            'f' => 'ф', 'g' => 'г', 'h' => 'х', 'i' => 'ай', 'j' => 'дж',
259
+            'k' => 'к', 'l' => 'л', 'm' => 'м', 'n' => 'н', 'o' => 'о',
260
+            'p' => 'п', 'q' => 'к', 'r' => 'р', 's' => 'с', 't' => 'т',
261
+            'u' => 'у', 'v' => 'в', 'w' => 'в', 'x' => 'кс', 'y' => 'й',
262
+            'z' => 'з', 'A' => 'А', 'B' => 'Б', 'C' => 'Ц', 'D' => 'Д',
263
+            'E' => 'Е', 'F' => 'Ф', 'G' => 'Г', 'H' => 'Х', 'I' => 'Ай',
264
+            'J' => 'Дж', 'K' => 'К', 'L' => 'Л', 'M' => 'М', 'N' => 'Н',
265
+            'O' => 'О', 'P' => 'П', 'Q' => 'К', 'R' => 'Р', 'S' => 'С',
266
+            'T' => 'Т', 'U' => 'Ю', 'V' => 'В', 'W' => 'В', 'X' => 'Кс',
267
+            'Y' => 'Й', 'Z' => 'З',
268 268
         ];
269 269
     }
270 270
 
Please login to merge, or discard this patch.
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.
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/Entity/Infrastructure/AbstractUser.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.