@@ -148,7 +148,7 @@ |
||
148 | 148 | public function COD(Money $money) |
149 | 149 | { |
150 | 150 | if ($this->service_options == null) { |
151 | - $this->service_options = []; |
|
151 | + $this->service_options = [ ]; |
|
152 | 152 | } |
153 | 153 | $option = new \stdClass(); |
154 | 154 | $option->type = 'cod'; |
@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | */ |
21 | 21 | public function purpose($value) |
22 | 22 | { |
23 | - $purposes = ['gift', 'merchandise', 'sample', 'return', 'repair']; |
|
23 | + $purposes = [ 'gift', 'merchandise', 'sample', 'return', 'repair' ]; |
|
24 | 24 | if (in_array($value, $purposes)) { |
25 | 25 | $this->purpose = $value; |
26 | 26 | } else { |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | */ |
41 | 41 | public function terms_of_trade($value) |
42 | 42 | { |
43 | - $terms = ['dat', 'ddu', 'ddp', 'dap']; |
|
43 | + $terms = [ 'dat', 'ddu', 'ddp', 'dap' ]; |
|
44 | 44 | if (in_array($value, $terms)) { |
45 | 45 | $this->terms_of_trade = $value; |
46 | 46 | } else { |
@@ -29,7 +29,7 @@ |
||
29 | 29 | |
30 | 30 | public function currency($value) |
31 | 31 | { |
32 | - $acceptedCurrencies = ['AED', 'AFN', 'ALL', 'AMD', 'ANG', 'AOA', 'ARS', 'AUD', 'AWG', 'AZN', 'BAM', 'BBD', 'BDT', 'BGN', 'BHD', |
|
32 | + $acceptedCurrencies = [ 'AED', 'AFN', 'ALL', 'AMD', 'ANG', 'AOA', 'ARS', 'AUD', 'AWG', 'AZN', 'BAM', 'BBD', 'BDT', 'BGN', 'BHD', |
|
33 | 33 | 'BIF', 'BMD', 'BND', 'BOB', 'BOV', 'BRL', 'BSD', 'BTN', 'BWP', 'BYR', 'BZD', 'CAD', 'CDF', 'CHE', 'CHF', 'CHW', 'CLF', 'CLP', |
34 | 34 | 'CNY', 'COP', 'COU', 'CRC', 'CUC', 'CUP', 'CVE', 'CZK', 'DJF', 'DKK', 'DOP', 'DZD', 'EGP', 'ERN', 'ETB', 'EUR', 'FJD', 'FKP', |
35 | 35 | 'GBP', 'GEL', 'GHS', 'GIP', 'GMD', 'GNF', 'GTQ', 'GYD', 'HKD', 'HNL', 'HRK', 'HTG', 'HUF', 'IDR', 'ILS', 'INR', 'IQD', 'IRR', |
@@ -6,7 +6,7 @@ |
||
6 | 6 | { |
7 | 7 | public $box_type; |
8 | 8 | public $dimension; |
9 | - public $items = []; |
|
9 | + public $items = [ ]; |
|
10 | 10 | public $description; |
11 | 11 | public $weight; |
12 | 12 |
@@ -4,7 +4,7 @@ |
||
4 | 4 | |
5 | 5 | class Model |
6 | 6 | { |
7 | - protected $acceptedCountries = ['ABW', 'AFG', 'AGO', 'AIA', 'ALA', 'ALB', 'AND', 'ARE', 'ARG', 'ARM', 'ASM', 'ATA', 'ATF', 'ATG', 'AUS', |
|
7 | + protected $acceptedCountries = [ 'ABW', 'AFG', 'AGO', 'AIA', 'ALA', 'ALB', 'AND', 'ARE', 'ARG', 'ARM', 'ASM', 'ATA', 'ATF', 'ATG', 'AUS', |
|
8 | 8 | 'AUT', 'AZE', 'BDI', 'BEL', 'BEN', 'BES', 'BFA', 'BGD', 'BGR', 'BHR', 'BHS', 'BIH', 'BLM', 'BLR', 'BLZ', 'BMU', 'BOL', 'BRA', |
9 | 9 | 'BRB', 'BRN', 'BTN', 'BVT', 'BWA', 'CAF', 'CAN', 'CCK', 'CHE', 'CHL', 'CHN', 'CIV', 'CMR', 'COD', 'COG', 'COK', 'COL', 'COM', |
10 | 10 | 'CPV', 'CRI', 'CUB', 'CUW', 'CXR', 'CYM', 'CYP', 'CZE', 'DEU', 'DJI', 'DMA', 'DNK', 'DOM', 'DZA', 'ECU', 'EGY', 'ERI', 'ESH', |