mirror of
https://github.com/friendica/friendica
synced 2025-04-26 21:10:16 +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
|
@ -35,8 +35,8 @@ class Delivery {
|
|||
$fsuggest = false;
|
||||
$relocate = false;
|
||||
$top_level = false;
|
||||
$recipients = array();
|
||||
$url_recipients = array();
|
||||
$recipients = [];
|
||||
$url_recipients = [];
|
||||
$followup = false;
|
||||
|
||||
$normal_mode = true;
|
||||
|
@ -108,7 +108,7 @@ class Delivery {
|
|||
}
|
||||
|
||||
$icontacts = null;
|
||||
$contacts_arr = array();
|
||||
$contacts_arr = [];
|
||||
foreach ($items as $item) {
|
||||
if (!in_array($item['contact-id'],$contacts_arr)) {
|
||||
$contacts_arr[] = intval($item['contact-id']);
|
||||
|
@ -238,7 +238,7 @@ class Delivery {
|
|||
} elseif ($relocate) {
|
||||
$atom = DFRN::relocate($owner, $uid);
|
||||
} elseif ($followup) {
|
||||
$msgitems = array();
|
||||
$msgitems = [];
|
||||
foreach ($items as $item) { // there is only one item
|
||||
if (!$item['parent']) {
|
||||
return;
|
||||
|
@ -250,7 +250,7 @@ class Delivery {
|
|||
}
|
||||
$atom = DFRN::entries($msgitems,$owner);
|
||||
} else {
|
||||
$msgitems = array();
|
||||
$msgitems = [];
|
||||
foreach ($items as $item) {
|
||||
if (!$item['parent']) {
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue