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

@@ -174,7 +174,7 @@ class ChromePHPHandler extends AbstractProcessingHandler
/**
* Verifies if the headers are accepted by the current user agent
*
* @return Boolean
* @return bool
*/
protected function headersAccepted()
{

View File

@@ -180,6 +180,6 @@ class PushoverHandler extends SocketHandler
*/
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)
{
$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 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 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)
{

View File

@@ -349,7 +349,7 @@ class Logger implements LoggerInterface
*
* @param string $message The log message
* @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())
{
@@ -361,7 +361,7 @@ class Logger implements LoggerInterface
*
* @param string $message The log message
* @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())
{
@@ -373,7 +373,7 @@ class Logger implements LoggerInterface
*
* @param string $message The log message
* @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())
{
@@ -385,7 +385,7 @@ class Logger implements LoggerInterface
*
* @param string $message The log message
* @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())
{
@@ -397,7 +397,7 @@ class Logger implements LoggerInterface
*
* @param string $message The log message
* @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())
{
@@ -409,7 +409,7 @@ class Logger implements LoggerInterface
*
* @param string $message The log message
* @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())
{
@@ -421,7 +421,7 @@ class Logger implements LoggerInterface
*
* @param string $message The log message
* @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())
{
@@ -433,7 +433,7 @@ class Logger implements LoggerInterface
*
* @param string $message The log message
* @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())
{
@@ -509,7 +509,7 @@ class Logger implements LoggerInterface
* @param mixed $level The log level
* @param string $message The log message
* @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())
{
@@ -525,7 +525,7 @@ class Logger implements LoggerInterface
*
* @param string $message The log message
* @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())
{
@@ -539,7 +539,7 @@ class Logger implements LoggerInterface
*
* @param string $message The log message
* @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())
{
@@ -553,7 +553,7 @@ class Logger implements LoggerInterface
*
* @param string $message The log message
* @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())
{
@@ -567,7 +567,7 @@ class Logger implements LoggerInterface
*
* @param string $message The log message
* @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())
{
@@ -581,7 +581,7 @@ class Logger implements LoggerInterface
*
* @param string $message The log message
* @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())
{
@@ -595,7 +595,7 @@ class Logger implements LoggerInterface
*
* @param string $message The log message
* @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())
{
@@ -609,7 +609,7 @@ class Logger implements LoggerInterface
*
* @param string $message The log message
* @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())
{
@@ -623,7 +623,7 @@ class Logger implements LoggerInterface
*
* @param string $message The log message
* @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())
{
@@ -637,7 +637,7 @@ class Logger implements LoggerInterface
*
* @param string $message The log message
* @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())
{
@@ -651,7 +651,7 @@ class Logger implements LoggerInterface
*
* @param string $message The log message
* @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())
{
@@ -665,7 +665,7 @@ class Logger implements LoggerInterface
*
* @param string $message The log message
* @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())
{
@@ -679,7 +679,7 @@ class Logger implements LoggerInterface
*
* @param string $message The log message
* @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())
{

View File

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