1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-20 11:51:32 +02:00

More boolean=>bool

This commit is contained in:
Jordi Boggiano
2018-06-07 18:45:07 +02:00
parent 5f85e657f8
commit 8c4539f1fe
6 changed files with 70 additions and 70 deletions

View File

@@ -32,7 +32,7 @@ class ChromePHPHandler extends AbstractProcessingHandler
* Header name * Header name
*/ */
const HEADER_NAME = 'X-ChromeLogger-Data'; const HEADER_NAME = 'X-ChromeLogger-Data';
/** /**
* Regular expression to detect supported browsers (matches any Chrome, or Firefox 43+) * Regular expression to detect supported browsers (matches any Chrome, or Firefox 43+)
*/ */
@@ -174,7 +174,7 @@ class ChromePHPHandler extends AbstractProcessingHandler
/** /**
* Verifies if the headers are accepted by the current user agent * Verifies if the headers are accepted by the current user agent
* *
* @return Boolean * @return bool
*/ */
protected function headersAccepted() protected function headersAccepted()
{ {

View File

@@ -180,6 +180,6 @@ class PushoverHandler extends SocketHandler
*/ */
public function useFormattedMessage($value) public function useFormattedMessage($value)
{ {
$this->useFormattedMessage = (boolean) $value; $this->useFormattedMessage = (bool) $value;
} }
} }

View File

@@ -87,7 +87,7 @@ class SocketHandler extends AbstractProcessingHandler
*/ */
public function setPersistent($persistent) public function setPersistent($persistent)
{ {
$this->persistent = (boolean) $persistent; $this->persistent = (bool) $persistent;
} }
/** /**

View File

@@ -29,7 +29,7 @@ class SwiftMailerHandler extends MailHandler
* @param \Swift_Mailer $mailer The mailer to use * @param \Swift_Mailer $mailer The mailer to use
* @param callable|\Swift_Message $message An example message for real messages, only the body will be replaced * @param callable|\Swift_Message $message An example message for real messages, only the body will be replaced
* @param int $level The minimum logging level at which this handler will be triggered * @param int $level The minimum logging level at which this handler will be triggered
* @param Boolean $bubble Whether the messages that are handled can bubble up the stack or not * @param bool $bubble Whether the messages that are handled can bubble up the stack or not
*/ */
public function __construct(\Swift_Mailer $mailer, $message, $level = Logger::ERROR, $bubble = true) public function __construct(\Swift_Mailer $mailer, $message, $level = Logger::ERROR, $bubble = true)
{ {

View File

@@ -347,9 +347,9 @@ class Logger implements LoggerInterface
/** /**
* Adds a log record at the DEBUG level. * Adds a log record at the DEBUG level.
* *
* @param string $message The log message * @param string $message The log message
* @param array $context The log context * @param array $context The log context
* @return Boolean Whether the record has been processed * @return bool Whether the record has been processed
*/ */
public function addDebug($message, array $context = array()) public function addDebug($message, array $context = array())
{ {
@@ -359,9 +359,9 @@ class Logger implements LoggerInterface
/** /**
* Adds a log record at the INFO level. * Adds a log record at the INFO level.
* *
* @param string $message The log message * @param string $message The log message
* @param array $context The log context * @param array $context The log context
* @return Boolean Whether the record has been processed * @return bool Whether the record has been processed
*/ */
public function addInfo($message, array $context = array()) public function addInfo($message, array $context = array())
{ {
@@ -371,9 +371,9 @@ class Logger implements LoggerInterface
/** /**
* Adds a log record at the NOTICE level. * Adds a log record at the NOTICE level.
* *
* @param string $message The log message * @param string $message The log message
* @param array $context The log context * @param array $context The log context
* @return Boolean Whether the record has been processed * @return bool Whether the record has been processed
*/ */
public function addNotice($message, array $context = array()) public function addNotice($message, array $context = array())
{ {
@@ -383,9 +383,9 @@ class Logger implements LoggerInterface
/** /**
* Adds a log record at the WARNING level. * Adds a log record at the WARNING level.
* *
* @param string $message The log message * @param string $message The log message
* @param array $context The log context * @param array $context The log context
* @return Boolean Whether the record has been processed * @return bool Whether the record has been processed
*/ */
public function addWarning($message, array $context = array()) public function addWarning($message, array $context = array())
{ {
@@ -395,9 +395,9 @@ class Logger implements LoggerInterface
/** /**
* Adds a log record at the ERROR level. * Adds a log record at the ERROR level.
* *
* @param string $message The log message * @param string $message The log message
* @param array $context The log context * @param array $context The log context
* @return Boolean Whether the record has been processed * @return bool Whether the record has been processed
*/ */
public function addError($message, array $context = array()) public function addError($message, array $context = array())
{ {
@@ -407,9 +407,9 @@ class Logger implements LoggerInterface
/** /**
* Adds a log record at the CRITICAL level. * Adds a log record at the CRITICAL level.
* *
* @param string $message The log message * @param string $message The log message
* @param array $context The log context * @param array $context The log context
* @return Boolean Whether the record has been processed * @return bool Whether the record has been processed
*/ */
public function addCritical($message, array $context = array()) public function addCritical($message, array $context = array())
{ {
@@ -419,9 +419,9 @@ class Logger implements LoggerInterface
/** /**
* Adds a log record at the ALERT level. * Adds a log record at the ALERT level.
* *
* @param string $message The log message * @param string $message The log message
* @param array $context The log context * @param array $context The log context
* @return Boolean Whether the record has been processed * @return bool Whether the record has been processed
*/ */
public function addAlert($message, array $context = array()) public function addAlert($message, array $context = array())
{ {
@@ -431,9 +431,9 @@ class Logger implements LoggerInterface
/** /**
* Adds a log record at the EMERGENCY level. * Adds a log record at the EMERGENCY level.
* *
* @param string $message The log message * @param string $message The log message
* @param array $context The log context * @param array $context The log context
* @return Boolean Whether the record has been processed * @return bool Whether the record has been processed
*/ */
public function addEmergency($message, array $context = array()) public function addEmergency($message, array $context = array())
{ {
@@ -507,9 +507,9 @@ class Logger implements LoggerInterface
* This method allows for compatibility with common interfaces. * This method allows for compatibility with common interfaces.
* *
* @param mixed $level The log level * @param mixed $level The log level
* @param string $message The log message * @param string $message The log message
* @param array $context The log context * @param array $context The log context
* @return Boolean Whether the record has been processed * @return bool Whether the record has been processed
*/ */
public function log($level, $message, array $context = array()) public function log($level, $message, array $context = array())
{ {
@@ -523,9 +523,9 @@ class Logger implements LoggerInterface
* *
* This method allows for compatibility with common interfaces. * This method allows for compatibility with common interfaces.
* *
* @param string $message The log message * @param string $message The log message
* @param array $context The log context * @param array $context The log context
* @return Boolean Whether the record has been processed * @return bool Whether the record has been processed
*/ */
public function debug($message, array $context = array()) public function debug($message, array $context = array())
{ {
@@ -537,9 +537,9 @@ class Logger implements LoggerInterface
* *
* This method allows for compatibility with common interfaces. * This method allows for compatibility with common interfaces.
* *
* @param string $message The log message * @param string $message The log message
* @param array $context The log context * @param array $context The log context
* @return Boolean Whether the record has been processed * @return bool Whether the record has been processed
*/ */
public function info($message, array $context = array()) public function info($message, array $context = array())
{ {
@@ -551,9 +551,9 @@ class Logger implements LoggerInterface
* *
* This method allows for compatibility with common interfaces. * This method allows for compatibility with common interfaces.
* *
* @param string $message The log message * @param string $message The log message
* @param array $context The log context * @param array $context The log context
* @return Boolean Whether the record has been processed * @return bool Whether the record has been processed
*/ */
public function notice($message, array $context = array()) public function notice($message, array $context = array())
{ {
@@ -565,9 +565,9 @@ class Logger implements LoggerInterface
* *
* This method allows for compatibility with common interfaces. * This method allows for compatibility with common interfaces.
* *
* @param string $message The log message * @param string $message The log message
* @param array $context The log context * @param array $context The log context
* @return Boolean Whether the record has been processed * @return bool Whether the record has been processed
*/ */
public function warn($message, array $context = array()) public function warn($message, array $context = array())
{ {
@@ -579,9 +579,9 @@ class Logger implements LoggerInterface
* *
* This method allows for compatibility with common interfaces. * This method allows for compatibility with common interfaces.
* *
* @param string $message The log message * @param string $message The log message
* @param array $context The log context * @param array $context The log context
* @return Boolean Whether the record has been processed * @return bool Whether the record has been processed
*/ */
public function warning($message, array $context = array()) public function warning($message, array $context = array())
{ {
@@ -593,9 +593,9 @@ class Logger implements LoggerInterface
* *
* This method allows for compatibility with common interfaces. * This method allows for compatibility with common interfaces.
* *
* @param string $message The log message * @param string $message The log message
* @param array $context The log context * @param array $context The log context
* @return Boolean Whether the record has been processed * @return bool Whether the record has been processed
*/ */
public function err($message, array $context = array()) public function err($message, array $context = array())
{ {
@@ -607,9 +607,9 @@ class Logger implements LoggerInterface
* *
* This method allows for compatibility with common interfaces. * This method allows for compatibility with common interfaces.
* *
* @param string $message The log message * @param string $message The log message
* @param array $context The log context * @param array $context The log context
* @return Boolean Whether the record has been processed * @return bool Whether the record has been processed
*/ */
public function error($message, array $context = array()) public function error($message, array $context = array())
{ {
@@ -621,9 +621,9 @@ class Logger implements LoggerInterface
* *
* This method allows for compatibility with common interfaces. * This method allows for compatibility with common interfaces.
* *
* @param string $message The log message * @param string $message The log message
* @param array $context The log context * @param array $context The log context
* @return Boolean Whether the record has been processed * @return bool Whether the record has been processed
*/ */
public function crit($message, array $context = array()) public function crit($message, array $context = array())
{ {
@@ -635,9 +635,9 @@ class Logger implements LoggerInterface
* *
* This method allows for compatibility with common interfaces. * This method allows for compatibility with common interfaces.
* *
* @param string $message The log message * @param string $message The log message
* @param array $context The log context * @param array $context The log context
* @return Boolean Whether the record has been processed * @return bool Whether the record has been processed
*/ */
public function critical($message, array $context = array()) public function critical($message, array $context = array())
{ {
@@ -649,9 +649,9 @@ class Logger implements LoggerInterface
* *
* This method allows for compatibility with common interfaces. * This method allows for compatibility with common interfaces.
* *
* @param string $message The log message * @param string $message The log message
* @param array $context The log context * @param array $context The log context
* @return Boolean Whether the record has been processed * @return bool Whether the record has been processed
*/ */
public function alert($message, array $context = array()) public function alert($message, array $context = array())
{ {
@@ -663,9 +663,9 @@ class Logger implements LoggerInterface
* *
* This method allows for compatibility with common interfaces. * This method allows for compatibility with common interfaces.
* *
* @param string $message The log message * @param string $message The log message
* @param array $context The log context * @param array $context The log context
* @return Boolean Whether the record has been processed * @return bool Whether the record has been processed
*/ */
public function emerg($message, array $context = array()) public function emerg($message, array $context = array())
{ {
@@ -677,9 +677,9 @@ class Logger implements LoggerInterface
* *
* This method allows for compatibility with common interfaces. * This method allows for compatibility with common interfaces.
* *
* @param string $message The log message * @param string $message The log message
* @param array $context The log context * @param array $context The log context
* @return Boolean Whether the record has been processed * @return bool Whether the record has been processed
*/ */
public function emergency($message, array $context = array()) public function emergency($message, array $context = array())
{ {

View File

@@ -34,8 +34,8 @@ abstract class MemoryProcessor
*/ */
public function __construct($realUsage = true, $useFormatting = true) public function __construct($realUsage = true, $useFormatting = true)
{ {
$this->realUsage = (boolean) $realUsage; $this->realUsage = (bool) $realUsage;
$this->useFormatting = (boolean) $useFormatting; $this->useFormatting = (bool) $useFormatting;
} }
/** /**