@@ -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(); |
@@ -27,7 +27,6 @@ discard block |
||
| 27 | 27 | |
| 28 | 28 | /** |
| 29 | 29 | * Cria o diretorio para salvar a imagem |
| 30 | - * @param string $pathetorio Caminho do novo diretorio |
|
| 31 | 30 | * @param int $chmod permissões deste diretório |
| 32 | 31 | * @return boolean Retora TRUE caso obtenha algum sucesso |
| 33 | 32 | */ |
@@ -56,7 +55,6 @@ discard block |
||
| 56 | 55 | |
| 57 | 56 | /** |
| 58 | 57 | * Exclui o diretorio, e os arquivos dentro dele |
| 59 | - * @param string $path |
|
| 60 | 58 | * @return boolean |
| 61 | 59 | */ |
| 62 | 60 | public function remove() { |
@@ -64,8 +64,10 @@ |
||
| 64 | 64 | if (is_dir($path)): |
| 65 | 65 | $this->removeAllFiles(); |
| 66 | 66 | return rmdir($path); |
| 67 | - else: |
|
| 67 | + else { |
|
| 68 | + : |
|
| 68 | 69 | return false; |
| 70 | + } |
|
| 69 | 71 | endif; |
| 70 | 72 | } |
| 71 | 73 | |
@@ -60,7 +60,7 @@ |
||
| 60 | 60 | * @return string Retorna o caminho da thumb |
| 61 | 61 | * @param int $width largura |
| 62 | 62 | * @param int $height altura |
| 63 | - * @param boolean $mode modo de corte |
|
| 63 | + * @param string|boolean $mode modo de corte |
|
| 64 | 64 | */ |
| 65 | 65 | function showThumb($width = 100, $height = 100, $mode = 'normal') { |
| 66 | 66 | return "lib/thumb/" . $mode . '/' . $width . '/' . $height . '/' . $this->__toString(); |
@@ -135,7 +135,7 @@ discard block |
||
| 135 | 135 | return Input::server('SERVER_NAME', FILTER_SANITIZE_STRING); |
| 136 | 136 | } |
| 137 | 137 | |
| 138 | - /** @return bolean */ |
|
| 138 | + /** @return boolean */ |
|
| 139 | 139 | public function isLocalHost() { |
| 140 | 140 | $localAddress = ['localhost', '127.0.0.1', '::1', null]; |
| 141 | 141 | return (in_array($this->getServerName(), $localAddress) || strpos($this->getServerName(), '192.168') !== false); |
@@ -234,7 +234,6 @@ discard block |
||
| 234 | 234 | |
| 235 | 235 | /** |
| 236 | 236 | * Atualiza a mesma página |
| 237 | - * @param string $url |
|
| 238 | 237 | */ |
| 239 | 238 | public function refresh() { |
| 240 | 239 | Url::instance()->redirect($this->getUrl()); |
@@ -160,8 +160,10 @@ |
||
| 160 | 160 | function booleanToString($boolean) { |
| 161 | 161 | if ($boolean == true): |
| 162 | 162 | return 'Sim'; |
| 163 | - else: |
|
| 163 | + else { |
|
| 164 | + : |
|
| 164 | 165 | return 'Não'; |
| 166 | + } |
|
| 165 | 167 | endif; |
| 166 | 168 | } |
| 167 | 169 | |
@@ -66,6 +66,9 @@ discard block |
||
| 66 | 66 | $this->name = $name; |
| 67 | 67 | } |
| 68 | 68 | |
| 69 | + /** |
|
| 70 | + * @param string $tempName |
|
| 71 | + */ |
|
| 69 | 72 | public function setTempName($tempName) { |
| 70 | 73 | $this->tempName = $tempName; |
| 71 | 74 | } |
@@ -237,7 +240,6 @@ discard block |
||
| 237 | 240 | |
| 238 | 241 | /** |
| 239 | 242 | * Retorna o conteudo do arquivo |
| 240 | - * @param string $content |
|
| 241 | 243 | */ |
| 242 | 244 | public function read() { |
| 243 | 245 | return file_get_contents($this->getFullName()); |
@@ -139,6 +139,9 @@ |
||
| 139 | 139 | $this->confirmEmail = $confirmEmail; |
| 140 | 140 | } |
| 141 | 141 | |
| 142 | + /** |
|
| 143 | + * @param string $password |
|
| 144 | + */ |
|
| 142 | 145 | public function setPassword($password, $confirmPassword = null) { |
| 143 | 146 | $this->password = $password; |
| 144 | 147 | $this->confirmPassword = $confirmPassword; |
@@ -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 */ |
@@ -109,7 +109,7 @@ |
||
| 109 | 109 | |
| 110 | 110 | /** |
| 111 | 111 | * Retorna true se já existe este email no sistema |
| 112 | - * @return boolean |
|
| 112 | + * @return integer |
|
| 113 | 113 | */ |
| 114 | 114 | public function emailIsUsed() { |
| 115 | 115 | return $this->numRows(['email = ?' => $this->obj->getEmail(), 'person_id <> ?' => $this->obj->id]); |
@@ -41,6 +41,9 @@ |
||
| 41 | 41 | return (boolean) $this->year == 0; |
| 42 | 42 | } |
| 43 | 43 | |
| 44 | + /** |
|
| 45 | + * @return string |
|
| 46 | + */ |
|
| 44 | 47 | public function getMonthName() { |
| 45 | 48 | return self::$monthNames[(int) $this->month]; |
| 46 | 49 | } |