Skip to content

Commit 6a0318d

Browse files
authored
Merge pull request #6 from Novasa/analysis-zdYr4J
Applied fixes from StyleCI
2 parents 1964329 + 8fe2ba7 commit 6a0318d

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/Translator.php

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,8 @@ public function updateLanguages()
178178
$client = $this->getClient();
179179

180180
try {
181-
$res = $client->request('GET', $this->getApiUrl() . 'languages', [
182-
'auth' => $this->getAuthentication(),
181+
$res = $client->request('GET', $this->getApiUrl().'languages', [
182+
'auth' => $this->getAuthentication(),
183183
'query' => [
184184
'timestamp' => 'on',
185185
],
@@ -189,7 +189,7 @@ public function updateLanguages()
189189
throw new ApiException("API returned status [{$res->getStatusCode()}].");
190190
}
191191

192-
$languages = json_decode((string)$res->getBody());
192+
$languages = json_decode((string) $res->getBody());
193193

194194
Cache::forever('languagecenter.languages', $languages);
195195
Cache::forever('languagecenter.timestamp', $timestamp);
@@ -213,15 +213,15 @@ public function updateStrings($locale, $platform = null)
213213

214214
$client = $this->getClient();
215215

216-
$res = $client->request('GET', $this->getApiUrl() . 'strings?platform=' . $platform . '&language=' . $locale, [
216+
$res = $client->request('GET', $this->getApiUrl().'strings?platform='.$platform.'&language='.$locale, [
217217
'auth' => $this->getAuthentication(),
218218
]);
219219

220220
if ($res->getStatusCode() != 200) {
221221
throw new ApiException("API returned status [{$res->getStatusCode()}].");
222222
}
223223

224-
$strings = json_decode((string)$res->getBody());
224+
$strings = json_decode((string) $res->getBody());
225225

226226
if (!isset($this->strings[$locale])) {
227227
$this->strings[$locale] = [];
@@ -235,7 +235,7 @@ public function updateStrings($locale, $platform = null)
235235
}
236236

237237
Cache::forever('languagecenter.strings', $this->strings);
238-
Cache::forever('languagecenter.language.' . $locale . '.timestamp', $timestamp);
238+
Cache::forever('languagecenter.language.'.$locale.'.timestamp', $timestamp);
239239
} catch (\Exception $exception) {
240240
// failed to update string - it's okay - we do it later
241241
}
@@ -259,14 +259,14 @@ public function createString($key, $string, $platform = null, $comment = null)
259259
try {
260260
$client = $this->getClient();
261261

262-
$res = $client->request('POST', $this->getApiUrl() . 'string', [
263-
'auth' => $this->getAuthentication(),
262+
$res = $client->request('POST', $this->getApiUrl().'string', [
263+
'auth' => $this->getAuthentication(),
264264
'form_params' => [
265265
'platform' => $platform,
266266
'category' => $category,
267-
'key' => $name,
268-
'value' => $string,
269-
'comment' => $comment,
267+
'key' => $name,
268+
'value' => $string,
269+
'comment' => $comment,
270270
],
271271
]);
272272

0 commit comments

Comments
 (0)