@@ -86,10 +86,10 @@ if (isset($_POST['submit'])) {
$helper->log('
Code:
');
$helper->log('use PhpOffice\PhpSpreadsheet\Style\NumberFormat\Wizard;');
$helper->log(
- "\$mask = Wizard\Accounting('{$_POST['currency']}', {$_POST['decimals']}, Wizard\Number::" .
+ "\$mask = Wizard\\Accounting('{$_POST['currency']}', {$_POST['decimals']}, Wizard\\Number::" .
(isset($_POST['thousands']) ? 'WITH_THOUSANDS_SEPARATOR' : 'WITHOUT_THOUSANDS_SEPARATOR') .
- (((bool) $_POST['position']) ? ', Wizard\Accounting::LEADING_SYMBOL' : ', Wizard\Accounting::TRAILING_SYMBOL') .
- (((bool) $_POST['spacing']) ? ', Wizard\Accounting::SYMBOL_WITH_SPACING' : ', Wizard\Accounting::SYMBOL_WITHOUT_SPACING') .
+ ', Wizard\Currency::' . (((bool) $_POST['position']) ? 'LEADING_SYMBOL' : 'TRAILING_SYMBOL') .
+ ', Wizard\Currency::' . (((bool) $_POST['spacing']) ? 'SYMBOL_WITH_SPACING' : 'SYMBOL_WITHOUT_SPACING') .
')
'
);
$helper->log('
Mask:
');
diff --git a/samples/Wizards/NumberFormat/Currency.php b/samples/Wizards/NumberFormat/Currency.php
index 05ccbb715..11b0bfc89 100644
--- a/samples/Wizards/NumberFormat/Currency.php
+++ b/samples/Wizards/NumberFormat/Currency.php
@@ -86,10 +86,10 @@ if (isset($_POST['submit'])) {
$helper->log('
Code:
');
$helper->log('use PhpOffice\PhpSpreadsheet\Style\NumberFormat\Wizard;');
$helper->log(
- "\$mask = Wizard\Currency('{$_POST['currency']}', {$_POST['decimals']}, Wizard\Number::" .
+ "\$mask = Wizard\\Currency('{$_POST['currency']}', {$_POST['decimals']}, Wizard\\Number::" .
(isset($_POST['thousands']) ? 'WITH_THOUSANDS_SEPARATOR' : 'WITHOUT_THOUSANDS_SEPARATOR') .
- (((bool) $_POST['position']) ? ', Wizard\Currency::LEADING_SYMBOL' : ', Wizard\Currency::TRAILING_SYMBOL') .
- (((bool) $_POST['spacing']) ? ', Wizard\Currency::SYMBOL_WITH_SPACING' : ', Wizard\Currency::SYMBOL_WITHOUT_SPACING') .
+ ', Wizard\Currency::' . (((bool) $_POST['position']) ? 'LEADING_SYMBOL' : 'TRAILING_SYMBOL') .
+ ', Wizard\Currency::' . (((bool) $_POST['spacing']) ? 'SYMBOL_WITH_SPACING' : 'SYMBOL_WITHOUT_SPACING') .
')
'
);
$helper->log('
Mask:
');
diff --git a/samples/Wizards/NumberFormat/Number.php b/samples/Wizards/NumberFormat/Number.php
index 3b3850e69..3e2e1a517 100644
--- a/samples/Wizards/NumberFormat/Number.php
+++ b/samples/Wizards/NumberFormat/Number.php
@@ -59,7 +59,7 @@ if (isset($_POST['submit'])) {
$helper->log('
Code:
');
$helper->log('use PhpOffice\PhpSpreadsheet\Style\NumberFormat\Wizard;');
$helper->log(
- "\$mask = Wizard\Number({$_POST['decimals']}, Wizard\Number::" .
+ "\$mask = Wizard\\Number({$_POST['decimals']}, Wizard\\Number::" .
(isset($_POST['thousands']) ? 'WITH_THOUSANDS_SEPARATOR' : 'WITHOUT_THOUSANDS_SEPARATOR') .
')
'
);
diff --git a/samples/Wizards/NumberFormat/Percentage.php b/samples/Wizards/NumberFormat/Percentage.php
index daa77908a..d06dafb69 100644
--- a/samples/Wizards/NumberFormat/Percentage.php
+++ b/samples/Wizards/NumberFormat/Percentage.php
@@ -52,7 +52,7 @@ if (isset($_POST['submit'])) {
$example = (string) NumberFormat::toFormattedString((float) $_POST['number'], $mask);
$helper->log('
Code:
');
$helper->log('use PhpOffice\PhpSpreadsheet\Style\NumberFormat\Wizard;');
- $helper->log("\$mask = Wizard\Percentage({$_POST['decimals']})
");
+ $helper->log("\$mask = Wizard\\Percentage({$_POST['decimals']})
");
$helper->log('
Mask:
');
$helper->log($mask . '
');
$helper->log('
Example:
');
diff --git a/samples/Wizards/NumberFormat/Scientific.php b/samples/Wizards/NumberFormat/Scientific.php
index 5ff99dec8..3e68033b7 100644
--- a/samples/Wizards/NumberFormat/Scientific.php
+++ b/samples/Wizards/NumberFormat/Scientific.php
@@ -52,7 +52,7 @@ if (isset($_POST['submit'])) {
$example = (string) NumberFormat::toFormattedString((float) $_POST['number'], $mask);
$helper->log('
Code:
');
$helper->log('use PhpOffice\PhpSpreadsheet\Style\NumberFormat\Wizard;');
- $helper->log("\$mask = Wizard\Scientific({$_POST['decimals']})
");
+ $helper->log("\$mask = Wizard\\Scientific({$_POST['decimals']})
");
$helper->log('
Mask:
');
$helper->log($mask . '
');
$helper->log('
Example:
');