Completed
Push — master ( a9fbcc...a7b0c2 )
by Wanderson
02:19
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 3 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.
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -2,8 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace Win\File;
4 4
 
5
-use Win\Mvc\Application;
6
-
7 5
 /**
8 6
  * Diretorio de arquivos
9 7
  */
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.
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.