Passed
Push — main ( 61b690...edee3b )
by Osvaldo
01:26
created
src/pdoDataBase/select/Campos.php 2 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -21,12 +21,12 @@
 block discarded – undo
21 21
 
22 22
         if(count($columnas) > 0)
23 23
         {
24
-           foreach ($columnas as $campo)
25
-           {
26
-               $campos = $campo.','.$campos;
27
-           }
24
+            foreach ($columnas as $campo)
25
+            {
26
+                $campos = $campo.','.$campos;
27
+            }
28 28
 
29
-           $campos = trim($campos, ',');
29
+            $campos = trim($campos, ',');
30 30
         }
31 31
         else
32 32
         {
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,8 +27,7 @@
 block discarded – undo
27 27
            }
28 28
 
29 29
            $campos = trim($campos, ',');
30
-        }
31
-        else
30
+        } else
32 31
         {
33 32
             $campos = '*';
34 33
         }
Please login to merge, or discard this patch.
src/pdoDataBase/conexion/ConexionBaseDeDatos.php 2 patches
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -29,14 +29,14 @@
 block discarded – undo
29 29
     public function conectar(): PDO
30 30
     {
31 31
         try
32
-		{
33
-			$this->_pdo = new PDO('mysql:host='.$this->_hostBaseDeDatos->hostBaseDeDatos().';dbname='.$this->_baseDeDatos->baseDeDatos().';chartset=utf8mb4',$this->_usuarioBaseDeDatos->usuarioBaseDeDatos(),$this->_contraseñaBaseDeDatos->contraseñaBaseDeDatos());
34
-			$this->_pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
35
-		}
36
-		catch(PDOException)
37
-		{
38
-			throw new ConexionABaseDeDatosException("Error al conectar con base de datos");
39
-		}
32
+        {
33
+            $this->_pdo = new PDO('mysql:host='.$this->_hostBaseDeDatos->hostBaseDeDatos().';dbname='.$this->_baseDeDatos->baseDeDatos().';chartset=utf8mb4',$this->_usuarioBaseDeDatos->usuarioBaseDeDatos(),$this->_contraseñaBaseDeDatos->contraseñaBaseDeDatos());
34
+            $this->_pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
35
+        }
36
+        catch(PDOException)
37
+        {
38
+            throw new ConexionABaseDeDatosException("Error al conectar con base de datos");
39
+        }
40 40
 
41 41
         return $this->_pdo;
42 42
     }
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,8 +32,7 @@
 block discarded – undo
32 32
 		{
33 33
 			$this->_pdo = new PDO('mysql:host='.$this->_hostBaseDeDatos->hostBaseDeDatos().';dbname='.$this->_baseDeDatos->baseDeDatos().';chartset=utf8mb4',$this->_usuarioBaseDeDatos->usuarioBaseDeDatos(),$this->_contraseñaBaseDeDatos->contraseñaBaseDeDatos());
34 34
 			$this->_pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
35
-		}
36
-		catch(PDOException)
35
+		} catch(PDOException)
37 36
 		{
38 37
 			throw new ConexionABaseDeDatosException("Error al conectar con base de datos");
39 38
 		}
Please login to merge, or discard this patch.
src/pdoDataBase/consulta/Consulta.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -23,8 +23,8 @@  discard block
 block discarded – undo
23 23
     }
24 24
 
25 25
     public function consulta(): PDOStatement
26
-	{
27
-		$consulta = $this->_conexionBaseDeDatos->prepare($this->_query->query());
26
+    {
27
+        $consulta = $this->_conexionBaseDeDatos->prepare($this->_query->query());
28 28
 
29 29
         if(!empty($this->_query->valores()))
30 30
         {
@@ -46,5 +46,5 @@  discard block
 block discarded – undo
46 46
         }
47 47
 
48 48
         return $consulta;		
49
-	}
49
+    }
50 50
 }
51 51
\ No newline at end of file
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,8 +39,7 @@
 block discarded – undo
39 39
         try
40 40
         {
41 41
             $consulta->execute();   
42
-        }
43
-        catch(PDOException $e)
42
+        } catch(PDOException $e)
44 43
         {
45 44
             throw new ConsultaException("Error al procesar la consulta");
46 45
         }
Please login to merge, or discard this patch.