@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | * @param string $key The cache item key |
112 | 112 | * @param integer $step The value to increment by, defaulting to 1 |
113 | 113 | * |
114 | - * @return int|bool The new value on success and false on failure |
|
114 | + * @return integer The new value on success and false on failure |
|
115 | 115 | */ |
116 | 116 | public function increment($key, $step = 1) |
117 | 117 | { |
@@ -123,7 +123,7 @@ discard block |
||
123 | 123 | * @param string $key The cache item key |
124 | 124 | * @param integer $step The value to decrement by, defaulting to 1 |
125 | 125 | * |
126 | - * @return int|bool The new value on success and false on failure |
|
126 | + * @return integer The new value on success and false on failure |
|
127 | 127 | */ |
128 | 128 | public function decrement($key, $step = 1) |
129 | 129 | { |
@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | public function __construct(Memcached $handler) |
19 | 19 | { |
20 | 20 | $this->handler = $handler; |
21 | - if(Memcached::HAVE_IGBINARY){ |
|
21 | + if (Memcached::HAVE_IGBINARY) { |
|
22 | 22 | ini_set("memcached.serializer", "igbinary"); |
23 | 23 | } |
24 | 24 | } |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | * |
45 | 45 | * @return bool True on success and false on failure |
46 | 46 | */ |
47 | - public function set($key, $value, $ttl = null){ |
|
47 | + public function set($key, $value, $ttl = null) { |
|
48 | 48 | return $this->handler->set($key, $value, intval($ttl)); |
49 | 49 | } |
50 | 50 | /** |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | * |
55 | 55 | * @return bool True on success and false on failure |
56 | 56 | */ |
57 | - public function delete($key){ |
|
57 | + public function delete($key) { |
|
58 | 58 | return (bool) $this->handler->delete($key); |
59 | 59 | } |
60 | 60 | /** |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | * |
63 | 63 | * @return bool True on success and false on failure |
64 | 64 | */ |
65 | - public function clear(){ |
|
65 | + public function clear() { |
|
66 | 66 | return $this->handler->flush(); |
67 | 67 | } |
68 | 68 | /** |