Completed
Branch master (1d7ebe)
by Wanderson
02:15
created
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.