Skip to content

Commit

Permalink
Simplify doc blocks.
Browse files Browse the repository at this point in the history
  • Loading branch information
remcotolsma committed Feb 27, 2025
1 parent 759cf6f commit 8afd816
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 43 deletions.
8 changes: 2 additions & 6 deletions src/ContactForm7Dependency.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* Contact Form 7 Dependency
* Contact Form 7 dependency
*
* @author Pronamic <info@pronamic.eu>
* @copyright 2005-2025 Pronamic
Expand All @@ -13,11 +13,7 @@
use Pronamic\WordPress\Pay\Dependencies\Dependency;

/**
* Contact Form 7 Dependency
*
* @author Reüel van der Steege
* @version 1.0.0
* @since 1.0.0
* Contact Form 7 dependency class
*/
class ContactForm7Dependency extends Dependency {
/**
Expand Down
9 changes: 1 addition & 8 deletions src/Extension.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,7 @@
use WPCF7_Submission;

/**
* Title: WordPress pay extension Contact Form 7 extension
* Description:
* Copyright: 2005-2025 Pronamic
* Company: Pronamic
*
* @author Reüel van der Steege
* @version 1.0.0
* @since 1.0.0
* Extension class
*/
class Extension extends AbstractPluginIntegration {
/**
Expand Down
6 changes: 1 addition & 5 deletions src/Pronamic.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,7 @@
use WPCF7_Submission;

/**
* Pronamic
*
* @author Reüel van der Steege
* @version 1.0.0
* @since 1.0.0
* Pronamic class
*/
class Pronamic {
/**
Expand Down
9 changes: 2 additions & 7 deletions src/Tags/AmountTag.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* Amount form tag.
* Amount tag
*
* @author Pronamic <info@pronamic.eu>
* @copyright 2005-2025 Pronamic
Expand All @@ -16,11 +16,7 @@
use WPCF7_Validation;

/**
* Amount tag.
*
* @author Reüel van der Steege
* @since 1.0.0
* @version 1.0.0
* Amount tag class
*/
class AmountTag {
/**
Expand All @@ -35,7 +31,6 @@ public function __construct() {
\wpcf7_add_form_tag( self::TAG, [ $this, 'handler' ], true );
\wpcf7_add_form_tag( self::TAG . '*', [ $this, 'handler' ], true );

// Filters.
\add_filter( 'wpcf7_validate_' . self::TAG, [ $this, 'validate' ], 10, 2 );
\add_filter( 'wpcf7_validate_' . self::TAG . '*', [ $this, 'validate' ], 10, 2 );
\add_filter( 'wpcf7_messages', [ $this, 'messages' ] );
Expand Down
10 changes: 2 additions & 8 deletions src/Tags/IssuerTag.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* Issuer form tag.
* Issuer tag
*
* @author Pronamic <info@pronamic.eu>
* @copyright 2005-2025 Pronamic
Expand All @@ -17,11 +17,7 @@
use WPCF7_Validation;

/**
* Issuer tag.
*
* @author Reüel van der Steege
* @since 1.0.0
* @version 1.0.0
* Issuer tag class
*/
class IssuerTag {
/**
Expand All @@ -36,11 +32,9 @@ public function __construct() {
\wpcf7_add_form_tag( self::TAG, [ $this, 'handler' ], true );
\wpcf7_add_form_tag( self::TAG . '*', [ $this, 'handler' ], true );

// Filters.
\add_filter( 'wpcf7_validate_' . self::TAG, [ $this, 'validate' ], 10, 2 );
\add_filter( 'wpcf7_validate_' . self::TAG . '*', [ $this, 'validate' ], 10, 2 );

// Actions.
\add_action( 'wpcf7_admin_init', [ $this, 'add_tag_generator' ], 60 );
}

Expand Down
11 changes: 2 additions & 9 deletions src/Tags/PaymentMethodTag.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* Payment method form tag.
* Payment method tag
*
* @author Pronamic <info@pronamic.eu>
* @copyright 2005-2025 Pronamic
Expand All @@ -16,11 +16,7 @@
use WPCF7_Validation;

/**
* Payment method tag.
*
* @author Reüel van der Steege
* @since 1.0.0
* @version 1.0.0
* Payment method tag class
*/
class PaymentMethodTag {
/**
Expand All @@ -35,12 +31,10 @@ public function __construct() {
\wpcf7_add_form_tag( self::TAG, [ $this, 'handler' ], true );
\wpcf7_add_form_tag( self::TAG . '*', [ $this, 'handler' ], true );

// Filters.
\add_filter( 'wpcf7_validate_' . self::TAG, [ $this, 'validate' ], 10, 2 );
\add_filter( 'wpcf7_validate_' . self::TAG . '*', [ $this, 'validate' ], 10, 2 );
\add_filter( 'wpcf7_messages', [ $this, 'messages' ] );

// Actions.
\add_action( 'wpcf7_admin_init', [ $this, 'add_tag_generator' ], 60 );
}

Expand All @@ -57,7 +51,6 @@ public function handler( $tag ) {
return '';
}

// Get gateway.
$gateway = Pronamic::get_default_gateway();

if ( null === $gateway ) {
Expand Down

0 comments on commit 8afd816

Please sign in to comment.