@@ -120,8 +120,8 @@ |
||
| 120 | 120 | |
| 121 | 121 | /** |
| 122 | 122 | * sets vote value |
| 123 | - * @param $login |
|
| 124 | - * @param $vote |
|
| 123 | + * @param string $login |
|
| 124 | + * @param integer $vote |
|
| 125 | 125 | */ |
| 126 | 126 | public function setVote($login, $vote) |
| 127 | 127 | { |
@@ -133,7 +133,7 @@ |
||
| 133 | 133 | "vote" => $vote, |
| 134 | 134 | ]; |
| 135 | 135 | |
| 136 | - $this->changedVotes[$player->getLogin()] = new MxVote((object)$obj); |
|
| 136 | + $this->changedVotes[$player->getLogin()] = new MxVote((object) $obj); |
|
| 137 | 137 | $this->chatNotification->sendMessage('expansion_mxkarma.chat.votechanged', $login); |
| 138 | 138 | } |
| 139 | 139 | |
@@ -305,7 +305,7 @@ |
||
| 305 | 305 | $data = $this->getObject($result->getResponse()); |
| 306 | 306 | |
| 307 | 307 | if ($data === null) { |
| 308 | - return null; |
|
| 308 | + return null; |
|
| 309 | 309 | } |
| 310 | 310 | try { |
| 311 | 311 | $this->ratings = new MXRating(); |
@@ -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 | |
@@ -45,6 +45,6 @@ |
||
| 45 | 45 | */ |
| 46 | 46 | public function isCompatible(ConfigInterface $config): bool |
| 47 | 47 | { |
| 48 | - return ($config instanceof PasswordConfig); |
|
| 48 | + return ($config instanceof PasswordConfig); |
|
| 49 | 49 | } |
| 50 | 50 | } |