diff --git a/src/Model/Logger.php b/src/Model/Logger.php index c9689df..6f03029 100755 --- a/src/Model/Logger.php +++ b/src/Model/Logger.php @@ -81,13 +81,13 @@ public function __construct( * @param array $context The log context * @return Boolean Whether the record has been processed */ - public function debug($message, array $context = []) + public function debug($message, array $context = []) : void { if (!$this->scopeConfig->getValue('shqlogmenu/shqlogger/active')) { - return false; + return; } - return $this->logMessage($message, $context, self::SEVERITY_NOTICE); + $this->logMessage($message, $context, self::SEVERITY_NOTICE); } /** @@ -99,13 +99,13 @@ public function debug($message, array $context = []) * @param array $context The log context * @return Boolean Whether the record has been processed */ - public function info($message, array $context = []) + public function info($message, array $context = []) : void { if (!$this->scopeConfig->getValue('shqlogmenu/shqlogger/active')) { - return false; + return; } - return $this->logMessage($message, $context, self::SEVERITY_MINOR); + $this->logMessage($message, $context, self::SEVERITY_MINOR); } /** @@ -117,13 +117,13 @@ public function info($message, array $context = []) * @param array $context The log context * @return Boolean Whether the record has been processed */ - public function warning($message, array $context = []) + public function warning($message, array $context = []) : void { if (!$this->scopeConfig->getValue('shqlogmenu/shqlogger/active')) { - return false; + return; } - return $this->logMessage($message, $context, self::SEVERITY_MAJOR); + $this->logMessage($message, $context, self::SEVERITY_MAJOR); } /** @@ -135,12 +135,12 @@ public function warning($message, array $context = []) * @param array $context The log context * @return Boolean Whether the record has been processed */ - public function critical($message, array $context = []) + public function critical($message, array $context = []) : void { if (!$this->scopeConfig->getValue('shqlogmenu/shqlogger/active')) { - return false; + return; } - return $this->logMessage($message, $context, self::SEVERITY_CRITICAL); + $this->logMessage($message, $context, self::SEVERITY_CRITICAL); }