@@ -179,6 +179,7 @@ |
||
| 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 | { |
@@ -205,7 +205,7 @@ |
||
| 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]); |
@@ -185,7 +185,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 | ); |
@@ -23,7 +23,7 @@ discard block |
||
| 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 |
||
| 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; |