fix code style

This commit is contained in:
Art4 2025-04-28 14:12:27 +00:00
parent 362b223c5e
commit baaec75bfc
4 changed files with 56 additions and 58 deletions

View file

@ -10,7 +10,6 @@ namespace Friendica\Model;
use Friendica\Core\Config\Capability\IManageConfigValues;
use Friendica\Database\DBA;
use Friendica\DI;
use Friendica\Model\Item;
use stdClass;
/**
@ -73,7 +72,7 @@ class Nodeinfo
$config = DI::config();
$usage = new stdClass();
$usage->users = new stdClass;
$usage->users = new stdClass();
if (!empty($config->get('system', 'nodeinfo'))) {
$usage->users->total = intval(DI::keyValue()->get('nodeinfo_total_users'));

View file

@ -53,8 +53,7 @@ class Statistics extends BaseModule
protected function rawContent(array $request = [])
{
$registration_open =
Register::getPolicy() !== Register::CLOSED
$registration_open = Register::getPolicy() !== Register::CLOSED
&& !$this->config->get('config', 'invitation_only');
/// @todo mark the "service" addons and load them dynamically here