@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | declare(strict_types=1); |
3 | -require_once __DIR__ . '/vendor/autoload.php'; |
|
3 | +require_once __DIR__.'/vendor/autoload.php'; |
|
4 | 4 | |
5 | 5 | |
6 | 6 | use src\pdodatabase\elementos\Columna; |
@@ -39,7 +39,7 @@ |
||
39 | 39 | |
40 | 40 | public function testCamposSoloRetornaTexto() |
41 | 41 | { |
42 | - $campos = new Campos(['*','78']); |
|
42 | + $campos = new Campos(['*', '78']); |
|
43 | 43 | $this->assertIsString($campos->campos()); |
44 | 44 | } |
45 | 45 |
@@ -1,7 +1,7 @@ |
||
1 | 1 | <?php |
2 | 2 | namespace src\interfaces; |
3 | 3 | |
4 | -use src\pdodatabase\elementos\{Tabla,Campos}; |
|
4 | +use src\pdodatabase\elementos\{Tabla, Campos}; |
|
5 | 5 | |
6 | 6 | interface SeleccionarInterface |
7 | 7 | { |
@@ -5,8 +5,7 @@ |
||
5 | 5 | |
6 | 6 | interface SentenciaDeComparacionInterface |
7 | 7 | { |
8 | - public function __construct |
|
9 | - ( |
|
8 | + public function __construct( |
|
10 | 9 | UnidadDeValorInterface $UnidadDeValorInterface1, |
11 | 10 | UnidadDeValorInterface $UnidadDeValorInterface2, |
12 | 11 | UnidadDeValorInterface $UnidadDeValorInterface3 |
@@ -24,7 +24,7 @@ |
||
24 | 24 | public function datos(): array |
25 | 25 | { |
26 | 26 | $array = $this->_where->datos(); |
27 | - array_push($array,$this->_sentencia->datos()[0]); |
|
27 | + array_push($array, $this->_sentencia->datos()[0]); |
|
28 | 28 | |
29 | 29 | return $array; |
30 | 30 | } |
@@ -15,7 +15,7 @@ |
||
15 | 15 | |
16 | 16 | public function sql(): string |
17 | 17 | { |
18 | - return ' WHERE '. $this->_sentencia->sql(); |
|
18 | + return ' WHERE '.$this->_sentencia->sql(); |
|
19 | 19 | } |
20 | 20 | |
21 | 21 | public function datos(): array |
@@ -10,8 +10,7 @@ discard block |
||
10 | 10 | private $_segundoValor; |
11 | 11 | private $_tercerValor; |
12 | 12 | |
13 | - public function __construct |
|
14 | - ( |
|
13 | + public function __construct( |
|
15 | 14 | UnidadDeValorInterface $UnidadDeValorInterface1, |
16 | 15 | UnidadDeValorInterface $UnidadDeValorInterface2, |
17 | 16 | UnidadDeValorInterface $UnidadDeValorInterface3 |
@@ -29,6 +28,6 @@ discard block |
||
29 | 28 | |
30 | 29 | public function datos(): array |
31 | 30 | { |
32 | - return [$this->_segundoValor->valor(),$this->_tercerValor->valor()]; |
|
31 | + return [$this->_segundoValor->valor(), $this->_tercerValor->valor()]; |
|
33 | 32 | } |
34 | 33 | } |
35 | 34 | \ No newline at end of file |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | |
35 | 35 | private function operadorVacio(string $operador) |
36 | 36 | { |
37 | - if(empty($operador)) |
|
37 | + if (empty($operador)) |
|
38 | 38 | { |
39 | 39 | throw new Exception("Operador vacio"); |
40 | 40 | } |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | |
43 | 43 | private function operadorValido(string $operador) |
44 | 44 | { |
45 | - if(!in_array($operador,$this->_operadoresValidos)) |
|
45 | + if (!in_array($operador, $this->_operadoresValidos)) |
|
46 | 46 | { |
47 | 47 | throw new Exception("Operador no valido"); |
48 | 48 | } |
@@ -15,7 +15,7 @@ |
||
15 | 15 | |
16 | 16 | public function sql(): string |
17 | 17 | { |
18 | - return 'WHERE '. $this->_sentencia->sql(); |
|
18 | + return 'WHERE '.$this->_sentencia->sql(); |
|
19 | 19 | } |
20 | 20 | |
21 | 21 | public function datos(): array |