mirror of
https://github.com/friendica/friendica
synced 2025-04-08 20:00:15 +00:00
Fix code style
This commit is contained in:
parent
9f7774faab
commit
732c32cb0e
2 changed files with 7 additions and 7 deletions
|
@ -207,7 +207,7 @@ class Conversation
|
||||||
|
|
||||||
if ($total === 0) {
|
if ($total === 0) {
|
||||||
throw new InternalServerErrorException(sprintf('There has to be at least one Liker for verb "%s"', $verb));
|
throw new InternalServerErrorException(sprintf('There has to be at least one Liker for verb "%s"', $verb));
|
||||||
} else if ($total === 1) {
|
} elseif ($total === 1) {
|
||||||
$likerString = $likers[0];
|
$likerString = $likers[0];
|
||||||
} else {
|
} else {
|
||||||
if ($total < $this->config->get('system', 'max_likers')) {
|
if ($total < $this->config->get('system', 'max_likers')) {
|
||||||
|
@ -976,8 +976,8 @@ class Conversation
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach ($items as $key => $row) {
|
foreach ($items as $key => $row) {
|
||||||
$items[$key]['emojis'] = $emojis[$key] ?? [];
|
$items[$key]['emojis'] = $emojis[$key] ?? [];
|
||||||
$items[$key]['counts'] = $counts[$key] ?? 0;
|
$items[$key]['counts'] = $counts[$key] ?? 0;
|
||||||
$items[$key]['quoteshares'] = $quoteshares[$key] ?? [];
|
$items[$key]['quoteshares'] = $quoteshares[$key] ?? [];
|
||||||
|
|
||||||
$always_display = in_array($mode, [self::MODE_CONTACTS, self::MODE_CONTACT_POSTS]);
|
$always_display = in_array($mode, [self::MODE_CONTACTS, self::MODE_CONTACT_POSTS]);
|
||||||
|
@ -1431,7 +1431,7 @@ class Conversation
|
||||||
public function getContextLessThreadList(array $items, string $mode, bool $preview, bool $pagedrop, string $formSecurityToken): array
|
public function getContextLessThreadList(array $items, string $mode, bool $preview, bool $pagedrop, string $formSecurityToken): array
|
||||||
{
|
{
|
||||||
$threads = [];
|
$threads = [];
|
||||||
$uriids = [];
|
$uriids = [];
|
||||||
|
|
||||||
foreach ($items as $item) {
|
foreach ($items as $item) {
|
||||||
if (in_array($item['uri-id'], $uriids)) {
|
if (in_array($item['uri-id'], $uriids)) {
|
||||||
|
@ -1456,7 +1456,7 @@ class Conversation
|
||||||
|
|
||||||
$tags = Tag::populateFromItem($item);
|
$tags = Tag::populateFromItem($item);
|
||||||
|
|
||||||
$author = [
|
$author = [
|
||||||
'uid' => 0,
|
'uid' => 0,
|
||||||
'id' => $item['author-id'],
|
'id' => $item['author-id'],
|
||||||
'network' => $item['author-network'],
|
'network' => $item['author-network'],
|
||||||
|
@ -1501,7 +1501,7 @@ class Conversation
|
||||||
|
|
||||||
$body_html = ItemModel::prepareBody($item, true, $preview);
|
$body_html = ItemModel::prepareBody($item, true, $preview);
|
||||||
|
|
||||||
[$categories, $folders] = $this->item->determineCategoriesTerms($item, $this->session->getLocalUserId());
|
list($categories, $folders) = $this->item->determineCategoriesTerms($item, $this->session->getLocalUserId());
|
||||||
|
|
||||||
if (!empty($item['featured'])) {
|
if (!empty($item['featured'])) {
|
||||||
$pinned = $this->l10n->t('Pinned item');
|
$pinned = $this->l10n->t('Pinned item');
|
||||||
|
|
|
@ -56,7 +56,7 @@ class SaveTag extends BaseModule
|
||||||
|
|
||||||
$tpl = Renderer::getMarkupTemplate("filer_dialog.tpl");
|
$tpl = Renderer::getMarkupTemplate("filer_dialog.tpl");
|
||||||
echo Renderer::replaceMacros($tpl, [
|
echo Renderer::replaceMacros($tpl, [
|
||||||
'$field' => ['term', $this->t("Folder:"), '', '', $filetags, $this->t('- select -')],
|
'$field' => ['term', $this->t("Folder:"), '', '', $filetags, $this->t('- select -')],
|
||||||
'$submit' => $this->t('Save'),
|
'$submit' => $this->t('Save'),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue