mirror of
https://github.com/friendica/friendica
synced 2025-04-25 09:10:11 +00:00
Use short form array syntax everywhere
- Add short form array syntax to po2php.php generation
This commit is contained in:
parent
77dfbaa0bf
commit
e36f2bb1fb
212 changed files with 5160 additions and 5160 deletions
|
@ -49,7 +49,7 @@ class Config
|
|||
|
||||
$a = get_app();
|
||||
|
||||
$r = dba::select('config', array('v', 'k'), array('cat' => $family));
|
||||
$r = dba::select('config', ['v', 'k'], ['cat' => $family]);
|
||||
while ($rr = dba::fetch($r)) {
|
||||
$k = $rr['k'];
|
||||
if ($family === 'config') {
|
||||
|
@ -161,7 +161,7 @@ class Config
|
|||
// manage array value
|
||||
$dbvalue = (is_array($value) ? serialize($value) : $dbvalue);
|
||||
|
||||
$ret = dba::update('config', array('v' => $dbvalue), array('cat' => $family, 'k' => $key), true);
|
||||
$ret = dba::update('config', ['v' => $dbvalue], ['cat' => $family, 'k' => $key], true);
|
||||
|
||||
if ($ret) {
|
||||
self::$in_db[$family][$key] = true;
|
||||
|
@ -188,7 +188,7 @@ class Config
|
|||
unset(self::$in_db[$family][$key]);
|
||||
}
|
||||
|
||||
$ret = dba::delete('config', array('cat' => $family, 'k' => $key));
|
||||
$ret = dba::delete('config', ['cat' => $family, 'k' => $key]);
|
||||
|
||||
return $ret;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue