@@ -97,7 +97,7 @@ |
||
| 97 | 97 | * Evita chamada de um metodo que nao existe |
| 98 | 98 | * @param string $name |
| 99 | 99 | * @param mixed[] $arguments |
| 100 | - * @return boolean |
|
| 100 | + * @return boolean|null |
|
| 101 | 101 | */ |
| 102 | 102 | public function __call($name, $arguments) { |
| 103 | 103 | $this->app->pageNotFound(); |
@@ -3,7 +3,7 @@ discard block |
||
| 3 | 3 | /** |
| 4 | 4 | * Autoload Model |
| 5 | 5 | */ |
| 6 | -spl_autoload_register(function ($className) { |
|
| 6 | +spl_autoload_register(function($className) { |
|
| 7 | 7 | $file = BASE_PATH . '/app/model/' . str_replace('\\', DIRECTORY_SEPARATOR, $className) . '.php'; |
| 8 | 8 | if (file_exists($file)): |
| 9 | 9 | return require $file; |
@@ -13,7 +13,7 @@ discard block |
||
| 13 | 13 | /** |
| 14 | 14 | * Autoload Controller |
| 15 | 15 | */ |
| 16 | -spl_autoload_register(function ($className) { |
|
| 16 | +spl_autoload_register(function($className) { |
|
| 17 | 17 | $file = BASE_PATH . '/app/' . str_replace('\\', DIRECTORY_SEPARATOR, $className) . '.php'; |
| 18 | 18 | if (file_exists($file)): |
| 19 | 19 | return require $file; |
@@ -154,6 +154,9 @@ |
||
| 154 | 154 | $this->email = $email; |
| 155 | 155 | } |
| 156 | 156 | |
| 157 | + /** |
|
| 158 | + * @param string $password |
|
| 159 | + */ |
|
| 157 | 160 | public function setPassword($password) { |
| 158 | 161 | $this->password = $password; |
| 159 | 162 | $this->passwordHash = md5($password); |
@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | |
| 61 | 61 | /** |
| 62 | 62 | * Salva o registro |
| 63 | - * @param object $obj |
|
| 63 | + * @param \Win\Authentication\User $obj |
|
| 64 | 64 | */ |
| 65 | 65 | public function save($obj) { |
| 66 | 66 | $this->obj = $obj; |
@@ -138,7 +138,7 @@ discard block |
||
| 138 | 138 | /** |
| 139 | 139 | * Busca o objeto por um campo/atributo específico |
| 140 | 140 | * @param string $name Nome do atributo |
| 141 | - * @param mixed $value Valor do atributo |
|
| 141 | + * @param integer $value Valor do atributo |
|
| 142 | 142 | */ |
| 143 | 143 | public function fetchByField($name, $value) { |
| 144 | 144 | return $this->fetch([$name . ' = ?' => $value]); |