@@ -29,8 +29,7 @@ |
||
29 | 29 | try |
30 | 30 | { |
31 | 31 | $query->execute(); |
32 | - } |
|
33 | - catch(PDOException $e) |
|
32 | + } catch(PDOException $e) |
|
34 | 33 | { |
35 | 34 | throw new Exception("Error en la consulta"); |
36 | 35 | } |
@@ -29,8 +29,7 @@ |
||
29 | 29 | try |
30 | 30 | { |
31 | 31 | $query->execute(); |
32 | - } |
|
33 | - catch(PDOException $e) |
|
32 | + } catch(PDOException $e) |
|
34 | 33 | { |
35 | 34 | throw new Exception("Error en la consulta"); |
36 | 35 | } |
@@ -21,8 +21,7 @@ |
||
21 | 21 | { |
22 | 22 | $this->_pdo = new PDO('mysql:host='.$HostBaseDeDatos->hostBaseDeDatos().';dbname='.$BaseDeDatos->baseDeDatos().';chartset=utf8mb4',$UsuarioBaseDeDatos->usuarioBaseDeDatos(),$ContrasenaBaseDeDatos->contrasenaBaseDeDatos()); |
23 | 23 | $this->_pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); |
24 | - } |
|
25 | - catch(PDOException) |
|
24 | + } catch(PDOException) |
|
26 | 25 | { |
27 | 26 | throw new ConexionABaseDeDatosException("Error al conectar con base de datos"); |
28 | 27 | } |
@@ -33,8 +33,7 @@ |
||
33 | 33 | { |
34 | 34 | $this->_tabla1 = $array[0]; |
35 | 35 | $this->_tabla2 = $array[0]; |
36 | - } |
|
37 | - else |
|
36 | + } else |
|
38 | 37 | { |
39 | 38 | $this->_tabla1 = $array[0]; |
40 | 39 | $this->_tabla2 = $array[1]; |