Browse Source

Fix more coding standards errors.

mark_story 14 years ago
parent
commit
7e38f9d79f

+ 5 - 5
lib/Cake/Cache/CacheEngine.php

@@ -129,7 +129,7 @@ abstract class CacheEngine {
  *
  * @param string $groups name of the group to be cleared
  * @return boolean
- **/
+ */
 	public function clearGroup($group) {
 		return false;
 	}
@@ -140,10 +140,10 @@ abstract class CacheEngine {
  * the token representing each group in the cache key
  *
  * @return array
- **/
- 	public function groups() {
- 		return $this->settings['groups'];
- 	}
+ */
+	public function groups() {
+		return $this->settings['groups'];
+	}
 
 /**
  * Cache Engine settings

+ 3 - 3
lib/Cake/Cache/Engine/RedisEngine.php

@@ -115,7 +115,7 @@ class RedisEngine extends CacheEngine {
 	public function read($key) {
 		$value = $this->_Redis->get($key);
 		if (ctype_digit($value)) {
-			$value = (int) $value;
+			$value = (int)$value;
 		}
 		if ($value !== false && is_string($value)) {
 			$value = unserialize($value);
@@ -132,7 +132,7 @@ class RedisEngine extends CacheEngine {
  * @throws CacheException when you try to increment with compress = true
  */
 	public function increment($key, $offset = 1) {
-		return (int) $this->_Redis->incrBy($key, $offset);
+		return (int)$this->_Redis->incrBy($key, $offset);
 	}
 
 /**
@@ -144,7 +144,7 @@ class RedisEngine extends CacheEngine {
  * @throws CacheException when you try to decrement with compress = true
  */
 	public function decrement($key, $offset = 1) {
-		return (int) $this->_Redis->decrBy($key, $offset);
+		return (int)$this->_Redis->decrBy($key, $offset);
 	}
 
 /**

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

@@ -410,7 +410,7 @@ class FileEngineTest extends CakeTestCase {
 		$this->assertTrue(Cache::write('test_groups3', 'value3', 'file_groups'));
 	}
 
-	/**
+/**
  * Tests that deleteing from a groups-enabled config is possible
  *
  * @return void

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

@@ -220,7 +220,6 @@ class RegisEngineTest extends CakeTestCase {
 		$this->assertEquals(3, $result);
 	}
 
-
 /**
  * test clearing redis.
  *
@@ -333,4 +332,4 @@ class RegisEngineTest extends CakeTestCase {
 		$this->assertFalse(Cache::read('test_groups', 'redis_groups'));
 	}
 
-}
+}

+ 3 - 1
lib/Cake/View/HelperCollection.php

@@ -50,7 +50,9 @@ class HelperCollection extends ObjectCollection implements CakeEventListener {
  *
  * @param string $helper The helper name to be loaded
  * @return boolean wheter the helper could be loaded or not
- **/
+ * @throws MissingHelperException When a helper could not be found.
+ *    App helpers are searched, and then plugin helpers.
+ */
 	public function __isset($helper) {
 		if (parent::__isset($helper)) {
 			return true;