@@ -10,8 +10,7 @@ |
||
| 10 | 10 | private $_ejecutarConsultasSinDatos; |
| 11 | 11 | private $_select; |
| 12 | 12 | |
| 13 | - public function __construct |
|
| 14 | - ( |
|
| 13 | + public function __construct( |
|
| 15 | 14 | EjecutarConsultaSinDatos $ejecutarConsultaSinDatos, |
| 16 | 15 | SelectInterface $SelectInterface |
| 17 | 16 | ) |
@@ -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 |
@@ -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 | } |
@@ -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 |
@@ -1,7 +1,7 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | declare(strict_types=1); |
| 3 | 3 | |
| 4 | -require_once __DIR__ . '/vendor/autoload.php'; |
|
| 4 | +require_once __DIR__.'/vendor/autoload.php'; |
|
| 5 | 5 | |
| 6 | 6 | use src\Factory; |
| 7 | 7 | use src\pdodatabase\resultados\ContarResultados; |
@@ -15,7 +15,7 @@ discard block |
||
| 15 | 15 | |
| 16 | 16 | // SELECT * FROM prueba |
| 17 | 17 | |
| 18 | -$select = $factory->crear('src\factory\Select',[ |
|
| 18 | +$select = $factory->crear('src\factory\Select', [ |
|
| 19 | 19 | 'tabla' => 'prueba', |
| 20 | 20 | 'campos' => ['*'] |
| 21 | 21 | ]); |