mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-06-07 09:54:27 +02: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
|
@ -36,7 +36,7 @@ function leistungsschutzrecht_getsiteinfo($a, &$siteinfo) {
|
|||
}
|
||||
|
||||
function leistungsschutzrecht_cuttext($text) {
|
||||
$text = str_replace(array("\r", "\n"), array(" ", " "), $text);
|
||||
$text = str_replace(["\r", "\n"], [" ", " "], $text);
|
||||
|
||||
do {
|
||||
$oldtext = $text;
|
||||
|
@ -73,9 +73,9 @@ function leistungsschutzrecht_fetchsites() {
|
|||
$sitelist = fetch_url($url);
|
||||
$siteurls = explode(',', $sitelist);
|
||||
|
||||
$whitelist = array('tagesschau.de', 'heute.de', 'wdr.de');
|
||||
$whitelist = ['tagesschau.de', 'heute.de', 'wdr.de'];
|
||||
|
||||
$sites = array();
|
||||
$sites = [];
|
||||
foreach ($siteurls AS $site) {
|
||||
if (!in_array($site, $whitelist)) {
|
||||
$sites[$site] = $site;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue