Code Duplication    Length = 13-13 lines in 2 locations

src/voku/db/DB.php 2 locations

@@ 602-614 (lines=13) @@
599
   *
600
   * @return bool <p>Boolean true on success, false otherwise.</p>
601
   */
602
  public function commit()
603
  {
604
    if ($this->_in_transaction === false) {
605
      $this->_debug->displayError('Error: mysql server is not in transaction!', false);
606
607
      return false;
608
    }
609
610
    $return = mysqli_commit($this->link);
611
    \mysqli_autocommit($this->link, true);
612
    $this->_in_transaction = false;
613
614
    return $return;
615
  }
616
617
  /**
@@ 1657-1669 (lines=13) @@
1654
   *
1655
   * @return bool <p>Boolean true on success, false otherwise.</p>
1656
   */
1657
  public function rollback()
1658
  {
1659
    if ($this->_in_transaction === false) {
1660
      $this->_debug->displayError('Error: mysql server is not in transaction!', false);
1661
1662
      return false;
1663
    }
1664
1665
    $return = \mysqli_rollback($this->link);
1666
    \mysqli_autocommit($this->link, true);
1667
    $this->_in_transaction = false;
1668
1669
    return $return;
1670
  }
1671
1672
  /**