Passed
Push — main ( ef0a91...c8f39c )
by Osvaldo
01:07
created
src/interfaces/WhereInterface.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
5 5
 
6 6
 interface WhereInterface
7 7
 {
8
-    public function __construct(ValidadorDeParametrosInterface $ValidadorDeParametrosInterface);
9
-    public function sql(): string;
10
-    public function datos(): array;
8
+	public function __construct(ValidadorDeParametrosInterface $ValidadorDeParametrosInterface);
9
+	public function sql(): string;
10
+	public function datos(): array;
11 11
 }
12 12
\ No newline at end of file
Please login to merge, or discard this patch.
src/pdodatabase/sentencias/select/SentenciaSelectWhere.php 1 patch
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -5,22 +5,22 @@
 block discarded – undo
5 5
 
6 6
 class SentenciaSelectWhere 
7 7
 {
8
-    private $_donde;
9
-    private $_como;
8
+	private $_donde;
9
+	private $_como;
10 10
 
11
-    public function __construct(CamposYTabla $Donde, Como $Como)
12
-    {
13
-        $this->_donde = $Donde;
14
-        $this->_como = $Como;
15
-    }
11
+	public function __construct(CamposYTabla $Donde, Como $Como)
12
+	{
13
+		$this->_donde = $Donde;
14
+		$this->_como = $Como;
15
+	}
16 16
 
17
-    public function sql(): string
18
-    {
19
-        return 'SELECT '.$this->_donde->sql().' '.$this->_como->sql();
20
-    }
17
+	public function sql(): string
18
+	{
19
+		return 'SELECT '.$this->_donde->sql().' '.$this->_como->sql();
20
+	}
21 21
 
22
-    public function datos(): array
23
-    {
24
-        return $this->_como->datos();
25
-    }
22
+	public function datos(): array
23
+	{
24
+		return $this->_como->datos();
25
+	}
26 26
 }
27 27
\ No newline at end of file
Please login to merge, or discard this patch.
src/pdodatabase/sentencias/select/SentenciaSelect.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -5,15 +5,15 @@
 block discarded – undo
5 5
 
6 6
 class SentenciaSelect
7 7
 {
8
-    private $_donde;
8
+	private $_donde;
9 9
     
10
-    public function __construct(CamposYTabla $Donde)
11
-    {
12
-        $this->_donde = $Donde;
13
-    }
10
+	public function __construct(CamposYTabla $Donde)
11
+	{
12
+		$this->_donde = $Donde;
13
+	}
14 14
 
15
-    public function sql(): string
16
-    {
17
-        return 'SELECT '.$this->_donde->sql();
18
-    }
15
+	public function sql(): string
16
+	{
17
+		return 'SELECT '.$this->_donde->sql();
18
+	}
19 19
 }
20 20
\ No newline at end of file
Please login to merge, or discard this patch.
src/pdodatabase/consultas/select/ConsultaSelect.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -7,17 +7,17 @@
 block discarded – undo
7 7
 
8 8
 class ConsultaSelect
9 9
 {
10
-    private $_ejecutar;
11
-    private $_sentencia;
10
+	private $_ejecutar;
11
+	private $_sentencia;
12 12
     
13
-    public function __construct(EjecutarConsultaSinDatos $ejecutarConsultaSinDatos, SentenciaSelect $sentenciaSelect)
14
-    {
15
-        $this->_ejecutar = $ejecutarConsultaSinDatos;
16
-        $this->_sentencia = $sentenciaSelect;
17
-    }
13
+	public function __construct(EjecutarConsultaSinDatos $ejecutarConsultaSinDatos, SentenciaSelect $sentenciaSelect)
14
+	{
15
+		$this->_ejecutar = $ejecutarConsultaSinDatos;
16
+		$this->_sentencia = $sentenciaSelect;
17
+	}
18 18
 
19
-    public function obtener(): PDOStatement
20
-    {
21
-        return $this->_ejecutar->query($this->_sentencia->sql());
22
-    }
19
+	public function obtener(): PDOStatement
20
+	{
21
+		return $this->_ejecutar->query($this->_sentencia->sql());
22
+	}
23 23
 }
24 24
\ No newline at end of file
Please login to merge, or discard this patch.
src/pdodatabase/consultas/select/ConsultaSelectWhere.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -7,17 +7,17 @@
 block discarded – undo
7 7
 
8 8
 class ConsultaSelectWhere
9 9
 {
10
-    private $_ejecutar;
11
-    private $_sentencia;
10
+	private $_ejecutar;
11
+	private $_sentencia;
12 12
     
13
-    public function __construct(EjecutarConsultaConDatos $ejecutarConsultaSinDatos, SentenciaSelectWhere $SentenciaSelectWhere)
14
-    {
15
-        $this->_ejecutar = $ejecutarConsultaSinDatos;
16
-        $this->_sentencia = $SentenciaSelectWhere;
17
-    }
13
+	public function __construct(EjecutarConsultaConDatos $ejecutarConsultaSinDatos, SentenciaSelectWhere $SentenciaSelectWhere)
14
+	{
15
+		$this->_ejecutar = $ejecutarConsultaSinDatos;
16
+		$this->_sentencia = $SentenciaSelectWhere;
17
+	}
18 18
 
19
-    public function obtener(): PDOStatement
20
-    {
21
-        return $this->_ejecutar->query($this->_sentencia);
22
-    }
19
+	public function obtener(): PDOStatement
20
+	{
21
+		return $this->_ejecutar->query($this->_sentencia);
22
+	}
23 23
 }
24 24
\ No newline at end of file
Please login to merge, or discard this patch.
src/pdodatabase/elementos/Como.php 1 patch
Indentation   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -5,20 +5,20 @@
 block discarded – undo
5 5
 
6 6
 class Como
7 7
 {
8
-    private $_where;
8
+	private $_where;
9 9
 
10
-    public function __construct(WhereInterface $WhereInterface)
11
-    {
12
-        $this->_where = $WhereInterface;
13
-    }
10
+	public function __construct(WhereInterface $WhereInterface)
11
+	{
12
+		$this->_where = $WhereInterface;
13
+	}
14 14
 
15
-    public function sql(): string
16
-    {
17
-        return $this->_where->sql();
18
-    }
15
+	public function sql(): string
16
+	{
17
+		return $this->_where->sql();
18
+	}
19 19
 
20
-    public function datos(): array
21
-    {
22
-        return $this->_where->datos();
23
-    } 
20
+	public function datos(): array
21
+	{
22
+		return $this->_where->datos();
23
+	} 
24 24
 }
25 25
\ No newline at end of file
Please login to merge, or discard this patch.
src/pdodatabase/elementos/CamposYTabla.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -6,17 +6,17 @@
 block discarded – undo
6 6
 
7 7
 class CamposYTabla
8 8
 {
9
-    private $_campos;
10
-    private $_tabla;
9
+	private $_campos;
10
+	private $_tabla;
11 11
     
12
-    public function __construct(Campos $Campos, Tabla $Tabla)
13
-    {
14
-        $this->_campos = $Campos->sql();
15
-        $this->_tabla = $Tabla->sql();
16
-    }
12
+	public function __construct(Campos $Campos, Tabla $Tabla)
13
+	{
14
+		$this->_campos = $Campos->sql();
15
+		$this->_tabla = $Tabla->sql();
16
+	}
17 17
 
18
-    public function sql(): string
19
-    {       
20
-        return $this->_campos.' FROM '.$this->_tabla;
21
-    }
18
+	public function sql(): string
19
+	{       
20
+		return $this->_campos.' FROM '.$this->_tabla;
21
+	}
22 22
 }
Please login to merge, or discard this patch.
src/pdodatabase/elementos/Where.php 1 patch
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -6,17 +6,17 @@
 block discarded – undo
6 6
 
7 7
 class Where implements WhereInterface
8 8
 {
9
-    public function __construct(ValidadorDeParametrosInterface $ValidadorDeParametrosInterface)
10
-    {
11
-        $this->_where = $ValidadorDeParametrosInterface->datos();
12
-    }
9
+	public function __construct(ValidadorDeParametrosInterface $ValidadorDeParametrosInterface)
10
+	{
11
+		$this->_where = $ValidadorDeParametrosInterface->datos();
12
+	}
13 13
 
14
-    public function sql(): string
15
-    {
16
-        return 'WHERE '.$this->_where[0].' '.$this->_where[1].' ?';
17
-    }
18
-    public function datos(): array
19
-    {
20
-        return [$this->_where[2]];
21
-    }
14
+	public function sql(): string
15
+	{
16
+		return 'WHERE '.$this->_where[0].' '.$this->_where[1].' ?';
17
+	}
18
+	public function datos(): array
19
+	{
20
+		return [$this->_where[2]];
21
+	}
22 22
 }
23 23
\ No newline at end of file
Please login to merge, or discard this patch.
src/pdodatabase/resultados/ResultadoEnObjetos.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -7,8 +7,8 @@
 block discarded – undo
7 7
 
8 8
 class ResultadoEnObjetos implements ResultadoBaseDeDatosInterface
9 9
 {
10
-    public function resultado(PDOStatement $PDOStatement): object
11
-    {
12
-        return (object) $PDOStatement->fetchAll(PDO::FETCH_OBJ);
13
-    }
10
+	public function resultado(PDOStatement $PDOStatement): object
11
+	{
12
+		return (object) $PDOStatement->fetchAll(PDO::FETCH_OBJ);
13
+	}
14 14
 }
15 15
\ No newline at end of file
Please login to merge, or discard this patch.