Skip to content

Commit 8c4539f

Browse files
committed
More boolean=>bool
1 parent 5f85e65 commit 8c4539f

File tree

6 files changed

+70
-70
lines changed

6 files changed

+70
-70
lines changed

src/Monolog/Handler/ChromePHPHandler.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class ChromePHPHandler extends AbstractProcessingHandler
3232
* Header name
3333
*/
3434
const HEADER_NAME = 'X-ChromeLogger-Data';
35-
35+
3636
/**
3737
* Regular expression to detect supported browsers (matches any Chrome, or Firefox 43+)
3838
*/
@@ -174,7 +174,7 @@ protected function sendHeader($header, $content)
174174
/**
175175
* Verifies if the headers are accepted by the current user agent
176176
*
177-
* @return Boolean
177+
* @return bool
178178
*/
179179
protected function headersAccepted()
180180
{

src/Monolog/Handler/PushoverHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,6 @@ public function setEmergencyLevel($value)
180180
*/
181181
public function useFormattedMessage($value)
182182
{
183-
$this->useFormattedMessage = (boolean) $value;
183+
$this->useFormattedMessage = (bool) $value;
184184
}
185185
}

src/Monolog/Handler/SocketHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public function closeSocket()
8787
*/
8888
public function setPersistent($persistent)
8989
{
90-
$this->persistent = (boolean) $persistent;
90+
$this->persistent = (bool) $persistent;
9191
}
9292

9393
/**

src/Monolog/Handler/SwiftMailerHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class SwiftMailerHandler extends MailHandler
2929
* @param \Swift_Mailer $mailer The mailer to use
3030
* @param callable|\Swift_Message $message An example message for real messages, only the body will be replaced
3131
* @param int $level The minimum logging level at which this handler will be triggered
32-
* @param Boolean $bubble Whether the messages that are handled can bubble up the stack or not
32+
* @param bool $bubble Whether the messages that are handled can bubble up the stack or not
3333
*/
3434
public function __construct(\Swift_Mailer $mailer, $message, $level = Logger::ERROR, $bubble = true)
3535
{

src/Monolog/Logger.php

Lines changed: 63 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -347,9 +347,9 @@ public function addRecord($level, $message, array $context = array())
347347
/**
348348
* Adds a log record at the DEBUG level.
349349
*
350-
* @param string $message The log message
351-
* @param array $context The log context
352-
* @return Boolean Whether the record has been processed
350+
* @param string $message The log message
351+
* @param array $context The log context
352+
* @return bool Whether the record has been processed
353353
*/
354354
public function addDebug($message, array $context = array())
355355
{
@@ -359,9 +359,9 @@ public function addDebug($message, array $context = array())
359359
/**
360360
* Adds a log record at the INFO level.
361361
*
362-
* @param string $message The log message
363-
* @param array $context The log context
364-
* @return Boolean Whether the record has been processed
362+
* @param string $message The log message
363+
* @param array $context The log context
364+
* @return bool Whether the record has been processed
365365
*/
366366
public function addInfo($message, array $context = array())
367367
{
@@ -371,9 +371,9 @@ public function addInfo($message, array $context = array())
371371
/**
372372
* Adds a log record at the NOTICE level.
373373
*
374-
* @param string $message The log message
375-
* @param array $context The log context
376-
* @return Boolean Whether the record has been processed
374+
* @param string $message The log message
375+
* @param array $context The log context
376+
* @return bool Whether the record has been processed
377377
*/
378378
public function addNotice($message, array $context = array())
379379
{
@@ -383,9 +383,9 @@ public function addNotice($message, array $context = array())
383383
/**
384384
* Adds a log record at the WARNING level.
385385
*
386-
* @param string $message The log message
387-
* @param array $context The log context
388-
* @return Boolean Whether the record has been processed
386+
* @param string $message The log message
387+
* @param array $context The log context
388+
* @return bool Whether the record has been processed
389389
*/
390390
public function addWarning($message, array $context = array())
391391
{
@@ -395,9 +395,9 @@ public function addWarning($message, array $context = array())
395395
/**
396396
* Adds a log record at the ERROR level.
397397
*
398-
* @param string $message The log message
399-
* @param array $context The log context
400-
* @return Boolean Whether the record has been processed
398+
* @param string $message The log message
399+
* @param array $context The log context
400+
* @return bool Whether the record has been processed
401401
*/
402402
public function addError($message, array $context = array())
403403
{
@@ -407,9 +407,9 @@ public function addError($message, array $context = array())
407407
/**
408408
* Adds a log record at the CRITICAL level.
409409
*
410-
* @param string $message The log message
411-
* @param array $context The log context
412-
* @return Boolean Whether the record has been processed
410+
* @param string $message The log message
411+
* @param array $context The log context
412+
* @return bool Whether the record has been processed
413413
*/
414414
public function addCritical($message, array $context = array())
415415
{
@@ -419,9 +419,9 @@ public function addCritical($message, array $context = array())
419419
/**
420420
* Adds a log record at the ALERT level.
421421
*
422-
* @param string $message The log message
423-
* @param array $context The log context
424-
* @return Boolean Whether the record has been processed
422+
* @param string $message The log message
423+
* @param array $context The log context
424+
* @return bool Whether the record has been processed
425425
*/
426426
public function addAlert($message, array $context = array())
427427
{
@@ -431,9 +431,9 @@ public function addAlert($message, array $context = array())
431431
/**
432432
* Adds a log record at the EMERGENCY level.
433433
*
434-
* @param string $message The log message
435-
* @param array $context The log context
436-
* @return Boolean Whether the record has been processed
434+
* @param string $message The log message
435+
* @param array $context The log context
436+
* @return bool Whether the record has been processed
437437
*/
438438
public function addEmergency($message, array $context = array())
439439
{
@@ -507,9 +507,9 @@ public function isHandling($level)
507507
* This method allows for compatibility with common interfaces.
508508
*
509509
* @param mixed $level The log level
510-
* @param string $message The log message
511-
* @param array $context The log context
512-
* @return Boolean Whether the record has been processed
510+
* @param string $message The log message
511+
* @param array $context The log context
512+
* @return bool Whether the record has been processed
513513
*/
514514
public function log($level, $message, array $context = array())
515515
{
@@ -523,9 +523,9 @@ public function log($level, $message, array $context = array())
523523
*
524524
* This method allows for compatibility with common interfaces.
525525
*
526-
* @param string $message The log message
527-
* @param array $context The log context
528-
* @return Boolean Whether the record has been processed
526+
* @param string $message The log message
527+
* @param array $context The log context
528+
* @return bool Whether the record has been processed
529529
*/
530530
public function debug($message, array $context = array())
531531
{
@@ -537,9 +537,9 @@ public function debug($message, array $context = array())
537537
*
538538
* This method allows for compatibility with common interfaces.
539539
*
540-
* @param string $message The log message
541-
* @param array $context The log context
542-
* @return Boolean Whether the record has been processed
540+
* @param string $message The log message
541+
* @param array $context The log context
542+
* @return bool Whether the record has been processed
543543
*/
544544
public function info($message, array $context = array())
545545
{
@@ -551,9 +551,9 @@ public function info($message, array $context = array())
551551
*
552552
* This method allows for compatibility with common interfaces.
553553
*
554-
* @param string $message The log message
555-
* @param array $context The log context
556-
* @return Boolean Whether the record has been processed
554+
* @param string $message The log message
555+
* @param array $context The log context
556+
* @return bool Whether the record has been processed
557557
*/
558558
public function notice($message, array $context = array())
559559
{
@@ -565,9 +565,9 @@ public function notice($message, array $context = array())
565565
*
566566
* This method allows for compatibility with common interfaces.
567567
*
568-
* @param string $message The log message
569-
* @param array $context The log context
570-
* @return Boolean Whether the record has been processed
568+
* @param string $message The log message
569+
* @param array $context The log context
570+
* @return bool Whether the record has been processed
571571
*/
572572
public function warn($message, array $context = array())
573573
{
@@ -579,9 +579,9 @@ public function warn($message, array $context = array())
579579
*
580580
* This method allows for compatibility with common interfaces.
581581
*
582-
* @param string $message The log message
583-
* @param array $context The log context
584-
* @return Boolean Whether the record has been processed
582+
* @param string $message The log message
583+
* @param array $context The log context
584+
* @return bool Whether the record has been processed
585585
*/
586586
public function warning($message, array $context = array())
587587
{
@@ -593,9 +593,9 @@ public function warning($message, array $context = array())
593593
*
594594
* This method allows for compatibility with common interfaces.
595595
*
596-
* @param string $message The log message
597-
* @param array $context The log context
598-
* @return Boolean Whether the record has been processed
596+
* @param string $message The log message
597+
* @param array $context The log context
598+
* @return bool Whether the record has been processed
599599
*/
600600
public function err($message, array $context = array())
601601
{
@@ -607,9 +607,9 @@ public function err($message, array $context = array())
607607
*
608608
* This method allows for compatibility with common interfaces.
609609
*
610-
* @param string $message The log message
611-
* @param array $context The log context
612-
* @return Boolean Whether the record has been processed
610+
* @param string $message The log message
611+
* @param array $context The log context
612+
* @return bool Whether the record has been processed
613613
*/
614614
public function error($message, array $context = array())
615615
{
@@ -621,9 +621,9 @@ public function error($message, array $context = array())
621621
*
622622
* This method allows for compatibility with common interfaces.
623623
*
624-
* @param string $message The log message
625-
* @param array $context The log context
626-
* @return Boolean Whether the record has been processed
624+
* @param string $message The log message
625+
* @param array $context The log context
626+
* @return bool Whether the record has been processed
627627
*/
628628
public function crit($message, array $context = array())
629629
{
@@ -635,9 +635,9 @@ public function crit($message, array $context = array())
635635
*
636636
* This method allows for compatibility with common interfaces.
637637
*
638-
* @param string $message The log message
639-
* @param array $context The log context
640-
* @return Boolean Whether the record has been processed
638+
* @param string $message The log message
639+
* @param array $context The log context
640+
* @return bool Whether the record has been processed
641641
*/
642642
public function critical($message, array $context = array())
643643
{
@@ -649,9 +649,9 @@ public function critical($message, array $context = array())
649649
*
650650
* This method allows for compatibility with common interfaces.
651651
*
652-
* @param string $message The log message
653-
* @param array $context The log context
654-
* @return Boolean Whether the record has been processed
652+
* @param string $message The log message
653+
* @param array $context The log context
654+
* @return bool Whether the record has been processed
655655
*/
656656
public function alert($message, array $context = array())
657657
{
@@ -663,9 +663,9 @@ public function alert($message, array $context = array())
663663
*
664664
* This method allows for compatibility with common interfaces.
665665
*
666-
* @param string $message The log message
667-
* @param array $context The log context
668-
* @return Boolean Whether the record has been processed
666+
* @param string $message The log message
667+
* @param array $context The log context
668+
* @return bool Whether the record has been processed
669669
*/
670670
public function emerg($message, array $context = array())
671671
{
@@ -677,9 +677,9 @@ public function emerg($message, array $context = array())
677677
*
678678
* This method allows for compatibility with common interfaces.
679679
*
680-
* @param string $message The log message
681-
* @param array $context The log context
682-
* @return Boolean Whether the record has been processed
680+
* @param string $message The log message
681+
* @param array $context The log context
682+
* @return bool Whether the record has been processed
683683
*/
684684
public function emergency($message, array $context = array())
685685
{

src/Monolog/Processor/MemoryProcessor.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ abstract class MemoryProcessor
3434
*/
3535
public function __construct($realUsage = true, $useFormatting = true)
3636
{
37-
$this->realUsage = (boolean) $realUsage;
38-
$this->useFormatting = (boolean) $useFormatting;
37+
$this->realUsage = (bool) $realUsage;
38+
$this->useFormatting = (bool) $useFormatting;
3939
}
4040

4141
/**

0 commit comments

Comments
 (0)