Skip to content

Commit

Permalink
Update function return type & variable class names
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonyThorpe committed Dec 3, 2023
1 parent 9302a50 commit d1d8f84
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/Order.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class Order extends DataExtension
* Normally, an unpaid order will not generate an email.
* @see onPlaceOrder is an extension within the placeOrder function within the OrderProcessor class
*/
public function onPlaceOrder()
public function onPlaceOrder(): void
{
$gateway = Checkout::get($this->owner)->getSelectedPaymentMethod();
if (OrderProcessor::config()->bank_deposit_send_confirmation &&
Expand Down
2 changes: 1 addition & 1 deletion src/ShopConfigExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class ShopConfigExtension extends DataExtension
'BankAccountInvoiceMessage' => 'HTMLText'
];

public function updateCMSFields(FieldList $fields)
public function updateCMSFields(FieldList $fields): void
{
$fields->addFieldsToTab(
'Root.Shop.ShopTabs.' . _t('SilverShop\Extension\ShopConfigExtension.BankAccountTitle', 'Bank Account'),
Expand Down
2 changes: 1 addition & 1 deletion tests/AccountPageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class AccountPageTest extends FunctionalTest
];

/**
* @var SilverStripe\ORM\DataObject
* @var \SilverStripe\ORM\DataObject
*/
protected $accountpage;

Expand Down
2 changes: 1 addition & 1 deletion tests/SteppedCheckoutPageGuestTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class SteppedCheckoutPageGuestTest extends FunctionalTest
protected static $disable_theme = true;

/**
* @var SilverStripe\ORM\DataObject
* @var \SilverStripe\ORM\DataObject
*/
protected $laptop;

Expand Down
2 changes: 1 addition & 1 deletion tests/SteppedCheckoutPageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class SteppedCheckoutPageTest extends FunctionalTest
protected static $disable_theme = true;

/**
* @var SilverStripe\ORM\DataObject
* @var \SilverStripe\ORM\DataObject
*/
protected $laptop;

Expand Down

0 comments on commit d1d8f84

Please sign in to comment.