Skip to content

Commit

Permalink
chore: replace all @SInCE 0.*.0 tags with @SInCE 3.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon Waldstein committed Aug 15, 2023
1 parent eeb4148 commit 8adc133
Show file tree
Hide file tree
Showing 267 changed files with 825 additions and 826 deletions.
6 changes: 3 additions & 3 deletions src/DonationForms/Actions/ConvertConsentBlockToFieldsApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
class ConvertConsentBlockToFieldsApi
{
/**
* @since 0.5.0
* @since 3.0.0
*/
public function __invoke(BlockModel $block, int $blockIndex)
{
Expand All @@ -25,7 +25,7 @@ public function __invoke(BlockModel $block, int $blockIndex)
}

/**
* @since 0.5.0
* @since 3.0.0
*
* @return void
*/
Expand All @@ -40,7 +40,7 @@ private function setGlobalAttributes(Consent $field)
}

/**
* @since 0.5.0
* @since 3.0.0
*
* @return void
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class ConvertDonationAmountBlockToFieldsApi
{

/**
* @since 0.3.0
* @since 3.0.0
*
* @throws EmptyNameException
* @throws NameCollisionException
Expand Down Expand Up @@ -116,7 +116,7 @@ public function __invoke(BlockModel $block, string $currency): DonationAmount
}

/**
* @since 0.3.0
* @since 3.0.0
*
* @throws EmptyNameException
*/
Expand Down Expand Up @@ -161,7 +161,7 @@ protected function getRecurringAmountPeriodField(BlockModel $block): Field
}

/**
* @since 0.3.0
* @since 3.0.0
*/
protected function mergePeriodOptionsWithOneTime(array $options): array
{
Expand Down
24 changes: 12 additions & 12 deletions src/DonationForms/Actions/ConvertDonationFormBlocksToFieldsApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
use WP_User;

/**
* @since 0.1.0
* @since 3.0.0
*/
class ConvertDonationFormBlocksToFieldsApi
{
Expand All @@ -44,10 +44,10 @@ class ConvertDonationFormBlocksToFieldsApi
protected $currency;

/**
* @since 0.6.0 return DonationForm Node
* @since 0.4.0 conditionally append blocks if block has inner blocks. Add blockIndex to inner blocks node converter.
* @since 3.0.0 return DonationForm Node
* @since 3.0.0 conditionally append blocks if block has inner blocks. Add blockIndex to inner blocks node converter.
* @since 0.3.3 conditionally append blocks if block has inner blocks
* @since 0.1.0
* @since 3.0.0
*
* @throws TypeNotSupported|NameCollisionException
*/
Expand Down Expand Up @@ -86,7 +86,7 @@ static function ($node) {

/**
* @since 0.3.3 remove innerBlock appending
* @since 0.1.0
* @since 3.0.0
*/
protected function convertTopLevelBlockToSection(BlockModel $block, int $blockIndex): Section
{
Expand All @@ -97,7 +97,7 @@ protected function convertTopLevelBlockToSection(BlockModel $block, int $blockIn

/**
* @unlreased add `givewp_donation_form_block_converted_to_node` action hook
* @since 0.1.0
* @since 3.0.0
*
* @throws EmptyNameException|NameCollisionException
*
Expand All @@ -119,7 +119,7 @@ protected function convertInnerBlockToNode(BlockModel $block, int $blockIndex)
}

/**
* @since 0.5.0 Add support to billing address field
* @since 3.0.0 Add support to billing address field
* @since 0.4.0 add blockIndex for unique field names, add filter `givewp_donation_form_block_render` filters
* @since 0.1.0
*
Expand Down Expand Up @@ -246,7 +246,7 @@ protected function createNodeFromBlockWithUniqueAttributes(BlockModel $block, in
}

/**
* @since 0.1.0
* @since 3.0.0
*/
protected function createNodeFromDonorNameBlock(BlockModel $block): Node
{
Expand Down Expand Up @@ -288,7 +288,7 @@ protected function createNodeFromDonorNameBlock(BlockModel $block): Node
}

/**
* @since 0.5.0
* @since 3.0.0
*/
protected function createNodeFromBillingAddressBlock(BlockModel $block): Node
{
Expand Down Expand Up @@ -341,7 +341,7 @@ protected function createNodeFromBillingAddressBlock(BlockModel $block): Node
}

/**
* @since 0.2.0
* @since 3.0.0
*
* @throws NameCollisionException
* @throws EmptyNameException
Expand All @@ -352,15 +352,15 @@ protected function createNodeFromAmountBlock(BlockModel $block): Node
}

/**
* @since 0.5.0
* @since 3.0.0
*/
protected function createNodeFromConsentBlock(BlockModel $block, int $blockIndex): Node
{
return (new ConvertConsentBlockToFieldsApi())($block, $blockIndex);
}

/**
* @since 0.1.0
* @since 3.0.0
*/
protected function mapGenericBlockAttributesToNode(Node $node, BlockModel $block): Node
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
class ConvertQueryDataToDonationForm
{
/**
* @since 0.1.0
* @since 3.0.0
*
* @param object $queryObject
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
class DispatchDonateControllerDonationCreatedListeners
{
/**
* @since 0.3.0
* @since 3.0.0
*/
public function __invoke(DonateControllerData $formData, Donation $donation)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
class DispatchDonateControllerSubscriptionCreatedListeners
{
/**
* @since 0.3.0
* @since 3.0.0
*/
public function __invoke(DonateControllerData $formData, Subscription $subscription, Donation $donation)
{
Expand Down
4 changes: 2 additions & 2 deletions src/DonationForms/Actions/GenerateAuthUrl.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
use Give\Framework\Routes\Route;

/**
* @since 0.1.0
* @since 3.0.0
*/
class GenerateAuthUrl
{
/**
* @since 0.1.0
* @since 3.0.0
*/
public function __invoke(): string
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
class GenerateDonateRouteSignatureArgs
{
/**
* @since 0.4.0
* @since 3.0.0
*/
public function __invoke(DonateRouteSignature $signature, string $signatureId): array
{
Expand Down
4 changes: 2 additions & 2 deletions src/DonationForms/Actions/GenerateDonateRouteUrl.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
use Give\Framework\Routes\Route;

/**
* @since 0.1.0
* @since 3.0.0
*/
class GenerateDonateRouteUrl
{
/**
* @since 0.1.0
* @since 3.0.0
*
* @return string
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
class GenerateDonationConfirmationReceiptUrl
{
/**
* @since 0.1.0
* @since 3.0.0
*/
public function __invoke(Donation $donation, string $originUrl, string $embedId = ''): string
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
use Give\Framework\Routes\Route;

/**
* @since 0.1.0
* @since 3.0.0
*/
class GenerateDonationConfirmationReceiptViewRouteUrl
{
/**
* @since 0.1.0
* @since 3.0.0
*/
public function __invoke(string $receiptId): string
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
use Give\Framework\Routes\Route;

/**
* @since 0.1.0
* @since 3.0.0
*/
class GenerateDonationFormPreviewRouteUrl
{
/**
* @since 0.1.0
* @since 3.0.0
*/
public function __invoke(int $formId): string
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
use Give\Framework\Routes\Route;

/**
* @since 0.4.0
* @since 3.0.0
*/
class GenerateDonationFormValidationRouteUrl
{
/**
* @since 0.4.0
* @since 3.0.0
*
* @return string
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
use Give\Framework\Routes\Route;

/**
* @since 0.1.0
* @since 3.0.0
*/
class GenerateDonationFormViewRouteUrl
{
/**
* @since 0.1.0
* @since 3.0.0
*/
public function __invoke(int $formId): string
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
class SanitizeDonationFormPreviewRequest
{
/**
* @since 0.6.0
* @since 3.0.0
*/
public function __invoke($var)
{
Expand Down
12 changes: 6 additions & 6 deletions src/DonationForms/Actions/StoreBackwardsCompatibleFormMeta.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
class StoreBackwardsCompatibleFormMeta
{
/**
* @since 0.1.0
* @since 3.0.0
*/
public function __invoke(DonationForm $donationForm)
{
Expand All @@ -22,8 +22,8 @@ public function __invoke(DonationForm $donationForm)
}

/**
* @since 0.3.0 update with dynamic values from amount field
* @since 0.1.0
* @since 3.0.0 update with dynamic values from amount field
* @since 3.0.0
*/
public function storeDonationLevels(DonationForm $donationForm)
{
Expand Down Expand Up @@ -60,7 +60,7 @@ public function storeDonationLevels(DonationForm $donationForm)
}

/**
* @since 0.1.0
* @since 3.0.0
*/
public function storeDonationGoal(DonationForm $donationForm)
{
Expand All @@ -87,15 +87,15 @@ public function storeDonationGoal(DonationForm $donationForm)
}

/**
* @since 0.1.0
* @since 3.0.0
*/
protected function saveSingleFormMeta($formId, $metaKey, $metaValue)
{
give()->form_meta->update_meta($formId, $metaKey, $metaValue);
}

/**
* @since 0.3.0
* @since 3.0.0
*/
protected function storeRecurringMetaKeys(DonationForm $donationForm)
{
Expand Down
2 changes: 1 addition & 1 deletion src/DonationForms/Blocks/DonationFormBlock/Block.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class Block
{

/**
* @since 0.1.0
* @since 3.0.0
*
* @return void
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
class BlockRenderController
{
/**
* @since 0.5.0 replace iframe with root element for react
* @since 3.0.0 replace iframe with root element for react
* @since 0.1.0
*
* @return string|null
Expand Down Expand Up @@ -50,7 +50,7 @@ public function render(array $attributes)
/**
* If the page loads with our receipt route listener args then we need to render the receipt.
*
* @since 0.1.0
* @since 3.0.0
*/
protected function shouldDisplayDonationConfirmationReceipt(string $embedId): bool
{
Expand All @@ -72,7 +72,7 @@ protected function shouldDisplayDonationConfirmationReceipt(string $embedId): bo
* Get the iframe URL.
* This could either be the donation form view or the donation confirmation receipt view.
*
* @since 0.1.0
* @since 3.0.0
*/
private function getViewUrl(DonationForm $donationForm, string $embedId): string
{
Expand All @@ -90,7 +90,7 @@ private function getViewUrl(DonationForm $donationForm, string $embedId): string
* Load embed givewp script to resize iframe
* @see https://github.com/davidjbradshaw/iframe-resizer
*
* @since 0.5.0 load app scripts
* @since 3.0.0 load app scripts
* @since 0.1.0
*/
private function loadEmbedScript()
Expand Down
Loading

0 comments on commit 8adc133

Please sign in to comment.