@@ -26,7 +26,7 @@ |
||
| 26 | 26 | } |
| 27 | 27 | |
| 28 | 28 | /** |
| 29 | - * @param mixed $value |
|
| 29 | + * @param string $value |
|
| 30 | 30 | * |
| 31 | 31 | * @return $this |
| 32 | 32 | */ |
@@ -19,7 +19,7 @@ discard block |
||
| 19 | 19 | |
| 20 | 20 | /** |
| 21 | 21 | * @param $user_id |
| 22 | - * @param $nickUnsafe |
|
| 22 | + * @param string $nickUnsafe |
|
| 23 | 23 | * @param $ally_id |
| 24 | 24 | * @param $message_unsafe |
| 25 | 25 | * @param $chat_message_sender_name_unsafe |
@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | * @param $alliance |
| 55 | 55 | * @param $where_add |
| 56 | 56 | * @param $start_row |
| 57 | - * @param $page_limit |
|
| 57 | + * @param integer $page_limit |
|
| 58 | 58 | * |
| 59 | 59 | * @return array|bool|mysqli_result|null |
| 60 | 60 | */ |
@@ -467,6 +467,12 @@ |
||
| 467 | 467 | {$StartRec}, 25;"); |
| 468 | 468 | } |
| 469 | 469 | |
| 470 | + /** |
|
| 471 | + * @param integer $message_type |
|
| 472 | + * @param string $from_unsafe |
|
| 473 | + * @param string $subject_unsafe |
|
| 474 | + * @param string $text_unsafe |
|
| 475 | + */ |
|
| 470 | 476 | public static function db_message_insert_all($message_type, $from_unsafe, $subject_unsafe, $text_unsafe) { |
| 471 | 477 | $message_type_safe = intval($message_type); |
| 472 | 478 | $from_safe = db_escape($from_unsafe); |
@@ -50,8 +50,8 @@ |
||
| 50 | 50 | |
| 51 | 51 | /** |
| 52 | 52 | * @param template $template |
| 53 | - * @param $query_where |
|
| 54 | - * @param $query_limit |
|
| 53 | + * @param string $query_where |
|
| 54 | + * @param integer $query_limit |
|
| 55 | 55 | * |
| 56 | 56 | * @return array|bool|mysqli_result|null |
| 57 | 57 | */ |
@@ -118,6 +118,9 @@ |
||
| 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; |
@@ -40,6 +40,7 @@ discard block |
||
| 40 | 40 | } |
| 41 | 41 | |
| 42 | 42 | /** |
| 43 | + * @param string $fields |
|
| 43 | 44 | * @return DbResultIterator |
| 44 | 45 | */ |
| 45 | 46 | protected static function playerSelectIterator($fields, $orderBy = '', $forUpdate = false, $groupHaving = '', $where = '', $limit = '') { |
@@ -134,6 +135,9 @@ discard block |
||
| 134 | 135 | return $result; |
| 135 | 136 | } |
| 136 | 137 | |
| 138 | + /** |
|
| 139 | + * @param integer $config_user_birthday_range |
|
| 140 | + */ |
|
| 137 | 141 | public static function db_user_list_to_celebrate($config_user_birthday_range) { |
| 138 | 142 | $query = "SELECT |
| 139 | 143 | `id`, `username`, `user_birthday`, `user_birthday_celebrated`, |
@@ -213,6 +217,9 @@ discard block |
||
| 213 | 217 | return $user_list; |
| 214 | 218 | } |
| 215 | 219 | |
| 220 | + /** |
|
| 221 | + * @param string $username_unsafe |
|
| 222 | + */ |
|
| 216 | 223 | public static function db_user_by_username($username_unsafe, $for_update = false, $fields = '*', $player = null, $like = false) { |
| 217 | 224 | // TODO Проверить, кстати - а везде ли нужно выбирать юзеров или где-то все-таки ищутся Альянсы ? |
| 218 | 225 | if (!($username_unsafe = trim($username_unsafe))) { |
@@ -266,7 +273,6 @@ discard block |
||
| 266 | 273 | |
| 267 | 274 | /** |
| 268 | 275 | * @param $user_id |
| 269 | - * @param array $set |
|
| 270 | 276 | * @param array $adjust |
| 271 | 277 | * |
| 272 | 278 | * @return array|bool|mysqli_result|null |
@@ -283,8 +289,8 @@ discard block |
||
| 283 | 289 | * <p>array - запись пользователя с установленным полем ['id']</p> |
| 284 | 290 | * @param bool $for_update @deprecated |
| 285 | 291 | * @param string $fields @deprecated список полей или '*'/'' для всех полей |
| 286 | - * @param null $player |
|
| 287 | - * @param bool|null $player Признак выбора записи пользователь типа "игрок" |
|
| 292 | + * @param boolean $player |
|
| 293 | + * @param boolean $player Признак выбора записи пользователь типа "игрок" |
|
| 288 | 294 | * <p>null - Можно выбрать запись любого типа</p> |
| 289 | 295 | * <p>true - Выбирается только запись типа "игрок"</p> |
| 290 | 296 | * <p>false - Выбирается только запись типа "альянс"</p> |
@@ -187,6 +187,9 @@ |
||
| 187 | 187 | return $error_backtrace; |
| 188 | 188 | } |
| 189 | 189 | |
| 190 | + /** |
|
| 191 | + * @param string $die_message |
|
| 192 | + */ |
|
| 190 | 193 | public function error_fatal($die_message, $details = 'There is a fatal error on page') { |
| 191 | 194 | // TODO - Записывать детали ошибки в лог-файл |
| 192 | 195 | die($die_message); |
@@ -118,7 +118,7 @@ |
||
| 118 | 118 | * @param mixed $offset <p> |
| 119 | 119 | * The offset to assign the value to. |
| 120 | 120 | * </p> |
| 121 | - * @param mixed $value <p> |
|
| 121 | + * @param Unit $value <p> |
|
| 122 | 122 | * The value to set. |
| 123 | 123 | * </p> |
| 124 | 124 | * |
@@ -459,7 +459,7 @@ discard block |
||
| 459 | 459 | * Преобразовывает данные симулятора в данные для расчета боя |
| 460 | 460 | * |
| 461 | 461 | * @param $side_info |
| 462 | - * @param $attacker |
|
| 462 | + * @param boolean $attacker |
|
| 463 | 463 | * @param int $player_id |
| 464 | 464 | * |
| 465 | 465 | */ |
@@ -521,7 +521,7 @@ discard block |
||
| 521 | 521 | } |
| 522 | 522 | |
| 523 | 523 | /** |
| 524 | - * @return int |
|
| 524 | + * @return double |
|
| 525 | 525 | */ |
| 526 | 526 | public function get_time_spent() { |
| 527 | 527 | return $this->time_spent; |
@@ -564,7 +564,7 @@ discard block |
||
| 564 | 564 | } |
| 565 | 565 | |
| 566 | 566 | /** |
| 567 | - * @param $template |
|
| 567 | + * @param null|template $template |
|
| 568 | 568 | * |
| 569 | 569 | * @return template |
| 570 | 570 | */ |