@@ -62,7 +62,7 @@ |
||
| 62 | 62 | } |
| 63 | 63 | |
| 64 | 64 | /** |
| 65 | - * @return array |
|
| 65 | + * @return Map[] |
|
| 66 | 66 | */ |
| 67 | 67 | public function getMaps() |
| 68 | 68 | { |
@@ -249,7 +249,6 @@ discard block |
||
| 249 | 249 | } |
| 250 | 250 | |
| 251 | 251 | /** |
| 252 | - * @param object $object |
|
| 253 | 252 | */ |
| 254 | 253 | public function handleErrors($obj) |
| 255 | 254 | { |
@@ -340,7 +339,7 @@ discard block |
||
| 340 | 339 | } |
| 341 | 340 | |
| 342 | 341 | /** |
| 343 | - * @param $url |
|
| 342 | + * @param string $url |
|
| 344 | 343 | * @param callable $callback |
| 345 | 344 | */ |
| 346 | 345 | public function httpGet($url, callable $callback) |
@@ -124,7 +124,7 @@ discard block |
||
| 124 | 124 | |
| 125 | 125 | if ($data->activated) { |
| 126 | 126 | $this->connected = true; |
| 127 | - // Dispatcher::dispatch(new MXKarmaEvent(MXKarmaEvent::ON_CONNECTED)); |
|
| 127 | + // Dispatcher::dispatch(new MXKarmaEvent(MXKarmaEvent::ON_CONNECTED)); |
|
| 128 | 128 | } |
| 129 | 129 | } |
| 130 | 130 | |
@@ -192,7 +192,7 @@ discard block |
||
| 192 | 192 | return; |
| 193 | 193 | } |
| 194 | 194 | |
| 195 | - // Dispatcher::dispatch(new MXKarmaEvent(MXKarmaEvent::ON_VOTE_SAVE, $data->updated)); |
|
| 195 | + // Dispatcher::dispatch(new MXKarmaEvent(MXKarmaEvent::ON_VOTE_SAVE, $data->updated)); |
|
| 196 | 196 | } |
| 197 | 197 | |
| 198 | 198 | /** |
@@ -238,7 +238,7 @@ |
||
| 238 | 238 | */ |
| 239 | 239 | public function getObject($data) |
| 240 | 240 | { |
| 241 | - $obj = (object)json_decode($data); |
|
| 241 | + $obj = (object) json_decode($data); |
|
| 242 | 242 | if ($obj->success === false) { |
| 243 | 243 | $this->handleErrors($obj); |
| 244 | 244 | |
@@ -47,7 +47,7 @@ |
||
| 47 | 47 | Dispatcher $dispatcher |
| 48 | 48 | ) { |
| 49 | 49 | |
| 50 | - $this->config = (object)Yaml::parse(file_get_contents('./app/config/plugins/mxkarma.yml'))['parameters']; |
|
| 50 | + $this->config = (object) Yaml::parse(file_get_contents('./app/config/plugins/mxkarma.yml'))['parameters']; |
|
| 51 | 51 | $this->console = $console; |
| 52 | 52 | $this->dispatcher = $dispatcher; |
| 53 | 53 | $this->chatNotification = $chatNotification; |
@@ -2,12 +2,10 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace eXpansion\Bundle\Acme\Plugins; |
| 4 | 4 | |
| 5 | -use eXpansion\Framework\Core\DataProviders\Listener\ListenerInterfaceMpLegacyChat; |
|
| 6 | 5 | use eXpansion\Framework\Core\Model\UserGroups\Group; |
| 7 | 6 | use eXpansion\Framework\Core\Plugins\Gui\ManialinkFactory; |
| 8 | 7 | use eXpansion\Framework\Core\Plugins\StatusAwarePluginInterface; |
| 9 | 8 | use eXpansion\Framework\Core\Services\Console; |
| 10 | -use eXpansion\Framework\Core\Storage\Data\Player; |
|
| 11 | 9 | |
| 12 | 10 | /** |
| 13 | 11 | * TotoPlugin is a test plugin to be removed. |
@@ -92,14 +92,14 @@ |
||
| 92 | 92 | */ |
| 93 | 93 | public function onEndTurnEnd($count, $time); |
| 94 | 94 | |
| 95 | - /** |
|
| 96 | - * Callback sent when the "StartRound" section start. |
|
| 97 | - * |
|
| 98 | - * @param int $count Each time this section is played, this number is incremented by one |
|
| 99 | - * @param int $time Server time when the callback was sent |
|
| 100 | - * |
|
| 101 | - * @return mixed |
|
| 102 | - */ |
|
| 95 | + /** |
|
| 96 | + * Callback sent when the "StartRound" section start. |
|
| 97 | + * |
|
| 98 | + * @param int $count Each time this section is played, this number is incremented by one |
|
| 99 | + * @param int $time Server time when the callback was sent |
|
| 100 | + * |
|
| 101 | + * @return mixed |
|
| 102 | + */ |
|
| 103 | 103 | public function onStartRoundStart($count, $time); |
| 104 | 104 | |
| 105 | 105 | /** |