Code Duplication    Length = 13-13 lines in 2 locations

src/voku/db/DB.php 2 locations

@@ 605-617 (lines=13) @@
602
   *
603
   * @return bool <p>Boolean true on success, false otherwise.</p>
604
   */
605
  public function commit()
606
  {
607
    if ($this->_in_transaction === false) {
608
      $this->_debug->displayError('Error: mysql server is not in transaction!', false);
609
610
      return false;
611
    }
612
613
    $return = mysqli_commit($this->link);
614
    \mysqli_autocommit($this->link, true);
615
    $this->_in_transaction = false;
616
617
    return $return;
618
  }
619
620
  /**
@@ 1670-1682 (lines=13) @@
1667
   *
1668
   * @return bool <p>Boolean true on success, false otherwise.</p>
1669
   */
1670
  public function rollback()
1671
  {
1672
    if ($this->_in_transaction === false) {
1673
      $this->_debug->displayError('Error: mysql server is not in transaction!', false);
1674
1675
      return false;
1676
    }
1677
1678
    $return = \mysqli_rollback($this->link);
1679
    \mysqli_autocommit($this->link, true);
1680
    $this->_in_transaction = false;
1681
1682
    return $return;
1683
  }
1684
1685
  /**