Passed
Push — master ( 71c281...b47baf )
by Wanderson
01:25
created
www/app/model/Win/File/Directory.php 1 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.
www/app/model/Win/Authentication/User.php 1 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.
www/lib/autoload.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@  discard block
 block discarded – undo
3 3
 /**
4 4
  * Autoload Controller
5 5
  */
6
-spl_autoload_register(function ($className) {
6
+spl_autoload_register(function($className) {
7 7
 	$file = BASE_PATH . '/app/' . str_replace('\\', DIRECTORY_SEPARATOR, $className) . '.php';
8 8
 	if (file_exists($file)):
9 9
 		return require $file;
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
 /**
14 14
  * Autoload Model
15 15
  */
16
-spl_autoload_register(function ($className) {
16
+spl_autoload_register(function($className) {
17 17
 	$file = BASE_PATH . '/app/model/' . str_replace('\\', DIRECTORY_SEPARATOR, $className) . '.php';
18 18
 	if (file_exists($file)):
19 19
 		return require $file;
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
 /**
24 24
  * Autoload Lib
25 25
  */
26
-spl_autoload_register(function ($className) {
26
+spl_autoload_register(function($className) {
27 27
 	$file = BASE_PATH . '/lib/vendor/' . str_replace('\\', DIRECTORY_SEPARATOR, $className) . '.php';
28 28
 	if (file_exists($file)):
29 29
 		return require $file;
Please login to merge, or discard this patch.
dev/tests/Win/Mvc/ApplicationTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -41,11 +41,11 @@
 block discarded – undo
41 41
 
42 42
 		$app->controller->setTitle('My Custom Test Title');
43 43
 		
44
-		$app->view->addData('title','My Custom Test Title');
45
-		$this->assertEquals('My Custom Test Title' , $app->view->getTitle());
44
+		$app->view->addData('title', 'My Custom Test Title');
45
+		$this->assertEquals('My Custom Test Title', $app->view->getTitle());
46 46
 
47 47
 		$app->pageNotFound();
48
-		$this->assertNotEquals('My Custom Test Title' , $app->view->getTitle());
48
+		$this->assertNotEquals('My Custom Test Title', $app->view->getTitle());
49 49
 		 
50 50
 		
51 51
 	}
Please login to merge, or discard this patch.
www/app/model/Win/Mvc/View.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@
 block discarded – undo
73 73
 	}
74 74
 
75 75
 	public function getTitle() {
76
-		if (empty($this->getData('title'))){
76
+		if (empty($this->getData('title'))) {
77 77
 			$this->addData('title', Title::otimize(ucwords(str_replace('-', ' ', $this->app->getPage()))));
78 78
 		}
79 79
 		return $this->getData('title');
Please login to merge, or discard this patch.