Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
WordPress
WooCommerce Accounting
Commits
ea2bf7df
Commit
ea2bf7df
authored
9 months ago
by
Bastien Ho
Browse files
Options
Download
Email Patches
Plain Diff
PHP7 compliance
parent
367cc297
Pipeline
#34635
passed with stages
in 2 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
accounting-for-woocommerce/inc/utils.php
+2
-2
accounting-for-woocommerce/inc/utils.php
with
2 additions
and
2 deletions
+2
-2
accounting-for-woocommerce/inc/utils.php
+
2
-
2
View file @
ea2bf7df
...
...
@@ -17,7 +17,7 @@ function woocommerce_accounting_export_select_options($options, $option_name){
*
* @return string
*/
function
woocommerce_accounting_format_number
(
$number
)
:
string
{
function
woocommerce_accounting_format_number
(
$number
){
global
$rounding_precision
;
$dec_separator
=
get_option
(
'woocommerce_accounting_export_decimal_separator'
);
$zero_opt
=
get_option
(
'woocommerce_accounting_export_zero_opt'
);
...
...
@@ -37,7 +37,7 @@ function woocommerce_accounting_format_number($number) : string{
*
* @return float
*/
function
woocommerce_accounting_unformat_number
(
$string
)
:
float
{
function
woocommerce_accounting_unformat_number
(
$string
){
return
(
float
)
str_replace
(
','
,
'.'
,
$string
);
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets