Skip to content

Commit 7e38f9d

Browse files
committed
Fix more coding standards errors.
1 parent 7240286 commit 7e38f9d

File tree

5 files changed

+13
-12
lines changed

5 files changed

+13
-12
lines changed

lib/Cake/Cache/CacheEngine.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ abstract public function clear($check);
129129
*
130130
* @param string $groups name of the group to be cleared
131131
* @return boolean
132-
**/
132+
*/
133133
public function clearGroup($group) {
134134
return false;
135135
}
@@ -140,10 +140,10 @@ public function clearGroup($group) {
140140
* the token representing each group in the cache key
141141
*
142142
* @return array
143-
**/
144-
public function groups() {
145-
return $this->settings['groups'];
146-
}
143+
*/
144+
public function groups() {
145+
return $this->settings['groups'];
146+
}
147147

148148
/**
149149
* Cache Engine settings

lib/Cake/Cache/Engine/RedisEngine.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ public function write($key, $value, $duration) {
115115
public function read($key) {
116116
$value = $this->_Redis->get($key);
117117
if (ctype_digit($value)) {
118-
$value = (int) $value;
118+
$value = (int)$value;
119119
}
120120
if ($value !== false && is_string($value)) {
121121
$value = unserialize($value);
@@ -132,7 +132,7 @@ public function read($key) {
132132
* @throws CacheException when you try to increment with compress = true
133133
*/
134134
public function increment($key, $offset = 1) {
135-
return (int) $this->_Redis->incrBy($key, $offset);
135+
return (int)$this->_Redis->incrBy($key, $offset);
136136
}
137137

138138
/**
@@ -144,7 +144,7 @@ public function increment($key, $offset = 1) {
144144
* @throws CacheException when you try to decrement with compress = true
145145
*/
146146
public function decrement($key, $offset = 1) {
147-
return (int) $this->_Redis->decrBy($key, $offset);
147+
return (int)$this->_Redis->decrBy($key, $offset);
148148
}
149149

150150
/**

lib/Cake/Test/Case/Cache/Engine/FileEngineTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ public function testGroupsReadWrite() {
410410
$this->assertTrue(Cache::write('test_groups3', 'value3', 'file_groups'));
411411
}
412412

413-
/**
413+
/**
414414
* Tests that deleteing from a groups-enabled config is possible
415415
*
416416
* @return void

lib/Cake/Test/Case/Cache/Engine/RedisEngineTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,6 @@ public function testIncrement() {
220220
$this->assertEquals(3, $result);
221221
}
222222

223-
224223
/**
225224
* test clearing redis.
226225
*
@@ -333,4 +332,4 @@ public function testGroupClear() {
333332
$this->assertFalse(Cache::read('test_groups', 'redis_groups'));
334333
}
335334

336-
}
335+
}

lib/Cake/View/HelperCollection.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@ public function __construct(View $view) {
5050
*
5151
* @param string $helper The helper name to be loaded
5252
* @return boolean wheter the helper could be loaded or not
53-
**/
53+
* @throws MissingHelperException When a helper could not be found.
54+
* App helpers are searched, and then plugin helpers.
55+
*/
5456
public function __isset($helper) {
5557
if (parent::__isset($helper)) {
5658
return true;

0 commit comments

Comments
 (0)