@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | private $_argumentos; |
| 33 | 33 | |
| 34 | 34 | public function __construct() { |
| 35 | - if(isset($_GET['url'])){ |
|
| 35 | + if (isset($_GET['url'])) { |
|
| 36 | 36 | $url = filter_input(INPUT_GET, 'url', FILTER_SANITIZE_URL); |
| 37 | 37 | $url = explode('/', $url); |
| 38 | 38 | $url = array_filter($url); |
@@ -46,15 +46,15 @@ discard block |
||
| 46 | 46 | $this->setArgumentos($url); |
| 47 | 47 | } |
| 48 | 48 | |
| 49 | - if(!$this->getControlador()){ |
|
| 49 | + if (!$this->getControlador()) { |
|
| 50 | 50 | $this->setControlador(CONTROLADOR_INICIAL); |
| 51 | 51 | } |
| 52 | 52 | |
| 53 | - if(!$this->getMetodo()){ |
|
| 53 | + if (!$this->getMetodo()) { |
|
| 54 | 54 | $this->setMetodo('index'); |
| 55 | 55 | } |
| 56 | 56 | |
| 57 | - if(null!==($this->getArgumentos())){ |
|
| 57 | + if (null !== ($this->getArgumentos())) { |
|
| 58 | 58 | $this->setArgumentos(array()); |
| 59 | 59 | } |
| 60 | 60 | } |
@@ -76,16 +76,16 @@ discard block |
||
| 76 | 76 | |
| 77 | 77 | public function setControlador($controlador) |
| 78 | 78 | { |
| 79 | - return $this->_controlador=$controlador; |
|
| 79 | + return $this->_controlador = $controlador; |
|
| 80 | 80 | } |
| 81 | 81 | |
| 82 | 82 | public function setMetodo($metodo) |
| 83 | 83 | { |
| 84 | - return $this->_metodo=$metodo; |
|
| 84 | + return $this->_metodo = $metodo; |
|
| 85 | 85 | } |
| 86 | 86 | |
| 87 | 87 | public function setArgumentos($argumento) |
| 88 | 88 | { |
| 89 | - return $this->_argumentos=$argumento; |
|
| 89 | + return $this->_argumentos = $argumento; |
|
| 90 | 90 | } |
| 91 | 91 | } |