@@ -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 | $controllerFile = BASE_PATH . '/app/model/' . str_replace('\\', DIRECTORY_SEPARATOR, $className) . '.php'; |
8 | 8 | if (file_exists($controllerFile)): |
9 | 9 | return require $controllerFile; |
@@ -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 | $modelFile = BASE_PATH . '/app/' . str_replace('\\', DIRECTORY_SEPARATOR, $className) . '.php'; |
18 | 18 | if (file_exists($modelFile)): |
19 | 19 | return require $modelFile; |
@@ -92,7 +92,7 @@ |
||
92 | 92 | $this->app->view->validate(); |
93 | 93 | } |
94 | 94 | |
95 | - public function reload(){ |
|
95 | + public function reload() { |
|
96 | 96 | $this->init(); |
97 | 97 | $this->index(); |
98 | 98 | } |
@@ -198,7 +198,7 @@ |
||
198 | 198 | /** @return boolean retorna TRUE se está bloqueado por tentativas de login */ |
199 | 199 | public function isLocked() { |
200 | 200 | $diff = $this->getLoginUnlockDate()->diff(new Date()); |
201 | - return (boolean) ($diff > 0 ); |
|
201 | + return (boolean) ($diff > 0); |
|
202 | 202 | } |
203 | 203 | |
204 | 204 | /** @return int total de tentativas restantes até ser bloqueado */ |