| @@ -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 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 | } | 
| @@ -19,7 +19,7 @@ | ||
| 19 | 19 | |
| 20 | 20 | private function setOrden(string $orden): string | 
| 21 | 21 |      { | 
| 22 | - if(empty($orden)) | |
| 22 | + if (empty($orden)) | |
| 23 | 23 |          { | 
| 24 | 24 |              throw new Exception("La sentencia ORDEN BY no puede estar vacia");  | 
| 25 | 25 | } | 
| @@ -36,7 +36,7 @@ | ||
| 36 | 36 | |
| 37 | 37 | private function setDonde(array $columnas): string | 
| 38 | 38 |      { | 
| 39 | - if(count($columnas) !== 3) | |
| 39 | + if (count($columnas) !== 3) | |
| 40 | 40 |          { | 
| 41 | 41 |              throw new Exception("Elementos faltantes o sobrantes en la sentencia WHERE", 1); | 
| 42 | 42 | } |