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
a6ab7dd6f1
commit
81b6ed9fc2
1 changed files with 45 additions and 44 deletions
|
@ -93,7 +93,7 @@ class Smilies
|
||||||
|
|
||||||
];
|
];
|
||||||
|
|
||||||
$baseUrl = (string)DI::baseUrl();
|
$baseUrl = (string) DI::baseUrl();
|
||||||
|
|
||||||
$icons = [
|
$icons = [
|
||||||
'<img class="smiley" src="' . $baseUrl . '/images/smiley-heart.gif" alt="<3" title="<3" />',
|
'<img class="smiley" src="' . $baseUrl . '/images/smiley-heart.gif" alt="<3" title="<3" />',
|
||||||
|
@ -165,7 +165,7 @@ class Smilies
|
||||||
return self::performForEachWordMatch(
|
return self::performForEachWordMatch(
|
||||||
array_combine($smilies['texts'], $smilies['icons']),
|
array_combine($smilies['texts'], $smilies['icons']),
|
||||||
$text,
|
$text,
|
||||||
function (string $name, string $image) use($normalized, &$emojis) {
|
function (string $name, string $image) use ($normalized, &$emojis) {
|
||||||
if (array_key_exists($name, $normalized)) {
|
if (array_key_exists($name, $normalized)) {
|
||||||
return $normalized[$name];
|
return $normalized[$name];
|
||||||
}
|
}
|
||||||
|
@ -316,7 +316,8 @@ class Smilies
|
||||||
return $s;
|
return $s;
|
||||||
}
|
}
|
||||||
|
|
||||||
private static function noSmilies(): bool {
|
private static function noSmilies(): bool
|
||||||
|
{
|
||||||
return (intval(DI::config()->get('system', 'no_smilies')) ||
|
return (intval(DI::config()->get('system', 'no_smilies')) ||
|
||||||
(DI::userSession()->getLocalUserId() &&
|
(DI::userSession()->getLocalUserId() &&
|
||||||
intval(DI::pConfig()->get(DI::userSession()->getLocalUserId(), 'system', 'no_smilies'))));
|
intval(DI::pConfig()->get(DI::userSession()->getLocalUserId(), 'system', 'no_smilies'))));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue