@@ -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(); |
@@ -30,7 +30,6 @@ |
||
| 30 | 30 | |
| 31 | 31 | /** |
| 32 | 32 | * Carrega o html do alerta |
| 33 | - * @param Alert $alert |
|
| 34 | 33 | */ |
| 35 | 34 | public function load() { |
| 36 | 35 | $block = new Block('alert/alert', ['alert' => $this]); |
@@ -91,6 +91,9 @@ discard block |
||
| 91 | 91 | $this->second = $second; |
| 92 | 92 | } |
| 93 | 93 | |
| 94 | + /** |
|
| 95 | + * @return string |
|
| 96 | + */ |
|
| 94 | 97 | public function getMonthName() { |
| 95 | 98 | return self::$monthNames[(int) $this->month]; |
| 96 | 99 | } |
@@ -272,7 +275,7 @@ discard block |
||
| 272 | 275 | * Retorna a diferença em Segundos entre duas datas |
| 273 | 276 | * @param Data $date1 |
| 274 | 277 | * @param Data $date2 |
| 275 | - * @return float Diferença em Segundos |
|
| 278 | + * @return integer Diferença em Segundos |
|
| 276 | 279 | */ |
| 277 | 280 | public static function secondsDiff(Data $date1, Data $date2) { |
| 278 | 281 | $mkTime1 = mktime($date1->getHour(), $date1->getMinute(), $date1->getSecond(), $date1->getMonth(), $date1->getDay(), $date1->getYear()); |
@@ -286,7 +289,7 @@ discard block |
||
| 286 | 289 | * Retorna a diferença em Dias entre duas datas |
| 287 | 290 | * @param Data $date1 |
| 288 | 291 | * @param Data $date2 |
| 289 | - * @return float Diferença em Dias |
|
| 292 | + * @return integer Diferença em Dias |
|
| 290 | 293 | */ |
| 291 | 294 | public static function daysDiff(Data $date1, Data $date2) { |
| 292 | 295 | $diffInDay = ((self::secondsDiff($date1, $date2)) / 86400); |
@@ -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,6 +64,9 @@ |
||
| 64 | 64 | $this->name = $name; |
| 65 | 65 | } |
| 66 | 66 | |
| 67 | + /** |
|
| 68 | + * @param string $tempName |
|
| 69 | + */ |
|
| 67 | 70 | public function setTempName($tempName) { |
| 68 | 71 | $this->tempName = $tempName; |
| 69 | 72 | } |
@@ -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()); |
@@ -188,6 +188,9 @@ |
||
| 188 | 188 | $this->confirmEmail = strClear($confirmEmail); |
| 189 | 189 | } |
| 190 | 190 | |
| 191 | + /** |
|
| 192 | + * @param string $password |
|
| 193 | + */ |
|
| 191 | 194 | public function setPassword($password) { |
| 192 | 195 | $this->password = $password; |
| 193 | 196 | $this->passwordHash = static::encryptPassword($password); |
@@ -122,7 +122,7 @@ |
||
| 122 | 122 | |
| 123 | 123 | /** |
| 124 | 124 | * Retorna true se já existe este email no sistema |
| 125 | - * @return boolean |
|
| 125 | + * @return integer |
|
| 126 | 126 | */ |
| 127 | 127 | public function emailIsUsed() { |
| 128 | 128 | return $this->numRows(['email = ?' => $this->obj->getEmail(), 'person_id <> ?' => $this->obj->getId()]); |