Completed
Branch master (c84cf5)
by Mehmet
03:53
created
src/MemcachedCache.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
      */
17 17
     public function __construct(array $config)
18 18
     {
19
-        $this->handler= new \Memcached($config['bucket']);
19
+        $this->handler = new \Memcached($config['bucket']);
20 20
         $this->handler->setOption(\Memcached::OPT_LIBKETAMA_COMPATIBLE, true);
21 21
         $this->handler->setOption(\Memcached::OPT_BINARY_PROTOCOL, true);
22 22
         if (!count($this->handler->getServerList())) {
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
      *
50 50
      * @return bool True on success and false on failure
51 51
      */
52
-    public function set($key, $value, $ttl = null){
52
+    public function set($key, $value, $ttl = null) {
53 53
         return $this->handler->set($key, $value, intval($ttl));
54 54
     }
55 55
     /**
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
      *
60 60
      * @return bool True on success and false on failure
61 61
      */
62
-    public function delete($key){
62
+    public function delete($key) {
63 63
         return (bool) $this->handler->delete($key);
64 64
     }
65 65
     /**
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
      *
68 68
      * @return bool True on success and false on failure
69 69
      */
70
-    public function clear(){
70
+    public function clear() {
71 71
         return $this->handler->flush();
72 72
     }
73 73
     /**
Please login to merge, or discard this patch.