]> git.mxchange.org Git - friendica.git/commitdiff
Make PHP-CS happy
authorPhilipp <admin@philipp.info>
Sun, 2 Jul 2023 22:08:58 +0000 (00:08 +0200)
committerPhilipp <admin@philipp.info>
Sun, 16 Jul 2023 16:43:35 +0000 (18:43 +0200)
src/Core/Hooks/Capabilities/ICanCreateInstances.php
src/Core/Hooks/Model/DiceInstanceManager.php
src/Core/Logger/Capabilities/LogChannel.php
src/Core/Logger/Factory/SyslogLogger.php

index 6e5d8beb46e89010ee05eb925d9ac4d474d9f39c..9714304746d6e88ef01da3d9b3c71d92388669af 100644 (file)
@@ -21,8 +21,6 @@
 
 namespace Friendica\Core\Hooks\Capabilities;
 
-use Friendica\Core\Hooks\Exceptions\HookInstanceException;
-
 /**
  * creates special instance and decorator treatments for given classes
  */
index 381e0a7fe5c2b15373538e5677fa1382c42c5847..efbee444aac5344493f367333ef18e3092907fc1 100644 (file)
@@ -35,7 +35,7 @@ use Friendica\Core\Hooks\Util\HookFileManager;
  */
 class DiceInstanceManager implements ICanCreateInstances, ICanRegisterInstances
 {
-       protected $instance = [];
+       protected $instance  = [];
        protected $decorator = [];
 
        /** @var Dice */
index 5fceae42a04144c8f279c0636237d45368087c72..31915168b9a75c73b52847b552aeefe9b8e9e496 100644 (file)
@@ -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 */
index bccf4daf53db2b9a6e93270b1b9c1be06f45042e..385625862652fd88083e01ea177536025980918b 100644 (file)
@@ -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'));