Completed
Push — master ( eff571...d844b5 )
by Joao
29s
created
src/Engine/FileSystemCacheEngine.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -176,6 +176,9 @@
 block discarded – undo
176 176
         return is_writable(dirname($this->fixKey('test')));
177 177
     }
178 178
 
179
+    /**
180
+     * @param string $key
181
+     */
179 182
     protected function fixKey($key)
180 183
     {
181 184
         return sys_get_temp_dir() . '/'
Please login to merge, or discard this patch.
src/Engine/SessionCacheEngine.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -27,6 +27,9 @@
 block discarded – undo
27 27
         }
28 28
     }
29 29
 
30
+    /**
31
+     * @param string $key
32
+     */
30 33
     protected function keyName($key)
31 34
     {
32 35
         return $this->prefix . '-' . $key;
Please login to merge, or discard this patch.
src/Engine/ShmopCacheEngine.php 1 patch
Doc Comments   +11 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,16 +50,25 @@  discard block
 block discarded – undo
50 50
         return sys_get_temp_dir() . '/' . sha1($key);
51 51
     }
52 52
     
53
+    /**
54
+     * @return integer
55
+     */
53 56
     protected function getMaxSize()
54 57
     {
55 58
         return $this->config['max-size'];
56 59
     }
57 60
 
61
+    /**
62
+     * @return integer
63
+     */
58 64
     protected function getDefaultPermission()
59 65
     {
60 66
         return $this->config['default-permission'];
61 67
     }
62 68
 
69
+    /**
70
+     * @param string $key
71
+     */
63 72
     protected function getKeyId($key)
64 73
     {
65 74
         $file = $this->getFTok($key);
@@ -72,7 +81,7 @@  discard block
 block discarded – undo
72 81
     /**
73 82
      * @param string $key The object KEY
74 83
      * @param int $ttl The time to live in seconds of the object. Depends on implementation.
75
-     * @return object The Object
84
+     * @return string The Object
76 85
      */
77 86
     public function get($key, $ttl = 0)
78 87
     {
@@ -118,7 +127,7 @@  discard block
 block discarded – undo
118 127
 
119 128
     /**
120 129
      * @param string $key The object Key
121
-     * @param object $object The object to be cached
130
+     * @param string $object The object to be cached
122 131
      * @param int $ttl The time to live in seconds of the object. Depends on implementation.
123 132
      * @return bool If the object is successfully posted
124 133
      * @throws \Exception
Please login to merge, or discard this patch.