@@ -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 | |
@@ -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 | |