Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
61 commits
Select commit Hold shift + click to select a range
89913ac
create locale data compilers for number formatter
jrmajor Nov 3, 2021
b7fc51c
cu
jrmajor Nov 3, 2021
a5d4a3b
commit compiled locale data
jrmajor Nov 3, 2021
86db491
skip invalid minorUnits in currencies compiler
jrmajor Nov 3, 2021
d445287
rename FluentNumber::setFluentLocale()
jrmajor Nov 3, 2021
7406a71
mark FluentNumber as final
jrmajor Nov 3, 2021
abbb5c0
add `@return $this` annotations
jrmajor Nov 3, 2021
84d9006
remove plusSign from locale data
jrmajor Nov 3, 2021
98bc2c9
formatting
jrmajor Nov 3, 2021
09223ab
refactor test case
jrmajor Nov 3, 2021
4abb57c
create equalsNodeOutput assertion
jrmajor Nov 3, 2021
0b01d7f
add basic number formatter
jrmajor Nov 4, 2021
c2425d7
change symbols order in compiled locales
jrmajor Nov 4, 2021
8015b28
count unique locale values popularity
jrmajor Nov 4, 2021
a71eaaa
optimize locale data
jrmajor Nov 4, 2021
afd3291
optimize currencies data
jrmajor Nov 4, 2021
4f9350f
fix escaping in currency data
jrmajor Nov 4, 2021
f3ddd42
enable phpstan analysis for locales data
jrmajor Nov 4, 2021
0d5839b
replace make-numbers with symfony console app
jrmajor Nov 5, 2021
26e7f5d
fix escaping in locale data
jrmajor Nov 5, 2021
76bb3ca
formatting
jrmajor Nov 5, 2021
0fc155a
refactor FluentNumber to use NumberFormatter
jrmajor Nov 5, 2021
9136583
implement NUMBER function
jrmajor Nov 5, 2021
75f3b96
catch runtime function exceptions
jrmajor Nov 5, 2021
ee2ae75
make NUMBER function retain trailing zeroes
jrmajor Nov 5, 2021
5814b85
formatting
jrmajor Nov 5, 2021
efdaa70
make exception constructors internal
jrmajor Nov 5, 2021
c998a8e
improve assertTranslation assertion
jrmajor Nov 5, 2021
6313297
fix phpstan error
jrmajor Nov 5, 2021
7157c46
formatting
jrmajor Nov 5, 2021
fb725c9
add gen to export-ignore
jrmajor Nov 5, 2021
163c291
create cache directory if it does not exist
jrmajor Nov 5, 2021
a25461a
replace NBSPs with unicode escapes
jrmajor Nov 5, 2021
67e83aa
fix locale loader number formatter
jrmajor Nov 5, 2021
f02eb75
cleanup
jrmajor Nov 5, 2021
5251847
refactor locale compiler helpers
jrmajor Nov 5, 2021
af4277b
formatting
jrmajor Nov 5, 2021
c5488db
add thecodingmachine/phpstan-safe-rule
jrmajor Nov 5, 2021
b618259
add gen application name
jrmajor Nov 5, 2021
844eb46
mark FluentNumber methods as internal
jrmajor Nov 5, 2021
8c48995
throw InvalidArgument instead of custom exception
jrmajor Nov 5, 2021
7043b98
fix exception message
jrmajor Nov 5, 2021
f90b8bf
NumberFormatter cleanup
jrmajor Nov 5, 2021
cd99257
throw error for currency numer formatting style
jrmajor Nov 5, 2021
cdd6aaa
extract locale data loader from numberformatter
jrmajor Nov 6, 2021
db88c25
fix typo
jrmajor Nov 6, 2021
371b960
optimize currencies data
jrmajor Nov 6, 2021
70c4069
commit compiled locale data
jrmajor Nov 6, 2021
af4038c
optimize currencies data
jrmajor Nov 6, 2021
4e11dec
commit compiled locale data
jrmajor Nov 6, 2021
e2aa435
optimize currencies data
jrmajor Nov 6, 2021
8054937
commit compiled locale data
jrmajor Nov 6, 2021
8d2e6b4
optimize currencies data
jrmajor Nov 7, 2021
a28d591
commit compiled locale data
jrmajor Nov 7, 2021
159a2c0
small refactors
jrmajor Nov 7, 2021
ff350b0
add locale data required for currency formatting
jrmajor Nov 7, 2021
ed250f8
include narrowSymbol in currencies data
jrmajor Nov 7, 2021
965bdd5
commit compiled locale data
jrmajor Nov 7, 2021
596a32c
fix assertNumberFormat assertion
jrmajor Nov 7, 2021
3603fa2
add currency formatting support
jrmajor Nov 7, 2021
486c160
fix assertion
jrmajor Nov 7, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
5 changes: 4 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
/.github export-ignore
/dev export-ignore
/tests export-ignore
/.editorconfig export-ignore
/.php-cs-fixer.php export-ignore
/composer.lock export-ignore
/phpstan-baseline.neon export-ignore
/gen export-ignore
/package.json export-ignore
/phpstan.neon export-ignore
/phpunit.xml.dist export-ignore
/yarn.lock export-ignore
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/.phpunit.cache
/node_modules
/vendor
/.php-cs-fixer.cache
6 changes: 4 additions & 2 deletions .php-cs-fixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
'order' => ['use_trait', 'constant', 'property', 'method', 'magic'],
],
'phpdoc_summary' => false,
'no_unused_imports' => false,
PhpCsFixerCustomFixers\Fixer\StringableInterfaceFixer::name() => false,
// Remove throw from tokens, removes blank line when throw is used as an expression.
'no_extra_blank_lines' => [
'tokens' => ['case', 'continue', 'curly_brace_block', 'default', 'extra', 'parenthesis_brace_block', 'switch'],
],
]);
14 changes: 11 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,18 @@
},
"require-dev": {
"ext-json": "*",
"phpstan/phpstan": "^0.12.99",
"ext-simplexml": "*",
"jrmajor/cs": "^0.3.2",
"nunomaduro/collision": "^5.10",
"pestphp/pest": "^1.20",
"phpstan/phpstan": "^0.12.99",
"phpunit/phpunit": "^9.5",
"jrmajor/cs": "^0.3.1",
"symfony/var-dumper": "^5.3"
"symfony/var-dumper": "^5.3",
"symfony/process": "^5.3",
"symfony/console": "^5.3",
"thecodingmachine/safe": "^1.3",
"thecodingmachine/phpstan-safe-rule": "^1.0",
"illuminate/support": "^8.69"
},
"autoload": {
"psr-4": {
Expand All @@ -47,6 +54,7 @@
},
"autoload-dev": {
"psr-4": {
"Major\\Fluent\\Dev\\": "dev",
"Major\\Fluent\\Tests\\": "tests"
}
},
Expand Down
Loading