Skip to content
This repository
Browse code

Fix coding standards in Cache/

  • Loading branch information...
commit 04c843b17bffd5c0e6a55881491503578f0a8cd5 1 parent 9d325fe
Mark Story authored March 03, 2012
1  lib/Cake/Cache/Cache.php
@@ -477,5 +477,6 @@ public static function settings($name = 'default') {
477 477
 		}
478 478
 		return array();
479 479
 	}
  480
+
480 481
 }
481 482
 
4  lib/Cake/Cache/CacheEngine.php
@@ -53,7 +53,8 @@ public function init($settings = array()) {
53 53
  * Permanently remove all expired and deleted data
54 54
  * @return void
55 55
  */
56  
-	public function gc() { }
  56
+	public function gc() {
  57
+	}
57 58
 
58 59
 /**
59 60
  * Write value for a key into cache
@@ -129,4 +130,5 @@ public function key($key) {
129 130
 		$key = Inflector::underscore(str_replace(array(DS, '/', '.'), '_', strval($key)));
130 131
 		return $key;
131 132
 	}
  133
+
132 134
 }
4  lib/Cake/Cache/Engine/ApcEngine.php
@@ -54,7 +54,7 @@ public function write($key, $value, $duration) {
54 54
 		} else {
55 55
 			$expires = time() + $duration;
56 56
 		}
57  
-		apc_store($key.'_expires', $expires, $duration);
  57
+		apc_store($key . '_expires', $expires, $duration);
58 58
 		return apc_store($key, $value, $duration);
59 59
 	}
60 60
 
@@ -66,7 +66,7 @@ public function write($key, $value, $duration) {
66 66
  */
67 67
 	public function read($key) {
68 68
 		$time = time();
69  
-		$cachetime = intval(apc_fetch($key.'_expires'));
  69
+		$cachetime = intval(apc_fetch($key . '_expires'));
70 70
 		if ($cachetime !== 0 && ($cachetime < $time || ($time + $this->settings['duration']) < $cachetime)) {
71 71
 			return false;
72 72
 		}
3  lib/Cake/Cache/Engine/FileEngine.php
@@ -299,7 +299,7 @@ protected function _setKey($key, $createKey = false) {
299 299
 			}
300 300
 			unset($path);
301 301
 
302  
-			if (!$exists && !chmod($this->_File->getPathname(), (int) $this->settings['mask'])) {
  302
+			if (!$exists && !chmod($this->_File->getPathname(), (int)$this->settings['mask'])) {
303 303
 				trigger_error(__d(
304 304
 					'cake_dev', 'Could not apply permission mask "%s" on cache file "%s"',
305 305
 					array($this->_File->getPathname(), $this->settings['mask'])), E_USER_WARNING);
@@ -322,4 +322,5 @@ protected function _active() {
322 322
 		}
323 323
 		return true;
324 324
 	}
  325
+
325 326
 }
1  lib/Cake/Cache/Engine/MemcacheEngine.php
@@ -234,4 +234,5 @@ public function connect($host, $port = 11211) {
234 234
 		}
235 235
 		return true;
236 236
 	}
  237
+
237 238
 }
1  lib/Cake/Cache/Engine/XcacheEngine.php
@@ -173,4 +173,5 @@ protected function _auth($reverse = false) {
173 173
 			}
174 174
 		}
175 175
 	}
  176
+
176 177
 }

0 notes on commit 04c843b

Please sign in to comment.
Something went wrong with that request. Please try again.