mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-08 00:04:27 +02:00
Fix code style
This commit is contained in:
parent
3295b9055f
commit
134d85b9c1
1 changed files with 23 additions and 24 deletions
|
@ -7,7 +7,6 @@
|
||||||
|
|
||||||
namespace Friendica\Content;
|
namespace Friendica\Content;
|
||||||
|
|
||||||
use Friendica\Core\Hook;
|
|
||||||
use Friendica\Core\Protocol;
|
use Friendica\Core\Protocol;
|
||||||
use Friendica\Database\DBA;
|
use Friendica\Database\DBA;
|
||||||
use Friendica\DI;
|
use Friendica\DI;
|
||||||
|
@ -25,8 +24,8 @@ class ContactSelector
|
||||||
const SVG_COLOR_WHITE = 2;
|
const SVG_COLOR_WHITE = 2;
|
||||||
const SVG_WHITE = 3;
|
const SVG_WHITE = 3;
|
||||||
|
|
||||||
static $serverdata = [];
|
public static $serverdata = [];
|
||||||
static $server_id = [];
|
public static $server_id = [];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $current current
|
* @param string $current current
|
||||||
|
@ -36,7 +35,7 @@ class ContactSelector
|
||||||
public static function pollInterval(string $current, bool $disabled = false): string
|
public static function pollInterval(string $current, bool $disabled = false): string
|
||||||
{
|
{
|
||||||
$dis = (($disabled) ? ' disabled="disabled" ' : '');
|
$dis = (($disabled) ? ' disabled="disabled" ' : '');
|
||||||
$o = '';
|
$o = '';
|
||||||
$o .= "<select id=\"contact-poll-interval\" name=\"poll\" $dis />" . "\r\n";
|
$o .= "<select id=\"contact-poll-interval\" name=\"poll\" $dis />" . "\r\n";
|
||||||
|
|
||||||
$rep = [
|
$rep = [
|
||||||
|
@ -117,25 +116,25 @@ class ContactSelector
|
||||||
$eventDispatcher = DI::eventDispatcher();
|
$eventDispatcher = DI::eventDispatcher();
|
||||||
|
|
||||||
$nets = [
|
$nets = [
|
||||||
Protocol::DFRN => DI::l10n()->t('DFRN'),
|
Protocol::DFRN => DI::l10n()->t('DFRN'),
|
||||||
Protocol::OSTATUS => DI::l10n()->t('OStatus'),
|
Protocol::OSTATUS => DI::l10n()->t('OStatus'),
|
||||||
Protocol::FEED => DI::l10n()->t('RSS/Atom'),
|
Protocol::FEED => DI::l10n()->t('RSS/Atom'),
|
||||||
Protocol::MAIL => DI::l10n()->t('Email'),
|
Protocol::MAIL => DI::l10n()->t('Email'),
|
||||||
Protocol::DIASPORA => DI::l10n()->t('Diaspora'),
|
Protocol::DIASPORA => DI::l10n()->t('Diaspora'),
|
||||||
Protocol::ZOT => DI::l10n()->t('Zot!'),
|
Protocol::ZOT => DI::l10n()->t('Zot!'),
|
||||||
Protocol::LINKEDIN => DI::l10n()->t('LinkedIn'),
|
Protocol::LINKEDIN => DI::l10n()->t('LinkedIn'),
|
||||||
Protocol::XMPP => DI::l10n()->t('XMPP/IM'),
|
Protocol::XMPP => DI::l10n()->t('XMPP/IM'),
|
||||||
Protocol::MYSPACE => DI::l10n()->t('MySpace'),
|
Protocol::MYSPACE => DI::l10n()->t('MySpace'),
|
||||||
Protocol::GPLUS => DI::l10n()->t('Google+'),
|
Protocol::GPLUS => DI::l10n()->t('Google+'),
|
||||||
Protocol::PUMPIO => DI::l10n()->t('pump.io'),
|
Protocol::PUMPIO => DI::l10n()->t('pump.io'),
|
||||||
Protocol::TWITTER => DI::l10n()->t('Twitter'),
|
Protocol::TWITTER => DI::l10n()->t('Twitter'),
|
||||||
Protocol::DISCOURSE => DI::l10n()->t('Discourse'),
|
Protocol::DISCOURSE => DI::l10n()->t('Discourse'),
|
||||||
Protocol::DIASPORA2 => DI::l10n()->t('Diaspora Connector'),
|
Protocol::DIASPORA2 => DI::l10n()->t('Diaspora Connector'),
|
||||||
Protocol::STATUSNET => DI::l10n()->t('GNU Social Connector'),
|
Protocol::STATUSNET => DI::l10n()->t('GNU Social Connector'),
|
||||||
Protocol::ACTIVITYPUB => DI::l10n()->t('ActivityPub'),
|
Protocol::ACTIVITYPUB => DI::l10n()->t('ActivityPub'),
|
||||||
Protocol::PNUT => DI::l10n()->t('pnut'),
|
Protocol::PNUT => DI::l10n()->t('pnut'),
|
||||||
Protocol::TUMBLR => DI::l10n()->t('Tumblr'),
|
Protocol::TUMBLR => DI::l10n()->t('Tumblr'),
|
||||||
Protocol::BLUESKY => DI::l10n()->t('Bluesky'),
|
Protocol::BLUESKY => DI::l10n()->t('Bluesky'),
|
||||||
];
|
];
|
||||||
|
|
||||||
$nets = $eventDispatcher->dispatch(
|
$nets = $eventDispatcher->dispatch(
|
||||||
|
@ -217,7 +216,7 @@ class ContactSelector
|
||||||
$network_svg = str_replace($search, $replace, $network);
|
$network_svg = str_replace($search, $replace, $network);
|
||||||
|
|
||||||
if (in_array($network, Protocol::FEDERATED) && !empty($gsid)) {
|
if (in_array($network, Protocol::FEDERATED) && !empty($gsid)) {
|
||||||
$gserver = self::getServerForId($gsid);
|
$gserver = self::getServerForId($gsid);
|
||||||
$platform = $gserver['platform'];
|
$platform = $gserver['platform'];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -238,7 +237,7 @@ class ContactSelector
|
||||||
'takahē', 'takesama', 'threads', 'tumblr', 'vernissage', 'vervis', 'vidzy', 'vocata', 'wafrn',
|
'takahē', 'takesama', 'threads', 'tumblr', 'vernissage', 'vervis', 'vidzy', 'vocata', 'wafrn',
|
||||||
'wildebeest', 'wordpress', 'write.as', 'writefreely', 'wxwclub', 'xwiki', 'zap'];
|
'wildebeest', 'wordpress', 'write.as', 'writefreely', 'wxwclub', 'xwiki', 'zap'];
|
||||||
|
|
||||||
if (in_array($platform_icon_style,[self::SVG_WHITE, self::SVG_COLOR_WHITE])) {
|
if (in_array($platform_icon_style, [self::SVG_WHITE, self::SVG_COLOR_WHITE])) {
|
||||||
$svg = ['activitypub', 'akkoma', 'andstatus', 'bluesky', 'bonfire', 'bookwyrm', 'bridgy_fed',
|
$svg = ['activitypub', 'akkoma', 'andstatus', 'bluesky', 'bonfire', 'bookwyrm', 'bridgy_fed',
|
||||||
'calckey', 'castopod', 'diaspora', 'discourse', 'dolphin', 'drupal', 'email', 'firefish',
|
'calckey', 'castopod', 'diaspora', 'discourse', 'dolphin', 'drupal', 'email', 'firefish',
|
||||||
'flipboard', 'flohmarkt', 'forgejo', 'friendica', 'funkwhale', 'ghost', 'gitlab',
|
'flipboard', 'flohmarkt', 'forgejo', 'friendica', 'funkwhale', 'ghost', 'gitlab',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue