Passed
Branch master (eff571)
by Joao
02:38
created
src/FileSystemCacheEngine.php 1 patch
Doc Comments   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -118,9 +118,8 @@  discard block
 block discarded – undo
118 118
 
119 119
     /**
120 120
      * @param string $key The object Key
121
-     * @param object $object The object to be cached
122 121
      * @param int $ttl The time to live in seconds of this objects
123
-     * @return bool If the object is successfully posted
122
+     * @return boolean|null If the object is successfully posted
124 123
      */
125 124
     public function append($key, $content, $ttl = 0)
126 125
     {
@@ -175,6 +174,9 @@  discard block
 block discarded – undo
175 174
         }
176 175
     }
177 176
 
177
+    /**
178
+     * @param string $key
179
+     */
178 180
     protected function fixKey($key)
179 181
     {
180 182
         return sys_get_temp_dir() . '/'
Please login to merge, or discard this patch.
src/SessionCacheEngine.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -12,6 +12,9 @@
 block discarded – undo
12 12
         }
13 13
     }
14 14
 
15
+    /**
16
+     * @param string $key
17
+     */
15 18
     protected function keyName($key)
16 19
     {
17 20
         return (isset($this->configKey) ? $this->configKey : "default") . '-' . $key;
Please login to merge, or discard this patch.
src/ShmopCacheEngine.php 1 patch
Doc Comments   +13 added lines, -4 removed lines patch added patch discarded remove patch
@@ -37,18 +37,27 @@  discard block
 block discarded – undo
37 37
         return $this->config;
38 38
     }
39 39
 
40
+    /**
41
+     * @return integer
42
+     */
40 43
     protected function getMaxSize()
41 44
     {
42 45
         $config = $this->getConfig();
43 46
         return isset($config['max-size']) ? $config['max-size'] : 524288;
44 47
     }
45 48
 
49
+    /**
50
+     * @return integer
51
+     */
46 52
     protected function getDefaultPermission()
47 53
     {
48 54
         $config = $this->getConfig();
49 55
         return isset($config['default-permission']) ? $config['default-permission'] : '0700';
50 56
     }
51 57
 
58
+    /**
59
+     * @param string $key
60
+     */
52 61
     protected function getKeyId($key)
53 62
     {
54 63
         $file = $this->getFTok($key);
@@ -61,7 +70,7 @@  discard block
 block discarded – undo
61 70
     /**
62 71
      * @param string $key The object KEY
63 72
      * @param int $ttl The time to live in seconds of the object. Depends on implementation.
64
-     * @return object The Object
73
+     * @return string The Object
65 74
      */
66 75
     public function get($key, $ttl = 0)
67 76
     {
@@ -116,9 +125,9 @@  discard block
 block discarded – undo
116 125
 
117 126
     /**
118 127
      * @param string $key The object Key
119
-     * @param object $object The object to be cached
128
+     * @param string $object The object to be cached
120 129
      * @param int $ttl The time to live in seconds of the object. Depends on implementation.
121
-     * @return bool If the object is successfully posted
130
+     * @return boolean|null If the object is successfully posted
122 131
      * @throws \Exception
123 132
      */
124 133
     public function set($key, $object, $ttl = 0)
@@ -160,7 +169,7 @@  discard block
 block discarded – undo
160 169
      *
161 170
      * @param string $key
162 171
      * @param string $str
163
-     * @return bool
172
+     * @return boolean|null
164 173
      */
165 174
     public function append($key, $str)
166 175
     {
Please login to merge, or discard this patch.
example-psr.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
 
26 26
 print_r($_SESSION);
27 27
 
28
-for ($i=0; $i<4; $i++) {
28
+for ($i = 0; $i < 4; $i++) {
29 29
     $item = $pool->getItem('key' . $i);
30 30
     $item->set('value - ' . $i);
31 31
     $pool->saveDeferred($item);
Please login to merge, or discard this patch.