Completed
Push — master ( dd5c07...b4647f )
by Wanderson
02:12
created
app/model/Win/Mvc/Controller.php 2 patches
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.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@
 block discarded – undo
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
 	}
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 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.
lib/autoload.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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;
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 2 patches
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.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -280,7 +280,7 @@
 block discarded – undo
280 280
 	/** @return boolean retorna TRUE se está bloqueado por tentativas de login */
281 281
 	public function isLocked() {
282 282
 		$diff = Date::diffSeconds($this->getLoginUnlockDate(), new Date);
283
-		return (boolean) ($diff <= 0 );
283
+		return (boolean) ($diff <= 0);
284 284
 	}
285 285
 
286 286
 	/** @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
@@ -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.