Completed
Push — master ( 0e8341...62008e )
by Auke
03:17
created
src/cache.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
      * It will store the cache on disk in a folder defined by ARC_CACHE_DIR, or if not
24 24
      * defined in the system temp dir under arc/cache/.
25 25
      * @param string $prefix  Optional. A prefix name or path for subsequent cache images
26
-     * @param mixed  $timeout Optional. Number of seconds (int) or string parseable by strtotime. Defaults to 7200.
26
+     * @param integer  $timeout Optional. Number of seconds (int) or string parseable by strtotime. Defaults to 7200.
27 27
      * @return cache\Store
28 28
      * @throws ExceptionConfigError
29 29
      */
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
     /**
89 89
      * Creates a new caching proxy object for any given object.
90 90
      * @param       $object The object to cache
91
-     * @param mixed $cacheControl Either an integer with the number of seconds to cache stuff, or a closure that returns an int.
91
+     * @param integer $cacheControl Either an integer with the number of seconds to cache stuff, or a closure that returns an int.
92 92
      *                            The closure is called with one argument, an array with the following information:
93 93
      *                            - target      The cached object a method was called on.
94 94
      *                            - method      The method called
Please login to merge, or discard this patch.
src/cache/Store.php 1 patch
Doc Comments   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -24,8 +24,8 @@  discard block
 block discarded – undo
24 24
 
25 25
     /**
26 26
      * @param object     $storage     An object implementing the methods in \arc\cache\FileStore
27
-     * @param int|string $timeout     Default cache timeout in seconds or a string parseable by strtotime
28
-     * @param null       $currentPath The current path in the cache store.
27
+     * @param integer $timeout     Default cache timeout in seconds or a string parseable by strtotime
28
+     * @param string       $currentPath The current path in the cache store.
29 29
      */
30 30
     public function __construct($storage, $timeout = 7200, $currentPath = null)
31 31
     {
@@ -134,8 +134,8 @@  discard block
 block discarded – undo
134 134
      *	This method stores a name - value pair, with either a given timeout or the default
135 135
      *  timeout for this Store.
136 136
      *  @param string $name
137
-     *  @param mixed $value
138
-     *  @param mixed $timeout Either a timestamp (int) or a string parseable by strtotime.
137
+     *  @param string $value
138
+     *  @param integer $timeout Either a timestamp (int) or a string parseable by strtotime.
139 139
      *  @return bool true for successfull storage, false for failure.
140 140
      */
141 141
     public function set($name, $value, $timeout = null)
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
      *	This method checks if the value for the given name is fresh for at least the time
167 167
      *  passed as the freshness param.
168 168
      *  @param string $name
169
-     *  @param mixed $freshness either a unix timestamp or a string parseable by strtotime
169
+     *  @param integer $freshness either a unix timestamp or a string parseable by strtotime
170 170
      *  @return bool
171 171
      */
172 172
     public function isFresh($name, $freshness = 0)
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
      *  This method returns the value associated with the given name if it is still fresh,
185 185
      *  otherwise it will return null. You can set a minimum freshness time.
186 186
      *  @param string $name
187
-     *  @param mixed $freshness either a unix timestamp or a string parseable by strtotime
187
+     *  @param integer $freshness either a unix timestamp or a string parseable by strtotime
188 188
      *  @return mixed
189 189
      */
190 190
     public function getIfFresh($name, $freshness = 0)
Please login to merge, or discard this patch.