|
1 | 1 | <?php |
2 | 2 |
|
3 | | -use Fintech\Core\Core; |
4 | 3 | use Fintech\Core\Exceptions\PackageNotInstalledException; |
5 | 4 | use Fintech\Core\Supports\Currency; |
6 | 5 | use Illuminate\Contracts\Container\BindingResolutionException; |
@@ -56,11 +55,11 @@ function entry_number($serial, string $country_code, string $type = ''): string |
56 | 55 | $length = (int)config('fintech.core.entry_number_length', 20) - strlen($prefix); |
57 | 56 |
|
58 | 57 | return $prefix . str_pad( |
59 | | - filter_var($serial, FILTER_SANITIZE_NUMBER_INT), |
60 | | - $length, |
61 | | - config('fintech.core.entry_number_fill', '0'), |
62 | | - STR_PAD_LEFT |
63 | | - ); |
| 58 | + filter_var($serial, FILTER_SANITIZE_NUMBER_INT), |
| 59 | + $length, |
| 60 | + config('fintech.core.entry_number_fill', '0'), |
| 61 | + STR_PAD_LEFT |
| 62 | + ); |
64 | 63 | } |
65 | 64 | } |
66 | 65 |
|
@@ -178,9 +177,9 @@ function singleton(string $abstract, $filters = null): mixed |
178 | 177 | */ |
179 | 178 | function next_purchase_number(string $countryIso3): string |
180 | 179 | { |
181 | | - $serial = Core::setting()->getValue('transaction', 'purchase_count', 1); |
| 180 | + $serial = \Fintech\Core\Facades\Core::setting()->getValue('transaction', 'purchase_count', 1); |
182 | 181 |
|
183 | | - Core::setting()->setValue('transaction', 'purchase_count', $serial + 1, 'integer'); |
| 182 | + \Fintech\Core\Facades\Core::setting()->setValue('transaction', 'purchase_count', $serial + 1, 'integer'); |
184 | 183 |
|
185 | 184 | return entry_number($serial, $countryIso3, \Fintech\Core\Enums\Transaction\OrderStatusConfig::Purchased->value); |
186 | 185 | } |
@@ -226,12 +225,12 @@ function throttle_key(): string |
226 | 225 |
|
227 | 226 | if (!function_exists('core')) { |
228 | 227 | /** |
229 | | - * @return Core |
| 228 | + * @return \Fintech\Core\Facades\Core |
230 | 229 | * @throws PackageNotInstalledException|BindingResolutionException |
231 | 230 | */ |
232 | | - function core(): Core |
| 231 | + function core(): \Fintech\Core\Facades\Core |
233 | 232 | { |
234 | | - return Core::launch(); |
| 233 | + return \Fintech\Core\Facades\Core::launch(); |
235 | 234 | } |
236 | 235 | } |
237 | 236 |
|
|
0 commit comments