@@ -1,3 +1,3 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | declare(strict_types=1); |
| 3 | -require_once __DIR__ . '/vendor/autoload.php'; |
|
| 3 | +require_once __DIR__.'/vendor/autoload.php'; |
|
@@ -19,7 +19,7 @@ |
||
| 19 | 19 | |
| 20 | 20 | private function setCampos(array $columnas): string |
| 21 | 21 | { |
| 22 | - if(count($columnas) == 0) |
|
| 22 | + if (count($columnas) == 0) |
|
| 23 | 23 | { |
| 24 | 24 | throw new Exception("No existen campos indicados"); |
| 25 | 25 | } |
@@ -19,7 +19,7 @@ |
||
| 19 | 19 | |
| 20 | 20 | private function setTabla(string $tabla): string |
| 21 | 21 | { |
| 22 | - if(empty($tabla)) |
|
| 22 | + if (empty($tabla)) |
|
| 23 | 23 | { |
| 24 | 24 | throw new Exception("La tabla no puede estar vacia"); |
| 25 | 25 | } |
@@ -31,7 +31,7 @@ |
||
| 31 | 31 | |
| 32 | 32 | private function numero($limite) |
| 33 | 33 | { |
| 34 | - if(!is_numeric($limite)) |
|
| 34 | + if (!is_numeric($limite)) |
|
| 35 | 35 | { |
| 36 | 36 | throw new Exception("La sentencia LIMITE solo puede ser número"); |
| 37 | 37 | } |
@@ -21,7 +21,7 @@ |
||
| 21 | 21 | |
| 22 | 22 | public function datos(): array |
| 23 | 23 | { |
| 24 | - return array($this->_primerDonde->datos()[0],$this->_segundoDonde->datos()[0]); |
|
| 24 | + return array($this->_primerDonde->datos()[0], $this->_segundoDonde->datos()[0]); |
|
| 25 | 25 | } |
| 26 | 26 | |
| 27 | 27 | private function setDonde(): string |
@@ -21,7 +21,7 @@ |
||
| 21 | 21 | |
| 22 | 22 | public function datos(): array |
| 23 | 23 | { |
| 24 | - return array($this->_primerDonde->datos()[0],$this->_segundoDonde->datos()[0]); |
|
| 24 | + return array($this->_primerDonde->datos()[0], $this->_segundoDonde->datos()[0]); |
|
| 25 | 25 | } |
| 26 | 26 | |
| 27 | 27 | private function setDonde(): string |
@@ -19,7 +19,7 @@ |
||
| 19 | 19 | |
| 20 | 20 | private function setBaseDeDatos(string $nombreBaseDeDatos): string |
| 21 | 21 | { |
| 22 | - if(empty($nombreBaseDeDatos)) |
|
| 22 | + if (empty($nombreBaseDeDatos)) |
|
| 23 | 23 | { |
| 24 | 24 | throw new Exception("El nombre d ela base de datos no puede estar vacio"); |
| 25 | 25 | } |
@@ -19,7 +19,7 @@ |
||
| 19 | 19 | |
| 20 | 20 | private function setHostBaseDeDatos(string $nombreHostBaseDeDatos): string |
| 21 | 21 | { |
| 22 | - if(empty($nombreHostBaseDeDatos)) |
|
| 22 | + if (empty($nombreHostBaseDeDatos)) |
|
| 23 | 23 | { |
| 24 | 24 | throw new Exception("El nombre del host de la base de datos no puede estar vacio"); |
| 25 | 25 | } |
@@ -19,7 +19,7 @@ |
||
| 19 | 19 | |
| 20 | 20 | private function setUsuarioBaseDeDatos(string $nombreUsuarioBaseDeDatos): string |
| 21 | 21 | { |
| 22 | - if(empty($nombreUsuarioBaseDeDatos)) |
|
| 22 | + if (empty($nombreUsuarioBaseDeDatos)) |
|
| 23 | 23 | { |
| 24 | 24 | throw new Exception("El nombre del host de la base de datos no puede estar vacio"); |
| 25 | 25 | } |