Skip to content

Commit

Permalink
fix: revert the change of the namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
MaferMazu committed Apr 4, 2024
1 parent c6fad3b commit 26c1093
Show file tree
Hide file tree
Showing 17 changed files with 44 additions and 44 deletions.
10 changes: 5 additions & 5 deletions admin/class-openedx-commerce-admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@
* @since 1.0.0
*/

namespace OpenedX_Commerce\admin;
namespace OpenedXCommerce\admin;

use OpenedX_Commerce\model\Openedx_Commerce_Enrollment;
use OpenedX_Commerce\model\Openedx_Commerce_Post_Type;
use OpenedX_Commerce\admin\views\Openedx_Commerce_Enrollment_Info_Form;
use OpenedX_Commerce\utils;
use OpenedXCommerce\model\Openedx_Commerce_Enrollment;
use OpenedXCommerce\model\Openedx_Commerce_Post_Type;
use OpenedXCommerce\admin\views\Openedx_Commerce_Enrollment_Info_Form;
use OpenedXCommerce\utils;


/**
Expand Down
6 changes: 3 additions & 3 deletions admin/views/class-openedx-commerce-enrollment-info-form.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
* @since 1.0.0
*/

namespace OpenedX_Commerce\admin\views;
namespace OpenedXCommerce\admin\views;

use OpenedX_Commerce\model\Openedx_Commerce_Log;
use OpenedX_Commerce\utils;
use OpenedXCommerce\model\Openedx_Commerce_Log;
use OpenedXCommerce\utils;

if ( ! defined( 'ABSPATH' ) ) {
exit;
Expand Down
4 changes: 2 additions & 2 deletions admin/views/class-openedx-commerce-settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
* @since 1.6.0
*/

namespace OpenedX_Commerce\admin\views;
namespace OpenedXCommerce\admin\views;

use OpenedX_Commerce\model\Openedx_Commerce_Api_Calls;
use OpenedXCommerce\model\Openedx_Commerce_Api_Calls;
use DateTime;
use DateInterval;

Expand Down
14 changes: 7 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@
"test/"
],
"psr-4": {
"OpenedX_Commerce\\": "includes/",
"OpenedX_Commerce\\model\\": "includes/model/",
"OpenedX_Commerce\\admin\\": "admin/",
"OpenedX_Commerce\\admin\\views\\": "admin/views/",
"OpenedX_Commerce\\public\\": "public/",
"OpenedX_Commerce\\utils\\": "utils/",
"OpenedX_Commerce\\tests\\": "test/"
"OpenedXCommerce\\": "includes/",
"OpenedXCommerce\\model\\": "includes/model/",
"OpenedXCommerce\\admin\\": "admin/",
"OpenedXCommerce\\admin\\views\\": "admin/views/",
"OpenedXCommerce\\public\\": "public/",
"OpenedXCommerce\\utils\\": "utils/",
"OpenedXCommerce\\tests\\": "test/"
}
},
"require": {
Expand Down
2 changes: 1 addition & 1 deletion includes/class-openedx-commerce-activator.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* @subpackage Openedx_Commerce/includes
*/

namespace OpenedX_Commerce;
namespace OpenedXCommerce;

/**
* Fired during plugin activation.
Expand Down
2 changes: 1 addition & 1 deletion includes/class-openedx-commerce-deactivator.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* @subpackage Openedx_Commerce/includes
*/

namespace OpenedX_Commerce;
namespace OpenedXCommerce;

/**
* Fired during plugin deactivation.
Expand Down
2 changes: 1 addition & 1 deletion includes/class-openedx-commerce-i18n.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* @subpackage Openedx_Commerce/includes
*/

namespace OpenedX_Commerce;
namespace OpenedXCommerce;

/**
* Define the internationalization functionality.
Expand Down
2 changes: 1 addition & 1 deletion includes/class-openedx-commerce-loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* @subpackage Openedx_Commerce/includes
*/

namespace OpenedX_Commerce;
namespace OpenedXCommerce;

/**
* Register all actions and filters for the plugin.
Expand Down
10 changes: 5 additions & 5 deletions includes/class-openedx-commerce.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@
* @author eduNEXT <[email protected]>
*/

namespace OpenedX_Commerce;
namespace OpenedXCommerce;

use OpenedX_Commerce\admin\Openedx_Commerce_Admin;
use OpenedX_Commerce\public\Openedx_Commerce_Public;
use OpenedX_Commerce\admin\views\Openedx_Commerce_Settings;
use OpenedX_Commerce\model\Openedx_Commerce_Enrollment;
use OpenedXCommerce\admin\Openedx_Commerce_Admin;
use OpenedXCommerce\public\Openedx_Commerce_Public;
use OpenedXCommerce\admin\views\Openedx_Commerce_Settings;
use OpenedXCommerce\model\Openedx_Commerce_Enrollment;

/**
* This class contains the function to register a new custom post type.
Expand Down
2 changes: 1 addition & 1 deletion includes/model/class-openedx-commerce-api-calls.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* @since 1.6.0
*/

namespace OpenedX_Commerce\model;
namespace OpenedXCommerce\model;

require_once plugin_dir_path( dirname( __DIR__ ) ) . 'vendor/autoload.php';
use DateTime;
Expand Down
10 changes: 5 additions & 5 deletions includes/model/class-openedx-commerce-enrollment.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@
* @since 1.0.0
*/

namespace OpenedX_Commerce\model;
namespace OpenedXCommerce\model;

use OpenedX_Commerce\model\Openedx_Commerce_Log;
use OpenedX_Commerce\Openedx_Commerce;
use OpenedX_Commerce\admin\Openedx_Commerce_Admin;
use OpenedX_Commerce\model\Openedx_Commerce_Api_Calls;
use OpenedXCommerce\model\Openedx_Commerce_Log;
use OpenedXCommerce\Openedx_Commerce;
use OpenedXCommerce\admin\Openedx_Commerce_Admin;
use OpenedXCommerce\model\Openedx_Commerce_Api_Calls;

if ( ! defined( 'ABSPATH' ) ) {
exit;
Expand Down
2 changes: 1 addition & 1 deletion includes/model/class-openedx-commerce-log.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* @since 1.4.0
*/

namespace OpenedX_Commerce\model;
namespace OpenedXCommerce\model;

if ( ! defined( 'ABSPATH' ) ) {
exit;
Expand Down
2 changes: 1 addition & 1 deletion includes/model/class-openedx-commerce-post-type.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* @since 1.0.0
*/

namespace OpenedX_Commerce\model;
namespace OpenedXCommerce\model;

if ( ! defined( 'ABSPATH' ) ) {
exit;
Expand Down
8 changes: 4 additions & 4 deletions openedx-commerce.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@
* Requires at least: 6.3
* Requires PHP: 8.0
*
* @package OpenedX_Commerce
* @package Openedx_Commerce
*
* @wordpress-plugin
*/

use OpenedX_Commerce\Openedx_Commerce_Activator;
use OpenedX_Commerce\Openedx_Commerce_Deactivator;
use OpenedX_Commerce\Openedx_Commerce;
use OpenedXCommerce\Openedx_Commerce_Activator;
use OpenedXCommerce\Openedx_Commerce_Deactivator;
use OpenedXCommerce\Openedx_Commerce;

// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
Expand Down
2 changes: 1 addition & 1 deletion public/class-openedx-commerce-public.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* @subpackage Openedx_Commerce/public
*/

namespace OpenedX_Commerce\public;
namespace OpenedXCommerce\public;

/**
* The public-facing functionality of the plugin.
Expand Down
8 changes: 4 additions & 4 deletions test/class-enrollment-test.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
* @subpackage openedx-commerce/tests
*/

namespace OpenedX_Commerce\tests;
namespace OpenedXCommerce\tests;

use OpenedX_Commerce\model\Openedx_Commerce_Enrollment;
use OpenedX_Commerce\model\Openedx_Commerce_Post_Type;
use OpenedX_Commerce\admin\Openedx_Commerce_Admin;
use OpenedXCommerce\model\Openedx_Commerce_Enrollment;
use OpenedXCommerce\model\Openedx_Commerce_Post_Type;
use OpenedXCommerce\admin\Openedx_Commerce_Admin;
use PHPUnit\Framework\TestCase;

/**
Expand Down
2 changes: 1 addition & 1 deletion utils/openedx-utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* @since 1.6.0
*/

namespace OpenedX_Commerce\utils;
namespace OpenedXCommerce\utils;

/**
* Enrollment Request mode options.
Expand Down

0 comments on commit 26c1093

Please sign in to comment.