mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-11 19:08:49 +00:00
Use short form array syntax everywhere
This commit is contained in:
parent
4ee41c64a3
commit
27b60e003f
68 changed files with 869 additions and 869 deletions
|
@ -120,13 +120,13 @@ function ifttt_post(App $a)
|
|||
return;
|
||||
}
|
||||
|
||||
$item = array();
|
||||
$item = [];
|
||||
|
||||
if (isset($_REQUEST['type'])) {
|
||||
$item['type'] = $_REQUEST['type'];
|
||||
}
|
||||
|
||||
if (!in_array($item['type'], array('status', 'link', 'photo'))) {
|
||||
if (!in_array($item['type'], ['status', 'link', 'photo'])) {
|
||||
logger('Unknown item type ' . $item['type'], LOGGER_DEBUG);
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue