From 0782a971cc54354aade3a27c0f9d48e1136fa8c8 Mon Sep 17 00:00:00 2001 From: Tim Fry Date: Wed, 12 Mar 2025 11:14:46 -0300 Subject: [PATCH] remove class_exists wrapper for class definitions --- .../resources/classes/destinations.php | 29 ++----------------- 1 file changed, 2 insertions(+), 27 deletions(-) diff --git a/app/destinations/resources/classes/destinations.php b/app/destinations/resources/classes/destinations.php index 2e5fea96de..6afc06ba9d 100644 --- a/app/destinations/resources/classes/destinations.php +++ b/app/destinations/resources/classes/destinations.php @@ -26,11 +26,7 @@ /** * destinations - * - * @method get_array get the destinations - * @method select build the html select */ -if (!class_exists('destinations')) { class destinations { /** @@ -455,26 +451,7 @@ if (!class_exists('destinations')) { $destination_id = str_replace("[", "_", $destination_id); //$destination_id = preg_replace('/[^a-zA-Z_,.]/', '', $destination_name); - ?> - - get($destination_type); @@ -1308,7 +1285,7 @@ if (!class_exists('destinations')) { } //method } //class -} + /* $obj = new destinations; //$destinations = $obj->destinations; @@ -1319,5 +1296,3 @@ echo $obj->select('ivr', 'example4', ''); echo $obj->select('ivr', 'example5', ''); echo $obj->select('ivr', 'example6', ''); */ - -?>