@@ -41,11 +41,11 @@ |
||
| 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 | } |
@@ -73,7 +73,7 @@ |
||
| 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'); |