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 #14128 from agileware/CIVICRM-1143
[civicrm-core.git]
/
CRM
/
Utils
/
AutoClean.php
diff --git
a/CRM/Utils/AutoClean.php
b/CRM/Utils/AutoClean.php
index c6cd890074f3c79e6eb4830b6dbbae367d4a49bb..558ca34adb7ff157ca04ad43b869c070335432e0 100644
(file)
--- a/
CRM/Utils/AutoClean.php
+++ b/
CRM/Utils/AutoClean.php
@@
-3,7
+3,7
@@
+--------------------------------------------------------------------+
| CiviCRM version 5 |
+--------------------------------------------------------------------+
+--------------------------------------------------------------------+
| CiviCRM version 5 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-201
8
|
+ | Copyright CiviCRM LLC (c) 2004-201
9
|
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
@@
-28,7
+28,7
@@
/**
*
* @package CRM
/**
*
* @package CRM
- * @copyright CiviCRM LLC (c) 2004-201
8
+ * @copyright CiviCRM LLC (c) 2004-201
9
*/
/**
*/
/**
@@
-87,13
+87,13
@@
class CRM_Utils_AutoClean {
public static function swap($getter, $setter, $tmpValue) {
$resolver = \Civi\Core\Resolver::singleton();
public static function swap($getter, $setter, $tmpValue) {
$resolver = \Civi\Core\Resolver::singleton();
- $origValue = $resolver->call($getter,
array()
);
+ $origValue = $resolver->call($getter,
[]
);
$ac = new CRM_Utils_AutoClean();
$ac->callback = $setter;
$ac = new CRM_Utils_AutoClean();
$ac->callback = $setter;
- $ac->args =
array($origValue)
;
+ $ac->args =
[$origValue]
;
- $resolver->call($setter,
array($tmpValue)
);
+ $resolver->call($setter,
[$tmpValue]
);
return $ac;
}
return $ac;
}