Code Duplication    Length = 4-4 lines in 2 locations

classes/SQL.php 2 locations

@@ 51-54 (lines=4) @@
48
   * @return bool       `true` if correctly changed
49
   */
50
  public static function defaultTo($name){
51
    if (isset(self::$connections[$name])){
52
      self::$current = $name;
53
      return true;
54
    } else return false;
55
  }
56
57
  /**
@@ 66-69 (lines=4) @@
63
    if ($name === null) {
64
      foreach (self::$connections as $conn) $conn->close();
65
      return true;
66
    } else if (isset(self::$connections[$name])){
67
      self::$connections[$name]->close();
68
      return true;
69
    } else return false;
70
  }
71
72
  /**