Completed
Pull Request — master (#329)
by De Cramer
03:46
created
src_experimantal/eXpansionExperimantal/Bundle/Dedimania/Classes/Request.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -7,11 +7,17 @@  discard block
 block discarded – undo
7 7
 
8 8
     private $requests = array();
9 9
 
10
+    /**
11
+     * @param string $method
12
+     */
10 13
     public function __construct($method, $args)
11 14
     {
12 15
         $this->requests[] = $this->generate($method, $args);
13 16
     }
14 17
 
18
+    /**
19
+     * @param string $method
20
+     */
15 21
     public function add($method, $args)
16 22
     {
17 23
         $this->requests[] = $this->generate($method, $args);
@@ -63,6 +69,9 @@  discard block
 block discarded – undo
63 69
 {
64 70
     private $data;
65 71
 
72
+    /**
73
+     * @param string|false $data
74
+     */
66 75
     public function __construct($data)
67 76
     {
68 77
         $this->data = $data;
Please login to merge, or discard this patch.
eXpansionExperimantal/Bundle/Dedimania/Classes/Webaccess.php 1 patch
Doc Comments   +17 added lines patch added patch discarded remove patch
@@ -131,6 +131,11 @@  discard block
 block discarded – undo
131 131
         $this->console = $console;
132 132
     }
133 133
 
134
+    /**
135
+     * @param string $url
136
+     * @param callable[] $callback
137
+     * @param string $datas
138
+     */
134 139
     public function request(
135 140
         $url,
136 141
         $callback,
@@ -204,6 +209,9 @@  discard block
 block discarded – undo
204 209
         }
205 210
     }  // retry
206 211
 
212
+    /**
213
+     * @param integer $tv_sec
214
+     */
207 215
     public function select(&$read, &$write, &$except, $tv_sec, $tv_usec = 0)
208 216
     {
209 217
         $timeout = (int)($tv_sec * 1000000 + $tv_usec);
@@ -421,6 +429,9 @@  discard block
 block discarded – undo
421 429
     // Methods
422 430
     //-----------------------------
423 431
 
432
+    /**
433
+     * @param Webaccess $wa
434
+     */
424 435
     public function __construct(
425 436
         &$wa,
426 437
         $host,
@@ -1058,6 +1069,9 @@  discard block
 block discarded – undo
1058 1069
         }
1059 1070
     }  // _receive
1060 1071
 
1072
+    /**
1073
+     * @param string $error
1074
+     */
1061 1075
     private function _callCallback($error = null)
1062 1076
     {
1063 1077
         if ($error !== null) {
@@ -1406,6 +1420,9 @@  discard block
 block discarded – undo
1406 1420
     return array(false, false, false);
1407 1421
 }
1408 1422
 
1423
+/**
1424
+ * @param string $input
1425
+ */
1409 1426
 function urlsafe_base64_encode($input)
1410 1427
 {
1411 1428
     return strtr(\base64_encode($input), '+/=', '-_,');
Please login to merge, or discard this patch.
eXpansionExperimantal/Bundle/Dedimania/Plugins/Dedimania.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -622,7 +622,7 @@  discard block
 block discarded – undo
622 622
 
623 623
     /**
624 624
      * Sets new Ghost replay for the map
625
-     * @param $login
625
+     * @param string $login
626 626
      */
627 627
     protected function setGReplay($login)
628 628
     {
@@ -711,6 +711,9 @@  discard block
 block discarded – undo
711 711
         }
712 712
     }
713 713
 
714
+    /**
715
+     * @param string $titleId
716
+     */
714 717
     protected function getPackMask($titleId)
715 718
     {
716 719
         foreach ($this->titles as $title => $data) {
Please login to merge, or discard this patch.
eXpansionExperimantal/Bundle/Dedimania/Services/DedimaniaService.php 1 patch
Doc Comments   +7 added lines, -4 removed lines patch added patch discarded remove patch
@@ -86,6 +86,9 @@  discard block
 block discarded – undo
86 86
         $this->dispatcher->dispatch('expansion.dedimania.records.load', [$records]);
87 87
     }
88 88
 
89
+    /**
90
+     * @param integer $login
91
+     */
89 92
     public function getRecord($login)
90 93
     {
91 94
         if (isset($this->recordsByLogin[$login])) {
@@ -200,7 +203,7 @@  discard block
 block discarded – undo
200 203
 
201 204
 
202 205
     /**
203
-     * @return mixed
206
+     * @return integer
204 207
      */
205 208
     public function getServerMaxRank()
206 209
     {
@@ -241,7 +244,7 @@  discard block
 block discarded – undo
241 244
     }
242 245
 
243 246
     /**
244
-     * @param $login
247
+     * @param string $login
245 248
      */
246 249
     public function disconnectPlayer($login)
247 250
     {
@@ -269,7 +272,7 @@  discard block
 block discarded – undo
269 272
     }
270 273
 
271 274
     /**
272
-     * @return array
275
+     * @return string[]
273 276
      */
274 277
     public function getGReplay()
275 278
     {
@@ -287,7 +290,7 @@  discard block
 block discarded – undo
287 290
     }
288 291
 
289 292
     /**
290
-     * @return string|false
293
+     * @return boolean
291 294
      */
292 295
     public function isDisabled()
293 296
     {
Please login to merge, or discard this patch.