Completed
Push — dev ( 3d25b6...9673a2 )
by
unknown
09:35
created
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
@@ -45,11 +45,11 @@
 block discarded – undo
45 45
         $this->playerStorage = $playerStorage;
46 46
 
47 47
         foreach ($colorCodes as $code => $colorCode) {
48
-            $this->replacementPatterns["{" . $code . "}"] = '$z' . $colorCode;
48
+            $this->replacementPatterns["{".$code."}"] = '$z'.$colorCode;
49 49
         }
50 50
 
51 51
         foreach ($glyphIcons as $name => $icon) {
52
-            $this->replacementPatterns["|" . $name . "|"] = $icon;
52
+            $this->replacementPatterns["|".$name."|"] = $icon;
53 53
         }
54 54
 
55 55
     }
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/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/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/Framework/AdminGroups/Plugins/GroupsPlugin.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
         $this->adminGroupConfiguration = $adminGroupConfiguration;
35 35
         $this->userGroupFactory = $userGroupFactory;
36 36
 
37
-        foreach ($this->adminGroupConfiguration->getGroups() as $groupName){
37
+        foreach ($this->adminGroupConfiguration->getGroups() as $groupName) {
38 38
             $this->userGroupFactory->create("admin:$groupName");
39 39
         }
40 40
 
Please login to merge, or discard this patch.
Framework/AdminGroups/DependencyInjection/eXpansionAdminGroupsExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
 
25 25
         $container->setParameter("expansion.framework.admin_groups.groups", $config['groups']);
26 26
 
27
-        $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
27
+        $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
28 28
         $loader->load('helpers.yml');
29 29
         $loader->load('services.yml');
30 30
         $loader->load('plugins.yml');
Please login to merge, or discard this patch.