From: Philipp Date: Sun, 2 Jul 2023 22:08:58 +0000 (+0200) Subject: Make PHP-CS happy X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=82f3e4ad869b35068ac17fe8e24c6c02e41689d7;p=friendica.git Make PHP-CS happy --- diff --git a/src/Core/Hooks/Capabilities/ICanCreateInstances.php b/src/Core/Hooks/Capabilities/ICanCreateInstances.php index 6e5d8beb46..9714304746 100644 --- a/src/Core/Hooks/Capabilities/ICanCreateInstances.php +++ b/src/Core/Hooks/Capabilities/ICanCreateInstances.php @@ -21,8 +21,6 @@ namespace Friendica\Core\Hooks\Capabilities; -use Friendica\Core\Hooks\Exceptions\HookInstanceException; - /** * creates special instance and decorator treatments for given classes */ diff --git a/src/Core/Hooks/Model/DiceInstanceManager.php b/src/Core/Hooks/Model/DiceInstanceManager.php index 381e0a7fe5..efbee444aa 100644 --- a/src/Core/Hooks/Model/DiceInstanceManager.php +++ b/src/Core/Hooks/Model/DiceInstanceManager.php @@ -35,7 +35,7 @@ use Friendica\Core\Hooks\Util\HookFileManager; */ class DiceInstanceManager implements ICanCreateInstances, ICanRegisterInstances { - protected $instance = []; + protected $instance = []; protected $decorator = []; /** @var Dice */ diff --git a/src/Core/Logger/Capabilities/LogChannel.php b/src/Core/Logger/Capabilities/LogChannel.php index 5fceae42a0..31915168b9 100644 --- a/src/Core/Logger/Capabilities/LogChannel.php +++ b/src/Core/Logger/Capabilities/LogChannel.php @@ -29,7 +29,7 @@ interface LogChannel /** @var string channel for the auth_ejabbered script */ public const AUTH_JABBERED = 'auth_ejabberd'; /** @var string Default channel in case it isn't set explicit */ - public const DEFAULT = self::APP; + public const DEFAULT = self::APP; /** @var string channel for console execution */ public const CONSOLE = 'console'; /** @var string channel for developer focused logging */ diff --git a/src/Core/Logger/Factory/SyslogLogger.php b/src/Core/Logger/Factory/SyslogLogger.php index bccf4daf53..3856258626 100644 --- a/src/Core/Logger/Factory/SyslogLogger.php +++ b/src/Core/Logger/Factory/SyslogLogger.php @@ -37,7 +37,7 @@ class SyslogLogger extends AbstractLoggerTypeFactory /** * Creates a new PSR-3 compliant syslog logger instance * - * @param IManageConfigValues $config The system configuration + * @param IManageConfigValues $config The system configuration * * @return LoggerInterface The PSR-3 compliant logger instance * @@ -45,7 +45,7 @@ class SyslogLogger extends AbstractLoggerTypeFactory */ public function create(IManageConfigValues $config): LoggerInterface { - $logOpts = $config->get('system', 'syslog_flags') ?? SyslogLoggerClass::DEFAULT_FLAGS; + $logOpts = $config->get('system', 'syslog_flags') ?? SyslogLoggerClass::DEFAULT_FLAGS; $logFacility = $config->get('system', 'syslog_facility') ?? SyslogLoggerClass::DEFAULT_FACILITY; $loglevel = SyslogLogger::mapLegacyConfigDebugLevel($config->get('system', 'loglevel'));