Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix more coding standards errors.
  • Loading branch information
markstory committed Apr 24, 2012
1 parent 7240286 commit 7e38f9d
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 12 deletions.
10 changes: 5 additions & 5 deletions lib/Cake/Cache/CacheEngine.php
Expand Up @@ -129,7 +129,7 @@ abstract public function clear($check);
*
* @param string $groups name of the group to be cleared
* @return boolean
**/
*/
public function clearGroup($group) {
return false;
}
Expand All @@ -140,10 +140,10 @@ public function clearGroup($group) {
* 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
Expand Down
6 changes: 3 additions & 3 deletions lib/Cake/Cache/Engine/RedisEngine.php
Expand Up @@ -115,7 +115,7 @@ public function write($key, $value, $duration) {
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);
Expand All @@ -132,7 +132,7 @@ public function read($key) {
* @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);
}

/**
Expand All @@ -144,7 +144,7 @@ public function increment($key, $offset = 1) {
* @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);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/Cake/Test/Case/Cache/Engine/FileEngineTest.php
Expand Up @@ -410,7 +410,7 @@ public function testGroupsReadWrite() {
$this->assertTrue(Cache::write('test_groups3', 'value3', 'file_groups'));
}

/**
/**
* Tests that deleteing from a groups-enabled config is possible
*
* @return void
Expand Down
3 changes: 1 addition & 2 deletions lib/Cake/Test/Case/Cache/Engine/RedisEngineTest.php
Expand Up @@ -220,7 +220,6 @@ public function testIncrement() {
$this->assertEquals(3, $result);
}


/**
* test clearing redis.
*
Expand Down Expand Up @@ -333,4 +332,4 @@ public function testGroupClear() {
$this->assertFalse(Cache::read('test_groups', 'redis_groups'));
}

}
}
4 changes: 3 additions & 1 deletion lib/Cake/View/HelperCollection.php
Expand Up @@ -50,7 +50,9 @@ public function __construct(View $view) {
*
* @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;
Expand Down

0 comments on commit 7e38f9d

Please sign in to comment.