Skip to content

Commit

Permalink
Fix PHPCS lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
danieliser committed Aug 5, 2024
1 parent df68aa8 commit c808b07
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions edd-file-watermarking.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?php

/**
* Plugin Name: EDD File Watermarking
* Description: Adds an identifier to downloaded EDD files to track which customer downloaded it. Thanks @westguard!
Expand All @@ -20,7 +19,7 @@

require_once __DIR__ . '/inc/functions.php';

if (!defined('ABSPATH')) {
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}

Expand All @@ -29,27 +28,27 @@
*
* This calls the `watermark_edd_download` and `watermark_edd_download_{$plugin_filename}` action if the file should be watermarked.
*/
add_filter('edd_requested_file', __NAMESPACE__ . '\\watermark_edd_download', 10, 4);
add_filter( 'edd_requested_file', __NAMESPACE__ . '\\watermark_edd_download', 10, 4 );

/**
* Process the built global & per download settings in watermarks on a given zip file.
*/
add_action('watermark_edd_download', __NAMESPACE__ . '\\process_zip_builtin_watermarks', 10, 2);
add_action( 'watermark_edd_download', __NAMESPACE__ . '\\process_zip_builtin_watermarks', 10, 2 );

/**
* Add global extension settings.
*/
add_filter('edd_settings_sections_extensions', __NAMESPACE__ . '\\edd_watermark_register_settings_section');
add_filter('edd_settings_extensions', __NAMESPACE__ . '\\edd_watermark_add_settings');
add_filter('edd_settings_sanitize_watermark_repeater', __NAMESPACE__ . '\\sanitize_watermark_repeater_settings', 10, 2);
add_filter( 'edd_settings_sections_extensions', __NAMESPACE__ . '\\edd_watermark_register_settings_section' );
add_filter( 'edd_settings_extensions', __NAMESPACE__ . '\\edd_watermark_add_settings' );
add_filter( 'edd_settings_sanitize_watermark_repeater', __NAMESPACE__ . '\\sanitize_watermark_repeater_settings', 10, 2 );

/**
* Add the watermark meta box.
*/
add_action('add_meta_boxes', __NAMESPACE__ . '\\edd_watermark_add_meta_box');
add_action('save_post', __NAMESPACE__ . '\\edd_watermark_save_post_meta');
add_action( 'add_meta_boxes', __NAMESPACE__ . '\\edd_watermark_add_meta_box' );
add_action( 'save_post', __NAMESPACE__ . '\\edd_watermark_save_post_meta' );

/**
* Cleanup old watermarks on a daily basis.
*/
add_action('edd_daily_scheduled_events', __NAMESPACE__ . '\\edd_watermark_cleanup');
add_action( 'edd_daily_scheduled_events', __NAMESPACE__ . '\\edd_watermark_cleanup' );

0 comments on commit c808b07

Please sign in to comment.