Skip to content

Commit 24c44f5

Browse files
committed
Indented multi-line docs for readability.
1 parent 1694385 commit 24c44f5

File tree

4 files changed

+52
-51
lines changed

4 files changed

+52
-51
lines changed

src/PEAR2/Cache/SHM.php

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,10 @@ public static function isMeetingRequirements()
7979
* Registers an SHM adapter, allowing you to call it with {@link factory()}.
8080
*
8181
* @param string $adapter FQCN of adapter. A valid adapter is one that
82-
* extends this class. The class will be autoloaded if not already present.
82+
* extends this class. The class will be autoloaded if not already
83+
* present.
8384
* @param bool $prepend Whether to prepend this adapter into the list of
84-
* possible adapters, instead of appending to it.
85+
* possible adapters, instead of appending to it.
8586
*
8687
* @return bool TRUE on success, FALSE on failure.
8788
*/
@@ -112,7 +113,7 @@ final public static function registerAdapter($adapter, $prepend = false)
112113
* @param string $key Name of key to associate the value with.
113114
* @param mixed $value Value for the specified key.
114115
* @param int $ttl Seconds to store the value. If set to 0 indicates no
115-
* time limit.
116+
* time limit.
116117
*
117118
* @return bool TRUE on success, FALSE on failure.
118119
*/
@@ -192,20 +193,20 @@ public function __unset($key)
192193
* Estabilishes a separate persistent storage.
193194
*
194195
* @param string $persistentId The ID for the storage. The storage will be
195-
* reused if it exists, or created if it doesn't exist. Data and locks are
196-
* namespaced by this ID.
196+
* reused if it exists, or created if it doesn't exist. Data and locks
197+
* are namespaced by this ID.
197198
*/
198199
abstract public function __construct($persistentId);
199200

200201
/**
201202
* Obtains a named lock.
202203
*
203204
* @param string $key Name of the key to obtain. Note that $key may
204-
* repeat for each distinct $persistentId.
205+
* repeat for each distinct $persistentId.
205206
* @param double $timeout If the lock can't be immediatly obtained, the
206-
* script will block for at most the specified amount of seconds. Setting
207-
* this to 0 makes lock obtaining non blocking, and setting it to NULL makes
208-
* it block without a time limit.
207+
* script will block for at most the specified amount of seconds.
208+
* Setting this to 0 makes lock obtaining non blocking, and setting it
209+
* to NULL makes it block without a time limit.
209210
*
210211
* @return bool TRUE on success, FALSE on failure.
211212
*/
@@ -215,7 +216,7 @@ abstract public function lock($key, $timeout = null);
215216
* Releases a named lock.
216217
*
217218
* @param string $key Name of the key to release. Note that $key may
218-
* repeat for each distinct $persistentId.
219+
* repeat for each distinct $persistentId.
219220
*
220221
* @return bool TRUE on success, FALSE on failure.
221222
*/
@@ -238,7 +239,7 @@ abstract public function exists($key);
238239
* @param string $key Name of key to associate the value with.
239240
* @param mixed $value Value for the specified key.
240241
* @param int $ttl Seconds to store the value. If set to 0 indicates no
241-
* time limit.
242+
* time limit.
242243
*
243244
* @return bool TRUE on success, FALSE on failure.
244245
*/
@@ -252,7 +253,7 @@ abstract public function add($key, $value, $ttl = 0);
252253
* @param string $key Name of key to associate the value with.
253254
* @param mixed $value Value for the specified key.
254255
* @param int $ttl Seconds to store the value. If set to 0 indicates no
255-
* time limit.
256+
* time limit.
256257
*
257258
* @return bool TRUE on success, FALSE on failure.
258259
*/

src/PEAR2/Cache/SHM/Adapter/APC.php

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class APC extends SHM
5454

5555
/**
5656
* @var array Array of lock names (as values) for each persistent ID (as
57-
* key) obtained during the current request.
57+
* key) obtained during the current request.
5858
*/
5959
protected static $locksBackup = array();
6060

@@ -64,8 +64,8 @@ class APC extends SHM
6464
* Estabilishes a separate persistent storage.
6565
*
6666
* @param string $persistentId The ID for the storage. The storage will be
67-
* reused if it exists, or created if it doesn't exist. Data and locks are
68-
* namespaced by this ID.
67+
* reused if it exists, or created if it doesn't exist. Data and locks
68+
* are namespaced by this ID.
6969
*/
7070
public function __construct($persistentId)
7171
{
@@ -104,9 +104,9 @@ public static function isMeetingRequirements()
104104
* are no objects left in the current request using the same persistent ID.
105105
*
106106
* @param string $internalPersistentId The internal persistent ID, the locks
107-
* of which are being released.
107+
* of which are being released.
108108
* @param bool $isAtShutdown Whether the function was executed at
109-
* shutdown.
109+
* shutdown.
110110
*
111111
* @return void
112112
* @internal
@@ -136,11 +136,11 @@ public function __destruct()
136136
* Obtains a named lock.
137137
*
138138
* @param string $key Name of the key to obtain. Note that $key may
139-
* repeat for each distinct $persistentId.
139+
* repeat for each distinct $persistentId.
140140
* @param double $timeout If the lock can't be immediatly obtained, the
141-
* script will block for at most the specified amount of seconds. Setting
142-
* this to 0 makes lock obtaining non blocking, and setting it to NULL makes
143-
* it block without a time limit.
141+
* script will block for at most the specified amount of seconds.
142+
* Setting this to 0 makes lock obtaining non blocking, and setting it
143+
* to NULL makes it block without a time limit.
144144
*
145145
* @return bool TRUE on success, FALSE on failure.
146146
*/
@@ -162,7 +162,7 @@ public function lock($key, $timeout = null)
162162
* Releases a named lock.
163163
*
164164
* @param string $key Name of the key to release. Note that $key may
165-
* repeat for each distinct $persistentId.
165+
* repeat for each distinct $persistentId.
166166
*
167167
* @return bool TRUE on success, FALSE on failure.
168168
*/
@@ -201,7 +201,7 @@ public function exists($key)
201201
* @param string $key Name of key to associate the value with.
202202
* @param mixed $value Value for the specified key.
203203
* @param int $ttl Seconds to store the value. If set to 0 indicates no
204-
* time limit.
204+
* time limit.
205205
*
206206
* @return bool TRUE on success, FALSE on failure.
207207
*/
@@ -218,7 +218,7 @@ public function add($key, $value, $ttl = 0)
218218
* @param string $key Name of key to associate the value with.
219219
* @param mixed $value Value for the specified key.
220220
* @param int $ttl Seconds to store the value. If set to 0 indicates no
221-
* time limit.
221+
* time limit.
222222
*
223223
* @return bool TRUE on success, FALSE on failure.
224224
*/
@@ -366,14 +366,14 @@ public function clear()
366366
* Returns an external iterator.
367367
*
368368
* @param string $filter A PCRE regular expression. Only matching keys
369-
* will be iterated over. Setting this to NULL matches all keys of this
370-
* instance.
369+
* will be iterated over. Setting this to NULL matches all keys of this
370+
* instance.
371371
* @param bool $keysOnly Whether to return only the keys, or return both
372-
* the keys and values.
372+
* the keys and values.
373373
*
374374
* @return array An array with all matching keys as array keys, and values
375-
* as array values. If $keysOnly is TRUE, the array keys are numeric, and
376-
* the array values are key names.
375+
* as array values. If $keysOnly is TRUE, the array keys are numeric,
376+
* and the array values are key names.
377377
*/
378378
public function getIterator($filter = null, $keysOnly = false)
379379
{

src/PEAR2/Cache/SHM/Adapter/Placebo.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class Placebo extends SHM
5555

5656
/**
5757
* @var array Array of lock names (as values) for each persistent ID (as
58-
* key) obtained during the current request.
58+
* key) obtained during the current request.
5959
*/
6060
protected static $locksBackup = array();
6161

@@ -76,8 +76,8 @@ class Placebo extends SHM
7676
* Estabilishes a separate persistent storage.
7777
*
7878
* @param string $persistentId The ID for the storage. The storage will be
79-
* reused if it exists, or created if it doesn't exist. Data and locks are
80-
* namespaced by this ID.
79+
* reused if it exists, or created if it doesn't exist. Data and locks
80+
* are namespaced by this ID.
8181
*/
8282
public function __construct($persistentId)
8383
{
@@ -170,7 +170,7 @@ public function exists($key)
170170
* @param string $key Name of key to associate the value with.
171171
* @param mixed $value Value for the specified key.
172172
* @param int $ttl Because "true" adapters purge the cache at the next
173-
* request, this setting is ignored.
173+
* request, this setting is ignored.
174174
*
175175
* @return bool TRUE on success, FALSE on failure.
176176
*/
@@ -190,7 +190,7 @@ public function add($key, $value, $ttl = 0)
190190
* @param string $key Name of key to associate the value with.
191191
* @param mixed $value Value for the specified key.
192192
* @param int $ttl Because "true" adapters purge the cache at the next
193-
* request, this setting is ignored.
193+
* request, this setting is ignored.
194194
*
195195
* @return bool TRUE on success, FALSE on failure.
196196
*/
@@ -323,14 +323,14 @@ public function clear()
323323
* Returns an external iterator.
324324
*
325325
* @param string $filter A PCRE regular expression. Only matching keys
326-
* will be iterated over. Setting this to NULL matches all keys of this
327-
* instance.
326+
* will be iterated over. Setting this to NULL matches all keys of this
327+
* instance.
328328
* @param bool $keysOnly Whether to return only the keys, or return both
329-
* the keys and values.
329+
* the keys and values.
330330
*
331331
* @return array An array with all matching keys as array keys, and values
332-
* as array values. If $keysOnly is TRUE, the array keys are numeric, and
333-
* the array values are key names.
332+
* as array values. If $keysOnly is TRUE, the array keys are numeric,
333+
* and the array values are key names.
334334
*/
335335
public function getIterator($filter = null, $keysOnly = false)
336336
{

src/PEAR2/Cache/SHM/Adapter/Wincache.php

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ class Wincache extends SHM
6262
* Estabilishes a separate persistent storage.
6363
*
6464
* @param string $persistentId The ID for the storage. The storage will be
65-
* reused if it exists, or created if it doesn't exist. Data and locks are
66-
* namespaced by this ID.
65+
* reused if it exists, or created if it doesn't exist. Data and locks
66+
* are namespaced by this ID.
6767
*/
6868
public function __construct($persistentId)
6969
{
@@ -126,9 +126,9 @@ public function __destruct()
126126
* Obtains a named lock.
127127
*
128128
* @param string $key Name of the key to obtain. Note that $key may
129-
* repeat for each distinct $persistentId.
129+
* repeat for each distinct $persistentId.
130130
* @param double $timeout Ignored with WinCache. Script will always block if
131-
* the lock can't be immediatly obtained.
131+
* the lock can't be immediatly obtained.
132132
*
133133
* @return bool TRUE on success, FALSE on failure.
134134
*/
@@ -147,7 +147,7 @@ public function lock($key, $timeout = null)
147147
* Releases a named lock.
148148
*
149149
* @param string $key Name of the key to release. Note that $key may
150-
* repeat for each distinct $persistentId.
150+
* repeat for each distinct $persistentId.
151151
*
152152
* @return bool TRUE on success, FALSE on failure.
153153
*/
@@ -186,7 +186,7 @@ public function exists($key)
186186
* @param string $key Name of key to associate the value with.
187187
* @param mixed $value Value for the specified key.
188188
* @param int $ttl Seconds to store the value. If set to 0 indicates no
189-
* time limit.
189+
* time limit.
190190
*
191191
* @return bool TRUE on success, FALSE on failure.
192192
*/
@@ -203,7 +203,7 @@ public function add($key, $value, $ttl = 0)
203203
* @param string $key Name of key to associate the value with.
204204
* @param mixed $value Value for the specified key.
205205
* @param int $ttl Seconds to store the value. If set to 0 indicates no
206-
* time limit.
206+
* time limit.
207207
*
208208
* @return bool TRUE on success, FALSE on failure.
209209
*/
@@ -344,14 +344,14 @@ public function clear()
344344
* Returns an external iterator.
345345
*
346346
* @param string $filter A PCRE regular expression. Only matching keys
347-
* will be iterated over. Setting this to NULL matches all keys of this
348-
* instance.
347+
* will be iterated over. Setting this to NULL matches all keys of this
348+
* instance.
349349
* @param bool $keysOnly Whether to return only the keys, or return both
350-
* the keys and values.
350+
* the keys and values.
351351
*
352352
* @return array An array with all matching keys as array keys, and values
353-
* as array values. If $keysOnly is TRUE, the array keys are numeric, and
354-
* the array values are key names.
353+
* as array values. If $keysOnly is TRUE, the array keys are numeric,
354+
* and the array values are key names.
355355
*/
356356
public function getIterator($filter = null, $keysOnly = false)
357357
{

0 commit comments

Comments
 (0)