This commit is contained in:
nurmuhammet committed 2024-04-30 23:24:35 +05:00
1 parent d53db60a20
commit 424c3f22d1
8 files changed
+7 -25

No files matched your search

+1 -3
View File
@@ -26,12 +26,10 @@ class OnlinePaymentRepo
/**
* Set price
*
* @param int|float|string $price
*/
public function getPrice(int|float|string $price): string
{
return number_format($price, 2, "", "");
return number_format($price, 2, '', '');
}
/**
@@ -63,7 +63,7 @@ public function handle(): void
*/
public function localeAppTranslationsDirectory(): string
{
return $this->localeAppPath . DIRECTORY_SEPARATOR . 'lang';
return $this->localeAppPath.DIRECTORY_SEPARATOR.'lang';
}
/**
@@ -82,8 +82,8 @@ public function exportTranslations(): self
public function syncTranslationsWithLocaleApp(): self
{
$response = Http::acceptJson()->withHeaders([
'Api-Token' => $this->localeAppApiToken,
])
'Api-Token' => $this->localeAppApiToken,
])
->retry(
times: 3,
sleepMilliseconds: 50,
@@ -92,7 +92,7 @@ public function syncTranslationsWithLocaleApp(): self
return true;
})
->post(
url: $this->localeAppUrl . '/api/import-translations',
url: $this->localeAppUrl.'/api/import-translations',
data: []
);