Completed
Pull Request — master (#280)
by
unknown
03:35
created
src/eXpansion/Bundle/MxKarma/Plugins/MxKarma.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -120,8 +120,8 @@
 block discarded – undo
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
     {
Please login to merge, or discard this 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.
src/eXpansion/Bundle/MxKarma/Services/MxKarmaService.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -305,7 +305,7 @@
 block discarded – undo
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();
Please login to merge, or discard this 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/Framework/Config/Ui/Fields/MaskedField.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,6 +45,6 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.