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