Completed
Pull Request — master (#280)
by
unknown
03:35
created
src/eXpansion/Bundle/MxKarma/Services/MxKarmaService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -238,7 +238,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/eXpansion/Bundle/MxKarma/Plugins/MxKarma.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -133,7 +133,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.