Browse Source

Fixing CS errors

Jose Lorenzo Rodriguez 12 years ago
parent
commit
8aa9c496f9
2 changed files with 4 additions and 4 deletions
  1. 2 2
      src/View/Helper.php
  2. 2 2
      tests/TestCase/View/ViewTest.php

+ 2 - 2
src/View/Helper.php

@@ -208,7 +208,7 @@ class Helper implements EventListener {
 	public function webroot($file) {
 		$asset = explode('?', $file);
 		$asset[1] = isset($asset[1]) ? '?' . $asset[1] : null;
-		$webPath = "{$this->request->webroot}" . $asset[0];
+		$webPath = $this->request->webroot . $asset[0];
 		$file = $asset[0];
 
 		if (!empty($this->theme)) {
@@ -220,7 +220,7 @@ class Helper implements EventListener {
 			}
 
 			if (file_exists(Configure::read('App.www_root') . $theme . $file)) {
-				$webPath = "{$this->request->webroot}" . $theme . $asset[0];
+				$webPath = $this->request->webroot . $theme . $asset[0];
 			} else {
 				$themePath = Plugin::path($this->theme);
 				$path = $themePath . 'webroot/' . $file;

+ 2 - 2
tests/TestCase/View/ViewTest.php

@@ -318,7 +318,7 @@ class ViewTest extends TestCase {
 		$result = $ThemeView->getViewFileName('/Posts/index');
 		$this->assertPathEquals($expected, $result);
 
-		$expected =  Plugin::path('TestTheme') . 'Template' . DS . 'Layout' . DS . 'default.ctp';
+		$expected = Plugin::path('TestTheme') . 'Template' . DS . 'Layout' . DS . 'default.ctp';
 		$result = $ThemeView->getLayoutFileName();
 		$this->assertPathEquals($expected, $result);
 
@@ -370,7 +370,7 @@ class ViewTest extends TestCase {
 		];
 
 		$ThemeView = new TestThemeView(null, null, null, $viewOptions);
-		$themePath =  Plugin::path('TestTheme') . 'Template' . DS;
+		$themePath = Plugin::path('TestTheme') . 'Template' . DS;
 
 		$expected = $themePath . 'Plugin' . DS . 'TestPlugin' . DS . 'Tests' . DS . 'index.ctp';
 		$result = $ThemeView->getViewFileName('index');