Fixed PHPCS violations on i18n directory

This commit is contained in:
Claudio Sanches 2018-03-05 16:44:56 -03:00
parent 73c85ec38d
commit d43cd90cb3
37 changed files with 162 additions and 188 deletions

View File

@ -4,10 +4,8 @@
*
* Returns an array of continents.
*
* @author WooThemes
* @category i18n
* @package WooCommerce/i18n
* @version 2.5.0
* @package WooCommerce/i18n
* @version 2.5.0
*/
if ( ! defined( 'ABSPATH' ) ) {

View File

@ -4,10 +4,8 @@
*
* Returns an array of countries and codes.
*
* @author WooThemes
* @category i18n
* @package WooCommerce/i18n
* @version 2.5.0
* @package WooCommerce/i18n
* @version 2.5.0
*/
if ( ! defined( 'ABSPATH' ) ) {

View File

@ -1,4 +1,11 @@
<?php
/**
* Locales information
*
* @package WooCommerce/i18n
* @version 3.4.0
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
@ -54,7 +61,7 @@ return array(
'dimension_unit' => 'cm',
'tax_rates' => array(
'' => array(
array(
array(
'country' => 'BE',
'state' => '',
'rate' => '21.0000',
@ -123,7 +130,7 @@ return array(
'priority' => 2,
),
),
'*' => array(
'*' => array(
array(
'country' => 'CA',
'state' => 'ON',
@ -300,19 +307,19 @@ return array(
),
'GB' => array(
'currency_code' => 'GBP',
'currency_pos' => 'left',
'thousand_sep' => ',',
'decimal_sep' => '.',
'num_decimals' => 2,
'weight_unit' => 'kg',
'currency_pos' => 'left',
'thousand_sep' => ',',
'decimal_sep' => '.',
'num_decimals' => 2,
'weight_unit' => 'kg',
'dimension_unit' => 'cm',
'tax_rates' => array(
'tax_rates' => array(
'' => array(
array(
'country' => 'GB',
'state' => '',
'rate' => '20.0000',
'name' => 'VAT',
'state' => '',
'rate' => '20.0000',
'name' => 'VAT',
'shipping' => true,
),
),
@ -468,7 +475,7 @@ return array(
'dimension_unit' => 'cm',
'tax_rates' => array(
'' => array(
array(
array(
'country' => 'PL',
'state' => '',
'rate' => '23.0000',
@ -540,13 +547,13 @@ return array(
),
'US' => array(
'currency_code' => 'USD',
'currency_pos' => 'left',
'thousand_sep' => ',',
'decimal_sep' => '.',
'num_decimals' => 2,
'weight_unit' => 'oz',
'currency_pos' => 'left',
'thousand_sep' => ',',
'decimal_sep' => '.',
'num_decimals' => 2,
'weight_unit' => 'oz',
'dimension_unit' => 'in',
'tax_rates' => array(
'tax_rates' => array(
'AL' => array(
array(
'country' => 'US',

View File

@ -2,11 +2,10 @@
/**
* Angola states
*
* @author Marcio Zebedeu
* @category i18n
* @package WooCommerce/i18n
* @version 1.0.0
* @package WooCommerce/i18n
* @version 1.0.0
*/
global $states;
if ( ! defined( 'ABSPATH' ) ) {

View File

@ -2,11 +2,10 @@
/**
* Argentinian provinces
*
* @author WooThemes
* @category i18n
* @package WooCommerce/i18n
* @version 2.4.0
* @package WooCommerce/i18n
* @version 2.4.0
*/
global $states;
if ( ! defined( 'ABSPATH' ) ) {

View File

@ -2,11 +2,10 @@
/**
* Australian states
*
* @author WooThemes
* @category i18n
* @package WooCommerce/i18n
* @version 2.0.0
* @package WooCommerce/i18n
* @version 2.0.0
*/
global $states;
if ( ! defined( 'ABSPATH' ) ) {

View File

@ -2,11 +2,10 @@
/**
* Bangladeshi states (districts)
*
* @author WooThemes
* @category i18n
* @package WooCommerce/i18n
* @version 2.0.0
* @package WooCommerce/i18n
* @version 2.0.0
*/
global $states;
if ( ! defined( 'ABSPATH' ) ) {

View File

@ -2,11 +2,10 @@
/**
* Bulgarian states
*
* @author WooThemes
* @category i18n
* @package WooCommerce/i18n
* @version 2.0.0
* @package WooCommerce/i18n
* @version 2.0.0
*/
global $states;
if ( ! defined( 'ABSPATH' ) ) {

View File

@ -2,11 +2,10 @@
/**
* Bolivian states
*
* @author Roman Random
* @category i18n
* @package WooCommerce/i18n
* @version 3.1.0
* @package WooCommerce/i18n
* @version 3.1.0
*/
global $states;
if ( ! defined( 'ABSPATH' ) ) {

View File

@ -2,11 +2,10 @@
/**
* Brazillian states
*
* @author WooThemes
* @category i18n
* @package WooCommerce/i18n
* @version 2.0.0
* @package WooCommerce/i18n
* @version 2.0.0
*/
global $states;
if ( ! defined( 'ABSPATH' ) ) {

View File

@ -2,11 +2,10 @@
/**
* Canadian states
*
* @author WooThemes
* @category i18n
* @package WooCommerce/i18n
* @version 2.0.0
* @package WooCommerce/i18n
* @version 2.0.0
*/
global $states;
if ( ! defined( 'ABSPATH' ) ) {

View File

@ -2,11 +2,10 @@
/**
* Cantons of Switzerland
*
* @author WooCommerce
* @category i18n
* @package WooCommerce/i18n
* @version 3.2.0
*/
global $states;
if ( ! defined( 'ABSPATH' ) ) {

View File

@ -2,11 +2,10 @@
/**
* Chinese states
*
* @author WooThemes
* @category i18n
* @package WooCommerce/i18n
* @version 2.0.0
* @package WooCommerce/i18n
* @version 2.0.0
*/
global $states;
if ( ! defined( 'ABSPATH' ) ) {

View File

@ -2,11 +2,10 @@
/**
* Spain states
*
* @author WooThemes
* @category i18n
* @package WooCommerce/i18n
* @version 2.0.11
* @package WooCommerce/i18n
* @version 2.0.11
*/
global $states;
if ( ! defined( 'ABSPATH' ) ) {

View File

@ -2,11 +2,10 @@
/**
* Greek Regions
*
* @author WooThemes
* @category i18n
* @package WooCommerce/i18n
* @version 2.3.0
* @package WooCommerce/i18n
* @version 2.3.0
*/
global $states;
if ( ! defined( 'ABSPATH' ) ) {

View File

@ -2,11 +2,10 @@
/**
* Hong Kong states
*
* @author WooThemes
* @category i18n
* @package WooCommerce/i18n
* @version 2.0.0
* @package WooCommerce/i18n
* @version 2.0.0
*/
global $states;
if ( ! defined( 'ABSPATH' ) ) {

View File

@ -2,11 +2,10 @@
/**
* Hungary states
*
* @author WooThemes
* @category i18n
* @package WooCommerce/i18n
* @version 2.0.0
* @package WooCommerce/i18n
* @version 2.0.0
*/
global $states;
if ( ! defined( 'ABSPATH' ) ) {

View File

@ -2,11 +2,10 @@
/**
* Indonesia Provinces
*
* @author WooThemes
* @category i18n
* @package WooCommerce/i18n
* @version 2.0.0
* @package WooCommerce/i18n
* @version 2.0.0
*/
global $states;
if ( ! defined( 'ABSPATH' ) ) {

View File

@ -2,11 +2,10 @@
/**
* Republic of Ireland
*
* @author WooThemes
* @category i18n
* @package WooCommerce/i18n
* @version 3.0.0
* @package WooCommerce/i18n
* @version 3.0.0
*/
global $states;
if ( ! defined( 'ABSPATH' ) ) {
@ -39,5 +38,5 @@ $states['IE'] = array(
'WD' => __( 'Waterford', 'woocommerce' ),
'WH' => __( 'Westmeath', 'woocommerce' ),
'WX' => __( 'Wexford', 'woocommerce' ),
'WW' => __( 'Wicklow', 'woocommerce' )
'WW' => __( 'Wicklow', 'woocommerce' ),
);

View File

@ -2,11 +2,10 @@
/**
* Indian states
*
* @author WooThemes
* @category i18n
* @package WooCommerce/i18n
* @version 2.0.0
* @package WooCommerce/i18n
* @version 2.0.0
*/
global $states;
if ( ! defined( 'ABSPATH' ) ) {

View File

@ -2,11 +2,10 @@
/**
* Iran States
*
* @author WooThemes
* @category i18n
* @package WooCommerce/i18n
* @version 2.2.3
* @package WooCommerce/i18n
* @version 2.2.3
*/
global $states;
if ( ! defined( 'ABSPATH' ) ) {

View File

@ -2,11 +2,10 @@
/**
* Italy Provinces
*
* @author WooThemes
* @category i18n
* @package WooCommerce/i18n
* @version 2.0.0
* @package WooCommerce/i18n
* @version 2.0.0
*/
global $states;
if ( ! defined( 'ABSPATH' ) ) {

View File

@ -2,14 +2,13 @@
/**
* Japan States
*
* @author WooThemes
* @category i18n
* @package WooCommerce/i18n
* @version 2.0.0
* @package WooCommerce/i18n
* @version 2.0.0
*
* English notation of prefectures conform to the notation of Japan Post.
* The suffix corresponds with the Japanese translation file.
*/
global $states;
if ( ! defined( 'ABSPATH' ) ) {

View File

@ -2,11 +2,10 @@
/**
* Mexico States
*
* @author WooThemes
* @category i18n
* @package WooCommerce/i18n
* @version 2.2.9
* @package WooCommerce/i18n
* @version 2.2.9
*/
global $states;
if ( ! defined( 'ABSPATH' ) ) {

View File

@ -2,11 +2,10 @@
/**
* Malaysian states
*
* @author WooThemes
* @category i18n
* @package WooCommerce/i18n
* @version 2.0.0
* @package WooCommerce/i18n
* @version 2.0.0
*/
global $states;
if ( ! defined( 'ABSPATH' ) ) {

View File

@ -2,10 +2,8 @@
/**
* Nigerian provinces
*
* @author hoshomoh
* @category i18n
* @package WooCommerce/i18n
* @version 3.0.0
* @package WooCommerce/i18n
* @version 3.0.0
*/
global $states;

View File

@ -2,11 +2,10 @@
/**
* Nepal states (Zones)
*
* @author WooThemes
* @category i18n
* @package WooCommerce/i18n
* @version 2.2.5
* @package WooCommerce/i18n
* @version 2.2.5
*/
global $states;
if ( ! defined( 'ABSPATH' ) ) {

View File

@ -2,11 +2,10 @@
/**
* New Zealand States
*
* @author WooThemes
* @category i18n
* @package WooCommerce/i18n
* @version 2.3.0
* @package WooCommerce/i18n
* @version 2.3.0
*/
global $states;
if ( ! defined( 'ABSPATH' ) ) {

View File

@ -2,11 +2,10 @@
/**
* Peru states
*
* @author WooThemes
* @category i18n
* @package WooCommerce/i18n
* @version 2.1.0
* @package WooCommerce/i18n
* @version 2.1.0
*/
global $states;
if ( ! defined( 'ABSPATH' ) ) {

View File

@ -2,10 +2,10 @@
/**
* Philippines Provinces
*
* @category i18n
* @package WooCommerce/i18n
* @version 2.4.0
* @package WooCommerce/i18n
* @version 2.4.0
*/
global $states;
if ( ! defined( 'ABSPATH' ) ) {
@ -42,7 +42,7 @@ $states['PH'] = array(
'NCO' => __( 'Cotabato', 'woocommerce' ),
'DAV' => __( 'Davao del Norte', 'woocommerce' ),
'DAS' => __( 'Davao del Sur', 'woocommerce' ),
'DAC' => __( 'Davao Occidental', 'woocommerce' ), // TODO: Needs to be updated when ISO code is assigned
'DAC' => __( 'Davao Occidental', 'woocommerce' ), // TODO: Needs to be updated when ISO code is assigned.
'DAO' => __( 'Davao Oriental', 'woocommerce' ),
'DIN' => __( 'Dinagat Islands', 'woocommerce' ),
'EAS' => __( 'Eastern Samar', 'woocommerce' ),

View File

@ -2,11 +2,10 @@
/**
* Pakistan's states
*
* @author WooCommerce
* @category i18n
* @package WooCommerce/i18n
* @version 3.0.0
* @package WooCommerce/i18n
* @version 3.0.0
*/
global $states;
if ( ! defined( 'ABSPATH' ) ) {

View File

@ -2,11 +2,10 @@
/**
* Thailand states
*
* @author WooThemes
* @category i18n
* @package WooCommerce/i18n
* @version 2.0.0
* @package WooCommerce/i18n
* @version 2.0.0
*/
global $states;
if ( ! defined( 'ABSPATH' ) ) {

View File

@ -2,11 +2,10 @@
/**
* Turkey States
*
* @author WooThemes
* @category i18n
* @package WooCommerce/i18n
* @version 2.0.0
* @package WooCommerce/i18n
* @version 2.0.0
*/
global $states;
if ( ! defined( 'ABSPATH' ) ) {

View File

@ -2,43 +2,43 @@
/**
* Tanzania States
*
* @author Lev and Mohsin @ Extreme Web Technologies Ltd
* @category i18n
* @package WooCommerce/i18n
* @version 2.0.0
* @notes Based on English names published at https://en.wikipedia.org/wiki/ISO_3166-2:TZ
* Based on English names published at https://en.wikipedia.org/wiki/ISO_3166-2:TZ
*
* @package WooCommerce/i18n
* @version 2.0.0
*/
global $states;
$states['TZ'] = array(
'TZ01' => __( 'Arusha', 'woocommerce' ),
'TZ02' => __( 'Dar es Salaam', 'woocommerce' ),
'TZ03' => __( 'Dodoma', 'woocommerce' ),
'TZ04' => __( 'Iringa', 'woocommerce' ),
'TZ05' => __( 'Kagera', 'woocommerce' ),
'TZ06' => __( 'Pemba North', 'woocommerce' ),
'TZ07' => __( 'Zanzibar North', 'woocommerce' ),
'TZ08' => __( 'Kigoma', 'woocommerce' ),
'TZ09' => __( 'Kilimanjaro', 'woocommerce' ),
'TZ10' => __( 'Pemba South', 'woocommerce' ),
'TZ11' => __( 'Zanzibar South', 'woocommerce' ),
'TZ12' => __( 'Lindi', 'woocommerce' ),
'TZ13' => __( 'Mara', 'woocommerce' ),
'TZ14' => __( 'Mbeya', 'woocommerce' ),
'TZ15' => __( 'Zanzibar West', 'woocommerce' ),
'TZ16' => __( 'Morogoro', 'woocommerce' ),
'TZ17' => __( 'Mtwara', 'woocommerce' ),
'TZ18' => __( 'Mwanza', 'woocommerce' ),
'TZ19' => __( 'Coast', 'woocommerce' ),
'TZ20' => __( 'Rukwa', 'woocommerce' ),
'TZ21' => __( 'Ruvuma', 'woocommerce' ),
'TZ22' => __( 'Shinyanga', 'woocommerce' ),
'TZ23' => __( 'Singida', 'woocommerce' ),
'TZ24' => __( 'Tabora', 'woocommerce' ),
'TZ25' => __( 'Tanga', 'woocommerce' ),
'TZ26' => __( 'Manyara', 'woocommerce' ),
'TZ27' => __( 'Geita', 'woocommerce' ),
'TZ28' => __( 'Katavi', 'woocommerce' ),
'TZ29' => __( 'Njombe', 'woocommerce' ),
'TZ30' => __( 'Simiyu', 'woocommerce' )
'TZ01' => __( 'Arusha', 'woocommerce' ),
'TZ02' => __( 'Dar es Salaam', 'woocommerce' ),
'TZ03' => __( 'Dodoma', 'woocommerce' ),
'TZ04' => __( 'Iringa', 'woocommerce' ),
'TZ05' => __( 'Kagera', 'woocommerce' ),
'TZ06' => __( 'Pemba North', 'woocommerce' ),
'TZ07' => __( 'Zanzibar North', 'woocommerce' ),
'TZ08' => __( 'Kigoma', 'woocommerce' ),
'TZ09' => __( 'Kilimanjaro', 'woocommerce' ),
'TZ10' => __( 'Pemba South', 'woocommerce' ),
'TZ11' => __( 'Zanzibar South', 'woocommerce' ),
'TZ12' => __( 'Lindi', 'woocommerce' ),
'TZ13' => __( 'Mara', 'woocommerce' ),
'TZ14' => __( 'Mbeya', 'woocommerce' ),
'TZ15' => __( 'Zanzibar West', 'woocommerce' ),
'TZ16' => __( 'Morogoro', 'woocommerce' ),
'TZ17' => __( 'Mtwara', 'woocommerce' ),
'TZ18' => __( 'Mwanza', 'woocommerce' ),
'TZ19' => __( 'Coast', 'woocommerce' ),
'TZ20' => __( 'Rukwa', 'woocommerce' ),
'TZ21' => __( 'Ruvuma', 'woocommerce' ),
'TZ22' => __( 'Shinyanga', 'woocommerce' ),
'TZ23' => __( 'Singida', 'woocommerce' ),
'TZ24' => __( 'Tabora', 'woocommerce' ),
'TZ25' => __( 'Tanga', 'woocommerce' ),
'TZ26' => __( 'Manyara', 'woocommerce' ),
'TZ27' => __( 'Geita', 'woocommerce' ),
'TZ28' => __( 'Katavi', 'woocommerce' ),
'TZ29' => __( 'Njombe', 'woocommerce' ),
'TZ30' => __( 'Simiyu', 'woocommerce' ),
);

View File

@ -2,11 +2,10 @@
/**
* United States
*
* @author WooThemes
* @category i18n
* @package WooCommerce/i18n
* @version 2.0.0
* @package WooCommerce/i18n
* @version 2.0.0
*/
global $states;
if ( ! defined( 'ABSPATH' ) ) {

View File

@ -2,11 +2,10 @@
/**
* South African states
*
* @author WooThemes
* @category i18n
* @package WooCommerce/i18n
* @version 2.0.0
* @package WooCommerce/i18n
* @version 2.0.0
*/
global $states;
if ( ! defined( 'ABSPATH' ) ) {

View File

@ -66,4 +66,7 @@
<rule ref="PEAR.Functions.FunctionCallSignature.EmptyLine">
<exclude-pattern>tests/e2e-tests/</exclude-pattern>
</rule>
<rule ref="WordPress.Files.FileName.NotHyphenatedLowercase">
<exclude-pattern>i18n/</exclude-pattern>
</rule>
</ruleset>