Completed
Push — work-fleets ( 3604bd...203362 )
by SuperNova.WS
06:25
created
admin/sxd/index.php 1 patch
Doc Comments   +22 added lines patch added patch discarded remove patch
@@ -168,6 +168,11 @@  discard block
 block discarded – undo
168 168
 		if(isset($_POST['ajax'])) $this->ajax($_POST['ajax']);
169 169
 		else $this->main();exit;
170 170
 	}
171
+
172
+	/**
173
+	 * @param string $name
174
+	 * @param string $content
175
+	 */
171 176
 	function saveToFile($name, $content){
172 177
 		$fp = fopen($name, "w");
173 178
 		fwrite($fp, $content);
@@ -248,6 +253,12 @@  discard block
 block discarded – undo
248 253
 		include('tmpl.php');
249 254
 		echo sxd_tpl_page();
250 255
 	}
256
+
257
+	/**
258
+	 * @param string $name
259
+	 * @param integer $ico
260
+	 * @param string $opt_name
261
+	 */
251 262
 	function addCombo($name, $sel, $ico, $opt_name, $opts = ''){
252 263
 		$opts = !empty($opts) ? "{{$opt_name}:" . sxd_php2json($opts) . '}' : "'{$opt_name}'";
253 264
 		return "sxd.addCombo('{$name}', '{$sel}', {$ico}, {$opts});\n";
@@ -1313,6 +1324,10 @@  discard block
 block discarded – undo
1313 1324
 		}
1314 1325
 		return $this->formatTree($tree, $objects);
1315 1326
 	}
1327
+
1328
+	/**
1329
+	 * @param string $tree
1330
+	 */
1316 1331
 	function getFileObjects($tree, $name, $formatTree = true){
1317 1332
 		// Достаем таблицы
1318 1333
 		$objects = array('TA' => array(), 'VI' => array(), 'PR' => array(), 'FU' => array(), 'TR' => array(), 'EV' => array());
@@ -1475,6 +1490,10 @@  discard block
 block discarded – undo
1475 1490
 	function saveJob($job, $config){
1476 1491
 		$this->saveToFile($this->CFG['backup_path'] . $job . '.job.php', "<?php\n\$JOB = " . var_export($config, true) . ";\n" . "?>");
1477 1492
 	}
1493
+
1494
+	/**
1495
+	 * @param string $mode
1496
+	 */
1478 1497
 	function openFile($name, $mode){
1479 1498
 		if($mode == 'r') {
1480 1499
 			if(preg_match('/\.(sql|sql\.bz2|sql\.gz)$/i', $name, $m)) $this->JOB['file_ext'] = strtolower($m[1]);
@@ -1552,6 +1571,9 @@  discard block
 block discarded – undo
1552 1571
     }
1553 1572
 	return  substr_replace($str, $is_obj ? '}' : ']', -1);
1554 1573
 }
1574
+/**
1575
+ * @param string $ver
1576
+ */
1555 1577
 function sxd_ver2int($ver){
1556 1578
 	return preg_match("/^(\d+)\.(\d+)\.(\d+)/", $ver, $m) ? sprintf("%d%02d%02d", $m[1], $m[2], $m[3]) : 0;
1557 1579
 }
Please login to merge, or discard this patch.
includes/functions/eco_get_build_data.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -10,6 +10,7 @@  discard block
 block discarded – undo
10 10
  *
11 11
  * 1.0 - copyright (c) 2010 by Gorlum for http://supernova.ws
12 12
  * @version 1.0
13
+ * @param integer $lab_require
13 14
  */
14 15
 function eco_get_lab_max_effective_level(&$user, $lab_require)
15 16
 {
@@ -193,6 +194,9 @@  discard block
 block discarded – undo
193 194
   return $result;
194 195
 }
195 196
 
197
+/**
198
+ * @param integer[] $unit_list
199
+ */
196 200
 function eco_is_builds_in_que($planet_que, $unit_list)
197 201
 {
198 202
   $eco_is_builds_in_que = false;
Please login to merge, or discard this patch.
includes/functions/eco_queue.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -55,6 +55,9 @@  discard block
 block discarded – undo
55 55
 }
56 56
 
57 57
 
58
+/**
59
+ * @param integer $build_mode
60
+ */
58 61
 function que_build($user, $planet, $build_mode = BUILD_CREATE, $redirect = true) {
59 62
   global $lang, $config;
60 63
 
@@ -378,6 +381,9 @@  discard block
 block discarded – undo
378 381
   return classSupernova::db_que_list_by_type_location($user_id, $planet_id, $que_type, $for_update);
379 382
 }
380 383
 
384
+/**
385
+ * @param integer $unit_id
386
+ */
381 387
 function que_add_unit($unit_id, $user = array(), $planet = array(), $build_data, $unit_level = 0, $unit_amount = 1, $build_mode = BUILD_CREATE) {
382 388
   // TODO Унифицировать проверки
383 389
 
Please login to merge, or discard this patch.
includes/functions/sys_user.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -141,6 +141,9 @@
 block discarded – undo
141 141
   ");
142 142
 }
143 143
 
144
+/**
145
+ * @param string $email_unsafe
146
+ */
144 147
 function player_create($username_unsafe, $email_unsafe, $options) {
145 148
   sn_db_transaction_check(true);
146 149
 
Please login to merge, or discard this patch.
includes/includes/flt_functions.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -1,5 +1,8 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
+/**
4
+ * @return double
5
+ */
3 6
 function flt_fleet_speed($user, $fleet)
4 7
 {
5 8
   if (!is_array($fleet))
Please login to merge, or discard this patch.
includes/includes/flt_mission_spy.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -29,6 +29,9 @@
 block discarded – undo
29 29
   }
30 30
 }
31 31
 
32
+/**
33
+ * @param string $group_name
34
+ */
32 35
 function flt_spy_scan($target_planet, $group_name, $section_title, $target_user = array())
33 36
 {
34 37
   global $lang;
Please login to merge, or discard this patch.
includes/includes/mrc_mercenary.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -26,6 +26,10 @@
 block discarded – undo
26 26
   return true;
27 27
 }
28 28
 
29
+/**
30
+ * @param integer $mode
31
+ * @param integer $mercenary_id
32
+ */
29 33
 function mrc_mercenary_hire($mode, $user, $mercenary_id) {
30 34
   global $config, $lang, $sn_powerup_buy_discounts;
31 35
 
Please login to merge, or discard this patch.
includes/functions/int_fleet_events.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -69,8 +69,8 @@
 block discarded – undo
69 69
 
70 70
 /**
71 71
  * @param Fleet $objFleet
72
- * @param       $ov_label
73
- * @param       $planet_end_type
72
+ * @param       integer $ov_label
73
+ * @param       integer $planet_end_type
74 74
  *
75 75
  * @return mixed
76 76
  */
Please login to merge, or discard this patch.
includes/functions/tpl_helpers.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -185,6 +185,9 @@
 block discarded – undo
185 185
   return $result;
186 186
 }
187 187
 
188
+/**
189
+ * @param integer $que_id
190
+ */
188 191
 function tpl_parse_planet_que($que, $planet, $que_id) {
189 192
   $hangar_que = array();
190 193
   $que_hangar = $que['ques'][$que_id][$planet['id_owner']][$planet['id']];
Please login to merge, or discard this patch.