Completed
Pull Request — master (#355)
by De Cramer
03:38
created
Framework/Core/DependencyInjection/Compiler/GameTitleFetchPass.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,9 +27,9 @@
 block discarded – undo
27 27
      */
28 28
     public function process(ContainerBuilder $container)
29 29
     {
30
-        $fileSytem = new Filesystem(new Local(realpath($container->getParameter('kernel.root_dir') . "/../var")));
30
+        $fileSytem = new Filesystem(new Local(realpath($container->getParameter('kernel.root_dir')."/../var")));
31 31
         $fileSytem->createDir('expansion');
32
-        $fileSytem = new Filesystem(new Local(realpath($container->getParameter('kernel.root_dir') . "/../var/expansion")));
32
+        $fileSytem = new Filesystem(new Local(realpath($container->getParameter('kernel.root_dir')."/../var/expansion")));
33 33
 
34 34
         $this->fetchDataFromRemote($fileSytem, $container);
35 35
 
Please login to merge, or discard this patch.
src/eXpansion/Bundle/VoteManager/Plugins/Gui/Widget/VoteWidgetFactory.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,6 @@
 block discarded – undo
7 7
 use eXpansion\Framework\Core\Model\Gui\Widget;
8 8
 use eXpansion\Framework\Core\Model\Gui\WidgetFactoryContext;
9 9
 use eXpansion\Framework\Core\Plugins\Gui\WidgetFactory;
10
-use eXpansion\Framework\Gui\Builders\WidgetBackground;
11 10
 use eXpansion\Framework\Gui\Components\Animation;
12 11
 use eXpansion\Framework\Gui\Components\Button;
13 12
 use eXpansion\Framework\Gui\Components\Label;
Please login to merge, or discard this patch.
src/eXpansion/Framework/Gui/Components/Button.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@
 block discarded – undo
69 69
         $buttonFrame = new Frame();
70 70
         $buttonFrame->setAlign("center", "center")
71 71
             ->setPosition($this->posX + ($this->width / 2), $this->posY - ($this->height / 2), $this->posZ)
72
-            ->addClasses(['uiContainer', 'uiButton']+$this->_classes)
72
+            ->addClasses(['uiContainer', 'uiButton'] + $this->_classes)
73 73
             ->addDataAttribute("action", $this->action)
74 74
             ->setScale($this->scale);
75 75
 
Please login to merge, or discard this patch.
src/eXpansion/Framework/Core/ChatCommand/UpdateExpansion.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -4,8 +4,6 @@
 block discarded – undo
4 4
 
5 5
 use eXpansion\Framework\AdminGroups\Model\AbstractAdminChatCommand;
6 6
 use eXpansion\Framework\Core\Helpers\ChatNotification;
7
-use eXpansion\Framework\Core\Services\Application;
8
-use eXpansion\Framework\Core\Storage\PlayerStorage;
9 7
 use Symfony\Component\Console\Input\InputInterface;
10 8
 
11 9
 /**
Please login to merge, or discard this patch.
src/eXpansion/Framework/Core/Command/UpdateCommand.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -89,6 +89,9 @@
 block discarded – undo
89 89
         }
90 90
     }
91 91
 
92
+    /**
93
+     * @param string $command
94
+     */
92 95
     protected function runCommand($command, $playerLogin, SymfonyStyle $sfs)
93 96
     {
94 97
         $process = new Process($command);
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -92,9 +92,9 @@
 block discarded – undo
92 92
     protected function runCommand($command, $playerLogin, SymfonyStyle $sfs)
93 93
     {
94 94
         $process = new Process($command);
95
-        $process->setWorkingDirectory($this->getContainer()->getParameter('kernel.root_dir') . '/..');
95
+        $process->setWorkingDirectory($this->getContainer()->getParameter('kernel.root_dir').'/..');
96 96
 
97
-        $process->run(function ($type, $buffer) use ($playerLogin, $sfs) {
97
+        $process->run(function($type, $buffer) use ($playerLogin, $sfs) {
98 98
             $this->notifyPlayer($type, $buffer, $playerLogin);
99 99
             $sfs->writeln($buffer);
100 100
         });
Please login to merge, or discard this patch.
src/eXpansion/Framework/Core/Storage/GameDataStorage.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
 
147 147
     /**
148 148
      * Get titlepack name such as TMStadium@nadeo
149
-     * @return mixed
149
+     * @return string
150 150
      */
151 151
     public function getTitle()
152 152
     {
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
     }
187 187
 
188 188
     /**
189
-     * @param Systeminfos $systemInfo
189
+     * @param SystemInfos $systemInfo
190 190
      */
191 191
     public function setSystemInfo(Systeminfos $systemInfo)
192 192
     {
Please login to merge, or discard this patch.
src/eXpansion/Bundle/Maps/Plugins/Gui/ManiaExchangeWindowFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -366,7 +366,7 @@  discard block
 block discarded – undo
366 366
             "difficulties" => $this->difficultiesBox->getSelectedValue(),
367 367
             "tpack" => $this->tpackBox->getSelectedValue(),
368 368
         ];
369
-        $manialink->setData("params", (object)$params);
369
+        $manialink->setData("params", (object) $params);
370 370
 
371 371
     }
372 372
 
@@ -419,7 +419,7 @@  discard block
 block discarded – undo
419 419
     public function callbackSearch(ManialinkInterface $manialink, $login, $params, $arguments)
420 420
     {
421 421
 
422
-        $params = (object)$params;
422
+        $params = (object) $params;
423 423
         $manialink->setData('params', $params);
424 424
 
425 425
         $options = "";
Please login to merge, or discard this patch.
src/eXpansion/Framework/Gui/Layouts/LayoutRow.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
     }
135 135
 
136 136
     /**
137
-     * @param float|int $startY
137
+     * @param double $startY
138 138
      */
139 139
     public function setStartY($startY)
140 140
     {
@@ -227,7 +227,7 @@  discard block
 block discarded – undo
227 227
     }
228 228
 
229 229
     /**
230
-     * @return float|int
230
+     * @return double
231 231
      */
232 232
     public function getWidth()
233 233
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -153,7 +153,7 @@
 block discarded – undo
153 153
         $frame->setAlign($this->hAlign, $this->vAlign);
154 154
         $frame->setPosition($this->posX, $this->posy);
155 155
         $frame->addClasses($this->frameClasses);
156
-        $frame->setSize($this->getWidth(), $this->getHeight()+4);
156
+        $frame->setSize($this->getWidth(), $this->getHeight() + 4);
157 157
         
158 158
         $startY = $this->startY;
159 159
 
Please login to merge, or discard this patch.
src/eXpansion/Framework/Gui/Components/Dropdown.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -202,7 +202,7 @@
 block discarded – undo
202 202
         $entry->setPosition(900, 900)
203 203
             ->setName($this->name);
204 204
 
205
-        $frameOptions = new LayoutRow(0, -$this->height,[],0, $this->height);
205
+        $frameOptions = new LayoutRow(0, -$this->height, [], 0, $this->height);
206 206
         $frameOptions->setStartY($this->height * -0.5);
207 207
         $frameOptions->addClass('uiDropdownSelect');
208 208
 
Please login to merge, or discard this patch.