Completed
Push — master ( bbe9d4...e82ffc )
by De Cramer
10s
created
eXpansion/Framework/AdminGroups/DependencyInjection/Compiler/ConfigPass.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -35,15 +35,15 @@  discard block
 block discarded – undo
35 35
 
36 36
         foreach ($groups as $groupCode => $group)
37 37
         {
38
-            $pathPrefix = $container->getParameter('expansion.admin_groups.config.path') . "/$groupCode";
38
+            $pathPrefix = $container->getParameter('expansion.admin_groups.config.path')."/$groupCode";
39 39
 
40
-            $id = 'expansion.admin_groups.config.label.' . $groupCode;
40
+            $id = 'expansion.admin_groups.config.label.'.$groupCode;
41 41
             $container->setDefinition($id, new ChildDefinition('expansion.admin_groups.config.label.abstract'))
42 42
                 ->replaceArgument('$path', "$pathPrefix/label")
43 43
                 ->replaceArgument('$defaultValue', $group['label']);
44 44
             $configManager->addMethodCall('registerConfig', [new Reference($id), $id]);
45 45
 
46
-            $id = 'expansion.admin_groups.config.logins.' . $groupCode;
46
+            $id = 'expansion.admin_groups.config.logins.'.$groupCode;
47 47
             $container->setDefinition($id, new ChildDefinition('expansion.admin_groups.config.logins.abstract'))
48 48
                 ->setArgument('$path', "$pathPrefix/logins")
49 49
                 ->setArgument('$defaultValue', $group['logins']);
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
 
52 52
             if ($groupCode != "master_admin") {
53 53
                 foreach ($permissions as $permission) {
54
-                    $id = 'expansion.admin_groups.config.permissions.' . $groupCode . ".$permission";
54
+                    $id = 'expansion.admin_groups.config.permissions.'.$groupCode.".$permission";
55 55
                     $container->setDefinition($id, new ChildDefinition('expansion.admin_groups.config.permissions.abstract'))
56 56
                         ->setArgument('$path', "$pathPrefix/perm_$permission")
57 57
                         ->setArgument('$defaultValue', $group['logins'])
Please login to merge, or discard this patch.
src/eXpansion/Framework/Core/Plugins/Gui/WidgetFactory.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -103,12 +103,12 @@
 block discarded – undo
103 103
         $this->posY = $posY;
104 104
 
105 105
         // Update current widgets.
106
-       foreach ($this->guiHandler->getFactoryManialinks($this) as $manialink) {
107
-           if ($manialink instanceof FmlManialink) {
108
-               $manialink->setPosition($this->posX, $this->posY);
109
-           }
106
+        foreach ($this->guiHandler->getFactoryManialinks($this) as $manialink) {
107
+            if ($manialink instanceof FmlManialink) {
108
+                $manialink->setPosition($this->posX, $this->posY);
109
+            }
110 110
 
111
-           $this->update($manialink->getUserGroup());
112
-       }
111
+            $this->update($manialink->getUserGroup());
112
+        }
113 113
     }
114 114
 }
Please login to merge, or discard this patch.
src/eXpansion/Framework/Core/DependencyInjection/eXpansionCoreExtension.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,13 +25,13 @@
 block discarded – undo
25 25
         foreach ($bundles as $bundle) {
26 26
             $reflection = new \ReflectionClass($bundle);
27 27
 
28
-            if (is_file($file = dirname($reflection->getFilename()) . '/Resources/config/expansion_defaults/core_config.yml')) {
28
+            if (is_file($file = dirname($reflection->getFilename()).'/Resources/config/expansion_defaults/core_config.yml')) {
29 29
                 $config = Yaml::parse(file_get_contents(realpath($file)));
30 30
                 $container->prependExtensionConfig('e_xpansion_core', $config['e_xpansion_core']);
31 31
             }
32 32
         }
33 33
 
34
-        if (is_file($file = $container->getParameter('kernel.root_dir') . '/config/expansion.yml')) {
34
+        if (is_file($file = $container->getParameter('kernel.root_dir').'/config/expansion.yml')) {
35 35
             $config = Yaml::parse(file_get_contents(realpath($file)));
36 36
             $container->prependExtensionConfig('e_xpansion_core', $config['e_xpansion_core']);
37 37
         }
Please login to merge, or discard this patch.
src/eXpansion/Framework/Core/ChatCommand/RestartExpansion.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@
 block discarded – undo
76 76
         );
77 77
         $this->application->stopApplication();
78 78
 
79
-        $process = new Process("bin/" . $scriptToExecute . " &");
79
+        $process = new Process("bin/".$scriptToExecute." &");
80 80
         $process->start();
81 81
     }
82 82
 }
83 83
\ No newline at end of file
Please login to merge, or discard this patch.
src/eXpansion/Framework/Core/Plugins/Gui/WindowHelpFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
         $login = $manialink->getUserGroup()->getLogins()[0];
141 141
 
142 142
         return array_map(
143
-            function ($command) {
143
+            function($command) {
144 144
                 /** @var AbstractChatCommand $command */
145 145
                 return [
146 146
                     'command' => $command->getCommand(),
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
             },
152 152
             array_filter(
153 153
                 $this->chatCommands->getChatCommands(),
154
-                function ($command) use ($login) {
154
+                function($command) use ($login) {
155 155
                     if ($command instanceof AbstractAdminChatCommand) {
156 156
                         return $command->hasPermission($login);
157 157
                     }
Please login to merge, or discard this patch.
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.