Completed
Push — master ( a010d0...acbc61 )
by Florian
04:56
created
lib/Payone/Log4php/LoggerPatternConverterSession.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,5 +29,5 @@
 block discarded – undo
29 29
  * @subpackage pattern
30 30
  */
31 31
 class Payone_Log4php_LoggerPatternConverterSession extends Payone_Log4php_LoggerPatternConverterSuperglobal {
32
-	protected $name = '_SESSION';
32
+    protected $name = '_SESSION';
33 33
 }
Please login to merge, or discard this patch.
lib/Payone/Log4php/LoggerPatternConverterLocation.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -27,11 +27,11 @@
 block discarded – undo
27 27
  */
28 28
 class Payone_Log4php_LoggerPatternConverterLine extends Payone_Log4php_LoggerPatternConverter {
29 29
 
30
-	public function convert(Payone_Log4php_LoggerLoggingEvent $event) {
31
-		return 
32
-			$event->getLocationInformation()->getClassName() . '.' .
33
-			$event->getLocationInformation()->getMethodName() . '(' .
34
-			$event->getLocationInformation()->getFileName() . ':' .
35
-			$event->getLocationInformation()->getLineNumber() . ')';
36
-	}
30
+    public function convert(Payone_Log4php_LoggerLoggingEvent $event) {
31
+        return 
32
+            $event->getLocationInformation()->getClassName() . '.' .
33
+            $event->getLocationInformation()->getMethodName() . '(' .
34
+            $event->getLocationInformation()->getFileName() . ':' .
35
+            $event->getLocationInformation()->getLineNumber() . ')';
36
+    }
37 37
 }
Please login to merge, or discard this patch.
lib/Payone/Log4php/LoggerFilterLevelRange.php 1 patch
Indentation   +62 added lines, -62 removed lines patch added patch discarded remove patch
@@ -64,75 +64,75 @@
 block discarded – undo
64 64
  */
65 65
 class Payone_Log4php_LoggerFilterLevelRange extends Payone_Log4php_LoggerFilter {
66 66
 
67
-	/**
68
-	 * @var boolean
69
-	 */
70
-	protected $acceptOnMatch = true;
67
+    /**
68
+     * @var boolean
69
+     */
70
+    protected $acceptOnMatch = true;
71 71
 
72
-	/**
73
-	 * @var Payone_Log4php_LoggerLevel
74
-	 */
75
-	protected $levelMin;
72
+    /**
73
+     * @var Payone_Log4php_LoggerLevel
74
+     */
75
+    protected $levelMin;
76 76
   
77
-	/**
78
-	 * @var Payone_Log4php_LoggerLevel
79
-	 */
80
-	protected $levelMax;
77
+    /**
78
+     * @var Payone_Log4php_LoggerLevel
79
+     */
80
+    protected $levelMax;
81 81
 
82
-	/**
83
-	 * @param boolean $acceptOnMatch
84
-	 */
85
-	public function setAcceptOnMatch($acceptOnMatch) {
86
-		$this->setBoolean('acceptOnMatch', $acceptOnMatch); 
87
-	}
82
+    /**
83
+     * @param boolean $acceptOnMatch
84
+     */
85
+    public function setAcceptOnMatch($acceptOnMatch) {
86
+        $this->setBoolean('acceptOnMatch', $acceptOnMatch); 
87
+    }
88 88
 	
89
-	/**
90
-	 * @param string $l the level min to match
91
-	 */
92
-	public function setLevelMin($level) {
93
-		$this->setLevel('levelMin', $level);
94
-	}
89
+    /**
90
+     * @param string $l the level min to match
91
+     */
92
+    public function setLevelMin($level) {
93
+        $this->setLevel('levelMin', $level);
94
+    }
95 95
 
96
-	/**
97
-	 * @param string $l the level max to match
98
-	 */
99
-	public function setLevelMax($level) {
100
-		$this->setLevel('levelMax', $level);
101
-	}
96
+    /**
97
+     * @param string $l the level max to match
98
+     */
99
+    public function setLevelMax($level) {
100
+        $this->setLevel('levelMax', $level);
101
+    }
102 102
 
103
-	/**
104
-	 * Return the decision of this filter.
105
-	 *
106
-	 * @param Payone_Log4php_LoggerLoggingEvent $event
107
-	 * @return integer
108
-	 */
109
-	public function decide(Payone_Log4php_LoggerLoggingEvent $event) {
110
-		$level = $event->getLevel();
103
+    /**
104
+     * Return the decision of this filter.
105
+     *
106
+     * @param Payone_Log4php_LoggerLoggingEvent $event
107
+     * @return integer
108
+     */
109
+    public function decide(Payone_Log4php_LoggerLoggingEvent $event) {
110
+        $level = $event->getLevel();
111 111
 		
112
-		if($this->levelMin !== null) {
113
-			if($level->isGreaterOrEqual($this->levelMin) == false) {
114
-				// level of event is less than minimum
115
-				return Payone_Log4php_LoggerFilter::DENY;
116
-			}
117
-		}
112
+        if($this->levelMin !== null) {
113
+            if($level->isGreaterOrEqual($this->levelMin) == false) {
114
+                // level of event is less than minimum
115
+                return Payone_Log4php_LoggerFilter::DENY;
116
+            }
117
+        }
118 118
 
119
-		if($this->levelMax !== null) {
120
-			if($level->toInt() > $this->levelMax->toInt()) {
121
-				// level of event is greater than maximum
122
-				// Alas, there is no Level.isGreater method. and using
123
-				// a combo of isGreaterOrEqual && !Equal seems worse than
124
-				// checking the int values of the level objects..
125
-				return Payone_Log4php_LoggerFilter::DENY;
126
-			}
127
-		}
119
+        if($this->levelMax !== null) {
120
+            if($level->toInt() > $this->levelMax->toInt()) {
121
+                // level of event is greater than maximum
122
+                // Alas, there is no Level.isGreater method. and using
123
+                // a combo of isGreaterOrEqual && !Equal seems worse than
124
+                // checking the int values of the level objects..
125
+                return Payone_Log4php_LoggerFilter::DENY;
126
+            }
127
+        }
128 128
 
129
-		if($this->acceptOnMatch) {
130
-			// this filter set up to bypass later filters and always return
131
-			// accept if level in range
132
-			return Payone_Log4php_LoggerFilter::ACCEPT;
133
-		} else {
134
-			// event is ok for this filter; allow later filters to have a look..
135
-			return Payone_Log4php_LoggerFilter::NEUTRAL;
136
-		}
137
-	}
129
+        if($this->acceptOnMatch) {
130
+            // this filter set up to bypass later filters and always return
131
+            // accept if level in range
132
+            return Payone_Log4php_LoggerFilter::ACCEPT;
133
+        } else {
134
+            // event is ok for this filter; allow later filters to have a look..
135
+            return Payone_Log4php_LoggerFilter::NEUTRAL;
136
+        }
137
+    }
138 138
 }
Please login to merge, or discard this patch.
lib/Payone/Log4php/LoggerPatternConverterLogger.php 1 patch
Indentation   +63 added lines, -63 removed lines patch added patch discarded remove patch
@@ -29,86 +29,86 @@
 block discarded – undo
29 29
  */
30 30
 class Payone_Log4php_LoggerPatternConverterLogger extends Payone_Log4php_LoggerPatternConverter {
31 31
 
32
-	/** Length to which to shorten the name. */
33
-	private $length;
32
+    /** Length to which to shorten the name. */
33
+    private $length;
34 34
 	
35
-	/** Holds processed logger names. */
36
-	private $cache = array();
35
+    /** Holds processed logger names. */
36
+    private $cache = array();
37 37
 	
38
-	public function activateOptions() {
39
-		// Parse the option (desired output length)
40
-		if (isset($this->option) && is_numeric($this->option) && $this->option >= 0) {
41
-			$this->length = (integer) $this->option;
42
-		}
43
-	}
38
+    public function activateOptions() {
39
+        // Parse the option (desired output length)
40
+        if (isset($this->option) && is_numeric($this->option) && $this->option >= 0) {
41
+            $this->length = (integer) $this->option;
42
+        }
43
+    }
44 44
 	
45
-	public function convert(Payone_Log4php_LoggerLoggingEvent $event) {
46
-		$name = $event->getLoggerName();
45
+    public function convert(Payone_Log4php_LoggerLoggingEvent $event) {
46
+        $name = $event->getLoggerName();
47 47
 		
48
-		if (!isset($this->cache[$name])) {
48
+        if (!isset($this->cache[$name])) {
49 49
 
50
-			// If length is set return shortened logger name 
51
-			if (isset($this->length)) {
52
-				$this->cache[$name] = $this->shorten($name, $this->length);
53
-			} 
50
+            // If length is set return shortened logger name 
51
+            if (isset($this->length)) {
52
+                $this->cache[$name] = $this->shorten($name, $this->length);
53
+            } 
54 54
 			 
55
-			// If no length is specified return full logger name
56
-			else {
57
-				$this->cache[$name] = $name;
58
-			}
59
-		} 
55
+            // If no length is specified return full logger name
56
+            else {
57
+                $this->cache[$name] = $name;
58
+            }
59
+        } 
60 60
 		
61
-		return $this->cache[$name];
62
-	}
61
+        return $this->cache[$name];
62
+    }
63 63
 	
64
-	/** 
65
-	 * Attempts to shorten the given name to the desired length by trimming 
66
-	 * name fragments. See docs for examples.
67
-	 */
68
-	private function shorten($name, $length) {
64
+    /** 
65
+     * Attempts to shorten the given name to the desired length by trimming 
66
+     * name fragments. See docs for examples.
67
+     */
68
+    private function shorten($name, $length) {
69 69
 	
70
-		$currentLength = strlen($name);
70
+        $currentLength = strlen($name);
71 71
 	
72
-		// Check if any shortening is required
73
-		if ($currentLength <= $length) {
74
-			return $name;
75
-		}
72
+        // Check if any shortening is required
73
+        if ($currentLength <= $length) {
74
+            return $name;
75
+        }
76 76
 	
77
-		// Split name into fragments
78
-		$name = str_replace('.', '\\', $name);
79
-		$name = trim($name, ' \\');
80
-		$fragments = explode('\\', $name);
81
-		$count = count($fragments);
77
+        // Split name into fragments
78
+        $name = str_replace('.', '\\', $name);
79
+        $name = trim($name, ' \\');
80
+        $fragments = explode('\\', $name);
81
+        $count = count($fragments);
82 82
 	
83
-		// If the name splits to only one fragment, then it cannot be shortened
84
-		if ($count == 1) {
85
-			return $name;
86
-		}
83
+        // If the name splits to only one fragment, then it cannot be shortened
84
+        if ($count == 1) {
85
+            return $name;
86
+        }
87 87
 		
88
-		foreach($fragments as $key => &$fragment) {
88
+        foreach($fragments as $key => &$fragment) {
89 89
 	
90
-			// Never shorten last fragment
91
-			if ($key == $count - 1) {
92
-				break;
93
-			}
90
+            // Never shorten last fragment
91
+            if ($key == $count - 1) {
92
+                break;
93
+            }
94 94
 	
95
-			// Check for empty fragments (shouldn't happen but it's possible)
96
-			$fragLen = strlen($fragment);
97
-			if ($fragLen <= 1) {
98
-				continue;
99
-			}
95
+            // Check for empty fragments (shouldn't happen but it's possible)
96
+            $fragLen = strlen($fragment);
97
+            if ($fragLen <= 1) {
98
+                continue;
99
+            }
100 100
 	
101
-			// Shorten fragment to one character and check if total length satisfactory
102
-			$fragment = substr($fragment, 0, 1);
103
-			$currentLength = $currentLength - $fragLen + 1;
101
+            // Shorten fragment to one character and check if total length satisfactory
102
+            $fragment = substr($fragment, 0, 1);
103
+            $currentLength = $currentLength - $fragLen + 1;
104 104
 	
105
-			if ($currentLength <= $length) {
106
-				break;
107
-			}
108
-		}
109
-		unset($fragment);
105
+            if ($currentLength <= $length) {
106
+                break;
107
+            }
108
+        }
109
+        unset($fragment);
110 110
 	
111
-		return implode('\\', $fragments);
112
-	}
111
+        return implode('\\', $fragments);
112
+    }
113 113
 	
114 114
 }
Please login to merge, or discard this patch.
lib/Payone/Log4php/LoggerConfigurationAdapterPHP.php 1 patch
Indentation   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -51,35 +51,35 @@
 block discarded – undo
51 51
  */
52 52
 class Payone_Log4php_LoggerConfigurationAdapterPHP implements Payone_Log4php_LoggerConfigurationAdapter
53 53
 {
54
-	public function convert($url) {
55
-		if (!file_exists($url)) {
56
-			throw new Payone_Log4php_LoggerException("File [$url] does not exist.");
57
-		}
54
+    public function convert($url) {
55
+        if (!file_exists($url)) {
56
+            throw new Payone_Log4php_LoggerException("File [$url] does not exist.");
57
+        }
58 58
 		
59
-		// Load the config file
60
-		$data = @file_get_contents($url);
61
-		if ($data === false) {
62
-			$error = error_get_last();
63
-			throw new Payone_Log4php_LoggerException("Error loading config file: {$error['message']}");
64
-		}
59
+        // Load the config file
60
+        $data = @file_get_contents($url);
61
+        if ($data === false) {
62
+            $error = error_get_last();
63
+            throw new Payone_Log4php_LoggerException("Error loading config file: {$error['message']}");
64
+        }
65 65
 		
66
-		$config = @eval('?>' . $data);
66
+        $config = @eval('?>' . $data);
67 67
 		
68
-		if ($config === false) {
69
-			$error = error_get_last();
70
-			throw new Payone_Log4php_LoggerException("Error parsing configuration: " . $error['message']);
71
-		}
68
+        if ($config === false) {
69
+            $error = error_get_last();
70
+            throw new Payone_Log4php_LoggerException("Error parsing configuration: " . $error['message']);
71
+        }
72 72
 		
73
-		if (empty($config)) {
74
-			throw new Payone_Log4php_LoggerException("Invalid configuration: empty configuration array.");
75
-		}
73
+        if (empty($config)) {
74
+            throw new Payone_Log4php_LoggerException("Invalid configuration: empty configuration array.");
75
+        }
76 76
 		
77
-		if (!is_array($config)) {
78
-			throw new Payone_Log4php_LoggerException("Invalid configuration: not an array.");
79
-		}
77
+        if (!is_array($config)) {
78
+            throw new Payone_Log4php_LoggerException("Invalid configuration: not an array.");
79
+        }
80 80
 		
81
-		return $config;
82
-	}
81
+        return $config;
82
+    }
83 83
 }
84 84
 
85 85
 ?>
86 86
\ No newline at end of file
Please login to merge, or discard this patch.
lib/Payone/Log4php/LoggerConfigurationAdapter.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,8 +32,8 @@
 block discarded – undo
32 32
  */
33 33
 interface Payone_Log4php_LoggerConfigurationAdapter
34 34
 {
35
-	/** Converts the configuration file to PHP format usable by the configurator. */
36
-	public function convert($input); 
35
+    /** Converts the configuration file to PHP format usable by the configurator. */
36
+    public function convert($input); 
37 37
 
38 38
 }
39 39
 
Please login to merge, or discard this patch.
lib/Payone/Log4php/LoggerFilterLevelMatch.php 1 patch
Indentation   +45 added lines, -45 removed lines patch added patch discarded remove patch
@@ -47,54 +47,54 @@
 block discarded – undo
47 47
  */
48 48
 class Payone_Log4php_LoggerFilterLevelMatch extends Payone_Log4php_LoggerFilter {
49 49
   
50
-	/** 
51
-	 * Indicates if this event should be accepted or denied on match
52
-	 * @var boolean
53
-	 */
54
-	protected $acceptOnMatch = true;
50
+    /** 
51
+     * Indicates if this event should be accepted or denied on match
52
+     * @var boolean
53
+     */
54
+    protected $acceptOnMatch = true;
55 55
 
56
-	/**
57
-	 * The level, when to match
58
-	 * @var Payone_Log4php_LoggerLevel
59
-	 */
60
-	protected $levelToMatch;
56
+    /**
57
+     * The level, when to match
58
+     * @var Payone_Log4php_LoggerLevel
59
+     */
60
+    protected $levelToMatch;
61 61
   
62
-	/**
63
-	 * @param boolean $acceptOnMatch
64
-	 */
65
-	public function setAcceptOnMatch($acceptOnMatch) {
66
-		$this->setBoolean('acceptOnMatch', $acceptOnMatch);
67
-	}
62
+    /**
63
+     * @param boolean $acceptOnMatch
64
+     */
65
+    public function setAcceptOnMatch($acceptOnMatch) {
66
+        $this->setBoolean('acceptOnMatch', $acceptOnMatch);
67
+    }
68 68
 	
69
-	/**
70
-	 * @param string $l the level to match
71
-	 */
72
-	public function setLevelToMatch($level) {
73
-		$this->setLevel('levelToMatch', $level);
74
-	}
69
+    /**
70
+     * @param string $l the level to match
71
+     */
72
+    public function setLevelToMatch($level) {
73
+        $this->setLevel('levelToMatch', $level);
74
+    }
75 75
 
76
-	/**
77
-	 * Return the decision of this filter.
78
-	 * 
79
-	 * Returns {@link LoggerFilter::NEUTRAL} if the <b><var>LevelToMatch</var></b>
80
-	 * option is not set or if there is not match.	Otherwise, if there is a
81
-	 * match, then the returned decision is {@link LoggerFilter::ACCEPT} if the
82
-	 * <b><var>AcceptOnMatch</var></b> property is set to <i>true</i>. The
83
-	 * returned decision is {@link LoggerFilter::DENY} if the
84
-	 * <b><var>AcceptOnMatch</var></b> property is set to <i>false</i>.
85
-	 *
86
-	 * @param Payone_Log4php_LoggerLoggingEvent $event
87
-	 * @return integer
88
-	 */
89
-	public function decide(Payone_Log4php_LoggerLoggingEvent $event) {
90
-		if($this->levelToMatch === null) {
91
-			return Payone_Log4php_LoggerFilter::NEUTRAL;
92
-		}
76
+    /**
77
+     * Return the decision of this filter.
78
+     * 
79
+     * Returns {@link LoggerFilter::NEUTRAL} if the <b><var>LevelToMatch</var></b>
80
+     * option is not set or if there is not match.	Otherwise, if there is a
81
+     * match, then the returned decision is {@link LoggerFilter::ACCEPT} if the
82
+     * <b><var>AcceptOnMatch</var></b> property is set to <i>true</i>. The
83
+     * returned decision is {@link LoggerFilter::DENY} if the
84
+     * <b><var>AcceptOnMatch</var></b> property is set to <i>false</i>.
85
+     *
86
+     * @param Payone_Log4php_LoggerLoggingEvent $event
87
+     * @return integer
88
+     */
89
+    public function decide(Payone_Log4php_LoggerLoggingEvent $event) {
90
+        if($this->levelToMatch === null) {
91
+            return Payone_Log4php_LoggerFilter::NEUTRAL;
92
+        }
93 93
 		
94
-		if($this->levelToMatch->equals($event->getLevel())) {	
95
-			return $this->acceptOnMatch ? Payone_Log4php_LoggerFilter::ACCEPT : Payone_Log4php_LoggerFilter::DENY;
96
-		} else {
97
-			return Payone_Log4php_LoggerFilter::NEUTRAL;
98
-		}
99
-	}
94
+        if($this->levelToMatch->equals($event->getLevel())) {	
95
+            return $this->acceptOnMatch ? Payone_Log4php_LoggerFilter::ACCEPT : Payone_Log4php_LoggerFilter::DENY;
96
+        } else {
97
+            return Payone_Log4php_LoggerFilter::NEUTRAL;
98
+        }
99
+    }
100 100
 }
Please login to merge, or discard this patch.
lib/Payone/Log4php/LoggerRendererObject.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -37,10 +37,10 @@
 block discarded – undo
37 37
  * @since 0.3
38 38
  */
39 39
 interface Payone_Log4php_LoggerRendererObject {
40
-	/**
41
-	 * Render the entity passed as parameter as a String.
42
-	 * @param mixed $o entity to render
43
-	 * @return string
44
-	 */
45
-	public function render($o);
40
+    /**
41
+     * Render the entity passed as parameter as a String.
42
+     * @param mixed $o entity to render
43
+     * @return string
44
+     */
45
+    public function render($o);
46 46
 }
Please login to merge, or discard this patch.
lib/Payone/Log4php/LoggerAppenderPool.php 1 patch
Indentation   +56 added lines, -56 removed lines patch added patch discarded remove patch
@@ -31,69 +31,69 @@
 block discarded – undo
31 31
  */
32 32
 class Payone_Log4php_LoggerAppenderPool {
33 33
 	
34
-	/** Holds appenders indexed by their name */
35
-	public static $appenders =  array();
34
+    /** Holds appenders indexed by their name */
35
+    public static $appenders =  array();
36 36
 
37
-	/**
38
-	 * Adds an appender to the pool. 
39
-	 * The appender must be named for this operation. 
40
-	 * @param Payone_Log4php_LoggerAppender $appender
41
-	 */
42
-	public static function add(Payone_Log4php_LoggerAppender $appender)
43
-	{
44
-		$name = $appender->getName();
37
+    /**
38
+     * Adds an appender to the pool. 
39
+     * The appender must be named for this operation. 
40
+     * @param Payone_Log4php_LoggerAppender $appender
41
+     */
42
+    public static function add(Payone_Log4php_LoggerAppender $appender)
43
+    {
44
+        $name = $appender->getName();
45 45
 		
46
-		if(empty($name)) {
47
-			trigger_error('log4php: Cannot add unnamed appender to pool.', E_USER_WARNING);
48
-			return;
49
-		}
46
+        if(empty($name)) {
47
+            trigger_error('log4php: Cannot add unnamed appender to pool.', E_USER_WARNING);
48
+            return;
49
+        }
50 50
 		
51
-		if (isset(self::$appenders[$name])) {
52
-			trigger_error("log4php: Appender [$name] already exists in pool. Overwriting existing appender.", E_USER_WARNING);
53
-		}
51
+        if (isset(self::$appenders[$name])) {
52
+            trigger_error("log4php: Appender [$name] already exists in pool. Overwriting existing appender.", E_USER_WARNING);
53
+        }
54 54
 		
55
-		self::$appenders[$name] = $appender;
56
-	}
55
+        self::$appenders[$name] = $appender;
56
+    }
57 57
 	
58
-	/** 
59
-	 * Retrieves an appender from the pool by name. 
60
-	 * @param string $name Name of the appender to retrieve.
61
-	 * @return Payone_Log4php_LoggerAppender The named appender or NULL if no such appender
62
-	 *  exists in the pool.
63
-	 */
64
-	public static function get($name) {
65
-		return isset(self::$appenders[$name]) ? self::$appenders[$name] : null;
66
-	}
58
+    /** 
59
+     * Retrieves an appender from the pool by name. 
60
+     * @param string $name Name of the appender to retrieve.
61
+     * @return Payone_Log4php_LoggerAppender The named appender or NULL if no such appender
62
+     *  exists in the pool.
63
+     */
64
+    public static function get($name) {
65
+        return isset(self::$appenders[$name]) ? self::$appenders[$name] : null;
66
+    }
67 67
 	
68
-	/**
69
-	* Removes an appender from the pool by name.
70
-	* @param string $name Name of the appender to remove.
71
-	*/
72
-	public static function delete($name) {
73
-		unset(self::$appenders[$name]);
74
-	}
68
+    /**
69
+     * Removes an appender from the pool by name.
70
+     * @param string $name Name of the appender to remove.
71
+     */
72
+    public static function delete($name) {
73
+        unset(self::$appenders[$name]);
74
+    }
75 75
 	
76
-	/**
77
-	 * Returns all appenders from the pool.
78
-	 * @return array Array of Payone_Log4php_LoggerAppender objects.
79
-	 */
80
-	public static function getAppenders() {
81
-		return self::$appenders;
82
-	}
76
+    /**
77
+     * Returns all appenders from the pool.
78
+     * @return array Array of Payone_Log4php_LoggerAppender objects.
79
+     */
80
+    public static function getAppenders() {
81
+        return self::$appenders;
82
+    }
83 83
 	
84
-	/**
85
-	 * Checks whether an appender exists in the pool.
86
-	 * @param string $name Name of the appender to look for.
87
-	 * @return boolean TRUE if the appender with the given name exists.
88
-	 */
89
-	public static function exists($name) {
90
-		return isset(self::$appenders[$name]);
91
-	}
84
+    /**
85
+     * Checks whether an appender exists in the pool.
86
+     * @param string $name Name of the appender to look for.
87
+     * @return boolean TRUE if the appender with the given name exists.
88
+     */
89
+    public static function exists($name) {
90
+        return isset(self::$appenders[$name]);
91
+    }
92 92
 
93
-	/**
94
-	 * Clears all appenders from the pool.
95
-	 */
96
-	public static function clear() {
97
-		 self::$appenders =  array();
98
-	}
93
+    /**
94
+     * Clears all appenders from the pool.
95
+     */
96
+    public static function clear() {
97
+            self::$appenders =  array();
98
+    }
99 99
 }
100 100
\ No newline at end of file
Please login to merge, or discard this patch.