Completed
Push — work-fleets ( 29b14b...6b7253 )
by SuperNova.WS
05:46
created
includes/classes/db_mysql.php 1 patch
Doc Comments   +11 added lines, -4 removed lines patch added patch discarded remove patch
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
   /**
125 125
    * @param string $query
126 126
    *
127
-   * @return mixed|string
127
+   * @return string
128 128
    */
129 129
   public function replaceTablePlaceholders($query) {
130 130
     $sql = $query;
@@ -138,8 +138,8 @@  discard block
 block discarded – undo
138 138
   }
139 139
 
140 140
   /**
141
-   * @param       $query
142
-   * @param       $fetch
141
+   * @param       string $query
142
+   * @param       boolean $fetch
143 143
    */
144 144
   protected function logQuery($query, $fetch) {
145 145
     if (!classSupernova::$config->debug) {
@@ -180,7 +180,7 @@  discard block
 block discarded – undo
180 180
   /**
181 181
    * @param string|DbSqlStatement $statement
182 182
    *
183
-   * @return array|bool|mysqli_result|null
183
+   * @return mysqli_result
184 184
    */
185 185
   public function execOld($statement) {
186 186
     return $this->doquery($statement);
@@ -361,6 +361,10 @@  discard block
 block discarded – undo
361 361
   }
362 362
 
363 363
   // TODO Заменить это на новый логгер
364
+
365
+  /**
366
+   * @param string $query
367
+   */
364 368
   protected function security_watch_user_queries($query) {
365 369
     global $user;
366 370
 
@@ -384,6 +388,9 @@  discard block
 block discarded – undo
384 388
   }
385 389
 
386 390
 
391
+  /**
392
+   * @param string $query
393
+   */
387 394
   public function security_query_check_bad_words($query, $skip_query_check = false) {
388 395
     if ($skip_query_check) {
389 396
       return;
Please login to merge, or discard this patch.
includes/classes/DbSqlPrepare.php 1 patch
Doc Comments   +10 added lines, -1 removed lines patch added patch discarded remove patch
@@ -100,6 +100,9 @@  discard block
 block discarded – undo
100 100
   }
101 101
 
102 102
 
103
+  /**
104
+   * @param string $query
105
+   */
103 106
   public function setQuery($query) {
104 107
     $this->query = $query;
105 108
 
@@ -113,6 +116,9 @@  discard block
 block discarded – undo
113 116
     }
114 117
   }
115 118
 
119
+  /**
120
+   * @param string $comment
121
+   */
116 122
   protected function commentAdd($comment) {
117 123
     if (empty($this->values[static::COMMENT_PLACEHOLDER])) {
118 124
       $this->query .= static::COMMENT_PLACEHOLDER;
@@ -243,12 +249,15 @@  discard block
 block discarded – undo
243 249
     return $this;
244 250
   }
245 251
 
252
+  /**
253
+   * @return mysqli_result
254
+   */
246 255
   public function getResult() {
247 256
     return $this->statement->get_result();
248 257
   }
249 258
 
250 259
   /**
251
-   * @return bool|mysqli_result
260
+   * @return DBMysqliStatementIterator
252 261
    */
253 262
   public function getIterator() {
254 263
     return new DBMysqliStatementIterator($this->statement);
Please login to merge, or discard this patch.