Passed
Push — main ( ef0a91...c8f39c )
by Osvaldo
01:07
created
test/ConexionTest.php 1 patch
Indentation   +49 added lines, -49 removed lines patch added patch discarded remove patch
@@ -11,53 +11,53 @@
 block discarded – undo
11 11
 
12 12
 class ConexionTest extends TestCase
13 13
 {
14
-    //Base de datos
15
-
16
-    public function testBaseDeDatosNoPuedeEstarVacia()
17
-    {
18
-        $this->expectException(Exception::class);
19
-        $base = new BaseDeDatos('');
20
-    }
21
-
22
-    public function testBaseDeDatosSoloDevuelveString()
23
-    {
24
-        $base = new BaseDeDatos('test');
25
-        $this->assertIsString($base->baseDeDatos());
26
-    }
27
-
28
-    //Contraseña
29
-
30
-    public function testContraseñaSoloDevuelveString()
31
-    {
32
-        $base = new ContraseñaBaseDeDatos('23');
33
-        $this->assertIsString($base->contraseñaBaseDeDatos());
34
-    }
35
-
36
-    //Host
37
-
38
-    public function testHostBaseDeDatosNoPuedeEstarVacia()
39
-    {
40
-        $this->expectException(Exception::class);
41
-        $base = new HostBaseDeDatos('');
42
-    }
43
-
44
-    public function testHostSoloDevuelveString()
45
-    {
46
-        $base = new HostBaseDeDatos('23');
47
-        $this->assertIsString($base->hostBaseDeDatos());
48
-    }
49
-
50
-    // usuario
51
-
52
-    public function testUsuarioBaseDeDatosNoPuedeEstarVacia()
53
-    {
54
-        $this->expectException(Exception::class);
55
-        $base = new UsuarioBaseDeDatos('');
56
-    }
57
-
58
-    public function testUsuarioSoloDevuelveString()
59
-    {
60
-        $base = new UsuarioBaseDeDatos('23');
61
-        $this->assertIsString($base->usuarioBaseDeDatos());
62
-    }
14
+	//Base de datos
15
+
16
+	public function testBaseDeDatosNoPuedeEstarVacia()
17
+	{
18
+		$this->expectException(Exception::class);
19
+		$base = new BaseDeDatos('');
20
+	}
21
+
22
+	public function testBaseDeDatosSoloDevuelveString()
23
+	{
24
+		$base = new BaseDeDatos('test');
25
+		$this->assertIsString($base->baseDeDatos());
26
+	}
27
+
28
+	//Contraseña
29
+
30
+	public function testContraseñaSoloDevuelveString()
31
+	{
32
+		$base = new ContraseñaBaseDeDatos('23');
33
+		$this->assertIsString($base->contraseñaBaseDeDatos());
34
+	}
35
+
36
+	//Host
37
+
38
+	public function testHostBaseDeDatosNoPuedeEstarVacia()
39
+	{
40
+		$this->expectException(Exception::class);
41
+		$base = new HostBaseDeDatos('');
42
+	}
43
+
44
+	public function testHostSoloDevuelveString()
45
+	{
46
+		$base = new HostBaseDeDatos('23');
47
+		$this->assertIsString($base->hostBaseDeDatos());
48
+	}
49
+
50
+	// usuario
51
+
52
+	public function testUsuarioBaseDeDatosNoPuedeEstarVacia()
53
+	{
54
+		$this->expectException(Exception::class);
55
+		$base = new UsuarioBaseDeDatos('');
56
+	}
57
+
58
+	public function testUsuarioSoloDevuelveString()
59
+	{
60
+		$base = new UsuarioBaseDeDatos('23');
61
+		$this->assertIsString($base->usuarioBaseDeDatos());
62
+	}
63 63
 }
64 64
\ No newline at end of file
Please login to merge, or discard this patch.
test/ElementosTest.php 1 patch
Indentation   +234 added lines, -234 removed lines patch added patch discarded remove patch
@@ -22,240 +22,240 @@
 block discarded – undo
22 22
 
23 23
 class ElementosTest extends TestCase
24 24
 {
25
-    //Clase Tabla
26
-
27
-    public function testSiLaTablaEstaVaciaLanzaExcepcion()
28
-    {
29
-        $this->expectException(Exception::class);
30
-        $tabla = new Tabla('');
31
-    }
32
-
33
-    public function testTablaSoloRetornaTexto()
34
-    {
35
-        $tabla = new Tabla('Hola');
36
-        $this->assertIsString($tabla->sql());
37
-    }
38
-
39
-    //Clase Campos
40
-
41
-    public function testSiElCampoEstaVacioLanzaExcepcion()
42
-    {
43
-        $this->expectException(Exception::class);
44
-        $campos = new Campos([]);
45
-    }
46
-
47
-    public function testCamposSoloRetornaTexto()
48
-    {
49
-        $campos = new Campos(['*','78']);
50
-        $this->assertIsString($campos->sql());
51
-    }
52
-
53
-    //Clase CamposyTabla
54
-
55
-    public function testCamposYTablaDevuelveValorCorrecto()
56
-    {
57
-        $tabla = new Tabla('prueba');
58
-        $campos = new Campos(['a,b,c,d']);
59
-
60
-        $camposytabla = new CamposYTabla($campos,$tabla);
61
-
62
-        $this->assertSame('a,b,c,d FROM prueba',$camposytabla->sql());
63
-    }
64
-
65
-    //Clase ValidadorDeParametrosWhere
66
-
67
-    public function testValidadorDeParametrosWhereElArrayNoPuedeEstarVacio()
68
-    {
69
-        $this->expectException(Exception::class);
70
-        new ValidadorDeParametrosWhere([]);
71
-    }
72
-
73
-    public function testValidadorDeParametrosWhereLaColumnaSoloPuedeSerString()
74
-    {
75
-        $this->expectException(Exception::class);
76
-        new ValidadorDeParametrosWhere([1,'1','2']);
77
-    }
78
-
79
-    public function testValidadorDeParametrosWhereNingunCampoPuedeEstarVacio()
80
-    {
81
-        $this->expectException(Exception::class);
82
-        new ValidadorDeParametrosWhere(['','1','2']);
83
-    }
84
-
85
-    //Clase ValidadorDeParametrosWhereBetween
86
-
87
-    public function testValidadorDeParametrosWhereBetweenElArrayNoPuedeEstarVacio()
88
-    {
89
-        $this->expectException(Exception::class);
90
-        new ValidadorDeParametrosWhereBetween([]);
91
-    }
92
-
93
-    public function testValidadorDeParametrosWhereBetweenNoPuedeTenerValoresIguales()
94
-    {
95
-        $this->expectException(Exception::class);
96
-        new ValidadorDeParametrosWhereBetween(['id','1','1']);
97
-    }
98
-
99
-    public function testValidadorDeParametrosWhereBetweenLaColumnaSoloPuedeSerString()
100
-    {
101
-        $this->expectException(Exception::class);
102
-        new ValidadorDeParametrosWhereBetween([1,'1','2']);
103
-    }
104
-
105
-    public function testValidadorDeParametrosWhereBetweenNingunCampoPuedeEstarVacio()
106
-    {
107
-        $this->expectException(Exception::class);
108
-        new ValidadorDeParametrosWhereBetween(['','1','2']);
109
-    }
110
-
111
-    //Clase Where
112
-
113
-    public function testWhereArrojaStringValido()
114
-    {
115
-        $where = new Where(
116
-            new ValidadorDeParametrosWhere(
117
-                ['id','=','21']
118
-            )
119
-            );
120
-
121
-        $this->assertSame('WHERE id = ?', $where->sql());
122
-    }
123
-
124
-    public function testWhereArrojaArrayEnMetodoDatos()
125
-    {
126
-        $where = new Where(
127
-            new ValidadorDeParametrosWhere(
128
-                ['id','=','21']
129
-            )
130
-            );
131
-
132
-        $this->assertIsArray($where->datos());
133
-    }
134
-
135
-    //Clase ValidadorDeParametrosWhereAndOthers
136
-
137
-    public function testValidadorDeParametrosWhereAndOthersElArrayNoPuedeEstarVacio()
138
-    {
139
-        $this->expectException(Exception::class);
140
-        new ValidadorDeParametrosWhereAndOthers([]);
141
-    }
142
-
143
-    public function testValidadorDeParametrosWhereAndOthersLaColumnaSoloPuedeSerString()
144
-    {
145
-        $this->expectException(Exception::class);
146
-        new ValidadorDeParametrosWhereAndOthers([1,'=','2','1','=','2']);
147
-    }
148
-
149
-    public function testValidadorDeParametrosWhereAndOthersNingunCampoPuedeEstarVacio()
150
-    {
151
-        $this->expectException(Exception::class);
152
-        new ValidadorDeParametrosWhereAndOthers(['','1','2','','','']);
153
-    }
154
-
155
-    //Clase Where And
156
-
157
-    public function testWhereAndArrojaStringValido()
158
-    {
159
-        $where = new WhereAnd(
160
-            new ValidadorDeParametrosWhereAndOthers(
161
-                ['id','=','21','uno','=','1']
162
-            )
163
-            );
164
-
165
-        $this->assertSame('WHERE id = ? AND uno = ?', $where->sql());
166
-    }
167
-
168
-    //Clase Where Or
169
-
170
-    public function testWhereOrArrojaStringValido()
171
-    {
172
-        $where = new WhereOr(
173
-            new ValidadorDeParametrosWhereAndOthers(
174
-                ['id','=','21','uno','=','1']
175
-            )
176
-            );
177
-
178
-        $this->assertSame('WHERE id = ? OR uno = ?', $where->sql());
179
-    }
180
-
181
-    //Clase Where Between
182
-
183
-    public function testWhereBetweenArrojaStringValido()
184
-    {
185
-        $where = new WhereBetween(
186
-            new ValidadorDeParametrosWhereBetween(
187
-                ['id','1','21']
188
-            )
189
-            );
190
-
191
-        $this->assertSame('WHERE BETWEEN id ? AND ?', $where->sql());
192
-    }
193
-
194
-    //Clase Where Not Between
195
-
196
-    public function testWhereNotBetweenArrojaStringValido()
197
-    {
198
-        $where = new WhereNotBetween(
199
-            new ValidadorDeParametrosWhereBetween(
200
-                ['id','1','21']
201
-            )
202
-            );
203
-
204
-        $this->assertSame('WHERE NOT BETWEEN id ? AND ?', $where->sql());
205
-    }
206
-
207
-    //Clase Como 
208
-
209
-    public function testComoArrojaStringValido()
210
-    {
211
-        $where = new WhereNotBetween(
212
-            new ValidadorDeParametrosWhereBetween(
213
-                ['id','1','21']
214
-            )
215
-            );
25
+	//Clase Tabla
26
+
27
+	public function testSiLaTablaEstaVaciaLanzaExcepcion()
28
+	{
29
+		$this->expectException(Exception::class);
30
+		$tabla = new Tabla('');
31
+	}
32
+
33
+	public function testTablaSoloRetornaTexto()
34
+	{
35
+		$tabla = new Tabla('Hola');
36
+		$this->assertIsString($tabla->sql());
37
+	}
38
+
39
+	//Clase Campos
40
+
41
+	public function testSiElCampoEstaVacioLanzaExcepcion()
42
+	{
43
+		$this->expectException(Exception::class);
44
+		$campos = new Campos([]);
45
+	}
46
+
47
+	public function testCamposSoloRetornaTexto()
48
+	{
49
+		$campos = new Campos(['*','78']);
50
+		$this->assertIsString($campos->sql());
51
+	}
52
+
53
+	//Clase CamposyTabla
54
+
55
+	public function testCamposYTablaDevuelveValorCorrecto()
56
+	{
57
+		$tabla = new Tabla('prueba');
58
+		$campos = new Campos(['a,b,c,d']);
59
+
60
+		$camposytabla = new CamposYTabla($campos,$tabla);
61
+
62
+		$this->assertSame('a,b,c,d FROM prueba',$camposytabla->sql());
63
+	}
64
+
65
+	//Clase ValidadorDeParametrosWhere
66
+
67
+	public function testValidadorDeParametrosWhereElArrayNoPuedeEstarVacio()
68
+	{
69
+		$this->expectException(Exception::class);
70
+		new ValidadorDeParametrosWhere([]);
71
+	}
72
+
73
+	public function testValidadorDeParametrosWhereLaColumnaSoloPuedeSerString()
74
+	{
75
+		$this->expectException(Exception::class);
76
+		new ValidadorDeParametrosWhere([1,'1','2']);
77
+	}
78
+
79
+	public function testValidadorDeParametrosWhereNingunCampoPuedeEstarVacio()
80
+	{
81
+		$this->expectException(Exception::class);
82
+		new ValidadorDeParametrosWhere(['','1','2']);
83
+	}
84
+
85
+	//Clase ValidadorDeParametrosWhereBetween
86
+
87
+	public function testValidadorDeParametrosWhereBetweenElArrayNoPuedeEstarVacio()
88
+	{
89
+		$this->expectException(Exception::class);
90
+		new ValidadorDeParametrosWhereBetween([]);
91
+	}
92
+
93
+	public function testValidadorDeParametrosWhereBetweenNoPuedeTenerValoresIguales()
94
+	{
95
+		$this->expectException(Exception::class);
96
+		new ValidadorDeParametrosWhereBetween(['id','1','1']);
97
+	}
98
+
99
+	public function testValidadorDeParametrosWhereBetweenLaColumnaSoloPuedeSerString()
100
+	{
101
+		$this->expectException(Exception::class);
102
+		new ValidadorDeParametrosWhereBetween([1,'1','2']);
103
+	}
104
+
105
+	public function testValidadorDeParametrosWhereBetweenNingunCampoPuedeEstarVacio()
106
+	{
107
+		$this->expectException(Exception::class);
108
+		new ValidadorDeParametrosWhereBetween(['','1','2']);
109
+	}
110
+
111
+	//Clase Where
112
+
113
+	public function testWhereArrojaStringValido()
114
+	{
115
+		$where = new Where(
116
+			new ValidadorDeParametrosWhere(
117
+				['id','=','21']
118
+			)
119
+			);
120
+
121
+		$this->assertSame('WHERE id = ?', $where->sql());
122
+	}
123
+
124
+	public function testWhereArrojaArrayEnMetodoDatos()
125
+	{
126
+		$where = new Where(
127
+			new ValidadorDeParametrosWhere(
128
+				['id','=','21']
129
+			)
130
+			);
131
+
132
+		$this->assertIsArray($where->datos());
133
+	}
134
+
135
+	//Clase ValidadorDeParametrosWhereAndOthers
136
+
137
+	public function testValidadorDeParametrosWhereAndOthersElArrayNoPuedeEstarVacio()
138
+	{
139
+		$this->expectException(Exception::class);
140
+		new ValidadorDeParametrosWhereAndOthers([]);
141
+	}
142
+
143
+	public function testValidadorDeParametrosWhereAndOthersLaColumnaSoloPuedeSerString()
144
+	{
145
+		$this->expectException(Exception::class);
146
+		new ValidadorDeParametrosWhereAndOthers([1,'=','2','1','=','2']);
147
+	}
148
+
149
+	public function testValidadorDeParametrosWhereAndOthersNingunCampoPuedeEstarVacio()
150
+	{
151
+		$this->expectException(Exception::class);
152
+		new ValidadorDeParametrosWhereAndOthers(['','1','2','','','']);
153
+	}
154
+
155
+	//Clase Where And
156
+
157
+	public function testWhereAndArrojaStringValido()
158
+	{
159
+		$where = new WhereAnd(
160
+			new ValidadorDeParametrosWhereAndOthers(
161
+				['id','=','21','uno','=','1']
162
+			)
163
+			);
164
+
165
+		$this->assertSame('WHERE id = ? AND uno = ?', $where->sql());
166
+	}
167
+
168
+	//Clase Where Or
169
+
170
+	public function testWhereOrArrojaStringValido()
171
+	{
172
+		$where = new WhereOr(
173
+			new ValidadorDeParametrosWhereAndOthers(
174
+				['id','=','21','uno','=','1']
175
+			)
176
+			);
177
+
178
+		$this->assertSame('WHERE id = ? OR uno = ?', $where->sql());
179
+	}
180
+
181
+	//Clase Where Between
182
+
183
+	public function testWhereBetweenArrojaStringValido()
184
+	{
185
+		$where = new WhereBetween(
186
+			new ValidadorDeParametrosWhereBetween(
187
+				['id','1','21']
188
+			)
189
+			);
190
+
191
+		$this->assertSame('WHERE BETWEEN id ? AND ?', $where->sql());
192
+	}
193
+
194
+	//Clase Where Not Between
195
+
196
+	public function testWhereNotBetweenArrojaStringValido()
197
+	{
198
+		$where = new WhereNotBetween(
199
+			new ValidadorDeParametrosWhereBetween(
200
+				['id','1','21']
201
+			)
202
+			);
203
+
204
+		$this->assertSame('WHERE NOT BETWEEN id ? AND ?', $where->sql());
205
+	}
206
+
207
+	//Clase Como 
208
+
209
+	public function testComoArrojaStringValido()
210
+	{
211
+		$where = new WhereNotBetween(
212
+			new ValidadorDeParametrosWhereBetween(
213
+				['id','1','21']
214
+			)
215
+			);
216 216
         
217
-        $como = new Como(
218
-            $where
219
-        );
220
-
221
-        $this->assertSame('WHERE NOT BETWEEN id ? AND ?', $como->sql());
222
-    }
223
-
224
-    //Clase Sentencia Select Where
225
-
226
-    public function testSentenciaSelectWhereArrojaStringValido()
227
-    {
228
-        $where = new WhereNotBetween(
229
-            new ValidadorDeParametrosWhereBetween(
230
-                ['id','1','21']
231
-            )
232
-            );
217
+		$como = new Como(
218
+			$where
219
+		);
220
+
221
+		$this->assertSame('WHERE NOT BETWEEN id ? AND ?', $como->sql());
222
+	}
223
+
224
+	//Clase Sentencia Select Where
225
+
226
+	public function testSentenciaSelectWhereArrojaStringValido()
227
+	{
228
+		$where = new WhereNotBetween(
229
+			new ValidadorDeParametrosWhereBetween(
230
+				['id','1','21']
231
+			)
232
+			);
233 233
         
234
-        $como = new Como(
235
-            $where
236
-        );
237
-
238
-        $sentencia = new SentenciaSelectWhere(
239
-            new CamposYTabla(
240
-                new Campos(['*']),
241
-                new Tabla('prueba')
242
-            ),$como
243
-        );
244
-
245
-        $this->assertSame('SELECT * FROM prueba WHERE NOT BETWEEN id ? AND ?', $sentencia->sql());
246
-    }
247
-
248
-    //Clase SentenciaSelect
249
-
250
-    public function testSentenciaSelectArrojaStringValido()
251
-    {
252
-        $sentencia = new SentenciaSelect(
253
-            new CamposYTabla(
254
-                new Campos(['*']),
255
-                new Tabla('prueba')
256
-                )
257
-            );
258
-
259
-        $this->assertSame('SELECT * FROM prueba', $sentencia->sql());
260
-    }
234
+		$como = new Como(
235
+			$where
236
+		);
237
+
238
+		$sentencia = new SentenciaSelectWhere(
239
+			new CamposYTabla(
240
+				new Campos(['*']),
241
+				new Tabla('prueba')
242
+			),$como
243
+		);
244
+
245
+		$this->assertSame('SELECT * FROM prueba WHERE NOT BETWEEN id ? AND ?', $sentencia->sql());
246
+	}
247
+
248
+	//Clase SentenciaSelect
249
+
250
+	public function testSentenciaSelectArrojaStringValido()
251
+	{
252
+		$sentencia = new SentenciaSelect(
253
+			new CamposYTabla(
254
+				new Campos(['*']),
255
+				new Tabla('prueba')
256
+				)
257
+			);
258
+
259
+		$this->assertSame('SELECT * FROM prueba', $sentencia->sql());
260
+	}
261 261
 }
262 262
\ No newline at end of file
Please login to merge, or discard this patch.
src/interfaces/ValidadorDeParametrosInterface.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -3,6 +3,6 @@
 block discarded – undo
3 3
 
4 4
 interface ValidadorDeParametrosInterface
5 5
 {
6
-    public function __construct(array $datos);
7
-    public function datos(): array;
6
+	public function __construct(array $datos);
7
+	public function datos(): array;
8 8
 }
9 9
\ No newline at end of file
Please login to merge, or discard this patch.
src/interfaces/ResultadoBaseDeDatosInterface.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,5 +5,5 @@
 block discarded – undo
5 5
 
6 6
 interface ResultadoBaseDeDatosInterface
7 7
 {
8
-    public function resultado(PDOStatement $PDOStatement);
8
+	public function resultado(PDOStatement $PDOStatement);
9 9
 }
10 10
\ No newline at end of file
Please login to merge, or discard this patch.
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.