Completed
Push — master ( b8b783...188bc3 )
by De Cramer
9s
created
src/eXpansion/Core/Plugins/Gui/ManialinkFactory.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@
 block discarded – undo
88 88
     /**
89 89
      * Create & display manialink for user.
90 90
      *
91
-     * @param Group|string|string[] $group
91
+     * @param Group $group
92 92
      *
93 93
      * @return Group
94 94
      */
Please login to merge, or discard this 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/Core/Plugins/TotoPlugin.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,6 @@
 block discarded – undo
4 4
 
5 5
 use eXpansion\Core\DataProviders\Listener\ChatDataListenerInterface;
6 6
 use eXpansion\Core\Model\UserGroups\Group;
7
-use eXpansion\Core\Plugins\Gui\GroupManialinkFactory;
8 7
 use eXpansion\Core\Plugins\Gui\ManialinkFactory;
9 8
 use eXpansion\Core\Services\Console;
10 9
 use eXpansion\Core\Storage\Data\Player;
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
             $from = '$777Console';
45 45
         }
46 46
 
47
-        $this->console->writeln($from . $text);
47
+        $this->console->writeln($from.$text);
48 48
     }
49 49
 
50 50
 
Please login to merge, or discard this patch.
src/eXpansion/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/Bundle/JoinLeaveMessages/Plugins/JoinLeaveMessages.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
      */
45 45
     public function onPlayerConnect(Player $player)
46 46
     {
47
-        $msg = '$fffHello, ' . $player->getNickName() . '  $n$fff($888' . $player->getLogin() . '$fff)';
47
+        $msg = '$fffHello, '.$player->getNickName().'  $n$fff($888'.$player->getLogin().'$fff)';
48 48
         $this->sendChat($msg);
49 49
     }
50 50
 
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
      */
54 54
     public function onPlayerDisconnect(Player $player, $disconnectionReason)
55 55
     {
56
-        $msg = '$fffSee you, ' . $player->getNickName() . '  $n$fff($888' . $player->getLogin() . '$fff)';
56
+        $msg = '$fffSee you, '.$player->getNickName().'  $n$fff($888'.$player->getLogin().'$fff)';
57 57
         $this->sendChat($msg);
58 58
     }
59 59
 
Please login to merge, or discard this patch.
src/eXpansion/Core/Model/Gui/Manialink.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
     public function getXml()
56 56
     {
57 57
         return '<?xml version="1.0" encoding="utf-8" standalone="yes" ?>'
58
-                .'<manialink version="3" id="' . $this->getId() . '">'
58
+                .'<manialink version="3" id="'.$this->getId().'">'
59 59
                     .'<label text="Hello World!" />'
60 60
                 .'</manialink>';
61 61
     }
Please login to merge, or discard this patch.
src/eXpansion/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.