Skip to content

style: add missing newlines to end of file

Codacy Production / Codacy Static Code Analysis required action Nov 8, 2024 in 0s

15 new issues (0 max.) of at least minor severity.

Codacy Here is an overview of what got changed by this pull request:

Issues
======
- Added 15
           

Complexity increasing per file
==============================
- views/frontend/checkout-core/src/blocks/updateAddressInStore.ts  2
- views/frontend/checkout-core/src/blocks/createBlocksCheckoutSelector.ts  2
- src/WooCommerce/Address/StreetAbstractAddressField.php  1
- views/frontend/checkout-core/src/blocks/createBlocksCheckoutFieldSelectors.ts  1
- views/frontend/checkout-core/src/blocks/resolveAddress.spec.ts  1
- src/PluginLoader.php  3
- src/WooCommerce/Address/NumberSuffixAbstractAddressField.php  1
- views/frontend/checkout-core/src/blocks/getBlocksCheckoutConfig.spec.ts  1
- src/WooCommerce/Address/EoriNumberField.php  1
- views/blocks/delivery-options/src/utils/getDeliveryOptionsData.ts  1
- src/WooCommerce/Address/VatNumberField.php  1
- src/WooCommerce/Address/AbstractAddressField.php  2
- views/frontend/checkout-core/src/blocks/resolveAddressKey.ts  3
- views/frontend/checkout-core/src/blocks/resolveAddress.ts  3
- src/WooCommerce/Address/NumberAbstractAddressField.php  1
- src/Hooks/AbstractFieldsHooks.php  3
         

Complexity decreasing per file
==============================
+ src/Hooks/TaxFieldsHooks.php  -3
+ woocommerce-myparcel.php  -1
         

See the complete overview on Codacy

Annotations

Check warning on line 183 in src/Hooks/AbstractFieldsHooks.php

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

src/Hooks/AbstractFieldsHooks.php#L183

Avoid unused local variables such as '$additionalField'.

Check notice on line 188 in src/Hooks/AbstractFieldsHooks.php

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

src/Hooks/AbstractFieldsHooks.php#L188

Avoid using undefined variables such as '$additionalFields' which will lead to PHP notices.

Check notice on line 195 in src/Hooks/AbstractFieldsHooks.php

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

src/Hooks/AbstractFieldsHooks.php#L195

Avoid using undefined variables such as '$additionalFields' which will lead to PHP notices.

Check notice on line 121 in src/PluginLoader.php

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

src/PluginLoader.php#L121

Expected 1 newline at end of file; 0 found

Check notice on line 121 in src/PluginLoader.php

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

src/PluginLoader.php#L121

File must end with a newline character

Check notice on line 78 in src/WooCommerce/Address/Contract/AddressFieldInterface.php

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

src/WooCommerce/Address/Contract/AddressFieldInterface.php#L78

Expected 1 newline at end of file; 0 found

Check notice on line 78 in src/WooCommerce/Address/Contract/AddressFieldInterface.php

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

src/WooCommerce/Address/Contract/AddressFieldInterface.php#L78

File must end with a newline character

Check notice on line 24 in src/WooCommerce/Address/EoriNumberField.php

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

src/WooCommerce/Address/EoriNumberField.php#L24

Expected 1 newline at end of file; 0 found

Check notice on line 24 in src/WooCommerce/Address/EoriNumberField.php

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

src/WooCommerce/Address/EoriNumberField.php#L24

File must end with a newline character

Check notice on line 32 in src/WooCommerce/Address/NumberAbstractAddressField.php

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

src/WooCommerce/Address/NumberAbstractAddressField.php#L32

Expected 1 blank line at end of file; 2 found

Check notice on line 36 in src/WooCommerce/Address/NumberSuffixAbstractAddressField.php

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

src/WooCommerce/Address/NumberSuffixAbstractAddressField.php#L36

Expected 1 newline at end of file; 0 found

Check notice on line 36 in src/WooCommerce/Address/NumberSuffixAbstractAddressField.php

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

src/WooCommerce/Address/NumberSuffixAbstractAddressField.php#L36

File must end with a newline character

Check notice on line 24 in src/WooCommerce/Address/VatNumberField.php

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

src/WooCommerce/Address/VatNumberField.php#L24

Expected 1 blank line at end of file; 2 found

Check notice on line 70 in woocommerce-myparcel.php

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

woocommerce-myparcel.php#L70

Expected 1 newline at end of file; 0 found

Check notice on line 70 in woocommerce-myparcel.php

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

woocommerce-myparcel.php#L70

File must end with a newline character