@@ -179,8 +179,8 @@ |
||
| 179 | 179 | /** |
| 180 | 180 | * Provider to delete a plugin from. |
| 181 | 181 | * |
| 182 | - * @param $provider |
|
| 183 | - * @param $pluginId |
|
| 182 | + * @param string $provider |
|
| 183 | + * @param string $pluginId |
|
| 184 | 184 | * |
| 185 | 185 | */ |
| 186 | 186 | public function deletePlugin($provider, $pluginId) |
@@ -5,11 +5,8 @@ |
||
| 5 | 5 | use eXpansion\Framework\Core\DataProviders\AbstractDataProvider; |
| 6 | 6 | use eXpansion\Framework\Core\Exceptions\DataProvider\UncompatibleException; |
| 7 | 7 | use eXpansion\Framework\Core\Model\ProviderListner; |
| 8 | -use eXpansion\Framework\Core\Plugins\StatusAwarePluginInterface; |
|
| 9 | 8 | use eXpansion\Framework\Core\Storage\GameDataStorage; |
| 10 | 9 | use oliverde8\AssociativeArraySimplified\AssociativeArray; |
| 11 | -use Symfony\Component\DependencyInjection\ContainerAwareInterface; |
|
| 12 | -use Symfony\Component\DependencyInjection\ContainerAwareTrait; |
|
| 13 | 10 | use Symfony\Component\DependencyInjection\ContainerInterface; |
| 14 | 11 | |
| 15 | 12 | /** |
@@ -45,6 +45,6 @@ |
||
| 45 | 45 | |
| 46 | 46 | $event = new DedicatedEvent(); |
| 47 | 47 | $event->setParameters($params); |
| 48 | - $this->symfonyEventDispatcher->dispatch("maniaplanet.game." . $eventName, $event); |
|
| 48 | + $this->symfonyEventDispatcher->dispatch("maniaplanet.game.".$eventName, $event); |
|
| 49 | 49 | } |
| 50 | 50 | } |
| 51 | 51 | \ No newline at end of file |
@@ -114,9 +114,9 @@ discard block |
||
| 114 | 114 | * |
| 115 | 115 | * @param PluginDescription $plugin |
| 116 | 116 | * @param $enabledPlugins |
| 117 | - * @param $title |
|
| 118 | - * @param $mode |
|
| 119 | - * @param $script |
|
| 117 | + * @param string $title |
|
| 118 | + * @param string $mode |
|
| 119 | + * @param string $script |
|
| 120 | 120 | * |
| 121 | 121 | * @return bool |
| 122 | 122 | */ |
@@ -158,9 +158,9 @@ discard block |
||
| 158 | 158 | * Enable a plugin for a certain game mode. |
| 159 | 159 | * |
| 160 | 160 | * @param PluginDescription $plugin |
| 161 | - * @param $title |
|
| 162 | - * @param $mode |
|
| 163 | - * @param $script |
|
| 161 | + * @param string $title |
|
| 162 | + * @param string $mode |
|
| 163 | + * @param string $script |
|
| 164 | 164 | */ |
| 165 | 165 | protected function enablePlugin(PluginDescription $plugin, $title, $mode, $script) { |
| 166 | 166 | $plugin->setIsEnabled(true); |
@@ -69,7 +69,7 @@ |
||
| 69 | 69 | $mode = $this->gameDataStorage->getGameModeCode(); |
| 70 | 70 | $script = $this->gameDataStorage->getGameInfos()->scriptName; |
| 71 | 71 | |
| 72 | - $this->enableDisablePlugins($title, $mode, $script); } |
|
| 72 | + $this->enableDisablePlugins($title, $mode, $script); } |
|
| 73 | 73 | |
| 74 | 74 | /** |
| 75 | 75 | * Enable all possible plugins. |