Skip to content

Commit

Permalink
Fix coding style
Browse files Browse the repository at this point in the history
  • Loading branch information
szepeviktor committed Nov 30, 2024
1 parent 28096ef commit ff18ec3
Show file tree
Hide file tree
Showing 12 changed files with 25 additions and 17 deletions.
2 changes: 1 addition & 1 deletion src/Contract/WpFilterServiceInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ interface WpFilterServiceInterface
* @return T
*/
public function apply(string $name, $value, ...$args);
}
}
5 changes: 4 additions & 1 deletion src/Hooks/CartFeesHooks.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ final class CartFeesHooks implements WordPressHooksInterface
/** @var WcTaxService */
private $taxService;

public function __construct(WcTaxService $taxService) { $this->taxService = $taxService; }
public function __construct(WcTaxService $taxService)
{
$this->taxService = $taxService;
}

public function apply(): void
{
Expand Down
1 change: 0 additions & 1 deletion src/Hooks/Concern/UsesPdkRequestConverter.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,3 @@ protected function convertRequest(WP_REST_Request $wpRestRequest): Request
return $request;
}
}

6 changes: 4 additions & 2 deletions src/Integration/AbstractBlocksIntegration.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,12 @@ final public function get_script_handles(): array
/**
* @return void
*/
public function initialize(): void {}
public function initialize(): void
{
}

protected function getScriptData(): array
{
return [];
}
}
}
12 changes: 9 additions & 3 deletions src/Migration/AbstractUpgradeMigration.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,16 @@ protected function getSettings(string $settingName): array
/**
* Import any dependencies you might need using this function
*/
protected function import(): void { }
protected function import(): void
{
}

/**
* Put the migration logic in this function.
*/
protected function migrate(): void { }
protected function migrate(): void
{
}

/**
* @param array $map
Expand Down Expand Up @@ -125,5 +129,7 @@ protected function saveSettings(string $name, array $settings): void
/**
*
*/
protected function setOptionSettingsMap(): void { }
protected function setOptionSettingsMap(): void
{
}
}
5 changes: 3 additions & 2 deletions src/Migration/Migration2_0_0.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
*/
final class Migration2_0_0 implements MigrationInterface
{
public function down(): void {}
public function down(): void
{
}

public function getVersion(): string
{
Expand Down Expand Up @@ -78,4 +80,3 @@ public function up(): void
update_option('woocommerce_myparcel_export_defaults_settings', $defaultSettings);
}
}

1 change: 0 additions & 1 deletion src/Migration/Migration2_4_0_beta_4.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,3 @@ public function up(): void
}
}
}

1 change: 0 additions & 1 deletion src/Migration/Migration4_0_0.php
Original file line number Diff line number Diff line change
Expand Up @@ -237,4 +237,3 @@ private function migrateGeneralSettings(): void
);
}
}

1 change: 0 additions & 1 deletion src/Migration/Migration4_1_0.php
Original file line number Diff line number Diff line change
Expand Up @@ -242,4 +242,3 @@ private function roundUpToMatch(int $target, array $possibleValues): int
return $possibleValues[$match] ?? $possibleValues[0];
}
}

1 change: 0 additions & 1 deletion src/Migration/Migration4_2_1.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,3 @@ protected function setOptionSettingsMap(): void
];
}
}

1 change: 0 additions & 1 deletion src/Migration/Migration4_4_1.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,3 @@ private function migrateGeneralSettings(): void
unset($this->newCheckoutSettings['show_delivery_day']);
}
}

6 changes: 4 additions & 2 deletions src/Pdk/WcPdkBootstrapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,10 @@ protected function getAdditionalConfig(

'disabledSettings' => factory(function () {
$disabledSettings = [];
if (Pdk::get(WooCommerceService::class)
->isUsingBlocksCheckout()) {
if (
Pdk::get(WooCommerceService::class)
->isUsingBlocksCheckout()
) {
$disabledSettings[CheckoutSettings::ID][] = CheckoutSettings::DELIVERY_OPTIONS_POSITION;
}

Expand Down

0 comments on commit ff18ec3

Please sign in to comment.