diff --git a/lib/Cake/Test/Case/Controller/Component/AuthComponentTest.php b/lib/Cake/Test/Case/Controller/Component/AuthComponentTest.php index 24b45ac57..4de0cbb78 100644 --- a/lib/Cake/Test/Case/Controller/Component/AuthComponentTest.php +++ b/lib/Cake/Test/Case/Controller/Component/AuthComponentTest.php @@ -653,7 +653,7 @@ class AuthComponentTest extends CakeTestCase { $this->Controller->request['action'] = 'login'; $this->assertFalse($this->Controller->Auth->startup($this->Controller)); - + $this->Controller->Auth->deny(); $this->Controller->Auth->allow(null); diff --git a/lib/Cake/Test/Case/I18n/I18nTest.php b/lib/Cake/Test/Case/I18n/I18nTest.php index a725c6693..3f6dff13d 100644 --- a/lib/Cake/Test/Case/I18n/I18nTest.php +++ b/lib/Cake/Test/Case/I18n/I18nTest.php @@ -1338,7 +1338,7 @@ class I18nTest extends CakeTestCase { Configure::write('Config.language', 'rule_13_mo'); $this->assertRulesThirteen(); } - + /** * testPoRulesThirteen method * @@ -1427,7 +1427,7 @@ class I18nTest extends CakeTestCase { Configure::write('Config.language', 'rule_14_mo'); $this->assertRulesFourteen(); } - + /** * testPoRulesFourteen method * diff --git a/lib/Cake/Test/Case/View/Helper/JqueryEngineHelperTest.php b/lib/Cake/Test/Case/View/Helper/JqueryEngineHelperTest.php index c51fa3b27..f8e593dc5 100644 --- a/lib/Cake/Test/Case/View/Helper/JqueryEngineHelperTest.php +++ b/lib/Cake/Test/Case/View/Helper/JqueryEngineHelperTest.php @@ -84,7 +84,7 @@ class JqueryEngineHelperTest extends CakeTestCase { $this->assertEquals($expected, $result); $result = $this->Jquery->event('click', '$(this).hide();'); - $expected = '$("#myLink").bind("click", function (event) {$(this).hide();'."\n".'return false;});'; + $expected = '$("#myLink").bind("click", function (event) {$(this).hide();' . "\n" . 'return false;});'; $this->assertEquals($expected, $result); } diff --git a/lib/Cake/Test/test_app/Controller/PagesController.php b/lib/Cake/Test/test_app/Controller/PagesController.php index 0c3e5c252..b1c604812 100644 --- a/lib/Cake/Test/test_app/Controller/PagesController.php +++ b/lib/Cake/Test/test_app/Controller/PagesController.php @@ -58,7 +58,7 @@ class PagesController extends AppController { if (!$count) { $this->redirect('/'); } - $page = $subpage = $title_for_layout = null; + $page = $subpage = $titleForLayout = null; if (!empty($path[0])) { $page = $path[0]; @@ -67,9 +67,14 @@ class PagesController extends AppController { $subpage = $path[1]; } if (!empty($path[$count - 1])) { - $title_for_layout = Inflector::humanize($path[$count - 1]); + $titleForLayout = Inflector::humanize($path[$count - 1]); } - $this->set(compact('page', 'subpage', 'title_for_layout')); + $this->set(array( + 'page' => $page, + 'subpage' => $subpage, + 'title_for_layout' => $titleForLayout + )); $this->render(implode('/', $path)); } + }