From b2ce4483a5af444a2b154ea9d8a7c875a42535af Mon Sep 17 00:00:00 2001 From: Mike Meessen Date: Tue, 30 Apr 2013 12:57:02 +0200 Subject: [PATCH] Fixed phpdoc, typo and indentation issues. --- .../ChannelLevelActivationStrategy.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Monolog/Handler/FingersCrossed/ChannelLevelActivationStrategy.php b/src/Monolog/Handler/FingersCrossed/ChannelLevelActivationStrategy.php index 7c38cebb..3b9d1616 100644 --- a/src/Monolog/Handler/FingersCrossed/ChannelLevelActivationStrategy.php +++ b/src/Monolog/Handler/FingersCrossed/ChannelLevelActivationStrategy.php @@ -25,7 +25,7 @@ class ChannelLevelActivationStrategy implements ActivationStrategyInterface /** * @param int $defaultActionLevel The default action level to be used if the record's category doesn't match any - * @param array $categoryToActionLevel An array that maaps category names to action levels. + * @param array $categoryToActionLevel An array that maps channel names to action levels. */ public function __construct($defaultActionLevel, $channelToActionLevel = array()) { @@ -35,10 +35,10 @@ class ChannelLevelActivationStrategy implements ActivationStrategyInterface public function isHandlerActivated(array $record) { - if (isset($this->channelToActionLevel[$record['channel']])) { - return $record['level'] >= $this->channelToActionLevel[$record['channel']]; - } else { - return $record['level'] >= $this->defaultActionLevel; - } + if (isset($this->channelToActionLevel[$record['channel']])) { + return $record['level'] >= $this->channelToActionLevel[$record['channel']]; + } else { + return $record['level'] >= $this->defaultActionLevel; + } } }