mirror of
https://github.com/friendica/friendica
synced 2025-04-29 15:04:22 +02:00
Make PHP-CS super-happy :)
This commit is contained in:
parent
3e5872d0b1
commit
f2ce5647f2
6 changed files with 44 additions and 41 deletions
|
@ -23,15 +23,12 @@ use Friendica\Core\Hook;
|
||||||
use Friendica\Core\Renderer;
|
use Friendica\Core\Renderer;
|
||||||
use Friendica\Core\Session\Capability\IHandleUserSessions;
|
use Friendica\Core\Session\Capability\IHandleUserSessions;
|
||||||
use Friendica\Core\Worker\Repository\Process as ProcessRepository;
|
use Friendica\Core\Worker\Repository\Process as ProcessRepository;
|
||||||
use Friendica\Database\DBA;
|
|
||||||
use Friendica\Database\Definition\DbaDefinition;
|
use Friendica\Database\Definition\DbaDefinition;
|
||||||
use Friendica\Database\Definition\ViewDefinition;
|
use Friendica\Database\Definition\ViewDefinition;
|
||||||
use Friendica\Module\Maintenance;
|
use Friendica\Module\Maintenance;
|
||||||
use Friendica\Protocol\ATProtocol\Jetstream;
|
|
||||||
use Friendica\Security\Authentication;
|
use Friendica\Security\Authentication;
|
||||||
use Friendica\Core\Config\Capability\IManageConfigValues;
|
use Friendica\Core\Config\Capability\IManageConfigValues;
|
||||||
use Friendica\Core\L10n;
|
use Friendica\Core\L10n;
|
||||||
use Friendica\Core\Logger;
|
|
||||||
use Friendica\Core\Logger\Capability\LogChannel;
|
use Friendica\Core\Logger\Capability\LogChannel;
|
||||||
use Friendica\Core\PConfig\Capability\IManagePersonalConfigValues;
|
use Friendica\Core\PConfig\Capability\IManagePersonalConfigValues;
|
||||||
use Friendica\Core\System;
|
use Friendica\Core\System;
|
||||||
|
|
|
@ -99,7 +99,8 @@ HELP;
|
||||||
$this->config->reload();
|
$this->config->reload();
|
||||||
|
|
||||||
if (empty($this->config->get('system', 'pidfile'))) {
|
if (empty($this->config->get('system', 'pidfile'))) {
|
||||||
throw new RuntimeException(<<< TXT
|
throw new RuntimeException(
|
||||||
|
<<< TXT
|
||||||
Please set system.pidfile in config/local.config.php. For example:
|
Please set system.pidfile in config/local.config.php. For example:
|
||||||
|
|
||||||
'system' => [
|
'system' => [
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
// Copyright (C) 2010-2024, the Friendica project
|
// Copyright (C) 2010-2025, the Friendica project
|
||||||
// SPDX-FileCopyrightText: 2010-2024 the Friendica project
|
// SPDX-FileCopyrightText: 2010-2024 the Friendica project
|
||||||
//
|
//
|
||||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||||
|
|
|
@ -1,5 +1,10 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
// Copyright (C) 2010-2025, the Friendica project
|
||||||
|
// SPDX-FileCopyrightText: 2010-2024 the Friendica project
|
||||||
|
//
|
||||||
|
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||||
|
|
||||||
namespace Friendica\System;
|
namespace Friendica\System;
|
||||||
|
|
||||||
use Friendica\Database\Database;
|
use Friendica\Database\Database;
|
||||||
|
@ -91,7 +96,7 @@ final class Daemon
|
||||||
if ($this->pid < 0) {
|
if ($this->pid < 0) {
|
||||||
$this->logger->warning('Could not fork daemon');
|
$this->logger->warning('Could not fork daemon');
|
||||||
return false;
|
return false;
|
||||||
} elseif ($this->pid) {
|
} else if ($this->pid) {
|
||||||
// The parent process continues here
|
// The parent process continues here
|
||||||
if (!file_put_contents($this->pidfile, $this->pid)) {
|
if (!file_put_contents($this->pidfile, $this->pid)) {
|
||||||
$this->logger->warning('Could not store pid file', ['pid' => $this->pid, 'pidfile' => $this->pidfile]);
|
$this->logger->warning('Could not store pid file', ['pid' => $this->pid, 'pidfile' => $this->pidfile]);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue