From f5c361cf44739058b79f322576a1bad2d8c142d9 Mon Sep 17 00:00:00 2001 From: Côme Chilliet Date: Fri, 20 Jan 2023 11:45:08 +0100 Subject: composer run cs:fix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Côme Chilliet --- lib/private/Log/Errorlog.php | 1 - lib/private/Log/LogDetails.php | 1 - lib/private/Log/LogFactory.php | 2 +- lib/private/Log/PsrLoggerAdapter.php | 1 - lib/private/Log/Systemdlog.php | 4 ++-- 5 files changed, 3 insertions(+), 6 deletions(-) (limited to 'lib/private/Log') diff --git a/lib/private/Log/Errorlog.php b/lib/private/Log/Errorlog.php index 5c00528210a..72d11aa098c 100644 --- a/lib/private/Log/Errorlog.php +++ b/lib/private/Log/Errorlog.php @@ -32,7 +32,6 @@ use OC\SystemConfig; use OCP\Log\IWriter; class Errorlog extends LogDetails implements IWriter { - /** @var string */ protected $tag; diff --git a/lib/private/Log/LogDetails.php b/lib/private/Log/LogDetails.php index b3544572708..c82904d7cea 100644 --- a/lib/private/Log/LogDetails.php +++ b/lib/private/Log/LogDetails.php @@ -28,7 +28,6 @@ namespace OC\Log; use OC\SystemConfig; abstract class LogDetails { - /** @var SystemConfig */ private $config; diff --git a/lib/private/Log/LogFactory.php b/lib/private/Log/LogFactory.php index 2fdadc3bdb2..a5008f5ef77 100644 --- a/lib/private/Log/LogFactory.php +++ b/lib/private/Log/LogFactory.php @@ -57,7 +57,7 @@ class LogFactory implements ILogFactory { case 'file': return $this->buildLogFile(); - // Backwards compatibility for old and fallback for unknown log types + // Backwards compatibility for old and fallback for unknown log types case 'owncloud': case 'nextcloud': default: diff --git a/lib/private/Log/PsrLoggerAdapter.php b/lib/private/Log/PsrLoggerAdapter.php index 1cf81c49a69..80c4c187b13 100644 --- a/lib/private/Log/PsrLoggerAdapter.php +++ b/lib/private/Log/PsrLoggerAdapter.php @@ -35,7 +35,6 @@ use function array_key_exists; use function array_merge; final class PsrLoggerAdapter implements LoggerInterface, IDataLogger { - /** @var Log */ private $logger; diff --git a/lib/private/Log/Systemdlog.php b/lib/private/Log/Systemdlog.php index 20a60623713..8619cb5e4dd 100644 --- a/lib/private/Log/Systemdlog.php +++ b/lib/private/Log/Systemdlog.php @@ -78,7 +78,7 @@ class Systemdlog extends LogDetails implements IWriter { public function write(string $app, $message, int $level) { $journal_level = $this->levels[$level]; sd_journal_send('PRIORITY='.$journal_level, - 'SYSLOG_IDENTIFIER='.$this->syslogId, - 'MESSAGE=' . $this->logDetailsAsJSON($app, $message, $level)); + 'SYSLOG_IDENTIFIER='.$this->syslogId, + 'MESSAGE=' . $this->logDetailsAsJSON($app, $message, $level)); } } -- cgit v1.2.3