Completed
Push — work-fleets ( 874fb8...41da5d )
by SuperNova.WS
06:44
created
includes/classes/DBStaticUnit.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -118,6 +118,9 @@
 block discarded – undo
118 118
     return classSupernova::$gc->cacheOperator->db_ins_record(LOC_UNIT, $set);
119 119
   }
120 120
 
121
+  /**
122
+   * @param integer $unit_location_type
123
+   */
121 124
   public static function db_unit_list_delete($user_id = 0, $unit_location_type, $unit_location_id = 0, $unit_snid = 0) {
122 125
     $where = array('unit_location_type' => $unit_location_type);
123 126
     ($unit_location_id = idval($unit_location_id)) ? $where['unit_location_id'] = $unit_location_id : false;
Please login to merge, or discard this patch.
includes/db.php 1 patch
Doc Comments   +7 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
 
12 12
 /**
13 13
  * @param $adjust
14
- * @param $location
14
+ * @param integer $location
15 15
  * @param $object_id
16 16
  */
17 17
 function db_change_units_perform($adjust, $location, $object_id) {
@@ -32,7 +32,6 @@  discard block
 block discarded – undo
32 32
  * @param       $user
33 33
  * @param       $planet
34 34
  * @param array $unit_list
35
- * @param null  $query
36 35
  */
37 36
 function db_change_units(&$user, &$planet, $unit_list) {
38 37
   $query = array(
@@ -74,6 +73,9 @@  discard block
 block discarded – undo
74 73
   db_change_units_perform($query[LOC_USER], LOC_USER, $user['id']);
75 74
   db_change_units_perform($query[LOC_PLANET], LOC_PLANET, $planet['id']);
76 75
 }
76
+/**
77
+ * @param string $table
78
+ */
77 79
 function sn_db_perform($table, $values, $type = 'insert', $options = false) {
78 80
   $field_set = '';
79 81
 
@@ -163,6 +165,9 @@  discard block
 block discarded – undo
163 165
 
164 166
 
165 167
 
168
+/**
169
+ * @param boolean $transaction_should_be_started
170
+ */
166 171
 function sn_db_transaction_check($transaction_should_be_started = null) {
167 172
   return classSupernova::$gc->db->getTransaction()->check($transaction_should_be_started);
168 173
 }
Please login to merge, or discard this patch.