Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit d3a578d

Browse filesBrowse files
committed
code style
1 parent 451e408 commit d3a578d
Copy full SHA for d3a578d

File tree

1 file changed

+2
-2
lines changed
Filter options

1 file changed

+2
-2
lines changed

‎src/Symfony/Component/Translation/Bridge/Lokalise/LokaliseProvider.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Translation/Bridge/Lokalise/LokaliseProvider.php
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ private function getKeysIds(array $keys, string $domain, int $page = 1, int $lim
277277
$result = [];
278278
$keysFromResponse = $response->toArray(false)['keys'] ?? [];
279279

280-
if (count($keysFromResponse) > 0) {
280+
if (\count($keysFromResponse) > 0) {
281281
$result = array_reduce($keysFromResponse, static function ($carry, array $keyItem) {
282282
$carry[$keyItem['key_name']['web']] = $keyItem['key_id'];
283283

@@ -294,7 +294,7 @@ private function getKeysIds(array $keys, string $domain, int $page = 1, int $lim
294294

295295
$pages = ceil($keysTotalCount / $limit);
296296
if ($page < $pages) {
297-
$result = array_merge($result, $this->getKeysIds($keys, $domain, ++$page, $limit));
297+
$result = array_merge($result, $this->getKeysIds($keys, $domain, ++$page, $limit));
298298
}
299299

300300
return $result;

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.