Skip to content

Commit

Permalink
Fixed code standards
Browse files Browse the repository at this point in the history
  • Loading branch information
brendanheywood committed Aug 16, 2023
1 parent a182611 commit 5632524
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 1 deletion.
4 changes: 3 additions & 1 deletion classes/event/notification_received.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@

use tool_emailutils;


/**
* Event
*/
class notification_received extends \core\event\base {

/**
Expand Down
7 changes: 7 additions & 0 deletions classes/sns_client.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.

/**
* Amazon SNS Client Interface
*
* @package tool_emailutils
* @copyright 2018 onwards Catalyst IT {@link http://www.catalyst-eu.net/}
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
Expand Down Expand Up @@ -45,14 +47,19 @@
*/
class sns_client {

/** Subscribe */
const SUBSCRIPTION_TYPE = 'SubscriptionConfirmation';

/** Unsubscribe */
const UNSUBSCRIPTION_TYPE = 'UnsubscribeConfirmation';

/** Notify */
const NOTIFICATION_TYPE = 'Notification';

/** Complaint */
const COMPLAINT_TYPE = 'Complaint';

/** Bounce */
const BOUNCE_TYPE = 'Bounce';

/**
Expand Down
2 changes: 2 additions & 0 deletions classes/sns_notification.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.

/**
* Amazon SNS Notification Class
*
* @package tool_emailutils
* @copyright 2018 onwards Catalyst IT {@link http://www.catalyst-eu.net/}
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
Expand Down
6 changes: 6 additions & 0 deletions client.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.

/**
* An email bounce complaint handler webhook
*
* This is the endpoint that AWS notifies when it receives a complaint.
* This handles the complaint by incrementing the users bounce level and
* emiting a Moodle event.
*
* @package tool_emailutils
* @copyright 2018 onwards Catalyst IT {@link http://www.catalyst-eu.net/}
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
Expand Down
2 changes: 2 additions & 0 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.

/**
* Email bounce handler
*
* @package tool_emailutils
* @copyright 2019 onwards Catalyst IT {@link http://www.catalyst-eu.net/}
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
Expand Down
5 changes: 5 additions & 0 deletions lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,17 @@
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.

/**
* Lib
*
* @package tool_emailutils
* @copyright 2018 onwards Catalyst IT {@link http://www.catalyst-eu.net/}
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
* @author Harry Barnard <[email protected]>
*/

/**
* This adds a new bulk user action to reset a persons bounce count
*/
function tool_emailutils_bulk_user_actions() {
return [
'tool_ses_reset_bounces' => new action_link(
Expand Down
2 changes: 2 additions & 0 deletions version.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.

/**
* Version
*
* @package tool_emailutils
* @copyright 2018 onwards Catalyst IT {@link http://www.catalyst-eu.net/}
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
Expand Down

0 comments on commit 5632524

Please sign in to comment.