Completed
Push — master ( dd5c07...b4647f )
by Wanderson
02:12
created
app/model/Win/Mvc/Controller.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -97,7 +97,7 @@
 block discarded – undo
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();
Please login to merge, or discard this patch.
app/model/Win/Alert/Alert.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,6 @@
 block discarded – undo
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]);
Please login to merge, or discard this patch.
app/model/Win/File/Directory.php 1 patch
Doc Comments   -2 removed lines patch added patch discarded remove patch
@@ -27,7 +27,6 @@  discard block
 block discarded – undo
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
 block discarded – undo
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() {
Please login to merge, or discard this patch.
app/model/Win/File/Image.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
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();
Please login to merge, or discard this patch.
app/model/Win/Mvc/Application.php 1 patch
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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());
Please login to merge, or discard this patch.
app/model/Win/Authentication/User.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -188,6 +188,9 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
app/model/Win/Authentication/UserDAO.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -122,7 +122,7 @@
 block discarded – undo
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()]);
Please login to merge, or discard this patch.
app/model/Win/DAO/DAO.php 1 patch
Doc Comments   +8 added lines, -4 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
 
62 62
 	/**
63 63
 	 * Salva o registro
64
-	 * @param object $obj
64
+	 * @param \Win\Authentication\User $obj
65 65
 	 * @return string|null
66 66
 	 */
67 67
 	public function save($obj) {
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
 	/**
171 171
 	 * Exclui o registro por id
172 172
 	 * @param string $name
173
-	 * * @param mixed $value
173
+	 * * @param integer $value
174 174
 	 */
175 175
 	public function deleteByField($name, $value) {
176 176
 		$this->deleteAll([$name . ' = ?' => $value]);
@@ -203,7 +203,7 @@  discard block
 block discarded – undo
203 203
 	/**
204 204
 	 * Busca o objeto por um campo/atributo específico
205 205
 	 * @param string $name Nome do atributo
206
-	 * @param mixed $value Valor do atributo
206
+	 * @param integer $value Valor do atributo
207 207
 	 */
208 208
 	public function fetchByField($name, $value) {
209 209
 		return $this->fetch([$name . ' = ?' => $value]);
@@ -213,6 +213,7 @@  discard block
 block discarded – undo
213 213
 	 * Busca o objeto
214 214
 	 * @param string[] $filters Array de filtros
215 215
 	 * @param string $option [Order by, Limit, etc]
216
+	 * @return \Win\Authentication\User
216 217
 	 */
217 218
 	public function fetch($filters, $option = 'ORDER BY 1 DESC') {
218 219
 		if (!is_array($filters)):
@@ -299,7 +300,7 @@  discard block
 block discarded – undo
299 300
 
300 301
 	/**
301 302
 	 * Retorna True se objeto existir
302
-	 * @return boolean
303
+	 * @return integer
303 304
 	 */
304 305
 	protected function objExists($obj) {
305 306
 		return ($this->numRows([$this->getPrimaryKey() . ' = ?' => $obj->getId()]));
@@ -331,6 +332,9 @@  discard block
 block discarded – undo
331 332
 		}
332 333
 	}
333 334
 
335
+	/**
336
+	 * @param string[] $filters
337
+	 */
334 338
 	private function getFilterValues($filters) {
335 339
 		return array_values($filters + $this->fixedFilter);
336 340
 	}
Please login to merge, or discard this patch.
app/model/Win/Calendar/Date.php 1 patch
Doc Comments   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -91,6 +91,9 @@  discard block
 block discarded – undo
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
 	}
@@ -270,7 +273,7 @@  discard block
 block discarded – undo
270 273
 	 * Retorna a diferença em Segundos entre duas datas
271 274
 	 * @param Date $date1
272 275
 	 * @param Date $date2
273
-	 * @return float Diferença em Segundos
276
+	 * @return integer Diferença em Segundos
274 277
 	 */
275 278
 	public static function diffSeconds(Date $date1, Date $date2) {
276 279
 		$mkTime1 = mktime($date1->getHour(), $date1->getMinute(), $date1->getSecond(), $date1->getMonth(), $date1->getDay(), $date1->getYear());
@@ -284,7 +287,7 @@  discard block
 block discarded – undo
284 287
 	 * Retorna a diferença em Dias entre duas datas
285 288
 	 * @param Date $date1
286 289
 	 * @param Date $date2
287
-	 * @return float Diferença em Dias
290
+	 * @return integer Diferença em Dias
288 291
 	 */
289 292
 	public static function diffDays(Date $date1, Date $date2) {
290 293
 		$diffInDay = ((self::diffSeconds($date1, $date2)) / 86400);
Please login to merge, or discard this patch.