Code Duplication    Length = 13-13 lines in 2 locations

src/voku/db/DB.php 2 locations

@@ 626-638 (lines=13) @@
623
   *
624
   * @return bool <p>Boolean true on success, false otherwise.</p>
625
   */
626
  public function commit(): bool
627
  {
628
    if ($this->_in_transaction === false) {
629
      $this->_debug->displayError('Error: mysql server is not in transaction!', false);
630
631
      return false;
632
    }
633
634
    $return = mysqli_commit($this->link);
635
    \mysqli_autocommit($this->link, true);
636
    $this->_in_transaction = false;
637
638
    return $return;
639
  }
640
641
  /**
@@ 1676-1688 (lines=13) @@
1673
   *
1674
   * @return bool <p>Boolean true on success, false otherwise.</p>
1675
   */
1676
  public function rollback(): bool
1677
  {
1678
    if ($this->_in_transaction === false) {
1679
      $this->_debug->displayError('Error: mysql server is not in transaction!', false);
1680
1681
      return false;
1682
    }
1683
1684
    $return = \mysqli_rollback($this->link);
1685
    \mysqli_autocommit($this->link, true);
1686
    $this->_in_transaction = false;
1687
1688
    return $return;
1689
  }
1690
1691
  /**