Completed
Push — master ( 6242f2...1d29a1 )
by Petr
03:18
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/KingdomBundle/Entity/Infrastructure/PlayableCharacter.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  : 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
 
Please login to merge, or discard this patch.
src/Rottenwood/KingdomBundle/Redis/RedisClientInterface.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 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 {
Please login to merge, or discard this patch.
src/Rottenwood/UserBundle/Controller/RegistrationController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@
 block discarded – undo
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)) {
Please login to merge, or discard this patch.