Completed
Push — odev ( a25a56...21e788 )
by De Cramer
02:29
created
src/eXpansion/Bundle/Emotes/ChatCommand/BasicEmote.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -45,8 +45,8 @@
 block discarded – undo
45 45
         $this->chatNotification = $chatNotification;
46 46
         $this->playerStorage = $playerStorage;
47 47
 
48
-        for($i = 1; $i <= $nbMessages; $i++) {
49
-            $this->messages[] = "expansion_emotes.$command" . $i;
48
+        for ($i = 1; $i <= $nbMessages; $i++) {
49
+            $this->messages[] = "expansion_emotes.$command".$i;
50 50
         }
51 51
     }
52 52
 
Please login to merge, or discard this patch.
src/eXpansion/Framework/Core/Helpers/ChatNotification.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
      * Send message.
51 51
      *
52 52
      * @param string $messageId
53
-     * @param string|string[]|null $to
53
+     * @param null|string $to
54 54
      * @param string[] $parameters
55 55
      */
56 56
     public function sendMessage($messageId, $to = null, $parameters = [])
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,13 +36,13 @@
 block discarded – undo
36 36
         Translations $translations,
37 37
         PlayerStorage $playerStorage,
38 38
         $colorCodes
39
-    ){
39
+    ) {
40 40
         $this->connection = $connection;
41 41
         $this->translations = $translations;
42 42
         $this->playerStorage = $playerStorage;
43 43
 
44 44
         foreach ($colorCodes as $code => $colorCode) {
45
-            $this->colorCodes["{" . $code . "}"] = '$z' . $colorCode;
45
+            $this->colorCodes["{".$code."}"] = '$z'.$colorCode;
46 46
         }
47 47
     }
48 48
 
Please login to merge, or discard this patch.
src/eXpansion/Framework/Core/Services/Application/DispatchLogger.php 1 patch
Doc Comments   -2 removed lines patch added patch discarded remove patch
@@ -20,8 +20,6 @@
 block discarded – undo
20 20
     /**
21 21
      * Dispatcher constructor.
22 22
      *
23
-     * @param DataProviderManager $dataProviderManager
24
-     * @param PluginManager $pluginManager
25 23
      */
26 24
     public function __construct(Console $console)
27 25
     {
Please login to merge, or discard this patch.
src/eXpansion/Framework/Core/Storage/Data/Player.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -500,7 +500,7 @@
 block discarded – undo
500 500
     }
501 501
 
502 502
     /**
503
-     * @param \Maniaplanet\DedicatedServer\Structures\Player|array $data
503
+     * @param \Maniaplanet\DedicatedServer\Structures\PlayerInfo $data
504 504
      *
505 505
      * @return $this
506 506
      */
Please login to merge, or discard this patch.
src/eXpansion/Framework/Core/DataProviders/ChatCommandDataProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
         $cmdAndArgs = explode(' ', $text);
76 76
 
77 77
         // Internal dedicated serer command to ignore.
78
-        if($cmdAndArgs[0] === 'version') {
78
+        if ($cmdAndArgs[0] === 'version') {
79 79
             return;
80 80
         }
81 81
 
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
                     $message = $command->run($login, $this->chatOutput, $parameter);
92 92
                 } catch (RuntimeException $e) {
93 93
                     $this->chatNotification->sendMessage($e->getMessage(), $login);
94
-                } catch(\Exception $e) {
94
+                } catch (\Exception $e) {
95 95
                     $this->chatNotification->sendMessage($e->getMessage(), $login);
96 96
                 }
97 97
             }
Please login to merge, or discard this patch.
src/eXpansion/Framework/Core/Plugins/Gui/ManialinkFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -68,11 +68,11 @@
 block discarded – undo
68 68
         $className = Manialink::class
69 69
     ) {
70 70
         if (is_null($posX)) {
71
-            $posX = $sizeX/-2;
71
+            $posX = $sizeX / -2;
72 72
         }
73 73
 
74 74
         if (is_null($posY)) {
75
-            $posY = $sizeY/2;
75
+            $posY = $sizeY / 2;
76 76
         }
77 77
 
78 78
         $this->guiHandler = $guiHandler;
Please login to merge, or discard this patch.
src/eXpansion/Framework/Core/Plugins/Gui/ActionFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@
 block discarded – undo
78 78
      */
79 79
     public function onPlayerManialinkPageAnswer($login, $actionId, array $entryValues)
80 80
     {
81
-        if(isset($this->actions[$actionId]))
81
+        if (isset($this->actions[$actionId]))
82 82
         {
83 83
             $this->actions[$actionId]->execute($login, $entryValues);
84 84
         }
Please login to merge, or discard this patch.
src/eXpansion/Framework/Core/Plugins/GuiHandler.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -239,9 +239,9 @@
 block discarded – undo
239 239
      */
240 240
     public function onExpansionGroupDestroy(Group $group, $lastLogin)
241 241
     {
242
-       if (isset($this->displayeds[$group->getName()])) {
243
-           unset($this->displayeds[$group->getName()]);
244
-       }
242
+        if (isset($this->displayeds[$group->getName()])) {
243
+            unset($this->displayeds[$group->getName()]);
244
+        }
245 245
     }
246 246
 
247 247
     /**
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -137,8 +137,8 @@  discard block
 block discarded – undo
137 137
         try {
138 138
             $this->connection->executeMulticall();
139 139
         } catch (\Exception $e) {
140
-            $this->logger->addError("Couldn't deliver all manialinks : " . $e->getMessage(), ['exception' => $e]);
141
-            $this->console->writeln('$F00ERROR - Couldn\'t deliver all manialinks : ' . $e->getMessage());
140
+            $this->logger->addError("Couldn't deliver all manialinks : ".$e->getMessage(), ['exception' => $e]);
141
+            $this->console->writeln('$F00ERROR - Couldn\'t deliver all manialinks : '.$e->getMessage());
142 142
         }
143 143
     }
144 144
 
@@ -170,14 +170,14 @@  discard block
 block discarded – undo
170 170
             foreach ($manialinks as $id => $manialink) {
171 171
                 $logins = $manialink->getUserGroup()->getLogins();
172 172
                 if (!empty($logins)) {
173
-                    yield ['logins' => $logins, 'ml' => '<manialink id="' . $id . '" />'];
173
+                    yield ['logins' => $logins, 'ml' => '<manialink id="'.$id.'" />'];
174 174
                 }
175 175
             }
176 176
         }
177 177
 
178 178
         foreach ($this->hideIndividualQueu as $login => $manialinks) {
179 179
             foreach ($manialinks as $id => $manialink) {
180
-                yield ['logins' => $login, 'ml' => '<manialink id="' . $id . '" />'];
180
+                yield ['logins' => $login, 'ml' => '<manialink id="'.$id.'" />'];
181 181
             }
182 182
         }
183 183
     }
Please login to merge, or discard this patch.
src/eXpansion/Framework/Core/DependencyInjection/eXpansionCoreExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
         }
35 35
 
36 36
 
37
-        $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
37
+        $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
38 38
         $loader->load('services.yml');
39 39
         $loader->load('data_providers.yml');
40 40
         $loader->load('storage.yml');
Please login to merge, or discard this patch.