Completed
Pull Request — master (#112)
by De Cramer
11:22
created
src/eXpansion/Bundle/LocalRecords/Plugins/ChatNotification.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,6 @@
 block discarded – undo
6 6
 use eXpansion\Bundle\LocalRecords\DataProviders\Listener\RecordsDataListener;
7 7
 use eXpansion\Bundle\LocalRecords\Entity\Record;
8 8
 use eXpansion\Framework\Core\Helpers\Time;
9
-use eXpansion\Framework\Core\Storage\Data\Player;
10 9
 use eXpansion\Framework\Core\Storage\PlayerStorage;
11 10
 
12 11
 
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -222,7 +222,7 @@  discard block
 block discarded – undo
222 222
                 }
223 223
             }
224 224
 
225
-            return '-' . $securedBy;
225
+            return '-'.$securedBy;
226 226
         }
227 227
 
228 228
         return $securedBy = $this->timeFormater->timeToText(0);
@@ -248,7 +248,7 @@  discard block
 block discarded – undo
248 248
     protected function sendMessage($message, $recipe, $params)
249 249
     {
250 250
         $this->chatNotification->sendMessage(
251
-            $this->translationPrefix . '.' . $message,
251
+            $this->translationPrefix.'.'.$message,
252 252
             $recipe,
253 253
             $params
254 254
         );
Please login to merge, or discard this patch.
src/eXpansion/Bundle/LocalRecords/Services/RecordHandler.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
      *
99 99
      * @param string $login
100 100
      *
101
-     * @return bool
101
+     * @return integer|null
102 102
      */
103 103
     public function getPlayerPosition($login)
104 104
     {
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
      * Load records for a certain map.
122 122
      *
123 123
      * @param $mapUid
124
-     * @param $nbLaps
124
+     * @param integer $nbLaps
125 125
      */
126 126
     public function loadForMap($mapUid, $nbLaps)
127 127
     {
@@ -298,7 +298,7 @@  discard block
 block discarded – undo
298 298
      * Update Records statistics.
299 299
      *
300 300
      * @param Record $record
301
-     * @param        $score
301
+     * @param        integer $score
302 302
      */
303 303
     protected function updateRecordStats(Record $record, $score)
304 304
     {
Please login to merge, or discard this patch.
Framework/GameTrackmania/DataProviders/MethodGetScoresDataProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
      */
51 51
     public function request()
52 52
     {
53
-        $this->connection->triggerModeScriptEvent('TriggerModeScriptEventArray', ['Trackmania.GetScores'], [(string)time()]);
53
+        $this->connection->triggerModeScriptEvent('TriggerModeScriptEventArray', ['Trackmania.GetScores'], [(string) time()]);
54 54
     }
55 55
 
56 56
     /**
Please login to merge, or discard this patch.
src/eXpansion/Framework/PlayersBundle/Plugins/Player.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -112,7 +112,7 @@
 block discarded – undo
112 112
     public function onEndMatchEnd($count, $time)
113 113
     {
114 114
         $object = $this;
115
-        $this->getScores->get(function ($scores) use($object) {
115
+        $this->getScores->get(function($scores) use($object) {
116 116
             $object->updateWithScores($scores);
117 117
         });
118 118
     }
Please login to merge, or discard this patch.