Completed
Push — work-fleets ( 046d2e...0cb966 )
by SuperNova.WS
07:26
created
includes/classes/classLocale.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -173,6 +173,9 @@
 block discarded – undo
173 173
   }
174 174
 
175 175
 
176
+  /**
177
+   * @param string $path
178
+   */
176 179
   protected function lng_try_filepath($path, $file_path_relative) {
177 180
     $file_path = SN_ROOT_PHYSICAL . ($path && file_exists(SN_ROOT_PHYSICAL . $path . $file_path_relative) ? $path : '') . $file_path_relative;
178 181
     return file_exists($file_path) ? $file_path : false;
Please login to merge, or discard this patch.
includes/classes/template_compile.php 1 patch
Doc Comments   +8 added lines patch added patch discarded remove patch
@@ -47,6 +47,7 @@  discard block
 block discarded – undo
47 47
 
48 48
   /**
49 49
   * constuctor
50
+  * @param template $template
50 51
   */
51 52
   function template_compile(&$template)
52 53
   {
@@ -463,6 +464,7 @@  discard block
 block discarded – undo
463 464
   * Compile IF tags - much of this is from Smarty with
464 465
   * some adaptions for our block level methods
465 466
   * @access private
467
+  * @param boolean $elseif
466 468
   */
467 469
   function compile_tag_if($tag_args, $elseif)
468 470
   {
@@ -620,6 +622,7 @@  discard block
 block discarded – undo
620 622
   /**
621 623
   * Compile DEFINE tags
622 624
   * @access private
625
+  * @param boolean $op
623 626
   */
624 627
   function compile_tag_define($tag_args, $op)
625 628
   {
@@ -698,6 +701,7 @@  discard block
 block discarded – undo
698 701
   * parse expression
699 702
   * This is from Smarty
700 703
   * @access private
704
+  * @param string $is_arg
701 705
   */
702 706
   function _parse_is_expr($is_arg, $tokens)
703 707
   {
@@ -794,6 +798,8 @@  discard block
 block discarded – undo
794 798
   * If $include_last_iterator is true, then [$_childN_i] will be appended to the form shown above.
795 799
   * NOTE: does not expect a trailing "." on the blockname.
796 800
   * @access private
801
+  * @param string $blockname
802
+  * @param boolean $include_last_iterator
797 803
   */
798 804
   function generate_block_data_ref($blockname, $include_last_iterator, $defop = false)
799 805
   {
@@ -832,6 +838,7 @@  discard block
 block discarded – undo
832 838
   /**
833 839
   * Write compiled file to cache directory
834 840
   * @access private
841
+  * @param string $data
835 842
   */
836 843
   function compile_write($handle, $data)
837 844
   {
@@ -857,6 +864,7 @@  discard block
 block discarded – undo
857 864
   /**
858 865
   * Minifies template w/i PHP code by removing extra spaces
859 866
   * @access private
867
+  * @return string
860 868
   */
861 869
   function minify($html)
862 870
   {
Please login to merge, or discard this patch.
includes/classes/userOptions.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -151,6 +151,9 @@
 block discarded – undo
151 151
   }
152 152
 
153 153
 
154
+  /**
155
+   * @param integer $user_id
156
+   */
154 157
   public function __construct($user_id) {
155 158
     $this->user_change($user_id);
156 159
   }
Please login to merge, or discard this patch.
includes/general/math.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
 /**
38 38
  * @param float      $range_start - Начало диапазона
39 39
  * @param float      $range_end - Конец диапазона
40
- * @param bool|int  $round - До скольки знаков округлять результат. False - не округлять, True - округлять до целого, 1 - округлять до десятков, 2 - до сотен итд
40
+ * @param boolean  $round - До скольки знаков округлять результат. False - не округлять, True - округлять до целого, 1 - округлять до десятков, 2 - до сотен итд
41 41
  * @param int        $strict - В сколько сигм надо уложить результат
42 42
  * @param bool|false $cut_extreme - надо ли обрезать крайние значения. Например, при $strict = 2 их слишком много
43 43
  *
Please login to merge, or discard this patch.
includes/classes/_unused/DbSqlPrepare.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -128,6 +128,9 @@
 block discarded – undo
128 128
     }
129 129
   }
130 130
 
131
+  /**
132
+   * @param string $comment
133
+   */
131 134
   protected function commentAdd($comment) {
132 135
     if (empty($this->values[static::COMMENT_PLACEHOLDER])) {
133 136
       $this->query .= static::COMMENT_PLACEHOLDER;
Please login to merge, or discard this patch.
includes/classes/auth_local.php 1 patch
Doc Comments   +7 added lines, -1 removed lines patch added patch discarded remove patch
@@ -134,7 +134,6 @@  discard block
 block discarded – undo
134 134
   /**
135 135
    * Попытка залогиниться с использованием метода $method
136 136
    *
137
-   * @param string $method_name
138 137
    */
139 138
   public function login() {
140 139
     // TODO Проверяем поддерживаемость метода
@@ -162,6 +161,10 @@  discard block
 block discarded – undo
162 161
    * @return array|bool|resource
163 162
    */
164 163
   // OK v4.5
164
+
165
+  /**
166
+   * @param string $salt_unsafe
167
+   */
165 168
   public function password_change($old_password_unsafe, $new_password_unsafe, $salt_unsafe = null) {
166 169
     $result = parent::password_change($old_password_unsafe, $new_password_unsafe, $salt_unsafe);
167 170
     if($result) {
@@ -171,6 +174,9 @@  discard block
 block discarded – undo
171 174
     return $result;
172 175
   }
173 176
 
177
+  /**
178
+   * @param Account $account_to_impersonate
179
+   */
174 180
   public function impersonate($account_to_impersonate) {
175 181
     $this->cookie_set($account_to_impersonate);
176 182
   }
Please login to merge, or discard this patch.
includes/classes/db_mysql.php 1 patch
Doc Comments   +9 added lines, -2 removed lines patch added patch discarded remove patch
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
   /**
150 150
    * @param string $query
151 151
    *
152
-   * @return mixed|string
152
+   * @return string
153 153
    */
154 154
   public function replaceTablePlaceholders($query) {
155 155
     $sql = $query;
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
   }
164 164
 
165 165
   /**
166
-   * @param $query
166
+   * @param string $query
167 167
    */
168 168
   protected function logQuery($query) {
169 169
     if (!classSupernova::$config->debug) {
@@ -352,6 +352,10 @@  discard block
 block discarded – undo
352 352
   }
353 353
 
354 354
   // TODO Заменить это на новый логгер
355
+
356
+  /**
357
+   * @param string $query
358
+   */
355 359
   protected function security_watch_user_queries($query) {
356 360
     global $user;
357 361
 
@@ -375,6 +379,9 @@  discard block
 block discarded – undo
375 379
   }
376 380
 
377 381
 
382
+  /**
383
+   * @param string $query
384
+   */
378 385
   public function security_query_check_bad_words($query) {
379 386
     if ($this->skipQueryCheck) {
380 387
       return;
Please login to merge, or discard this patch.
includes/classes/DBAL/DbTransaction.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
    *   <p>true - транзакция должна быть запущена - для совместимости с $for_update</p>
40 40
    *   <p>false - всё равно - для совместимости с $for_update</p>
41 41
    *
42
-   * @return bool Текущий статус транзакции
42
+   * @return null|boolean Текущий статус транзакции
43 43
    */
44 44
   public function check($status = null) {
45 45
     $error_msg = false;
Please login to merge, or discard this patch.
includes/classes/DbQueryConstructor.php 1 patch
Doc Comments   +8 added lines, -4 removed lines patch added patch discarded remove patch
@@ -155,10 +155,17 @@  discard block
 block discarded – undo
155 155
     return $this->field(DbSqlLiteral::build($this->db)->literal($field));
156 156
   }
157 157
 
158
+  /**
159
+   * @param string $functionName
160
+   * @param string $alias
161
+   */
158 162
   public function fieldSingleFunction($functionName, $field = '*', $alias = DbSqlLiteral::SQL_LITERAL_ALIAS_NONE) {
159 163
     return $this->field(DbSqlLiteral::build($this->db)->buildSingleArgument($functionName, $field, $alias));
160 164
   }
161 165
 
166
+  /**
167
+   * @param string $alias
168
+   */
162 169
   public function fieldCount($field = '*', $alias = DbSqlLiteral::SQL_LITERAL_ALIAS_NONE) {
163 170
     return $this->field(DbSqlLiteral::build($this->db)->count($field, $alias));
164 171
   }
@@ -240,7 +247,7 @@  discard block
 block discarded – undo
240 247
 
241 248
   /**
242 249
    * @param db_mysql|null $db
243
-   * @param string|object|DBStaticRecord|DbSqlAware $className
250
+   * @param string $className
244 251
    *
245 252
    * @return static
246 253
    */
@@ -435,7 +442,6 @@  discard block
 block discarded – undo
435 442
   }
436 443
 
437 444
   /**
438
-   * @param bool $skip_query_check
439 445
    *
440 446
    * @return DbEmptyIterator|DbMysqliResultIterator
441 447
    */
@@ -444,7 +450,6 @@  discard block
 block discarded – undo
444 450
   }
445 451
 
446 452
   /**
447
-   * @param bool $skip_query_check
448 453
    *
449 454
    * @return array
450 455
    */
@@ -455,7 +460,6 @@  discard block
 block discarded – undo
455 460
   }
456 461
 
457 462
   /**
458
-   * @param bool $skip_query_check
459 463
    *
460 464
    * @return mixed|null
461 465
    */
Please login to merge, or discard this patch.