projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #17999 from eileenmcnaughton/sql_cache
[civicrm-core.git]
/
CRM
/
Utils
/
AutoClean.php
diff --git
a/CRM/Utils/AutoClean.php
b/CRM/Utils/AutoClean.php
index 48e0cf9e2df2da96e23b618e45fd25b7d4995099..1be38b0ece20ac11d069018901a3d69458914395 100644
(file)
--- a/
CRM/Utils/AutoClean.php
+++ b/
CRM/Utils/AutoClean.php
@@
-29,14
+29,14
@@
class CRM_Utils_AutoClean {
/**
* Call a cleanup function when the current context shuts down.
*
/**
* Call a cleanup function when the current context shuts down.
*
- *
@code
+ *
```
* function doStuff() {
* $ac = CRM_Utils_AutoClean::with(function(){
* MyCleanup::doIt();
* });
* ...
* }
* function doStuff() {
* $ac = CRM_Utils_AutoClean::with(function(){
* MyCleanup::doIt();
* });
* ...
* }
- *
@endcode
+ *
```
*
* @param mixed $callback
* @return CRM_Utils_AutoClean
*
* @param mixed $callback
* @return CRM_Utils_AutoClean
@@
-52,12
+52,12
@@
class CRM_Utils_AutoClean {
* Temporarily swap values using callback functions, and cleanup
* when the current context shuts down.
*
* Temporarily swap values using callback functions, and cleanup
* when the current context shuts down.
*
- *
@code
+ *
```
* function doStuff() {
* $ac = CRM_Utils_AutoClean::swap('My::get', 'My::set', 'tmpValue');
* ...
* }
* function doStuff() {
* $ac = CRM_Utils_AutoClean::swap('My::get', 'My::set', 'tmpValue');
* ...
* }
- *
@endcode
+ *
```
*
* @param mixed $getter
* Function to lookup current value.
*
* @param mixed $getter
* Function to lookup current value.