Skip to content

Commit

Permalink
Tidy up file structure
Browse files Browse the repository at this point in the history
  • Loading branch information
renintw committed Sep 15, 2023
1 parent 0eca655 commit 3e7e009
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
use CampTix_Plugin;

use function WordCamp\OrganizerSurvey\{get_feature_id};
use function WordCamp\OrganizerSurvey\Email\{get_email_id};
use function WordCamp\OrganizerSurvey\DebriefSurvey\{get_page_id};
use function WordCamp\OrganizerSurvey\DebriefSurvey\Email\{get_email_id};
use function WordCamp\OrganizerSurvey\DebriefSurvey\Page\{get_page_id};

add_action( 'init', __NAMESPACE__ . '\init' );

Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<?php

namespace WordCamp\OrganizerSurvey\Cron;
namespace WordCamp\OrganizerSurvey\DebriefSurvey\Cron;

defined( 'WPINC' ) || die();

use CampTix_Plugin;

use function WordCamp\OrganizerSurvey\Email\{get_email_id, queue_survey_email};
use function WordCamp\OrganizerSurvey\DebriefSurvey\{disable_page, publish_survey_page};
use function WordCamp\OrganizerSurvey\DebriefSurvey\Email\{get_email_id, queue_survey_email};
use function WordCamp\OrganizerSurvey\DebriefSurvey\Page\{disable_page, publish_survey_page};

/**
* Constants.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
* Creates the Organizer Debrief Survey email in the Camptix email queue.
*/

namespace WordCamp\OrganizerSurvey\Email;
namespace WordCamp\OrganizerSurvey\DebriefSurvey\Email;

defined( 'WPINC' ) || die();

use function WordCamp\OrganizerSurvey\DebriefSurvey\{get_survey_page_url};
use function WordCamp\OrganizerSurvey\DebriefSurvey\Page\{get_survey_page_url};

/**
* Constants.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Adds a page which contains the debrief survey.
*/

namespace WordCamp\OrganizerSurvey\DebriefSurvey;
namespace WordCamp\OrganizerSurvey\DebriefSurvey\Page;

defined( 'WPINC' ) || die();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,17 @@

namespace WordCamp\OrganizerSurvey;

use function WordCamp\OrganizerSurvey\DebriefSurvey\{add_page, delete_page};
use function WordCamp\OrganizerSurvey\Email\{add_email, delete_email};
use function WordCamp\OrganizerSurvey\Cron\delete_temp_attendee;
use function WordCamp\OrganizerSurvey\DebriefSurvey\Page\{add_page, delete_page};
use function WordCamp\OrganizerSurvey\DebriefSurvey\Email\{add_email, delete_email};
use function WordCamp\OrganizerSurvey\DebriefSurvey\Cron\delete_temp_attendee;

defined( 'WPINC' ) || die();

/**
* Local dependencies.
*/
require_once get_includes_path() . 'email.php';
require_once get_includes_path() . 'pages/debrief-survey.php';
require_once get_includes_path() . 'debrief-survey/email.php';
require_once get_includes_path() . 'debrief-survey/page.php';

/**
* Plugin deactivation hook.
Expand Down

0 comments on commit 3e7e009

Please sign in to comment.