@@ -25,13 +25,13 @@ |
||
| 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 | } |
@@ -76,7 +76,7 @@ |
||
| 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 |
@@ -140,7 +140,7 @@ discard block |
||
| 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 |
||
| 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 | } |
@@ -27,9 +27,9 @@ |
||
| 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 | |
@@ -7,7 +7,6 @@ |
||
| 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; |
@@ -69,7 +69,7 @@ |
||
| 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 | |
@@ -4,8 +4,6 @@ |
||
| 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 | /** |
@@ -89,6 +89,9 @@ |
||
| 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); |
@@ -92,9 +92,9 @@ |
||
| 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 | }); |
@@ -146,7 +146,7 @@ discard block |
||
| 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 |
||
| 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 | { |