Browse Source

Fix coding standards.

mark_story 14 years ago
parent
commit
932c9d4e2f

+ 0 - 1
lib/Cake/Test/Case/Cache/CacheTest.php

@@ -126,7 +126,6 @@ class CacheTest extends CakeTestCase {
 		$read = Cache::read('Test', 'invalid');
 	}
 
-
 /**
  * Test reading from a config that is undefined.
  *

+ 1 - 2
lib/Cake/Test/Case/Cache/Engine/ApcEngineTest.php

@@ -106,7 +106,7 @@ class ApcEngineTest extends CakeTestCase {
 		$result = Cache::read('other_test', 'apc');
 		$this->assertFalse($result);
 
-		Cache::set(array('duration' =>  1), 'apc');
+		Cache::set(array('duration' => 1), 'apc');
 
 		$data = 'this is a test of the emergency broadcasting system';
 		$result = Cache::write('other_test', $data, 'apc');
@@ -157,7 +157,6 @@ class ApcEngineTest extends CakeTestCase {
 
 		$result = Cache::read('test_decrement', 'apc');
 		$this->assertEquals(2, $result);
-
 	}
 
 /**

+ 6 - 5
lib/Cake/Test/Case/Cache/Engine/FileEngineTest.php

@@ -133,7 +133,7 @@ class FileEngineTest extends CakeTestCase {
 		$result = Cache::read('other_test', 'file_test');
 		$this->assertFalse($result);
 
-		Cache::set(array('duration' =>  "+1 second"), 'file_test');
+		Cache::set(array('duration' => "+1 second"), 'file_test');
 
 		$data = 'this is a test of the emergency broadcasting system';
 		$result = Cache::write('other_test', $data, 'file_test');
@@ -362,7 +362,7 @@ class FileEngineTest extends CakeTestCase {
 		Cache::config('mask_test', array('engine' => 'File', 'path' => TMP . 'tests'));
 		$data = 'This is some test content';
 		$write = Cache::write('masking_test', $data, 'mask_test');
-		$result = substr(sprintf('%o',fileperms(TMP . 'tests' . DS .'cake_masking_test')), -4);
+		$result = substr(sprintf('%o',fileperms(TMP . 'tests' . DS . 'cake_masking_test')), -4);
 		$expected = '0664';
 		$this->assertEquals($expected, $result);
 		Cache::delete('masking_test', 'mask_test');
@@ -370,7 +370,7 @@ class FileEngineTest extends CakeTestCase {
 
 		Cache::config('mask_test', array('engine' => 'File', 'mask' => 0666, 'path' => TMP . 'tests'));
 		$write = Cache::write('masking_test', $data, 'mask_test');
-		$result = substr(sprintf('%o',fileperms(TMP . 'tests' . DS .'cake_masking_test')), -4);
+		$result = substr(sprintf('%o',fileperms(TMP . 'tests' . DS . 'cake_masking_test')), -4);
 		$expected = '0666';
 		$this->assertEquals($expected, $result);
 		Cache::delete('masking_test', 'mask_test');
@@ -378,7 +378,7 @@ class FileEngineTest extends CakeTestCase {
 
 		Cache::config('mask_test', array('engine' => 'File', 'mask' => 0644, 'path' => TMP . 'tests'));
 		$write = Cache::write('masking_test', $data, 'mask_test');
-		$result = substr(sprintf('%o',fileperms(TMP . 'tests' . DS .'cake_masking_test')), -4);
+		$result = substr(sprintf('%o',fileperms(TMP . 'tests' . DS . 'cake_masking_test')), -4);
 		$expected = '0644';
 		$this->assertEquals($expected, $result);
 		Cache::delete('masking_test', 'mask_test');
@@ -386,10 +386,11 @@ class FileEngineTest extends CakeTestCase {
 
 		Cache::config('mask_test', array('engine' => 'File', 'mask' => 0640, 'path' => TMP . 'tests'));
 		$write = Cache::write('masking_test', $data, 'mask_test');
-		$result = substr(sprintf('%o',fileperms(TMP . 'tests' . DS .'cake_masking_test')), -4);
+		$result = substr(sprintf('%o',fileperms(TMP . 'tests' . DS . 'cake_masking_test')), -4);
 		$expected = '0640';
 		$this->assertEquals($expected, $result);
 		Cache::delete('masking_test', 'mask_test');
 		Cache::drop('mask_test');
 	}
+
 }

+ 3 - 1
lib/Cake/Test/Case/Cache/Engine/MemcacheEngineTest.php

@@ -21,6 +21,7 @@ App::uses('Cache', 'Cache');
 App::uses('MemcacheEngine', 'Cache/Engine');
 
 class TestMemcacheEngine extends MemcacheEngine {
+
 /**
  * public accessor to _parseServerString
  *
@@ -34,6 +35,7 @@ class TestMemcacheEngine extends MemcacheEngine {
 	public function setMemcache($memcache) {
 		$this->_Memcache = $memcache;
 	}
+
 }
 
 /**
@@ -217,7 +219,7 @@ class MemcacheEngineTest extends CakeTestCase {
 		$result = Cache::read('other_test', 'memcache');
 		$this->assertFalse($result);
 
-		Cache::set(array('duration' =>  "+1 second"), 'memcache');
+		Cache::set(array('duration' => "+1 second"), 'memcache');
 
 		$data = 'this is a test of the emergency broadcasting system';
 		$result = Cache::write('other_test', $data, 'memcache');

+ 1 - 2
lib/Cake/Test/Case/Cache/Engine/WincacheEngineTest.php

@@ -91,7 +91,7 @@ class WincacheEngineTest extends CakeTestCase {
 		$result = Cache::read('other_test', 'wincache');
 		$this->assertFalse($result);
 
-		Cache::set(array('duration' =>  1), 'wincache');
+		Cache::set(array('duration' => 1), 'wincache');
 
 		$data = 'this is a test of the emergency broadcasting system';
 		$result = Cache::write('other_test', $data, 'wincache');
@@ -145,7 +145,6 @@ class WincacheEngineTest extends CakeTestCase {
 
 		$result = Cache::read('test_decrement', 'wincache');
 		$this->assertEquals(2, $result);
-
 	}
 
 /**

+ 1 - 1
lib/Cake/Test/Case/Cache/Engine/XcacheEngineTest.php

@@ -111,7 +111,7 @@ class XcacheEngineTest extends CakeTestCase {
 		$result = Cache::read('other_test');
 		$this->assertFalse($result);
 
-		Cache::set(array('duration' =>  "+1 second"));
+		Cache::set(array('duration' => "+1 second"));
 
 		$data = 'this is a test of the emergency broadcasting system';
 		$result = Cache::write('other_test', $data);