summaryrefslogtreecommitdiff
path: root/inc/DifferenceEngine.php
diff options
context:
space:
mode:
authorhArpanet <github@harpanet.com>2013-05-20 20:12:52 +0200
committerhArpanet <github@harpanet.com>2013-05-20 20:12:52 +0200
commitbfd197d22f32f74940afadf1e308828773dbde18 (patch)
tree27681d0e6f66e827dc3993a49c918f3a07d8d85f /inc/DifferenceEngine.php
parenta07e7a4fb1edaeca6bb2cb537b368c31a580675c (diff)
downloadrpg-bfd197d22f32f74940afadf1e308828773dbde18.tar.gz
rpg-bfd197d22f32f74940afadf1e308828773dbde18.tar.bz2
Added comment to DiffFormatter _escape() method
Clarify use of _escape() method in base class.
Diffstat (limited to 'inc/DifferenceEngine.php')
-rw-r--r--inc/DifferenceEngine.php11
1 files changed, 10 insertions, 1 deletions
diff --git a/inc/DifferenceEngine.php b/inc/DifferenceEngine.php
index 783d6bea5..07df7a4be 100644
--- a/inc/DifferenceEngine.php
+++ b/inc/DifferenceEngine.php
@@ -817,7 +817,16 @@ class DiffFormatter {
$this->_added($closing);
}
- function _escape($str){
+ /**
+ * Escape string
+ *
+ * Override this method within other formatters if escaping required.
+ * Base class requires $str to be returned WITHOUT escaping.
+ *
+ * @param $str string Text string to escape
+ * @return string The escaped string.
+ */
+ function _escape($str){
return $str;
}
}