From c2c2d555d7c685953b36cb11e2a5f330a62278a0 Mon Sep 17 00:00:00 2001 From: Julian Ramirez Date: Sun, 25 Jun 2023 15:14:33 -0500 Subject: [PATCH] fix: corrected file names according to the class they contain --- ...in.php => Openedx_Woocommerce_Plugin_Admin.php} | 0 ...dx_Woocommerce_Plugin_Enrollment_Info_Form.php} | 0 ...e-plugin.php => Openedx_Woocommerce_Plugin.php} | 14 +++++++------- ...hp => Openedx_Woocommerce_Plugin_Activator.php} | 0 ... => Openedx_Woocommerce_Plugin_Deactivator.php} | 0 ...r.php => Openedx_Woocommerce_Plugin_Loader.php} | 0 ...18n.php => Openedx_Woocommerce_Plugin_i18n.php} | 0 ...p => Openedx_Woocommerce_Plugin_Enrollment.php} | 0 ...hp => Openedx_Woocommerce_Plugin_Post_Type.php} | 0 openedx-woocommerce-plugin.php | 6 +++--- ...c.php => Openedx_Woocommerce_Plugin_Public.php} | 0 11 files changed, 10 insertions(+), 10 deletions(-) rename admin/{class-openedx-woocommerce-plugin-admin.php => Openedx_Woocommerce_Plugin_Admin.php} (100%) rename admin/views/{class-openedx-woocommerce-plugin-enrollment-info-form.php => Openedx_Woocommerce_Plugin_Enrollment_Info_Form.php} (100%) rename includes/{class-openedx-woocommerce-plugin.php => Openedx_Woocommerce_Plugin.php} (93%) rename includes/{class-openedx-woocommerce-plugin-activator.php => Openedx_Woocommerce_Plugin_Activator.php} (100%) rename includes/{class-openedx-woocommerce-plugin-deactivator.php => Openedx_Woocommerce_Plugin_Deactivator.php} (100%) rename includes/{class-openedx-woocommerce-plugin-loader.php => Openedx_Woocommerce_Plugin_Loader.php} (100%) rename includes/{class-openedx-woocommerce-plugin-i18n.php => Openedx_Woocommerce_Plugin_i18n.php} (100%) rename includes/model/{class-openedx-woocommerce-plugin-enrollment.php => Openedx_Woocommerce_Plugin_Enrollment.php} (100%) rename includes/model/{class-openedx-woocommerce-plugin-post-type.php => Openedx_Woocommerce_Plugin_Post_Type.php} (100%) rename public/{class-openedx-woocommerce-plugin-public.php => Openedx_Woocommerce_Plugin_Public.php} (100%) diff --git a/admin/class-openedx-woocommerce-plugin-admin.php b/admin/Openedx_Woocommerce_Plugin_Admin.php similarity index 100% rename from admin/class-openedx-woocommerce-plugin-admin.php rename to admin/Openedx_Woocommerce_Plugin_Admin.php diff --git a/admin/views/class-openedx-woocommerce-plugin-enrollment-info-form.php b/admin/views/Openedx_Woocommerce_Plugin_Enrollment_Info_Form.php similarity index 100% rename from admin/views/class-openedx-woocommerce-plugin-enrollment-info-form.php rename to admin/views/Openedx_Woocommerce_Plugin_Enrollment_Info_Form.php diff --git a/includes/class-openedx-woocommerce-plugin.php b/includes/Openedx_Woocommerce_Plugin.php similarity index 93% rename from includes/class-openedx-woocommerce-plugin.php rename to includes/Openedx_Woocommerce_Plugin.php index bf8dc67..a5f4fc0 100644 --- a/includes/class-openedx-woocommerce-plugin.php +++ b/includes/Openedx_Woocommerce_Plugin.php @@ -103,41 +103,41 @@ private function load_dependencies() { * The class responsible for orchestrating the actions and filters of the * core plugin. */ - require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-openedx-woocommerce-plugin-loader.php'; + require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/Openedx_Woocommerce_Plugin_Loader.php'; /** * The class responsible for defining internationalization functionality * of the plugin. */ - require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-openedx-woocommerce-plugin-i18n.php'; + require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/Openedx_Woocommerce_Plugin_i18n.php'; /** * The class responsible for defining all actions that occur in the admin area. */ - require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-openedx-woocommerce-plugin-admin.php'; + require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/Openedx_Woocommerce_Plugin_Admin.php'; /** * The class responsible for defining all actions that occur in the public-facing * side of the site. */ - require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-openedx-woocommerce-plugin-public.php'; + require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/Openedx_Woocommerce_Plugin_Public.php'; $this->loader = new Openedx_Woocommerce_Plugin_Loader(); /** * The class responsible for defining the enrollment object */ - require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/model/class-openedx-woocommerce-plugin-enrollment.php'; + require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/model/Openedx_Woocommerce_Plugin_Enrollment.php'; /** * The class responsible for defining the custom-post-type object */ - require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/model/class-openedx-woocommerce-plugin-post-type.php'; + require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/model/Openedx_Woocommerce_Plugin_Post_Type.php'; /** * The class responsible for rendering the enrollment info form */ - require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/views/class-openedx-woocommerce-plugin-enrollment-info-form.php'; + require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/views/Openedx_Woocommerce_Plugin_Enrollment_Info_Form.php'; } diff --git a/includes/class-openedx-woocommerce-plugin-activator.php b/includes/Openedx_Woocommerce_Plugin_Activator.php similarity index 100% rename from includes/class-openedx-woocommerce-plugin-activator.php rename to includes/Openedx_Woocommerce_Plugin_Activator.php diff --git a/includes/class-openedx-woocommerce-plugin-deactivator.php b/includes/Openedx_Woocommerce_Plugin_Deactivator.php similarity index 100% rename from includes/class-openedx-woocommerce-plugin-deactivator.php rename to includes/Openedx_Woocommerce_Plugin_Deactivator.php diff --git a/includes/class-openedx-woocommerce-plugin-loader.php b/includes/Openedx_Woocommerce_Plugin_Loader.php similarity index 100% rename from includes/class-openedx-woocommerce-plugin-loader.php rename to includes/Openedx_Woocommerce_Plugin_Loader.php diff --git a/includes/class-openedx-woocommerce-plugin-i18n.php b/includes/Openedx_Woocommerce_Plugin_i18n.php similarity index 100% rename from includes/class-openedx-woocommerce-plugin-i18n.php rename to includes/Openedx_Woocommerce_Plugin_i18n.php diff --git a/includes/model/class-openedx-woocommerce-plugin-enrollment.php b/includes/model/Openedx_Woocommerce_Plugin_Enrollment.php similarity index 100% rename from includes/model/class-openedx-woocommerce-plugin-enrollment.php rename to includes/model/Openedx_Woocommerce_Plugin_Enrollment.php diff --git a/includes/model/class-openedx-woocommerce-plugin-post-type.php b/includes/model/Openedx_Woocommerce_Plugin_Post_Type.php similarity index 100% rename from includes/model/class-openedx-woocommerce-plugin-post-type.php rename to includes/model/Openedx_Woocommerce_Plugin_Post_Type.php diff --git a/openedx-woocommerce-plugin.php b/openedx-woocommerce-plugin.php index a930445..8321939 100644 --- a/openedx-woocommerce-plugin.php +++ b/openedx-woocommerce-plugin.php @@ -42,7 +42,7 @@ * This action is documented in includes/class-openedx-woocommerce-plugin-activator.php */ function activate_openedx_woocommerce_plugin() { - require_once plugin_dir_path( __FILE__ ) . 'includes/class-openedx-woocommerce-plugin-activator.php'; + require_once plugin_dir_path( __FILE__ ) . 'includes/Openedx_Woocommerce_Plugin_Activator.php'; Openedx_Woocommerce_Plugin_Activator::activate(); } @@ -51,7 +51,7 @@ function activate_openedx_woocommerce_plugin() { * This action is documented in includes/class-openedx-woocommerce-plugin-deactivator.php */ function deactivate_openedx_woocommerce_plugin() { - require_once plugin_dir_path( __FILE__ ) . 'includes/class-openedx-woocommerce-plugin-deactivator.php'; + require_once plugin_dir_path( __FILE__ ) . 'includes/Openedx_Woocommerce_Plugin_Deactivator.php'; Openedx_Woocommerce_Plugin_Deactivator::deactivate(); } @@ -62,7 +62,7 @@ function deactivate_openedx_woocommerce_plugin() { * The core plugin class that is used to define internationalization, * admin-specific hooks, and public-facing site hooks. */ -require plugin_dir_path( __FILE__ ) . 'includes/class-openedx-woocommerce-plugin.php'; +require plugin_dir_path( __FILE__ ) . 'includes/Openedx_Woocommerce_Plugin.php'; /** * Begins execution of the plugin. diff --git a/public/class-openedx-woocommerce-plugin-public.php b/public/Openedx_Woocommerce_Plugin_Public.php similarity index 100% rename from public/class-openedx-woocommerce-plugin-public.php rename to public/Openedx_Woocommerce_Plugin_Public.php