Completed
Push — master ( b15437...c8ccf3 )
by Wanderson
02:00
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/File/Directory.php 2 patches
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.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,8 +64,10 @@
 block discarded – undo
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
 
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.
lib/functions/strings.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -160,8 +160,10 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
app/model/Win/File/File.php 1 patch
Doc Comments   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,6 +66,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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());
Please login to merge, or discard this patch.
app/model/Win/Authentication/User.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -139,6 +139,9 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -198,7 +198,7 @@
 block discarded – undo
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 */
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
@@ -109,7 +109,7 @@
 block discarded – undo
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]);
Please login to merge, or discard this patch.
app/model/Win/Calendar/Date.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -41,6 +41,9 @@
 block discarded – undo
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
 	}
Please login to merge, or discard this patch.