@@ -23,609 +23,609 @@ discard block |
||
| 23 | 23 | new Currency( |
| 24 | 24 | 'AED', |
| 25 | 25 | '784', |
| 26 | - __( 'UAE Dirham', 'pronamic-money' ), |
|
| 26 | + __('UAE Dirham', 'pronamic-money'), |
|
| 27 | 27 | 'د.إ', |
| 28 | 28 | 2 |
| 29 | 29 | ), |
| 30 | 30 | new Currency( |
| 31 | 31 | 'AFN', |
| 32 | 32 | '971', |
| 33 | - __( 'Afghan Afghani', 'pronamic-money' ), |
|
| 33 | + __('Afghan Afghani', 'pronamic-money'), |
|
| 34 | 34 | '؋', |
| 35 | 35 | 2 |
| 36 | 36 | ), |
| 37 | 37 | new Currency( |
| 38 | 38 | 'ALL', |
| 39 | 39 | '008', |
| 40 | - __( 'Albanian Lek', 'pronamic-money' ), |
|
| 40 | + __('Albanian Lek', 'pronamic-money'), |
|
| 41 | 41 | 'L', |
| 42 | 42 | 2 |
| 43 | 43 | ), |
| 44 | 44 | new Currency( |
| 45 | 45 | 'AMD', |
| 46 | 46 | '051', |
| 47 | - __( 'Armenian Dram', 'pronamic-money' ), |
|
| 47 | + __('Armenian Dram', 'pronamic-money'), |
|
| 48 | 48 | '֏', |
| 49 | 49 | 2 |
| 50 | 50 | ), |
| 51 | 51 | new Currency( |
| 52 | 52 | 'ANG', |
| 53 | 53 | '532', |
| 54 | - __( 'Netherlands Antillean Guilder', 'pronamic-money' ), |
|
| 54 | + __('Netherlands Antillean Guilder', 'pronamic-money'), |
|
| 55 | 55 | 'ƒ', |
| 56 | 56 | 2 |
| 57 | 57 | ), |
| 58 | 58 | new Currency( |
| 59 | 59 | 'AOA', |
| 60 | 60 | '973', |
| 61 | - __( 'Angolan Kwanza', 'pronamic-money' ), |
|
| 61 | + __('Angolan Kwanza', 'pronamic-money'), |
|
| 62 | 62 | 'Kz', |
| 63 | 63 | 2 |
| 64 | 64 | ), |
| 65 | 65 | new Currency( |
| 66 | 66 | 'ARS', |
| 67 | 67 | '032', |
| 68 | - __( 'Argentine Peso', 'pronamic-money' ), |
|
| 68 | + __('Argentine Peso', 'pronamic-money'), |
|
| 69 | 69 | '$', |
| 70 | 70 | 2 |
| 71 | 71 | ), |
| 72 | 72 | new Currency( |
| 73 | 73 | 'AUD', |
| 74 | 74 | '036', |
| 75 | - __( 'Australian Dollar', 'pronamic-money' ), |
|
| 75 | + __('Australian Dollar', 'pronamic-money'), |
|
| 76 | 76 | '$', |
| 77 | 77 | 2 |
| 78 | 78 | ), |
| 79 | 79 | new Currency( |
| 80 | 80 | 'AWG', |
| 81 | 81 | '533', |
| 82 | - __( 'Aruban Florin', 'pronamic-money' ), |
|
| 82 | + __('Aruban Florin', 'pronamic-money'), |
|
| 83 | 83 | 'ƒ', |
| 84 | 84 | 2 |
| 85 | 85 | ), |
| 86 | 86 | new Currency( |
| 87 | 87 | 'AZN', |
| 88 | 88 | '944', |
| 89 | - __( 'Azerbaijan Manat', 'pronamic-money' ), |
|
| 89 | + __('Azerbaijan Manat', 'pronamic-money'), |
|
| 90 | 90 | '₼', |
| 91 | 91 | 2 |
| 92 | 92 | ), |
| 93 | 93 | new Currency( |
| 94 | 94 | 'BAM', |
| 95 | 95 | '977', |
| 96 | - __( 'Bosnia and Herzegovina Convertible Mark', 'pronamic-money' ), |
|
| 96 | + __('Bosnia and Herzegovina Convertible Mark', 'pronamic-money'), |
|
| 97 | 97 | 'KM', |
| 98 | 98 | 2 |
| 99 | 99 | ), |
| 100 | 100 | new Currency( |
| 101 | 101 | 'BBD', |
| 102 | 102 | '052', |
| 103 | - __( 'Barbados Dollar', 'pronamic-money' ), |
|
| 103 | + __('Barbados Dollar', 'pronamic-money'), |
|
| 104 | 104 | '$', |
| 105 | 105 | 2 |
| 106 | 106 | ), |
| 107 | 107 | new Currency( |
| 108 | 108 | 'BDT', |
| 109 | 109 | '050', |
| 110 | - __( 'Bangladeshi Taka', 'pronamic-money' ), |
|
| 110 | + __('Bangladeshi Taka', 'pronamic-money'), |
|
| 111 | 111 | '৳', |
| 112 | 112 | 2 |
| 113 | 113 | ), |
| 114 | 114 | new Currency( |
| 115 | 115 | 'BGN', |
| 116 | 116 | '975', |
| 117 | - __( 'Bulgarian Lev', 'pronamic-money' ), |
|
| 117 | + __('Bulgarian Lev', 'pronamic-money'), |
|
| 118 | 118 | 'лв.', |
| 119 | 119 | 2 |
| 120 | 120 | ), |
| 121 | 121 | new Currency( |
| 122 | 122 | 'BHD', |
| 123 | 123 | '048', |
| 124 | - __( 'Bahraini Dinar', 'pronamic-money' ), |
|
| 124 | + __('Bahraini Dinar', 'pronamic-money'), |
|
| 125 | 125 | '.د.ب', |
| 126 | 126 | 3 |
| 127 | 127 | ), |
| 128 | 128 | new Currency( |
| 129 | 129 | 'BIF', |
| 130 | 130 | '108', |
| 131 | - __( 'Burundian Franc', 'pronamic-money' ), |
|
| 131 | + __('Burundian Franc', 'pronamic-money'), |
|
| 132 | 132 | 'FBu', |
| 133 | 133 | 0 |
| 134 | 134 | ), |
| 135 | 135 | new Currency( |
| 136 | 136 | 'BMD', |
| 137 | 137 | '060', |
| 138 | - __( 'Bermudian Dollar', 'pronamic-money' ), |
|
| 138 | + __('Bermudian Dollar', 'pronamic-money'), |
|
| 139 | 139 | '$', |
| 140 | 140 | 2 |
| 141 | 141 | ), |
| 142 | 142 | new Currency( |
| 143 | 143 | 'BND', |
| 144 | 144 | '096', |
| 145 | - __( 'Brunei Dollar', 'pronamic-money' ), |
|
| 145 | + __('Brunei Dollar', 'pronamic-money'), |
|
| 146 | 146 | '$', |
| 147 | 147 | 2 |
| 148 | 148 | ), |
| 149 | 149 | new Currency( |
| 150 | 150 | 'BOB', |
| 151 | 151 | '068', |
| 152 | - __( 'Bolíviano', 'pronamic-money' ), |
|
| 152 | + __('Bolíviano', 'pronamic-money'), |
|
| 153 | 153 | '$b', |
| 154 | 154 | 2 |
| 155 | 155 | ), |
| 156 | 156 | new Currency( |
| 157 | 157 | 'BOV', |
| 158 | 158 | '984', |
| 159 | - __( 'Bolivian Mvdol', 'pronamic-money' ), |
|
| 159 | + __('Bolivian Mvdol', 'pronamic-money'), |
|
| 160 | 160 | null, |
| 161 | 161 | 2 |
| 162 | 162 | ), |
| 163 | 163 | new Currency( |
| 164 | 164 | 'BRL', |
| 165 | 165 | '986', |
| 166 | - __( 'Brazilian Real', 'pronamic-money' ), |
|
| 166 | + __('Brazilian Real', 'pronamic-money'), |
|
| 167 | 167 | 'R$', |
| 168 | 168 | 2 |
| 169 | 169 | ), |
| 170 | 170 | new Currency( |
| 171 | 171 | 'BSD', |
| 172 | 172 | '044', |
| 173 | - __( 'Bahamian Dollar', 'pronamic-money' ), |
|
| 173 | + __('Bahamian Dollar', 'pronamic-money'), |
|
| 174 | 174 | '$', |
| 175 | 175 | 2 |
| 176 | 176 | ), |
| 177 | 177 | new Currency( |
| 178 | 178 | 'BTN', |
| 179 | 179 | '064', |
| 180 | - __( 'Bhutanese Ngultrum', 'pronamic-money' ), |
|
| 180 | + __('Bhutanese Ngultrum', 'pronamic-money'), |
|
| 181 | 181 | 'Nu.', |
| 182 | 182 | 2 |
| 183 | 183 | ), |
| 184 | 184 | new Currency( |
| 185 | 185 | 'BWP', |
| 186 | 186 | '072', |
| 187 | - __( 'Botswana Pula', 'pronamic-money' ), |
|
| 187 | + __('Botswana Pula', 'pronamic-money'), |
|
| 188 | 188 | 'P', |
| 189 | 189 | 2 |
| 190 | 190 | ), |
| 191 | 191 | new Currency( |
| 192 | 192 | 'BYN', |
| 193 | 193 | '933', |
| 194 | - __( 'Belarusian Ruble', 'pronamic-money' ), |
|
| 194 | + __('Belarusian Ruble', 'pronamic-money'), |
|
| 195 | 195 | 'Br', |
| 196 | 196 | 2 |
| 197 | 197 | ), |
| 198 | 198 | new Currency( |
| 199 | 199 | 'BZD', |
| 200 | 200 | '084', |
| 201 | - __( 'Belize Dollar', 'pronamic-money' ), |
|
| 201 | + __('Belize Dollar', 'pronamic-money'), |
|
| 202 | 202 | '$', |
| 203 | 203 | 2 |
| 204 | 204 | ), |
| 205 | 205 | new Currency( |
| 206 | 206 | 'CAD', |
| 207 | 207 | '124', |
| 208 | - __( 'Canadian Dollar', 'pronamic-money' ), |
|
| 208 | + __('Canadian Dollar', 'pronamic-money'), |
|
| 209 | 209 | '$', |
| 210 | 210 | 2 |
| 211 | 211 | ), |
| 212 | 212 | new Currency( |
| 213 | 213 | 'CDF', |
| 214 | 214 | '976', |
| 215 | - __( 'Congolese Franc', 'pronamic-money' ), |
|
| 215 | + __('Congolese Franc', 'pronamic-money'), |
|
| 216 | 216 | 'F', |
| 217 | 217 | 2 |
| 218 | 218 | ), |
| 219 | 219 | new Currency( |
| 220 | 220 | 'CHE', |
| 221 | 221 | '947', |
| 222 | - __( 'WIR Euro', 'pronamic-money' ), |
|
| 222 | + __('WIR Euro', 'pronamic-money'), |
|
| 223 | 223 | '€', |
| 224 | 224 | 2 |
| 225 | 225 | ), |
| 226 | 226 | new Currency( |
| 227 | 227 | 'CHF', |
| 228 | 228 | '756', |
| 229 | - __( 'Swiss Franc', 'pronamic-money' ), |
|
| 229 | + __('Swiss Franc', 'pronamic-money'), |
|
| 230 | 230 | 'F', |
| 231 | 231 | 2 |
| 232 | 232 | ), |
| 233 | 233 | new Currency( |
| 234 | 234 | 'CHW', |
| 235 | 235 | '948', |
| 236 | - __( 'WIR Franc', 'pronamic-money' ), |
|
| 236 | + __('WIR Franc', 'pronamic-money'), |
|
| 237 | 237 | 'F', |
| 238 | 238 | 2 |
| 239 | 239 | ), |
| 240 | 240 | new Currency( |
| 241 | 241 | 'CLF', |
| 242 | 242 | '990', |
| 243 | - __( 'Unidad de Fomento', 'pronamic-money' ), |
|
| 243 | + __('Unidad de Fomento', 'pronamic-money'), |
|
| 244 | 244 | 'UF', |
| 245 | 245 | 4 |
| 246 | 246 | ), |
| 247 | 247 | new Currency( |
| 248 | 248 | 'CLP', |
| 249 | 249 | '152', |
| 250 | - __( 'Chilean Peso', 'pronamic-money' ), |
|
| 250 | + __('Chilean Peso', 'pronamic-money'), |
|
| 251 | 251 | '$', |
| 252 | 252 | 0 |
| 253 | 253 | ), |
| 254 | 254 | new Currency( |
| 255 | 255 | 'CNY', |
| 256 | 256 | '156', |
| 257 | - __( 'Renminbi Yuan', 'pronamic-money' ), |
|
| 257 | + __('Renminbi Yuan', 'pronamic-money'), |
|
| 258 | 258 | '元', |
| 259 | 259 | 2 |
| 260 | 260 | ), |
| 261 | 261 | new Currency( |
| 262 | 262 | 'COP', |
| 263 | 263 | '170', |
| 264 | - __( 'Colombian Peso', 'pronamic-money' ), |
|
| 264 | + __('Colombian Peso', 'pronamic-money'), |
|
| 265 | 265 | '$', |
| 266 | 266 | 2 |
| 267 | 267 | ), |
| 268 | 268 | new Currency( |
| 269 | 269 | 'COU', |
| 270 | 270 | '970', |
| 271 | - __( 'Unidad de Valor Real', 'pronamic-money' ), |
|
| 271 | + __('Unidad de Valor Real', 'pronamic-money'), |
|
| 272 | 272 | '$', |
| 273 | 273 | 2 |
| 274 | 274 | ), |
| 275 | 275 | new Currency( |
| 276 | 276 | 'CRC', |
| 277 | 277 | '188', |
| 278 | - __( 'Costa Rican Colon', 'pronamic-money' ), |
|
| 278 | + __('Costa Rican Colon', 'pronamic-money'), |
|
| 279 | 279 | '₡', |
| 280 | 280 | 2 |
| 281 | 281 | ), |
| 282 | 282 | new Currency( |
| 283 | 283 | 'CUC', |
| 284 | 284 | '931', |
| 285 | - __( 'Cuban Convertible Peso', 'pronamic-money' ), |
|
| 285 | + __('Cuban Convertible Peso', 'pronamic-money'), |
|
| 286 | 286 | '$', |
| 287 | 287 | 2 |
| 288 | 288 | ), |
| 289 | 289 | new Currency( |
| 290 | 290 | 'CUP', |
| 291 | 291 | '192', |
| 292 | - __( 'Cuban Peso', 'pronamic-money' ), |
|
| 292 | + __('Cuban Peso', 'pronamic-money'), |
|
| 293 | 293 | '$', |
| 294 | 294 | 2 |
| 295 | 295 | ), |
| 296 | 296 | new Currency( |
| 297 | 297 | 'CVE', |
| 298 | 298 | '132', |
| 299 | - __( 'Cape Verde Escudo', 'pronamic-money' ), |
|
| 299 | + __('Cape Verde Escudo', 'pronamic-money'), |
|
| 300 | 300 | 'Esc', |
| 301 | 301 | 2 |
| 302 | 302 | ), |
| 303 | 303 | new Currency( |
| 304 | 304 | 'CZK', |
| 305 | 305 | '203', |
| 306 | - __( 'Czech Koruna', 'pronamic-money' ), |
|
| 306 | + __('Czech Koruna', 'pronamic-money'), |
|
| 307 | 307 | 'Kč', |
| 308 | 308 | 2 |
| 309 | 309 | ), |
| 310 | 310 | new Currency( |
| 311 | 311 | 'DJF', |
| 312 | 312 | '262', |
| 313 | - __( 'Djiboutian Franc', 'pronamic-money' ), |
|
| 313 | + __('Djiboutian Franc', 'pronamic-money'), |
|
| 314 | 314 | 'F', |
| 315 | 315 | 0 |
| 316 | 316 | ), |
| 317 | 317 | new Currency( |
| 318 | 318 | 'DKK', |
| 319 | 319 | '208', |
| 320 | - __( 'Danish Krone', 'pronamic-money' ), |
|
| 320 | + __('Danish Krone', 'pronamic-money'), |
|
| 321 | 321 | 'kr', |
| 322 | 322 | 2 |
| 323 | 323 | ), |
| 324 | 324 | new Currency( |
| 325 | 325 | 'DOP', |
| 326 | 326 | '214', |
| 327 | - __( 'Dominican Peso', 'pronamic-money' ), |
|
| 327 | + __('Dominican Peso', 'pronamic-money'), |
|
| 328 | 328 | '$', |
| 329 | 329 | 2 |
| 330 | 330 | ), |
| 331 | 331 | new Currency( |
| 332 | 332 | 'DZD', |
| 333 | 333 | '012', |
| 334 | - __( 'Algerian Dinar', 'pronamic-money' ), |
|
| 334 | + __('Algerian Dinar', 'pronamic-money'), |
|
| 335 | 335 | 'دج', |
| 336 | 336 | 2 |
| 337 | 337 | ), |
| 338 | 338 | new Currency( |
| 339 | 339 | 'EGP', |
| 340 | 340 | '818', |
| 341 | - __( 'Egyptian Pound', 'pronamic-money' ), |
|
| 341 | + __('Egyptian Pound', 'pronamic-money'), |
|
| 342 | 342 | '£', |
| 343 | 343 | 2 |
| 344 | 344 | ), |
| 345 | 345 | new Currency( |
| 346 | 346 | 'ERN', |
| 347 | 347 | '232', |
| 348 | - __( 'Eritrean Nakfa', 'pronamic-money' ), |
|
| 348 | + __('Eritrean Nakfa', 'pronamic-money'), |
|
| 349 | 349 | 'Nfk', |
| 350 | 350 | 2 |
| 351 | 351 | ), |
| 352 | 352 | new Currency( |
| 353 | 353 | 'ETB', |
| 354 | 354 | '230', |
| 355 | - __( 'Ethiopian Birr', 'pronamic-money' ), |
|
| 355 | + __('Ethiopian Birr', 'pronamic-money'), |
|
| 356 | 356 | 'Br', |
| 357 | 357 | 2 |
| 358 | 358 | ), |
| 359 | 359 | new Currency( |
| 360 | 360 | 'EUR', |
| 361 | 361 | '978', |
| 362 | - __( 'Euro', 'pronamic-money' ), |
|
| 362 | + __('Euro', 'pronamic-money'), |
|
| 363 | 363 | '€', |
| 364 | 364 | 2 |
| 365 | 365 | ), |
| 366 | 366 | new Currency( |
| 367 | 367 | 'FJD', |
| 368 | 368 | '242', |
| 369 | - __( 'Fiji Dollar', 'pronamic-money' ), |
|
| 369 | + __('Fiji Dollar', 'pronamic-money'), |
|
| 370 | 370 | '$', |
| 371 | 371 | 2 |
| 372 | 372 | ), |
| 373 | 373 | new Currency( |
| 374 | 374 | 'FKP', |
| 375 | 375 | '238', |
| 376 | - __( 'Falkland Islands Pound', 'pronamic-money' ), |
|
| 376 | + __('Falkland Islands Pound', 'pronamic-money'), |
|
| 377 | 377 | '£', |
| 378 | 378 | 2 |
| 379 | 379 | ), |
| 380 | 380 | new Currency( |
| 381 | 381 | 'GBP', |
| 382 | 382 | '826', |
| 383 | - __( 'Pound Sterling', 'pronamic-money' ), |
|
| 383 | + __('Pound Sterling', 'pronamic-money'), |
|
| 384 | 384 | '£', |
| 385 | 385 | 2 |
| 386 | 386 | ), |
| 387 | 387 | new Currency( |
| 388 | 388 | 'GEL', |
| 389 | 389 | '981', |
| 390 | - __( 'Georgian Lari', 'pronamic-money' ), |
|
| 390 | + __('Georgian Lari', 'pronamic-money'), |
|
| 391 | 391 | 'ლ', |
| 392 | 392 | 2 |
| 393 | 393 | ), |
| 394 | 394 | new Currency( |
| 395 | 395 | 'GHS', |
| 396 | 396 | '936', |
| 397 | - __( 'Ghanaian Cedi', 'pronamic-money' ), |
|
| 397 | + __('Ghanaian Cedi', 'pronamic-money'), |
|
| 398 | 398 | 'GH₵', |
| 399 | 399 | 2 |
| 400 | 400 | ), |
| 401 | 401 | new Currency( |
| 402 | 402 | 'GIP', |
| 403 | 403 | '292', |
| 404 | - __( 'Gibraltar Pound', 'pronamic-money' ), |
|
| 404 | + __('Gibraltar Pound', 'pronamic-money'), |
|
| 405 | 405 | '£', |
| 406 | 406 | 2 |
| 407 | 407 | ), |
| 408 | 408 | new Currency( |
| 409 | 409 | 'GMD', |
| 410 | 410 | '270', |
| 411 | - __( 'Gambian Dalasi', 'pronamic-money' ), |
|
| 411 | + __('Gambian Dalasi', 'pronamic-money'), |
|
| 412 | 412 | 'D', |
| 413 | 413 | 2 |
| 414 | 414 | ), |
| 415 | 415 | new Currency( |
| 416 | 416 | 'GNF', |
| 417 | 417 | '324', |
| 418 | - __( 'Guinean Franc', 'pronamic-money' ), |
|
| 418 | + __('Guinean Franc', 'pronamic-money'), |
|
| 419 | 419 | 'F', |
| 420 | 420 | 0 |
| 421 | 421 | ), |
| 422 | 422 | new Currency( |
| 423 | 423 | 'GTQ', |
| 424 | 424 | '320', |
| 425 | - __( 'Guatemalan Quetzal', 'pronamic-money' ), |
|
| 425 | + __('Guatemalan Quetzal', 'pronamic-money'), |
|
| 426 | 426 | 'Q', |
| 427 | 427 | 2 |
| 428 | 428 | ), |
| 429 | 429 | new Currency( |
| 430 | 430 | 'GYD', |
| 431 | 431 | '328', |
| 432 | - __( 'Guyanese Dollar', 'pronamic-money' ), |
|
| 432 | + __('Guyanese Dollar', 'pronamic-money'), |
|
| 433 | 433 | '$', |
| 434 | 434 | 2 |
| 435 | 435 | ), |
| 436 | 436 | new Currency( |
| 437 | 437 | 'HKD', |
| 438 | 438 | '344', |
| 439 | - __( 'Hong Kong Dollar', 'pronamic-money' ), |
|
| 439 | + __('Hong Kong Dollar', 'pronamic-money'), |
|
| 440 | 440 | '$', |
| 441 | 441 | 2 |
| 442 | 442 | ), |
| 443 | 443 | new Currency( |
| 444 | 444 | 'HNL', |
| 445 | 445 | '340', |
| 446 | - __( 'Honduran Lempira', 'pronamic-money' ), |
|
| 446 | + __('Honduran Lempira', 'pronamic-money'), |
|
| 447 | 447 | 'L', |
| 448 | 448 | 2 |
| 449 | 449 | ), |
| 450 | 450 | new Currency( |
| 451 | 451 | 'HRK', |
| 452 | 452 | '191', |
| 453 | - __( 'Croatian Kuna', 'pronamic-money' ), |
|
| 453 | + __('Croatian Kuna', 'pronamic-money'), |
|
| 454 | 454 | 'kn', |
| 455 | 455 | 2 |
| 456 | 456 | ), |
| 457 | 457 | new Currency( |
| 458 | 458 | 'HTG', |
| 459 | 459 | '332', |
| 460 | - __( 'Haitian Gourde', 'pronamic-money' ), |
|
| 460 | + __('Haitian Gourde', 'pronamic-money'), |
|
| 461 | 461 | 'G', |
| 462 | 462 | 2 |
| 463 | 463 | ), |
| 464 | 464 | new Currency( |
| 465 | 465 | 'HUF', |
| 466 | 466 | '348', |
| 467 | - __( 'Hungarian Forint', 'pronamic-money' ), |
|
| 467 | + __('Hungarian Forint', 'pronamic-money'), |
|
| 468 | 468 | 'Ft', |
| 469 | 469 | 2 |
| 470 | 470 | ), |
| 471 | 471 | new Currency( |
| 472 | 472 | 'IDR', |
| 473 | 473 | '360', |
| 474 | - __( 'Indonesian Rupiah', 'pronamic-money' ), |
|
| 474 | + __('Indonesian Rupiah', 'pronamic-money'), |
|
| 475 | 475 | 'Rp', |
| 476 | 476 | 2 |
| 477 | 477 | ), |
| 478 | 478 | new Currency( |
| 479 | 479 | 'ILS', |
| 480 | 480 | '376', |
| 481 | - __( 'Israeli New Sheqel', 'pronamic-money' ), |
|
| 481 | + __('Israeli New Sheqel', 'pronamic-money'), |
|
| 482 | 482 | '₪', |
| 483 | 483 | 2 |
| 484 | 484 | ), |
| 485 | 485 | new Currency( |
| 486 | 486 | 'INR', |
| 487 | 487 | '356', |
| 488 | - __( 'Indian Rupee', 'pronamic-money' ), |
|
| 488 | + __('Indian Rupee', 'pronamic-money'), |
|
| 489 | 489 | '₹', |
| 490 | 490 | 2 |
| 491 | 491 | ), |
| 492 | 492 | new Currency( |
| 493 | 493 | 'IQD', |
| 494 | 494 | '368', |
| 495 | - __( 'Iraqi Dinar', 'pronamic-money' ), |
|
| 495 | + __('Iraqi Dinar', 'pronamic-money'), |
|
| 496 | 496 | 'د.ع', |
| 497 | 497 | 3 |
| 498 | 498 | ), |
| 499 | 499 | new Currency( |
| 500 | 500 | 'IRR', |
| 501 | 501 | '364', |
| 502 | - __( 'Iranian Rial', 'pronamic-money' ), |
|
| 502 | + __('Iranian Rial', 'pronamic-money'), |
|
| 503 | 503 | '﷼', |
| 504 | 504 | 2 |
| 505 | 505 | ), |
| 506 | 506 | new Currency( |
| 507 | 507 | 'ISK', |
| 508 | 508 | '352', |
| 509 | - __( 'Icelandic Króna', 'pronamic-money' ), |
|
| 509 | + __('Icelandic Króna', 'pronamic-money'), |
|
| 510 | 510 | 'kr', |
| 511 | 511 | 0 |
| 512 | 512 | ), |
| 513 | 513 | new Currency( |
| 514 | 514 | 'JMD', |
| 515 | 515 | '388', |
| 516 | - __( 'Jamaican Dollar', 'pronamic-money' ), |
|
| 516 | + __('Jamaican Dollar', 'pronamic-money'), |
|
| 517 | 517 | '$', |
| 518 | 518 | 2 |
| 519 | 519 | ), |
| 520 | 520 | new Currency( |
| 521 | 521 | 'JOD', |
| 522 | 522 | '400', |
| 523 | - __( 'Jordanian Dinar', 'pronamic-money' ), |
|
| 523 | + __('Jordanian Dinar', 'pronamic-money'), |
|
| 524 | 524 | 'JD', |
| 525 | 525 | 3 |
| 526 | 526 | ), |
| 527 | 527 | new Currency( |
| 528 | 528 | 'JPY', |
| 529 | 529 | '392', |
| 530 | - __( 'Japanese Yen', 'pronamic-money' ), |
|
| 530 | + __('Japanese Yen', 'pronamic-money'), |
|
| 531 | 531 | '¥', |
| 532 | 532 | 0 |
| 533 | 533 | ), |
| 534 | 534 | new Currency( |
| 535 | 535 | 'KES', |
| 536 | 536 | '404', |
| 537 | - __( 'Kenyan Shilling', 'pronamic-money' ), |
|
| 537 | + __('Kenyan Shilling', 'pronamic-money'), |
|
| 538 | 538 | 'Ksh', |
| 539 | 539 | 2 |
| 540 | 540 | ), |
| 541 | 541 | new Currency( |
| 542 | 542 | 'KGS', |
| 543 | 543 | '417', |
| 544 | - __( 'Kyrgyzstani Som', 'pronamic-money' ), |
|
| 544 | + __('Kyrgyzstani Som', 'pronamic-money'), |
|
| 545 | 545 | 'С̲', |
| 546 | 546 | 2 |
| 547 | 547 | ), |
| 548 | 548 | new Currency( |
| 549 | 549 | 'KHR', |
| 550 | 550 | '116', |
| 551 | - __( 'Cambodian Riel', 'pronamic-money' ), |
|
| 551 | + __('Cambodian Riel', 'pronamic-money'), |
|
| 552 | 552 | '៛', |
| 553 | 553 | 2 |
| 554 | 554 | ), |
| 555 | 555 | new Currency( |
| 556 | 556 | 'KMF', |
| 557 | 557 | '174', |
| 558 | - __( 'Comorian Franc ', 'pronamic-money' ), |
|
| 558 | + __('Comorian Franc ', 'pronamic-money'), |
|
| 559 | 559 | 'F', |
| 560 | 560 | 0 |
| 561 | 561 | ), |
| 562 | 562 | new Currency( |
| 563 | 563 | 'KPW', |
| 564 | 564 | '408', |
| 565 | - __( 'North Korean Won', 'pronamic-money' ), |
|
| 565 | + __('North Korean Won', 'pronamic-money'), |
|
| 566 | 566 | '₩', |
| 567 | 567 | 2 |
| 568 | 568 | ), |
| 569 | 569 | new Currency( |
| 570 | 570 | 'KRW', |
| 571 | 571 | '410', |
| 572 | - __( 'South Korean Won', 'pronamic-money' ), |
|
| 572 | + __('South Korean Won', 'pronamic-money'), |
|
| 573 | 573 | '₩', |
| 574 | 574 | 0 |
| 575 | 575 | ), |
| 576 | 576 | new Currency( |
| 577 | 577 | 'KWD', |
| 578 | 578 | '414', |
| 579 | - __( 'Kuwaiti Dinar', 'pronamic-money' ), |
|
| 579 | + __('Kuwaiti Dinar', 'pronamic-money'), |
|
| 580 | 580 | 'د.ك', |
| 581 | 581 | 3 |
| 582 | 582 | ), |
| 583 | 583 | new Currency( |
| 584 | 584 | 'KYD', |
| 585 | 585 | '136', |
| 586 | - __( 'Cayman Islands Dollar', 'pronamic-money' ), |
|
| 586 | + __('Cayman Islands Dollar', 'pronamic-money'), |
|
| 587 | 587 | '$', |
| 588 | 588 | 2 |
| 589 | 589 | ), |
| 590 | 590 | new Currency( |
| 591 | 591 | 'KZT', |
| 592 | 592 | '398', |
| 593 | - __( 'Kazakhstani Tenge', 'pronamic-money' ), |
|
| 593 | + __('Kazakhstani Tenge', 'pronamic-money'), |
|
| 594 | 594 | '₸', |
| 595 | 595 | 2 |
| 596 | 596 | ), |
| 597 | 597 | new Currency( |
| 598 | 598 | 'LAK', |
| 599 | 599 | '418', |
| 600 | - __( 'Lao Kip', 'pronamic-money' ), |
|
| 600 | + __('Lao Kip', 'pronamic-money'), |
|
| 601 | 601 | '₭', |
| 602 | 602 | 2 |
| 603 | 603 | ), |
| 604 | 604 | new Currency( |
| 605 | 605 | 'LBP', |
| 606 | 606 | '422', |
| 607 | - __( 'Lebanese Pound', 'pronamic-money' ), |
|
| 607 | + __('Lebanese Pound', 'pronamic-money'), |
|
| 608 | 608 | 'LL', |
| 609 | 609 | 2 |
| 610 | 610 | ), |
| 611 | 611 | new Currency( |
| 612 | 612 | 'LKR', |
| 613 | 613 | '144', |
| 614 | - __( 'Sri Lankan Rupee', 'pronamic-money' ), |
|
| 614 | + __('Sri Lankan Rupee', 'pronamic-money'), |
|
| 615 | 615 | '₨', |
| 616 | 616 | 2 |
| 617 | 617 | ), |
| 618 | 618 | new Currency( |
| 619 | 619 | 'LRD', |
| 620 | 620 | '430', |
| 621 | - __( 'Liberian Dollar', 'pronamic-money' ), |
|
| 621 | + __('Liberian Dollar', 'pronamic-money'), |
|
| 622 | 622 | '$', |
| 623 | 623 | 2 |
| 624 | 624 | ), |
| 625 | 625 | new Currency( |
| 626 | 626 | 'LSL', |
| 627 | 627 | '426', |
| 628 | - __( 'Lesotho Loti', 'pronamic-money' ), |
|
| 628 | + __('Lesotho Loti', 'pronamic-money'), |
|
| 629 | 629 | /** |
| 630 | 630 | * Symbol based on plural form "maloti". The one-loti note employs the symbol L. |
| 631 | 631 | * |
@@ -637,357 +637,357 @@ discard block |
||
| 637 | 637 | new Currency( |
| 638 | 638 | 'LYD', |
| 639 | 639 | '434', |
| 640 | - __( 'Libyan Dinar', 'pronamic-money' ), |
|
| 640 | + __('Libyan Dinar', 'pronamic-money'), |
|
| 641 | 641 | 'ل.د', |
| 642 | 642 | 3 |
| 643 | 643 | ), |
| 644 | 644 | new Currency( |
| 645 | 645 | 'MAD', |
| 646 | 646 | '504', |
| 647 | - __( 'Moroccan Dirham', 'pronamic-money' ), |
|
| 647 | + __('Moroccan Dirham', 'pronamic-money'), |
|
| 648 | 648 | 'د.م.', |
| 649 | 649 | 2 |
| 650 | 650 | ), |
| 651 | 651 | new Currency( |
| 652 | 652 | 'MDL', |
| 653 | 653 | '498', |
| 654 | - __( 'Moldovan Leu', 'pronamic-money' ), |
|
| 654 | + __('Moldovan Leu', 'pronamic-money'), |
|
| 655 | 655 | 'L', |
| 656 | 656 | 2 |
| 657 | 657 | ), |
| 658 | 658 | new Currency( |
| 659 | 659 | 'MGA', |
| 660 | 660 | '969', |
| 661 | - __( 'Malagasy Ariary', 'pronamic-money' ), |
|
| 661 | + __('Malagasy Ariary', 'pronamic-money'), |
|
| 662 | 662 | 'Ar', |
| 663 | 663 | 2 |
| 664 | 664 | ), |
| 665 | 665 | new Currency( |
| 666 | 666 | 'MKD', |
| 667 | 667 | '807', |
| 668 | - __( 'Macedonian Denar', 'pronamic-money' ), |
|
| 668 | + __('Macedonian Denar', 'pronamic-money'), |
|
| 669 | 669 | 'ден', |
| 670 | 670 | 2 |
| 671 | 671 | ), |
| 672 | 672 | new Currency( |
| 673 | 673 | 'MMK', |
| 674 | 674 | '104', |
| 675 | - __( 'Myanmar Kyat', 'pronamic-money' ), |
|
| 675 | + __('Myanmar Kyat', 'pronamic-money'), |
|
| 676 | 676 | 'K', |
| 677 | 677 | 2 |
| 678 | 678 | ), |
| 679 | 679 | new Currency( |
| 680 | 680 | 'MNT', |
| 681 | 681 | '496', |
| 682 | - __( 'Mongolian Tögrög', 'pronamic-money' ), |
|
| 682 | + __('Mongolian Tögrög', 'pronamic-money'), |
|
| 683 | 683 | '₮', |
| 684 | 684 | 2 |
| 685 | 685 | ), |
| 686 | 686 | new Currency( |
| 687 | 687 | 'MOP', |
| 688 | 688 | '446', |
| 689 | - __( 'Macanese Pataca', 'pronamic-money' ), |
|
| 689 | + __('Macanese Pataca', 'pronamic-money'), |
|
| 690 | 690 | 'MOP$', |
| 691 | 691 | 2 |
| 692 | 692 | ), |
| 693 | 693 | new Currency( |
| 694 | 694 | 'MRO', |
| 695 | 695 | '478', |
| 696 | - __( 'Mauritanian Ouguiya', 'pronamic-money' ), |
|
| 696 | + __('Mauritanian Ouguiya', 'pronamic-money'), |
|
| 697 | 697 | 'UM', |
| 698 | 698 | 2 |
| 699 | 699 | ), |
| 700 | 700 | new Currency( |
| 701 | 701 | 'MUR', |
| 702 | 702 | '480', |
| 703 | - __( 'Mauritian Rupee', 'pronamic-money' ), |
|
| 703 | + __('Mauritian Rupee', 'pronamic-money'), |
|
| 704 | 704 | '₨', |
| 705 | 705 | 2 |
| 706 | 706 | ), |
| 707 | 707 | new Currency( |
| 708 | 708 | 'MVR', |
| 709 | 709 | '462', |
| 710 | - __( 'Maldivian Rufiyaa', 'pronamic-money' ), |
|
| 710 | + __('Maldivian Rufiyaa', 'pronamic-money'), |
|
| 711 | 711 | 'Rf.', |
| 712 | 712 | 2 |
| 713 | 713 | ), |
| 714 | 714 | new Currency( |
| 715 | 715 | 'MWK', |
| 716 | 716 | '454', |
| 717 | - __( 'Malawian Kwacha', 'pronamic-money' ), |
|
| 717 | + __('Malawian Kwacha', 'pronamic-money'), |
|
| 718 | 718 | 'K', |
| 719 | 719 | 2 |
| 720 | 720 | ), |
| 721 | 721 | new Currency( |
| 722 | 722 | 'MXN', |
| 723 | 723 | '484', |
| 724 | - __( 'Mexican Peso', 'pronamic-money' ), |
|
| 724 | + __('Mexican Peso', 'pronamic-money'), |
|
| 725 | 725 | '$', |
| 726 | 726 | 2 |
| 727 | 727 | ), |
| 728 | 728 | new Currency( |
| 729 | 729 | 'MXV', |
| 730 | 730 | '979', |
| 731 | - __( 'Mexican Unidad de Inversion (UDI)', 'pronamic-money' ), |
|
| 731 | + __('Mexican Unidad de Inversion (UDI)', 'pronamic-money'), |
|
| 732 | 732 | 'UDI', |
| 733 | 733 | 2 |
| 734 | 734 | ), |
| 735 | 735 | new Currency( |
| 736 | 736 | 'MYR', |
| 737 | 737 | '458', |
| 738 | - __( 'Malaysian Ringgit', 'pronamic-money' ), |
|
| 738 | + __('Malaysian Ringgit', 'pronamic-money'), |
|
| 739 | 739 | 'RM', |
| 740 | 740 | 2 |
| 741 | 741 | ), |
| 742 | 742 | new Currency( |
| 743 | 743 | 'MZN', |
| 744 | 744 | '943', |
| 745 | - __( 'Mozambican Metical', 'pronamic-money' ), |
|
| 745 | + __('Mozambican Metical', 'pronamic-money'), |
|
| 746 | 746 | 'MT', |
| 747 | 747 | 2 |
| 748 | 748 | ), |
| 749 | 749 | new Currency( |
| 750 | 750 | 'NAD', |
| 751 | 751 | '516', |
| 752 | - __( 'Namibian Dollar', 'pronamic-money' ), |
|
| 752 | + __('Namibian Dollar', 'pronamic-money'), |
|
| 753 | 753 | '$', |
| 754 | 754 | 2 |
| 755 | 755 | ), |
| 756 | 756 | new Currency( |
| 757 | 757 | 'NGN', |
| 758 | 758 | '566', |
| 759 | - __( 'Nigerian Naira', 'pronamic-money' ), |
|
| 759 | + __('Nigerian Naira', 'pronamic-money'), |
|
| 760 | 760 | '₦', |
| 761 | 761 | 2 |
| 762 | 762 | ), |
| 763 | 763 | new Currency( |
| 764 | 764 | 'NIO', |
| 765 | 765 | '558', |
| 766 | - __( 'Nicaraguan Córdoba', 'pronamic-money' ), |
|
| 766 | + __('Nicaraguan Córdoba', 'pronamic-money'), |
|
| 767 | 767 | 'C$', |
| 768 | 768 | 2 |
| 769 | 769 | ), |
| 770 | 770 | new Currency( |
| 771 | 771 | 'NLG', |
| 772 | 772 | null, |
| 773 | - __( 'Gulden', 'pronamic-money' ), |
|
| 773 | + __('Gulden', 'pronamic-money'), |
|
| 774 | 774 | 'G', |
| 775 | 775 | 4 |
| 776 | 776 | ), |
| 777 | 777 | new Currency( |
| 778 | 778 | 'NOK', |
| 779 | 779 | '578', |
| 780 | - __( 'Norwegian Krone', 'pronamic-money' ), |
|
| 780 | + __('Norwegian Krone', 'pronamic-money'), |
|
| 781 | 781 | 'kr', |
| 782 | 782 | 2 |
| 783 | 783 | ), |
| 784 | 784 | new Currency( |
| 785 | 785 | 'NPR', |
| 786 | 786 | '524', |
| 787 | - __( 'Nepalese Rupee', 'pronamic-money' ), |
|
| 787 | + __('Nepalese Rupee', 'pronamic-money'), |
|
| 788 | 788 | '₨', |
| 789 | 789 | 2 |
| 790 | 790 | ), |
| 791 | 791 | new Currency( |
| 792 | 792 | 'NZD', |
| 793 | 793 | '554', |
| 794 | - __( 'New Zealand Dollar', 'pronamic-money' ), |
|
| 794 | + __('New Zealand Dollar', 'pronamic-money'), |
|
| 795 | 795 | '$', |
| 796 | 796 | 2 |
| 797 | 797 | ), |
| 798 | 798 | new Currency( |
| 799 | 799 | 'OMR', |
| 800 | 800 | '512', |
| 801 | - __( 'Omani Rial', 'pronamic-money' ), |
|
| 801 | + __('Omani Rial', 'pronamic-money'), |
|
| 802 | 802 | 'ر.ع.', |
| 803 | 803 | 3 |
| 804 | 804 | ), |
| 805 | 805 | new Currency( |
| 806 | 806 | 'PAB', |
| 807 | 807 | '590', |
| 808 | - __( 'Panamanian Balboa', 'pronamic-money' ), |
|
| 808 | + __('Panamanian Balboa', 'pronamic-money'), |
|
| 809 | 809 | 'B/.', |
| 810 | 810 | 2 |
| 811 | 811 | ), |
| 812 | 812 | new Currency( |
| 813 | 813 | 'PEN', |
| 814 | 814 | '604', |
| 815 | - __( 'Peruvian Sol', 'pronamic-money' ), |
|
| 815 | + __('Peruvian Sol', 'pronamic-money'), |
|
| 816 | 816 | 'S/', |
| 817 | 817 | 2 |
| 818 | 818 | ), |
| 819 | 819 | new Currency( |
| 820 | 820 | 'PGK', |
| 821 | 821 | '598', |
| 822 | - __( 'Papua New Guinean Kina', 'pronamic-money' ), |
|
| 822 | + __('Papua New Guinean Kina', 'pronamic-money'), |
|
| 823 | 823 | 'K', |
| 824 | 824 | 2 |
| 825 | 825 | ), |
| 826 | 826 | new Currency( |
| 827 | 827 | 'PHP', |
| 828 | 828 | '608', |
| 829 | - __( 'Philippine Peso', 'pronamic-money' ), |
|
| 829 | + __('Philippine Peso', 'pronamic-money'), |
|
| 830 | 830 | '₱', |
| 831 | 831 | 2 |
| 832 | 832 | ), |
| 833 | 833 | new Currency( |
| 834 | 834 | 'PKR', |
| 835 | 835 | '586', |
| 836 | - __( 'Pakistani Rupee', 'pronamic-money' ), |
|
| 836 | + __('Pakistani Rupee', 'pronamic-money'), |
|
| 837 | 837 | '₨', |
| 838 | 838 | 2 |
| 839 | 839 | ), |
| 840 | 840 | new Currency( |
| 841 | 841 | 'PLN', |
| 842 | 842 | '985', |
| 843 | - __( 'Polish Zloty', 'pronamic-money' ), |
|
| 843 | + __('Polish Zloty', 'pronamic-money'), |
|
| 844 | 844 | 'zł', |
| 845 | 845 | 2 |
| 846 | 846 | ), |
| 847 | 847 | new Currency( |
| 848 | 848 | 'PYG', |
| 849 | 849 | '600', |
| 850 | - __( 'Paraguayan Guaraní', 'pronamic-money' ), |
|
| 850 | + __('Paraguayan Guaraní', 'pronamic-money'), |
|
| 851 | 851 | '₲', |
| 852 | 852 | 0 |
| 853 | 853 | ), |
| 854 | 854 | new Currency( |
| 855 | 855 | 'QAR', |
| 856 | 856 | '634', |
| 857 | - __( 'Qatari Rial', 'pronamic-money' ), |
|
| 857 | + __('Qatari Rial', 'pronamic-money'), |
|
| 858 | 858 | 'ر.ق', |
| 859 | 859 | 2 |
| 860 | 860 | ), |
| 861 | 861 | new Currency( |
| 862 | 862 | 'RON', |
| 863 | 863 | '946', |
| 864 | - __( 'Romanian Leu', 'pronamic-money' ), |
|
| 864 | + __('Romanian Leu', 'pronamic-money'), |
|
| 865 | 865 | 'L', |
| 866 | 866 | 2 |
| 867 | 867 | ), |
| 868 | 868 | new Currency( |
| 869 | 869 | 'RSD', |
| 870 | 870 | '941', |
| 871 | - __( 'Serbian Dinar', 'pronamic-money' ), |
|
| 871 | + __('Serbian Dinar', 'pronamic-money'), |
|
| 872 | 872 | 'дин', |
| 873 | 873 | 2 |
| 874 | 874 | ), |
| 875 | 875 | new Currency( |
| 876 | 876 | 'RUB', |
| 877 | 877 | '643', |
| 878 | - __( 'Russian Ruble', 'pronamic-money' ), |
|
| 878 | + __('Russian Ruble', 'pronamic-money'), |
|
| 879 | 879 | '₽', |
| 880 | 880 | 2 |
| 881 | 881 | ), |
| 882 | 882 | new Currency( |
| 883 | 883 | 'RWF', |
| 884 | 884 | '646', |
| 885 | - __( 'Rwandan Franc', 'pronamic-money' ), |
|
| 885 | + __('Rwandan Franc', 'pronamic-money'), |
|
| 886 | 886 | 'FRw', |
| 887 | 887 | 0 |
| 888 | 888 | ), |
| 889 | 889 | new Currency( |
| 890 | 890 | 'SAR', |
| 891 | 891 | '682', |
| 892 | - __( 'Saudi Riyal', 'pronamic-money' ), |
|
| 892 | + __('Saudi Riyal', 'pronamic-money'), |
|
| 893 | 893 | 'ر.س', |
| 894 | 894 | 2 |
| 895 | 895 | ), |
| 896 | 896 | new Currency( |
| 897 | 897 | 'SBD', |
| 898 | 898 | '090', |
| 899 | - __( 'Solomon Islands Dollar', 'pronamic-money' ), |
|
| 899 | + __('Solomon Islands Dollar', 'pronamic-money'), |
|
| 900 | 900 | '$', |
| 901 | 901 | 2 |
| 902 | 902 | ), |
| 903 | 903 | new Currency( |
| 904 | 904 | 'SCR', |
| 905 | 905 | '690', |
| 906 | - __( 'Seychelles Rupee', 'pronamic-money' ), |
|
| 906 | + __('Seychelles Rupee', 'pronamic-money'), |
|
| 907 | 907 | 'SRe', |
| 908 | 908 | 2 |
| 909 | 909 | ), |
| 910 | 910 | new Currency( |
| 911 | 911 | 'SDG', |
| 912 | 912 | '938', |
| 913 | - __( 'Sudanese Pound', 'pronamic-money' ), |
|
| 913 | + __('Sudanese Pound', 'pronamic-money'), |
|
| 914 | 914 | 'ج.س', |
| 915 | 915 | 2 |
| 916 | 916 | ), |
| 917 | 917 | new Currency( |
| 918 | 918 | 'SEK', |
| 919 | 919 | '752', |
| 920 | - __( 'Swedish Krona', 'pronamic-money' ), |
|
| 920 | + __('Swedish Krona', 'pronamic-money'), |
|
| 921 | 921 | 'kr', |
| 922 | 922 | 2 |
| 923 | 923 | ), |
| 924 | 924 | new Currency( |
| 925 | 925 | 'SGD', |
| 926 | 926 | '702', |
| 927 | - __( 'Singapore Dollar', 'pronamic-money' ), |
|
| 927 | + __('Singapore Dollar', 'pronamic-money'), |
|
| 928 | 928 | '$', |
| 929 | 929 | 2 |
| 930 | 930 | ), |
| 931 | 931 | new Currency( |
| 932 | 932 | 'SHP', |
| 933 | 933 | '654', |
| 934 | - __( 'Saint Helena Pound', 'pronamic-money' ), |
|
| 934 | + __('Saint Helena Pound', 'pronamic-money'), |
|
| 935 | 935 | '£', |
| 936 | 936 | 2 |
| 937 | 937 | ), |
| 938 | 938 | new Currency( |
| 939 | 939 | 'SLL', |
| 940 | 940 | '694', |
| 941 | - __( 'Sierra Leonean Leone', 'pronamic-money' ), |
|
| 941 | + __('Sierra Leonean Leone', 'pronamic-money'), |
|
| 942 | 942 | 'Le', |
| 943 | 943 | 2 |
| 944 | 944 | ), |
| 945 | 945 | new Currency( |
| 946 | 946 | 'SOS', |
| 947 | 947 | '706', |
| 948 | - __( 'Somali Shilling', 'pronamic-money' ), |
|
| 948 | + __('Somali Shilling', 'pronamic-money'), |
|
| 949 | 949 | 'Sh.So.', |
| 950 | 950 | 2 |
| 951 | 951 | ), |
| 952 | 952 | new Currency( |
| 953 | 953 | 'SRD', |
| 954 | 954 | '968', |
| 955 | - __( 'Surinamese Dollar', 'pronamic-money' ), |
|
| 955 | + __('Surinamese Dollar', 'pronamic-money'), |
|
| 956 | 956 | '$', |
| 957 | 957 | 2 |
| 958 | 958 | ), |
| 959 | 959 | new Currency( |
| 960 | 960 | 'SSP', |
| 961 | 961 | '728', |
| 962 | - __( 'South Sudanese Pound', 'pronamic-money' ), |
|
| 962 | + __('South Sudanese Pound', 'pronamic-money'), |
|
| 963 | 963 | 'SS£', |
| 964 | 964 | 2 |
| 965 | 965 | ), |
| 966 | 966 | new Currency( |
| 967 | 967 | 'STD', |
| 968 | 968 | '678', |
| 969 | - __( 'São Tomé and Príncipe Dobra', 'pronamic-money' ), |
|
| 969 | + __('São Tomé and Príncipe Dobra', 'pronamic-money'), |
|
| 970 | 970 | 'Db', |
| 971 | 971 | 2 |
| 972 | 972 | ), |
| 973 | 973 | new Currency( |
| 974 | 974 | 'SVC', |
| 975 | 975 | '222', |
| 976 | - __( 'Salvadoran Colon', 'pronamic-money' ), |
|
| 976 | + __('Salvadoran Colon', 'pronamic-money'), |
|
| 977 | 977 | '₡', |
| 978 | 978 | 2 |
| 979 | 979 | ), |
| 980 | 980 | new Currency( |
| 981 | 981 | 'SYP', |
| 982 | 982 | '760', |
| 983 | - __( 'Syrian Pound', 'pronamic-money' ), |
|
| 983 | + __('Syrian Pound', 'pronamic-money'), |
|
| 984 | 984 | '£', |
| 985 | 985 | 2 |
| 986 | 986 | ), |
| 987 | 987 | new Currency( |
| 988 | 988 | 'SZL', |
| 989 | 989 | '748', |
| 990 | - __( 'Swazi Lilangeni', 'pronamic-money' ), |
|
| 990 | + __('Swazi Lilangeni', 'pronamic-money'), |
|
| 991 | 991 | /** |
| 992 | 992 | * Symbol based on the plural form "emalangeni" However the one-lilageni note employs the currency symbol L. |
| 993 | 993 | * |
@@ -999,294 +999,294 @@ discard block |
||
| 999 | 999 | new Currency( |
| 1000 | 1000 | 'THB', |
| 1001 | 1001 | '764', |
| 1002 | - __( 'Thai Baht', 'pronamic-money' ), |
|
| 1002 | + __('Thai Baht', 'pronamic-money'), |
|
| 1003 | 1003 | '฿', |
| 1004 | 1004 | 2 |
| 1005 | 1005 | ), |
| 1006 | 1006 | new Currency( |
| 1007 | 1007 | 'TJS', |
| 1008 | 1008 | '972', |
| 1009 | - __( 'Tajikistani Somoni', 'pronamic-money' ), |
|
| 1009 | + __('Tajikistani Somoni', 'pronamic-money'), |
|
| 1010 | 1010 | 'SM', |
| 1011 | 1011 | 2 |
| 1012 | 1012 | ), |
| 1013 | 1013 | new Currency( |
| 1014 | 1014 | 'TMT', |
| 1015 | 1015 | '934', |
| 1016 | - __( 'Turkmenistan Manat', 'pronamic-money' ), |
|
| 1016 | + __('Turkmenistan Manat', 'pronamic-money'), |
|
| 1017 | 1017 | 'T', |
| 1018 | 1018 | 2 |
| 1019 | 1019 | ), |
| 1020 | 1020 | new Currency( |
| 1021 | 1021 | 'TND', |
| 1022 | 1022 | '788', |
| 1023 | - __( 'Tunisian Dinar', 'pronamic-money' ), |
|
| 1023 | + __('Tunisian Dinar', 'pronamic-money'), |
|
| 1024 | 1024 | 'د.ت', |
| 1025 | 1025 | 3 |
| 1026 | 1026 | ), |
| 1027 | 1027 | new Currency( |
| 1028 | 1028 | 'TOP', |
| 1029 | 1029 | '776', |
| 1030 | - __( 'Tongan Pa’anga', 'pronamic-money' ), |
|
| 1030 | + __('Tongan Pa’anga', 'pronamic-money'), |
|
| 1031 | 1031 | 'T$', |
| 1032 | 1032 | 2 |
| 1033 | 1033 | ), |
| 1034 | 1034 | new Currency( |
| 1035 | 1035 | 'TRY', |
| 1036 | 1036 | '949', |
| 1037 | - __( 'Turkish Lira', 'pronamic-money' ), |
|
| 1037 | + __('Turkish Lira', 'pronamic-money'), |
|
| 1038 | 1038 | '₺', |
| 1039 | 1039 | 2 |
| 1040 | 1040 | ), |
| 1041 | 1041 | new Currency( |
| 1042 | 1042 | 'TTD', |
| 1043 | 1043 | '780', |
| 1044 | - __( 'Trinidad and Tobago Dollar', 'pronamic-money' ), |
|
| 1044 | + __('Trinidad and Tobago Dollar', 'pronamic-money'), |
|
| 1045 | 1045 | '$', |
| 1046 | 1046 | 2 |
| 1047 | 1047 | ), |
| 1048 | 1048 | new Currency( |
| 1049 | 1049 | 'TWD', |
| 1050 | 1050 | '901', |
| 1051 | - __( 'New Taiwan Dollar', 'pronamic-money' ), |
|
| 1051 | + __('New Taiwan Dollar', 'pronamic-money'), |
|
| 1052 | 1052 | '$', |
| 1053 | 1053 | 2 |
| 1054 | 1054 | ), |
| 1055 | 1055 | new Currency( |
| 1056 | 1056 | 'TZS', |
| 1057 | 1057 | '834', |
| 1058 | - __( 'Tanzanian Shilling', 'pronamic-money' ), |
|
| 1058 | + __('Tanzanian Shilling', 'pronamic-money'), |
|
| 1059 | 1059 | 'Tsh', |
| 1060 | 1060 | 2 |
| 1061 | 1061 | ), |
| 1062 | 1062 | new Currency( |
| 1063 | 1063 | 'UAH', |
| 1064 | 1064 | '980', |
| 1065 | - __( 'Ukrainian Hryvnia', 'pronamic-money' ), |
|
| 1065 | + __('Ukrainian Hryvnia', 'pronamic-money'), |
|
| 1066 | 1066 | '₴', |
| 1067 | 1067 | 2 |
| 1068 | 1068 | ), |
| 1069 | 1069 | new Currency( |
| 1070 | 1070 | 'UGX', |
| 1071 | 1071 | '800', |
| 1072 | - __( 'Ugandan Shilling', 'pronamic-money' ), |
|
| 1072 | + __('Ugandan Shilling', 'pronamic-money'), |
|
| 1073 | 1073 | 'USh', |
| 1074 | 1074 | 0 |
| 1075 | 1075 | ), |
| 1076 | 1076 | new Currency( |
| 1077 | 1077 | 'USD', |
| 1078 | 1078 | '840', |
| 1079 | - __( 'US Dollar', 'pronamic-money' ), |
|
| 1079 | + __('US Dollar', 'pronamic-money'), |
|
| 1080 | 1080 | '$', |
| 1081 | 1081 | 2 |
| 1082 | 1082 | ), |
| 1083 | 1083 | new Currency( |
| 1084 | 1084 | 'USN', |
| 1085 | 1085 | '997', |
| 1086 | - __( 'US Dollar (Next day)', 'pronamic-money' ), |
|
| 1086 | + __('US Dollar (Next day)', 'pronamic-money'), |
|
| 1087 | 1087 | '$', |
| 1088 | 1088 | 2 |
| 1089 | 1089 | ), |
| 1090 | 1090 | new Currency( |
| 1091 | 1091 | 'UYI', |
| 1092 | 1092 | '940', |
| 1093 | - __( 'Uruguay Peso en Unidades Indexadas (URUIURUI)', 'pronamic-money' ), |
|
| 1093 | + __('Uruguay Peso en Unidades Indexadas (URUIURUI)', 'pronamic-money'), |
|
| 1094 | 1094 | '$', |
| 1095 | 1095 | 0 |
| 1096 | 1096 | ), |
| 1097 | 1097 | new Currency( |
| 1098 | 1098 | 'UYU', |
| 1099 | 1099 | '858', |
| 1100 | - __( 'Uruguayan Peso', 'pronamic-money' ), |
|
| 1100 | + __('Uruguayan Peso', 'pronamic-money'), |
|
| 1101 | 1101 | '$', |
| 1102 | 1102 | 2 |
| 1103 | 1103 | ), |
| 1104 | 1104 | new Currency( |
| 1105 | 1105 | 'UYW', |
| 1106 | 1106 | '927', |
| 1107 | - __( 'Unidad Previsional', 'pronamic-money' ), |
|
| 1107 | + __('Unidad Previsional', 'pronamic-money'), |
|
| 1108 | 1108 | null, |
| 1109 | 1109 | 4 |
| 1110 | 1110 | ), |
| 1111 | 1111 | new Currency( |
| 1112 | 1112 | 'UZS', |
| 1113 | 1113 | '860', |
| 1114 | - __( 'Uzbekistan Som', 'pronamic-money' ), |
|
| 1114 | + __('Uzbekistan Som', 'pronamic-money'), |
|
| 1115 | 1115 | 'лв', |
| 1116 | 1116 | 2 |
| 1117 | 1117 | ), |
| 1118 | 1118 | new Currency( |
| 1119 | 1119 | 'VES', |
| 1120 | 1120 | '928', |
| 1121 | - __( 'Venezuelan Bolívar Soberano', 'pronamic-money' ), |
|
| 1121 | + __('Venezuelan Bolívar Soberano', 'pronamic-money'), |
|
| 1122 | 1122 | 'Bs.S.', |
| 1123 | 1123 | 2 |
| 1124 | 1124 | ), |
| 1125 | 1125 | new Currency( |
| 1126 | 1126 | 'VND', |
| 1127 | 1127 | '704', |
| 1128 | - __( 'Vietnamese Dồng', 'pronamic-money' ), |
|
| 1128 | + __('Vietnamese Dồng', 'pronamic-money'), |
|
| 1129 | 1129 | '₫', |
| 1130 | 1130 | 0 |
| 1131 | 1131 | ), |
| 1132 | 1132 | new Currency( |
| 1133 | 1133 | 'VUV', |
| 1134 | 1134 | '548', |
| 1135 | - __( 'Vanuatu Vatu', 'pronamic-money' ), |
|
| 1135 | + __('Vanuatu Vatu', 'pronamic-money'), |
|
| 1136 | 1136 | 'VT', |
| 1137 | 1137 | 0 |
| 1138 | 1138 | ), |
| 1139 | 1139 | new Currency( |
| 1140 | 1140 | 'WST', |
| 1141 | 1141 | '882', |
| 1142 | - __( 'Samoan Tala', 'pronamic-money' ), |
|
| 1142 | + __('Samoan Tala', 'pronamic-money'), |
|
| 1143 | 1143 | 'WS$', |
| 1144 | 1144 | 2 |
| 1145 | 1145 | ), |
| 1146 | 1146 | new Currency( |
| 1147 | 1147 | 'XAF', |
| 1148 | 1148 | '950', |
| 1149 | - __( 'CFA Franc BEAC', 'pronamic-money' ), |
|
| 1149 | + __('CFA Franc BEAC', 'pronamic-money'), |
|
| 1150 | 1150 | 'FCFA', |
| 1151 | 1151 | 0 |
| 1152 | 1152 | ), |
| 1153 | 1153 | new Currency( |
| 1154 | 1154 | 'XAG', |
| 1155 | 1155 | '961', |
| 1156 | - __( 'Silver', 'pronamic-money' ), |
|
| 1156 | + __('Silver', 'pronamic-money'), |
|
| 1157 | 1157 | 'Ag oz t.', |
| 1158 | 1158 | 0 |
| 1159 | 1159 | ), |
| 1160 | 1160 | new Currency( |
| 1161 | 1161 | 'XAU', |
| 1162 | 1162 | '959', |
| 1163 | - __( 'Gold', 'pronamic-money' ), |
|
| 1163 | + __('Gold', 'pronamic-money'), |
|
| 1164 | 1164 | 'Au oz t.', |
| 1165 | 1165 | 0 |
| 1166 | 1166 | ), |
| 1167 | 1167 | new Currency( |
| 1168 | 1168 | 'XBA', |
| 1169 | 1169 | '955', |
| 1170 | - __( 'Bond Markets Unit European Composite Unit (EURCO)', 'pronamic-money' ), |
|
| 1170 | + __('Bond Markets Unit European Composite Unit (EURCO)', 'pronamic-money'), |
|
| 1171 | 1171 | null, |
| 1172 | 1172 | 0 |
| 1173 | 1173 | ), |
| 1174 | 1174 | new Currency( |
| 1175 | 1175 | 'XBB', |
| 1176 | 1176 | '956', |
| 1177 | - __( 'Bond Markets Unit European Monetary Unit (E.M.U.-6)', 'pronamic-money' ), |
|
| 1177 | + __('Bond Markets Unit European Monetary Unit (E.M.U.-6)', 'pronamic-money'), |
|
| 1178 | 1178 | null, |
| 1179 | 1179 | 0 |
| 1180 | 1180 | ), |
| 1181 | 1181 | new Currency( |
| 1182 | 1182 | 'XBC', |
| 1183 | 1183 | '957', |
| 1184 | - __( 'Bond Markets Unit European Unit of Account 9 (E.U.A.-9)', 'pronamic-money' ), |
|
| 1184 | + __('Bond Markets Unit European Unit of Account 9 (E.U.A.-9)', 'pronamic-money'), |
|
| 1185 | 1185 | null, |
| 1186 | 1186 | 0 |
| 1187 | 1187 | ), |
| 1188 | 1188 | new Currency( |
| 1189 | 1189 | 'XBD', |
| 1190 | 1190 | '958', |
| 1191 | - __( 'Bond Markets Unit European Unit of Account 17 (E.U.A.-17)', 'pronamic-money' ), |
|
| 1191 | + __('Bond Markets Unit European Unit of Account 17 (E.U.A.-17)', 'pronamic-money'), |
|
| 1192 | 1192 | null, |
| 1193 | 1193 | 0 |
| 1194 | 1194 | ), |
| 1195 | 1195 | new Currency( |
| 1196 | 1196 | 'XCD', |
| 1197 | 1197 | '951', |
| 1198 | - __( 'East Caribbean Dollar', 'pronamic-money' ), |
|
| 1198 | + __('East Caribbean Dollar', 'pronamic-money'), |
|
| 1199 | 1199 | '$', |
| 1200 | 1200 | 2 |
| 1201 | 1201 | ), |
| 1202 | 1202 | new Currency( |
| 1203 | 1203 | 'XDR', |
| 1204 | 1204 | '960', |
| 1205 | - __( 'SDR (Special Drawing Right)', 'pronamic-money' ), |
|
| 1205 | + __('SDR (Special Drawing Right)', 'pronamic-money'), |
|
| 1206 | 1206 | 'SDR', |
| 1207 | 1207 | 0 |
| 1208 | 1208 | ), |
| 1209 | 1209 | new Currency( |
| 1210 | 1210 | 'XOF', |
| 1211 | 1211 | '952', |
| 1212 | - __( 'CFA Franc BCEAO', 'pronamic-money' ), |
|
| 1212 | + __('CFA Franc BCEAO', 'pronamic-money'), |
|
| 1213 | 1213 | 'CFA', |
| 1214 | 1214 | 0 |
| 1215 | 1215 | ), |
| 1216 | 1216 | new Currency( |
| 1217 | 1217 | 'XPD', |
| 1218 | 1218 | '964', |
| 1219 | - __( 'Palladium', 'pronamic-money' ), |
|
| 1219 | + __('Palladium', 'pronamic-money'), |
|
| 1220 | 1220 | 'Pd oz t.', |
| 1221 | 1221 | 0 |
| 1222 | 1222 | ), |
| 1223 | 1223 | new Currency( |
| 1224 | 1224 | 'XPF', |
| 1225 | 1225 | '953', |
| 1226 | - __( 'CFP Franc', 'pronamic-money' ), |
|
| 1226 | + __('CFP Franc', 'pronamic-money'), |
|
| 1227 | 1227 | 'F', |
| 1228 | 1228 | 0 |
| 1229 | 1229 | ), |
| 1230 | 1230 | new Currency( |
| 1231 | 1231 | 'XPT', |
| 1232 | 1232 | '962', |
| 1233 | - __( 'Platinum', 'pronamic-money' ), |
|
| 1233 | + __('Platinum', 'pronamic-money'), |
|
| 1234 | 1234 | 'Pt oz t.', |
| 1235 | 1235 | 0 |
| 1236 | 1236 | ), |
| 1237 | 1237 | new Currency( |
| 1238 | 1238 | 'XSU', |
| 1239 | 1239 | '994', |
| 1240 | - __( 'Sucre', 'pronamic-money' ), |
|
| 1240 | + __('Sucre', 'pronamic-money'), |
|
| 1241 | 1241 | 'Sucre', |
| 1242 | 1242 | 0 |
| 1243 | 1243 | ), |
| 1244 | 1244 | new Currency( |
| 1245 | 1245 | 'XTS', |
| 1246 | 1246 | '963', |
| 1247 | - __( 'Code reserved for testing', 'pronamic-money' ), |
|
| 1247 | + __('Code reserved for testing', 'pronamic-money'), |
|
| 1248 | 1248 | null, |
| 1249 | 1249 | 0 |
| 1250 | 1250 | ), |
| 1251 | 1251 | new Currency( |
| 1252 | 1252 | 'XUA', |
| 1253 | 1253 | '965', |
| 1254 | - __( 'ADB Unit of Account', 'pronamic-money' ), |
|
| 1254 | + __('ADB Unit of Account', 'pronamic-money'), |
|
| 1255 | 1255 | null, |
| 1256 | 1256 | 0 |
| 1257 | 1257 | ), |
| 1258 | 1258 | new Currency( |
| 1259 | 1259 | 'XXX', |
| 1260 | 1260 | '999', |
| 1261 | - __( 'No currency', 'pronamic-money' ), |
|
| 1261 | + __('No currency', 'pronamic-money'), |
|
| 1262 | 1262 | null, |
| 1263 | 1263 | 0 |
| 1264 | 1264 | ), |
| 1265 | 1265 | new Currency( |
| 1266 | 1266 | 'YER', |
| 1267 | 1267 | '886', |
| 1268 | - __( 'Yemeni Rial', 'pronamic-money' ), |
|
| 1268 | + __('Yemeni Rial', 'pronamic-money'), |
|
| 1269 | 1269 | 'ر.ي', |
| 1270 | 1270 | 2 |
| 1271 | 1271 | ), |
| 1272 | 1272 | new Currency( |
| 1273 | 1273 | 'ZAR', |
| 1274 | 1274 | '710', |
| 1275 | - __( 'South African Rand', 'pronamic-money' ), |
|
| 1275 | + __('South African Rand', 'pronamic-money'), |
|
| 1276 | 1276 | 'R', |
| 1277 | 1277 | 2 |
| 1278 | 1278 | ), |
| 1279 | 1279 | new Currency( |
| 1280 | 1280 | 'ZMW', |
| 1281 | 1281 | '967', |
| 1282 | - __( 'Zambian Kwacha', 'pronamic-money' ), |
|
| 1282 | + __('Zambian Kwacha', 'pronamic-money'), |
|
| 1283 | 1283 | 'K', |
| 1284 | 1284 | 2 |
| 1285 | 1285 | ), |
| 1286 | 1286 | new Currency( |
| 1287 | 1287 | 'ZWL', |
| 1288 | 1288 | '932', |
| 1289 | - __( 'Zimbabwean Dollar', 'pronamic-money' ), |
|
| 1289 | + __('Zimbabwean Dollar', 'pronamic-money'), |
|
| 1290 | 1290 | '$', |
| 1291 | 1291 | 2 |
| 1292 | 1292 | ), |
@@ -43,17 +43,17 @@ discard block |
||
| 43 | 43 | * @param mixed $tax_value Tax value. |
| 44 | 44 | * @param mixed $tax_percentage Tax percentage. |
| 45 | 45 | */ |
| 46 | - public function __construct( $value = 0, $currency = 'EUR', $tax_value = null, $tax_percentage = null ) { |
|
| 47 | - $value = Number::from_mixed( $value ); |
|
| 46 | + public function __construct($value = 0, $currency = 'EUR', $tax_value = null, $tax_percentage = null) { |
|
| 47 | + $value = Number::from_mixed($value); |
|
| 48 | 48 | |
| 49 | - parent::__construct( $value, $currency ); |
|
| 49 | + parent::__construct($value, $currency); |
|
| 50 | 50 | |
| 51 | 51 | // Calculate tax amount if tax percentage is set. |
| 52 | - if ( null === $tax_value && null !== $tax_percentage ) { |
|
| 53 | - $tax_percentage = Number::from_mixed( $tax_percentage ); |
|
| 52 | + if (null === $tax_value && null !== $tax_percentage) { |
|
| 53 | + $tax_percentage = Number::from_mixed($tax_percentage); |
|
| 54 | 54 | |
| 55 | - $percentage = Number::from_string( '100' ); |
|
| 56 | - $percentage = $percentage->add( $tax_percentage ); |
|
| 55 | + $percentage = Number::from_string('100'); |
|
| 56 | + $percentage = $percentage->add($tax_percentage); |
|
| 57 | 57 | |
| 58 | 58 | /** |
| 59 | 59 | * For some reason, Scrutinizer thinks the `add` function return a |
@@ -61,13 +61,13 @@ discard block |
||
| 61 | 61 | * |
| 62 | 62 | * @scrutinizer ignore-type |
| 63 | 63 | */ |
| 64 | - $one_percent_value = $value->divide( $percentage ); |
|
| 64 | + $one_percent_value = $value->divide($percentage); |
|
| 65 | 65 | |
| 66 | - $tax_value = $one_percent_value->multiply( $tax_percentage ); |
|
| 66 | + $tax_value = $one_percent_value->multiply($tax_percentage); |
|
| 67 | 67 | } |
| 68 | 68 | |
| 69 | - $this->set_tax_value( $tax_value ); |
|
| 70 | - $this->set_tax_percentage( $tax_percentage ); |
|
| 69 | + $this->set_tax_value($tax_value); |
|
| 70 | + $this->set_tax_percentage($tax_percentage); |
|
| 71 | 71 | } |
| 72 | 72 | |
| 73 | 73 | /** |
@@ -76,11 +76,11 @@ discard block |
||
| 76 | 76 | * @return Money|null Tax amount. |
| 77 | 77 | */ |
| 78 | 78 | public function get_tax_amount() { |
| 79 | - if ( null === $this->tax_value ) { |
|
| 79 | + if (null === $this->tax_value) { |
|
| 80 | 80 | return null; |
| 81 | 81 | } |
| 82 | 82 | |
| 83 | - return new Money( $this->tax_value, $this->get_currency() ); |
|
| 83 | + return new Money($this->tax_value, $this->get_currency()); |
|
| 84 | 84 | } |
| 85 | 85 | |
| 86 | 86 | /** |
@@ -98,8 +98,8 @@ discard block |
||
| 98 | 98 | * @param float|int|string|null $value Tax value. |
| 99 | 99 | * @return void |
| 100 | 100 | */ |
| 101 | - public function set_tax_value( $value ) { |
|
| 102 | - $this->tax_value = ( null === $value ? null : Number::from_mixed( $value ) ); |
|
| 101 | + public function set_tax_value($value) { |
|
| 102 | + $this->tax_value = (null === $value ? null : Number::from_mixed($value)); |
|
| 103 | 103 | } |
| 104 | 104 | |
| 105 | 105 | /** |
@@ -108,7 +108,7 @@ discard block |
||
| 108 | 108 | * @return bool |
| 109 | 109 | */ |
| 110 | 110 | public function has_tax() { |
| 111 | - return ( null !== $this->get_tax_value() ); |
|
| 111 | + return (null !== $this->get_tax_value()); |
|
| 112 | 112 | } |
| 113 | 113 | |
| 114 | 114 | /** |
@@ -131,8 +131,8 @@ discard block |
||
| 131 | 131 | * @param mixed $percentage Tax percentage. |
| 132 | 132 | * @return void |
| 133 | 133 | */ |
| 134 | - public function set_tax_percentage( $percentage ) { |
|
| 135 | - $this->tax_percentage = ( null === $percentage ? null : Number::from_mixed( $percentage ) ); |
|
| 134 | + public function set_tax_percentage($percentage) { |
|
| 135 | + $this->tax_percentage = (null === $percentage ? null : Number::from_mixed($percentage)); |
|
| 136 | 136 | } |
| 137 | 137 | |
| 138 | 138 | /** |
@@ -141,7 +141,7 @@ discard block |
||
| 141 | 141 | * @return Money |
| 142 | 142 | */ |
| 143 | 143 | public function get_including_tax() { |
| 144 | - return new Money( $this->get_value(), $this->get_currency() ); |
|
| 144 | + return new Money($this->get_value(), $this->get_currency()); |
|
| 145 | 145 | } |
| 146 | 146 | |
| 147 | 147 | /** |
@@ -152,11 +152,11 @@ discard block |
||
| 152 | 152 | public function get_excluding_tax() { |
| 153 | 153 | $tax_amount = $this->get_tax_amount(); |
| 154 | 154 | |
| 155 | - if ( null === $tax_amount ) { |
|
| 155 | + if (null === $tax_amount) { |
|
| 156 | 156 | return $this->get_including_tax(); |
| 157 | 157 | } |
| 158 | 158 | |
| 159 | - return $this->subtract( $tax_amount ); |
|
| 159 | + return $this->subtract($tax_amount); |
|
| 160 | 160 | } |
| 161 | 161 | |
| 162 | 162 | /** |
@@ -170,12 +170,12 @@ discard block |
||
| 170 | 170 | |
| 171 | 171 | $properties = (array) $object; |
| 172 | 172 | |
| 173 | - if ( null !== $this->tax_value ) { |
|
| 174 | - $properties['tax_value'] = $this->tax_value->jsonSerialize(); |
|
| 173 | + if (null !== $this->tax_value) { |
|
| 174 | + $properties[ 'tax_value' ] = $this->tax_value->jsonSerialize(); |
|
| 175 | 175 | } |
| 176 | 176 | |
| 177 | - if ( null !== $this->tax_percentage ) { |
|
| 178 | - $properties['tax_percentage'] = $this->tax_percentage->jsonSerialize(); |
|
| 177 | + if (null !== $this->tax_percentage) { |
|
| 178 | + $properties[ 'tax_percentage' ] = $this->tax_percentage->jsonSerialize(); |
|
| 179 | 179 | } |
| 180 | 180 | |
| 181 | 181 | $object = (object) $properties; |
@@ -64,12 +64,12 @@ discard block |
||
| 64 | 64 | * @param string|null $symbol Symbol. |
| 65 | 65 | * @param int $number_decimals Number decimals. |
| 66 | 66 | */ |
| 67 | - public function __construct( $alphabetic_code, $numeric_code = null, $name = null, $symbol = null, $number_decimals = 2 ) { |
|
| 68 | - $this->set_alphabetic_code( $alphabetic_code ); |
|
| 69 | - $this->set_numeric_code( $numeric_code ); |
|
| 70 | - $this->set_name( $name ); |
|
| 71 | - $this->set_symbol( $symbol ); |
|
| 72 | - $this->set_number_decimals( $number_decimals ); |
|
| 67 | + public function __construct($alphabetic_code, $numeric_code = null, $name = null, $symbol = null, $number_decimals = 2) { |
|
| 68 | + $this->set_alphabetic_code($alphabetic_code); |
|
| 69 | + $this->set_numeric_code($numeric_code); |
|
| 70 | + $this->set_name($name); |
|
| 71 | + $this->set_symbol($symbol); |
|
| 72 | + $this->set_number_decimals($number_decimals); |
|
| 73 | 73 | } |
| 74 | 74 | |
| 75 | 75 | /** |
@@ -88,8 +88,8 @@ discard block |
||
| 88 | 88 | * @return void |
| 89 | 89 | * @throws \InvalidArgumentException Throws invalid argument exception if code is not 3 characters. |
| 90 | 90 | */ |
| 91 | - final public function set_alphabetic_code( $alphabetic_code ) { |
|
| 92 | - if ( 3 !== \strlen( $alphabetic_code ) ) { |
|
| 91 | + final public function set_alphabetic_code($alphabetic_code) { |
|
| 92 | + if (3 !== \strlen($alphabetic_code)) { |
|
| 93 | 93 | throw new \InvalidArgumentException( |
| 94 | 94 | \sprintf( |
| 95 | 95 | 'The alphabetical code of a currency must consist of 3 characters: %s.', |
@@ -116,7 +116,7 @@ discard block |
||
| 116 | 116 | * @param string|null $numeric_code Numeric code. |
| 117 | 117 | * @return void |
| 118 | 118 | */ |
| 119 | - public function set_numeric_code( $numeric_code ) { |
|
| 119 | + public function set_numeric_code($numeric_code) { |
|
| 120 | 120 | $this->numeric_code = $numeric_code; |
| 121 | 121 | } |
| 122 | 122 | |
@@ -135,7 +135,7 @@ discard block |
||
| 135 | 135 | * @param string|null $symbol Symbol. |
| 136 | 136 | * @return void |
| 137 | 137 | */ |
| 138 | - public function set_symbol( $symbol ) { |
|
| 138 | + public function set_symbol($symbol) { |
|
| 139 | 139 | $this->symbol = $symbol; |
| 140 | 140 | } |
| 141 | 141 | |
@@ -154,8 +154,8 @@ discard block |
||
| 154 | 154 | * @param int $number_decimals Number of decimals. |
| 155 | 155 | * @return void |
| 156 | 156 | */ |
| 157 | - final public function set_number_decimals( $number_decimals ) { |
|
| 158 | - $this->number_decimals = intval( $number_decimals ); |
|
| 157 | + final public function set_number_decimals($number_decimals) { |
|
| 158 | + $this->number_decimals = intval($number_decimals); |
|
| 159 | 159 | } |
| 160 | 160 | |
| 161 | 161 | /** |
@@ -165,8 +165,8 @@ discard block |
||
| 165 | 165 | * |
| 166 | 166 | * @return Currency |
| 167 | 167 | */ |
| 168 | - public static function get_instance( $alphabetic_code ) { |
|
| 169 | - return Currencies::get_currency( $alphabetic_code ); |
|
| 168 | + public static function get_instance($alphabetic_code) { |
|
| 169 | + return Currencies::get_currency($alphabetic_code); |
|
| 170 | 170 | } |
| 171 | 171 | |
| 172 | 172 | /** |
@@ -184,7 +184,7 @@ discard block |
||
| 184 | 184 | * @param string|null $name Currency name. |
| 185 | 185 | * @return void |
| 186 | 186 | */ |
| 187 | - public function set_name( $name ) { |
|
| 187 | + public function set_name($name) { |
|
| 188 | 188 | $this->name = $name; |
| 189 | 189 | } |
| 190 | 190 | |
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | * @return array<string, Currency> |
| 34 | 34 | */ |
| 35 | 35 | public static function get_currencies() { |
| 36 | - if ( is_null( self::$currencies ) ) { |
|
| 36 | + if (is_null(self::$currencies)) { |
|
| 37 | 37 | self::$currencies = self::load_currencies(); |
| 38 | 38 | } |
| 39 | 39 | |
@@ -47,14 +47,14 @@ discard block |
||
| 47 | 47 | * |
| 48 | 48 | * @return Currency |
| 49 | 49 | */ |
| 50 | - public static function get_currency( $alphabetic_code ) { |
|
| 50 | + public static function get_currency($alphabetic_code) { |
|
| 51 | 51 | $currencies = self::get_currencies(); |
| 52 | 52 | |
| 53 | - if ( \array_key_exists( $alphabetic_code, $currencies ) ) { |
|
| 53 | + if (\array_key_exists($alphabetic_code, $currencies)) { |
|
| 54 | 54 | return $currencies[ $alphabetic_code ]; |
| 55 | 55 | } |
| 56 | 56 | |
| 57 | - return new Currency( $alphabetic_code ); |
|
| 57 | + return new Currency($alphabetic_code); |
|
| 58 | 58 | } |
| 59 | 59 | |
| 60 | 60 | /** |
@@ -67,7 +67,7 @@ discard block |
||
| 67 | 67 | private static function load_currencies() { |
| 68 | 68 | $file = __DIR__ . '/../resources/currencies.php'; |
| 69 | 69 | |
| 70 | - $currencies = []; |
|
| 70 | + $currencies = [ ]; |
|
| 71 | 71 | |
| 72 | 72 | /** |
| 73 | 73 | * Data. |
@@ -78,7 +78,7 @@ discard block |
||
| 78 | 78 | */ |
| 79 | 79 | $data = require $file; |
| 80 | 80 | |
| 81 | - foreach ( $data as $currency ) { |
|
| 81 | + foreach ($data as $currency) { |
|
| 82 | 82 | $alphabetic_code = $currency->get_alphabetic_code(); |
| 83 | 83 | |
| 84 | 84 | $currencies[ $alphabetic_code ] = $currency; |
@@ -31,20 +31,20 @@ discard block |
||
| 31 | 31 | * |
| 32 | 32 | * @throws Exception Throws exception when parsing string fails. |
| 33 | 33 | */ |
| 34 | - public function parse( $string ) { |
|
| 34 | + public function parse($string) { |
|
| 35 | 35 | global $wp_locale; |
| 36 | 36 | |
| 37 | - $decimal_sep = $wp_locale->number_format['decimal_point']; |
|
| 37 | + $decimal_sep = $wp_locale->number_format[ 'decimal_point' ]; |
|
| 38 | 38 | |
| 39 | 39 | // Separators. |
| 40 | 40 | $separators = [ $decimal_sep, '.', ',' ]; |
| 41 | - $separators = array_unique( array_filter( $separators ) ); |
|
| 41 | + $separators = array_unique(array_filter($separators)); |
|
| 42 | 42 | |
| 43 | 43 | // Check. |
| 44 | - foreach ( [ - 3, - 2 ] as $i ) { |
|
| 45 | - $test = substr( $string, $i, 1 ); |
|
| 44 | + foreach ([ -3, - 2 ] as $i) { |
|
| 45 | + $test = substr($string, $i, 1); |
|
| 46 | 46 | |
| 47 | - if ( in_array( $test, $separators, true ) ) { |
|
| 47 | + if (in_array($test, $separators, true)) { |
|
| 48 | 48 | $decimal_sep = $test; |
| 49 | 49 | |
| 50 | 50 | break; |
@@ -54,63 +54,63 @@ discard block |
||
| 54 | 54 | // Split. |
| 55 | 55 | $position = false; |
| 56 | 56 | |
| 57 | - if ( is_string( $decimal_sep ) ) { |
|
| 58 | - $position = strrpos( $string, $decimal_sep ); |
|
| 57 | + if (is_string($decimal_sep)) { |
|
| 58 | + $position = strrpos($string, $decimal_sep); |
|
| 59 | 59 | } |
| 60 | 60 | |
| 61 | 61 | // Check decimal position on -4th position at end of string of negative amount (e.g. `2.500,75-`). |
| 62 | - if ( false === $position && '-' === \substr( $string, -1, 1 ) ) { |
|
| 63 | - $test = substr( $string, -4, 1 ); |
|
| 62 | + if (false === $position && '-' === \substr($string, -1, 1)) { |
|
| 63 | + $test = substr($string, -4, 1); |
|
| 64 | 64 | |
| 65 | - if ( is_string( $test ) && in_array( $test, $separators, true ) ) { |
|
| 66 | - $position = strrpos( $string, $test ); |
|
| 65 | + if (is_string($test) && in_array($test, $separators, true)) { |
|
| 66 | + $position = strrpos($string, $test); |
|
| 67 | 67 | } |
| 68 | 68 | } |
| 69 | 69 | |
| 70 | - if ( false !== $position ) { |
|
| 71 | - $full = substr( $string, 0, $position ); |
|
| 72 | - $half = substr( $string, $position + 1 ); |
|
| 70 | + if (false !== $position) { |
|
| 71 | + $full = substr($string, 0, $position); |
|
| 72 | + $half = substr($string, $position + 1); |
|
| 73 | 73 | |
| 74 | 74 | /* |
| 75 | 75 | * Consider `-` after decimal separator as alternative notation for 'no minor units' (e.g. `€ 5,-`). |
| 76 | 76 | * |
| 77 | 77 | * @link https://taaladvies.net/taal/advies/vraag/275/euro_komma_en_streepje_in_de_notatie_van_hele_bedragen/ |
| 78 | 78 | */ |
| 79 | - if ( \in_array( $half, [ '-', '–', '—' ], true ) ) { |
|
| 79 | + if (\in_array($half, [ '-', '–', '—' ], true)) { |
|
| 80 | 80 | $half = ''; |
| 81 | 81 | } |
| 82 | 82 | |
| 83 | - $end_minus = ( '-' === \substr( $half, -1, 1 ) ); |
|
| 83 | + $end_minus = ('-' === \substr($half, -1, 1)); |
|
| 84 | 84 | |
| 85 | - $full = filter_var( $full, FILTER_SANITIZE_NUMBER_INT ); |
|
| 86 | - $half = filter_var( $half, FILTER_SANITIZE_NUMBER_INT ); |
|
| 85 | + $full = filter_var($full, FILTER_SANITIZE_NUMBER_INT); |
|
| 86 | + $half = filter_var($half, FILTER_SANITIZE_NUMBER_INT); |
|
| 87 | 87 | |
| 88 | 88 | // Make amount negative if half string ends with minus sign. |
| 89 | - if ( $end_minus ) { |
|
| 89 | + if ($end_minus) { |
|
| 90 | 90 | // Make full negative. |
| 91 | - $full = sprintf( '-%s', $full ); |
|
| 91 | + $full = sprintf('-%s', $full); |
|
| 92 | 92 | |
| 93 | 93 | // Remove minus from end of half. |
| 94 | - $half = \substr( (string) $half, 0, -1 ); |
|
| 94 | + $half = \substr((string) $half, 0, -1); |
|
| 95 | 95 | } |
| 96 | 96 | |
| 97 | 97 | $string = $full . '.' . $half; |
| 98 | 98 | } else { |
| 99 | 99 | // Make amount negative if full string ends with minus sign. |
| 100 | - if ( '-' === \substr( $string, -1, 1 ) ) { |
|
| 101 | - $string = sprintf( '-%s', \substr( $string, 0, -1 ) ); |
|
| 100 | + if ('-' === \substr($string, -1, 1)) { |
|
| 101 | + $string = sprintf('-%s', \substr($string, 0, -1)); |
|
| 102 | 102 | } |
| 103 | 103 | |
| 104 | - $string = filter_var( $string, FILTER_SANITIZE_NUMBER_INT ); |
|
| 104 | + $string = filter_var($string, FILTER_SANITIZE_NUMBER_INT); |
|
| 105 | 105 | } |
| 106 | 106 | |
| 107 | 107 | // Filter. |
| 108 | - $value = filter_var( $string, FILTER_VALIDATE_FLOAT ); |
|
| 108 | + $value = filter_var($string, FILTER_VALIDATE_FLOAT); |
|
| 109 | 109 | |
| 110 | - if ( false === $value ) { |
|
| 111 | - throw new Exception( 'Could not parse value to money object.' ); |
|
| 110 | + if (false === $value) { |
|
| 111 | + throw new Exception('Could not parse value to money object.'); |
|
| 112 | 112 | } |
| 113 | 113 | |
| 114 | - return new Money( $value ); |
|
| 114 | + return new Money($value); |
|
| 115 | 115 | } |
| 116 | 116 | } |
@@ -41,9 +41,9 @@ discard block |
||
| 41 | 41 | * @param mixed $value Amount value. |
| 42 | 42 | * @param Currency|string $currency Currency. |
| 43 | 43 | */ |
| 44 | - public function __construct( $value = 0, $currency = 'EUR' ) { |
|
| 45 | - $this->set_value( $value ); |
|
| 46 | - $this->set_currency( $currency ); |
|
| 44 | + public function __construct($value = 0, $currency = 'EUR') { |
|
| 45 | + $this->set_value($value); |
|
| 46 | + $this->set_currency($currency); |
|
| 47 | 47 | } |
| 48 | 48 | |
| 49 | 49 | /** |
@@ -53,7 +53,7 @@ discard block |
||
| 53 | 53 | */ |
| 54 | 54 | public static function get_default_format() { |
| 55 | 55 | /* translators: 1: currency symbol, 2: amount value, 3: currency code, note: use non-breaking space! */ |
| 56 | - $format = _x( '%1$s%2$s %3$s', 'money format', 'pronamic-money' ); |
|
| 56 | + $format = _x('%1$s%2$s %3$s', 'money format', 'pronamic-money'); |
|
| 57 | 57 | // Note: ↳ Non-breaking space. |
| 58 | 58 | |
| 59 | 59 | /** |
@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | * |
| 70 | 70 | * @param string $format Format. |
| 71 | 71 | */ |
| 72 | - $format = apply_filters( 'pronamic_money_default_format', $format ); |
|
| 72 | + $format = apply_filters('pronamic_money_default_format', $format); |
|
| 73 | 73 | |
| 74 | 74 | return $format; |
| 75 | 75 | } |
@@ -81,8 +81,8 @@ discard block |
||
| 81 | 81 | * |
| 82 | 82 | * @return string |
| 83 | 83 | */ |
| 84 | - public function format_i18n( $format = null ) { |
|
| 85 | - if ( is_null( $format ) ) { |
|
| 84 | + public function format_i18n($format = null) { |
|
| 85 | + if (is_null($format)) { |
|
| 86 | 86 | $format = self::get_default_format(); |
| 87 | 87 | } |
| 88 | 88 | |
@@ -90,21 +90,21 @@ discard block |
||
| 90 | 90 | $number_decimals = $this->currency->get_number_decimals(); |
| 91 | 91 | |
| 92 | 92 | // Handle non trailing zero formatter. |
| 93 | - if ( false !== \strpos( $format, '%2$NTZ' ) ) { |
|
| 94 | - $decimals = \substr( $this->format(), ( - 1 * $number_decimals ), $number_decimals ); |
|
| 93 | + if (false !== \strpos($format, '%2$NTZ')) { |
|
| 94 | + $decimals = \substr($this->format(), ( -1 * $number_decimals ), $number_decimals); |
|
| 95 | 95 | |
| 96 | - if ( 0 === (int) $decimals ) { |
|
| 96 | + if (0 === (int) $decimals) { |
|
| 97 | 97 | $number_decimals = 0; |
| 98 | 98 | } |
| 99 | 99 | |
| 100 | - $format = \str_replace( '%2$NTZ', '%2$s', $format ); |
|
| 100 | + $format = \str_replace('%2$NTZ', '%2$s', $format); |
|
| 101 | 101 | } |
| 102 | 102 | |
| 103 | 103 | return \sprintf( |
| 104 | 104 | $format, |
| 105 | 105 | (string) $this->currency->get_symbol(), |
| 106 | - $this->amount->format_i18n( $number_decimals ), |
|
| 107 | - \strval( $alphabetic_code ) |
|
| 106 | + $this->amount->format_i18n($number_decimals), |
|
| 107 | + \strval($alphabetic_code) |
|
| 108 | 108 | ); |
| 109 | 109 | } |
| 110 | 110 | |
@@ -115,14 +115,14 @@ discard block |
||
| 115 | 115 | * |
| 116 | 116 | * @return string |
| 117 | 117 | */ |
| 118 | - public function format_i18n_non_trailing_zeros( $format = null ) { |
|
| 119 | - if ( is_null( $format ) ) { |
|
| 118 | + public function format_i18n_non_trailing_zeros($format = null) { |
|
| 119 | + if (is_null($format)) { |
|
| 120 | 120 | $format = self::get_default_format(); |
| 121 | 121 | } |
| 122 | 122 | |
| 123 | - $format = str_replace( '%2$s', '%2$NTZ', $format ); |
|
| 123 | + $format = str_replace('%2$s', '%2$NTZ', $format); |
|
| 124 | 124 | |
| 125 | - return $this->format_i18n( $format ); |
|
| 125 | + return $this->format_i18n($format); |
|
| 126 | 126 | } |
| 127 | 127 | |
| 128 | 128 | /** |
@@ -132,8 +132,8 @@ discard block |
||
| 132 | 132 | * |
| 133 | 133 | * @return string |
| 134 | 134 | */ |
| 135 | - public function format( $format = null ) { |
|
| 136 | - if ( is_null( $format ) ) { |
|
| 135 | + public function format($format = null) { |
|
| 136 | + if (is_null($format)) { |
|
| 137 | 137 | $format = '%2$s'; |
| 138 | 138 | } |
| 139 | 139 | |
@@ -142,8 +142,8 @@ discard block |
||
| 142 | 142 | return \sprintf( |
| 143 | 143 | $format, |
| 144 | 144 | (string) $this->currency->get_symbol(), |
| 145 | - $this->amount->format( $this->get_currency()->get_number_decimals() ), |
|
| 146 | - \strval( $alphabetic_code ) |
|
| 145 | + $this->amount->format($this->get_currency()->get_number_decimals()), |
|
| 146 | + \strval($alphabetic_code) |
|
| 147 | 147 | ); |
| 148 | 148 | } |
| 149 | 149 | |
@@ -155,12 +155,12 @@ discard block |
||
| 155 | 155 | * @param string|null $thousands_separator Sets the thousands separator. |
| 156 | 156 | * @return string |
| 157 | 157 | */ |
| 158 | - public function number_format( $decimals = null, $decimal_separator = '.', $thousands_separator = ',' ) { |
|
| 159 | - if ( null === $decimals ) { |
|
| 158 | + public function number_format($decimals = null, $decimal_separator = '.', $thousands_separator = ',') { |
|
| 159 | + if (null === $decimals) { |
|
| 160 | 160 | $decimals = $this->currency->get_number_decimals(); |
| 161 | 161 | } |
| 162 | 162 | |
| 163 | - return $this->amount->format( $decimals, $decimal_separator, $thousands_separator ); |
|
| 163 | + return $this->amount->format($decimals, $decimal_separator, $thousands_separator); |
|
| 164 | 164 | } |
| 165 | 165 | |
| 166 | 166 | /** |
@@ -169,12 +169,12 @@ discard block |
||
| 169 | 169 | * @param int $decimals Precision of the number of decimal places. |
| 170 | 170 | * @return string |
| 171 | 171 | */ |
| 172 | - public function number_format_i18n( $decimals = null ) { |
|
| 173 | - if ( null === $decimals ) { |
|
| 172 | + public function number_format_i18n($decimals = null) { |
|
| 173 | + if (null === $decimals) { |
|
| 174 | 174 | $decimals = $this->currency->get_number_decimals(); |
| 175 | 175 | } |
| 176 | 176 | |
| 177 | - return $this->amount->format_i18n( $decimals ); |
|
| 177 | + return $this->amount->format_i18n($decimals); |
|
| 178 | 178 | } |
| 179 | 179 | |
| 180 | 180 | /** |
@@ -210,7 +210,7 @@ discard block |
||
| 210 | 210 | * @return Number |
| 211 | 211 | */ |
| 212 | 212 | public function get_minor_units() { |
| 213 | - return $this->amount->multiply( Number::from_mixed( \pow( 10, $this->currency->get_number_decimals() ) ) ); |
|
| 213 | + return $this->amount->multiply(Number::from_mixed(\pow(10, $this->currency->get_number_decimals()))); |
|
| 214 | 214 | } |
| 215 | 215 | |
| 216 | 216 | /** |
@@ -219,8 +219,8 @@ discard block |
||
| 219 | 219 | * @param mixed $value Amount value. |
| 220 | 220 | * @return void |
| 221 | 221 | */ |
| 222 | - final public function set_value( $value ) { |
|
| 223 | - $this->amount = Number::from_mixed( $value ); |
|
| 222 | + final public function set_value($value) { |
|
| 223 | + $this->amount = Number::from_mixed($value); |
|
| 224 | 224 | } |
| 225 | 225 | |
| 226 | 226 | /** |
@@ -238,9 +238,9 @@ discard block |
||
| 238 | 238 | * @param string|Currency $currency Currency. |
| 239 | 239 | * @return void |
| 240 | 240 | */ |
| 241 | - final public function set_currency( $currency ) { |
|
| 242 | - if ( ! $currency instanceof Currency ) { |
|
| 243 | - $currency = Currency::get_instance( $currency ); |
|
| 241 | + final public function set_currency($currency) { |
|
| 242 | + if ( ! $currency instanceof Currency) { |
|
| 243 | + $currency = Currency::get_instance($currency); |
|
| 244 | 244 | } |
| 245 | 245 | |
| 246 | 246 | $this->currency = $currency; |
@@ -255,7 +255,7 @@ discard block |
||
| 255 | 255 | return \sprintf( |
| 256 | 256 | '%s %s', |
| 257 | 257 | $this->currency->get_alphabetic_code(), |
| 258 | - $this->amount->format( $this->get_currency()->get_number_decimals() ) |
|
| 258 | + $this->amount->format($this->get_currency()->get_number_decimals()) |
|
| 259 | 259 | ); |
| 260 | 260 | } |
| 261 | 261 | |
@@ -279,10 +279,10 @@ discard block |
||
| 279 | 279 | * @param Money $addend Addend. |
| 280 | 280 | * @return Money |
| 281 | 281 | */ |
| 282 | - public function add( Money $addend ) { |
|
| 283 | - $result = $this->amount->add( $addend->get_number() ); |
|
| 282 | + public function add(Money $addend) { |
|
| 283 | + $result = $this->amount->add($addend->get_number()); |
|
| 284 | 284 | |
| 285 | - return new self( $result, $this->currency ); |
|
| 285 | + return new self($result, $this->currency); |
|
| 286 | 286 | } |
| 287 | 287 | |
| 288 | 288 | /** |
@@ -293,10 +293,10 @@ discard block |
||
| 293 | 293 | * @param Money $subtrahend Subtrahend. |
| 294 | 294 | * @return Money |
| 295 | 295 | */ |
| 296 | - public function subtract( Money $subtrahend ) { |
|
| 297 | - $result = $this->amount->subtract( $subtrahend->get_number() ); |
|
| 296 | + public function subtract(Money $subtrahend) { |
|
| 297 | + $result = $this->amount->subtract($subtrahend->get_number()); |
|
| 298 | 298 | |
| 299 | - return new self( $result, $this->currency ); |
|
| 299 | + return new self($result, $this->currency); |
|
| 300 | 300 | } |
| 301 | 301 | |
| 302 | 302 | /** |
@@ -307,12 +307,12 @@ discard block |
||
| 307 | 307 | * @param mixed $multiplier Multiplier. |
| 308 | 308 | * @return Money |
| 309 | 309 | */ |
| 310 | - public function multiply( $multiplier ) { |
|
| 311 | - $multiplier = Number::from_mixed( $multiplier ); |
|
| 310 | + public function multiply($multiplier) { |
|
| 311 | + $multiplier = Number::from_mixed($multiplier); |
|
| 312 | 312 | |
| 313 | - $result = $this->amount->multiply( $multiplier ); |
|
| 313 | + $result = $this->amount->multiply($multiplier); |
|
| 314 | 314 | |
| 315 | - return new self( $result, $this->currency ); |
|
| 315 | + return new self($result, $this->currency); |
|
| 316 | 316 | } |
| 317 | 317 | |
| 318 | 318 | /** |
@@ -323,12 +323,12 @@ discard block |
||
| 323 | 323 | * @param mixed $divisor Divisor. |
| 324 | 324 | * @return Money |
| 325 | 325 | */ |
| 326 | - public function divide( $divisor ) { |
|
| 327 | - $divisor = Number::from_mixed( $divisor ); |
|
| 326 | + public function divide($divisor) { |
|
| 327 | + $divisor = Number::from_mixed($divisor); |
|
| 328 | 328 | |
| 329 | - $result = $this->amount->divide( $divisor ); |
|
| 329 | + $result = $this->amount->divide($divisor); |
|
| 330 | 330 | |
| 331 | - return new self( $result, $this->currency ); |
|
| 331 | + return new self($result, $this->currency); |
|
| 332 | 332 | } |
| 333 | 333 | |
| 334 | 334 | /** |
@@ -28,8 +28,8 @@ |
||
| 28 | 28 | * Pronamic Money load plugin text domain. |
| 29 | 29 | */ |
| 30 | 30 | function pronamic_money_load_plugin_textdomain() { |
| 31 | - load_plugin_textdomain( 'pronamic-money', false, basename( __DIR__ ) . '/languages' ); |
|
| 31 | + load_plugin_textdomain('pronamic-money', false, basename(__DIR__) . '/languages'); |
|
| 32 | 32 | } |
| 33 | 33 | |
| 34 | -add_action( 'init', 'pronamic_money_load_plugin_textdomain' ); |
|
| 35 | -add_action( 'change_locale', 'pronamic_money_load_plugin_textdomain' ); |
|
| 34 | +add_action('init', 'pronamic_money_load_plugin_textdomain'); |
|
| 35 | +add_action('change_locale', 'pronamic_money_load_plugin_textdomain'); |
|