Completed
Pull Request — master (#68)
by De Cramer
05:45
created
src/eXpansion/Bundle/LocalRecords/Entity/Record.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -179,6 +179,7 @@
 block discarded – undo
179 179
      * Set checkpoint times.
180 180
      *
181 181
      * @param int[]
182
+     * @param integer[] $checkpointTimes
182 183
      */
183 184
     public function setCheckpointTimes($checkpointTimes)
184 185
     {
Please login to merge, or discard this patch.
src/eXpansion/Bundle/LocalRecords/Plugins/BaseRecords.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -205,7 +205,7 @@
 block discarded – undo
205 205
      */
206 206
     protected function dispatchEvent($eventData)
207 207
     {
208
-        $event = $this->eventPrefix . '.' . $eventData['event'];
208
+        $event = $this->eventPrefix.'.'.$eventData['event'];
209 209
         unset($eventData['event']);
210 210
 
211 211
         $this->dispatcher->dispatch($event, [$eventData]);
Please login to merge, or discard this patch.
src/eXpansion/Bundle/LocalRecords/Plugins/ChatNotification.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -185,7 +185,7 @@  discard block
 block discarded – undo
185 185
 
186 186
     protected function getSecuredBy(Record $record, Record $oldRecord)
187 187
     {
188
-        $securedBy =$this->timeFormater->milisecondsToTrackmania($oldRecord->getScore() - $record->getScore(), true);
188
+        $securedBy = $this->timeFormater->milisecondsToTrackmania($oldRecord->getScore() - $record->getScore(), true);
189 189
 
190 190
         if (substr($securedBy, 0, 4) === "00:0") {
191 191
             $securedBy = substr($securedBy, 4);
@@ -195,7 +195,7 @@  discard block
 block discarded – undo
195 195
             }
196 196
         }
197 197
 
198
-        return '-' . $securedBy;
198
+        return '-'.$securedBy;
199 199
     }
200 200
 
201 201
     protected function messageFirstPlaceNew(Record $record)
@@ -214,7 +214,7 @@  discard block
 block discarded – undo
214 214
     protected function sendMessage($message, $recipe, $params)
215 215
     {
216 216
         $this->chatNotification->sendMessage(
217
-            $this->translationPrefix . '.' . $message,
217
+            $this->translationPrefix.'.'.$message,
218 218
             $recipe,
219 219
             $params
220 220
         );
Please login to merge, or discard this patch.
src/eXpansion/Bundle/LocalRecords/Services/RecordHandler.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
      */
24 24
     const EVENT_TYPE_FIRST_TIME = 'first_time';
25 25
     const EVENT_TYPE_SAME_SCORE = 'same_score';
26
-    const EVENT_TYPE_SAME_POS =   'same_position';
26
+    const EVENT_TYPE_SAME_POS = 'same_position';
27 27
     const EVENT_TYPE_BETTER_POS = 'better_position';
28 28
 
29 29
     /**
@@ -218,7 +218,7 @@  discard block
 block discarded – undo
218 218
                 $previousRecord = $this->records[$betterRecordIndex];
219 219
 
220 220
                 $this->records[$betterRecordIndex] = $record;
221
-                $this->records[$betterRecordIndex+1] = $previousRecord;
221
+                $this->records[$betterRecordIndex + 1] = $previousRecord;
222 222
 
223 223
                 $newPosition = $betterRecordIndex + 1;
224 224
                 $this->positionPerPlayer[$record->getPlayerLogin()] = $betterRecordIndex + 1;
Please login to merge, or discard this patch.