Code Duplication    Length = 7-7 lines in 3 locations

includes/classes/db_mysql.php 3 locations

@@ 829-835 (lines=7) @@
826
   *
827
   * @return bool|mysqli_stmt
828
   */
829
  public function db_prepare($statement) {
830
    $microtime = microtime(true);
831
    $result = $this->driver->mysql_prepare($statement);
832
    $this->time_mysql_total += microtime(true) - $microtime;
833
834
    return $result;
835
  }
836
837
838
  /**
@@ 845-851 (lines=7) @@
842
   *
843
   * @return bool|mysqli_result
844
   */
845
  public function db_sql_query($query_string) {
846
    $microtime = microtime(true);
847
    $result = $this->driver->mysql_query($query_string);
848
    $this->time_mysql_total += microtime(true) - $microtime;
849
850
    return $result;
851
  }
852
853
  /**
854
   * L1 fetch assoc array
@@ 860-866 (lines=7) @@
857
   *
858
   * @return array|null
859
   */
860
  public function db_fetch(&$query) {
861
    $microtime = microtime(true);
862
    $result = $this->driver->mysql_fetch_assoc($query);
863
    $this->time_mysql_total += microtime(true) - $microtime;
864
865
    return $result;
866
  }
867
868
  public function db_fetch_row(&$query) {
869
    return $this->driver->mysql_fetch_row($query);