From 159c3cede6235463f3787535edd8247bb2ff4b98 Mon Sep 17 00:00:00 2001 From: Emanuil Rusev Date: Thu, 17 Apr 2014 01:11:30 +0300 Subject: [PATCH] move deprecated methods to the bottom of the class --- Parsedown.php | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/Parsedown.php b/Parsedown.php index e3ed02a..2ff7d3a 100755 --- a/Parsedown.php +++ b/Parsedown.php @@ -38,16 +38,6 @@ class Parsedown return $this; } - /** - * For backwards compatibility before PSR-2 naming. - * - * @deprecated Use setBreaksEnabled instead. - */ - function set_breaks_enabled($breaks_enabled) - { - return $this->setBreaksEnabled($breaks_enabled); - } - private $breaksEnabled = false; # @@ -1303,6 +1293,18 @@ class Parsedown private static $instances = array(); + # + # Deprecated Methods + # + + /** + * @deprecated in favor of "setBreaksEnabled" + */ + function set_breaks_enabled($breaks_enabled) + { + return $this->setBreaksEnabled($breaks_enabled); + } + # # Fields #