Completed
Push — master ( c2b30f...390de1 )
by Mehmet
03:01
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
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.