Skip to content

Commit 359b7c9

Browse files
stengithub-actions[bot]
authored andcommitted
Fix styling
1 parent b4f1b24 commit 359b7c9

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/Pages/TranslationManagerPage.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -143,10 +143,10 @@ private function addTranslationsToData(array &$data, string $locale, string $gro
143143

144144
//transform to data structure necessary for frontend
145145
foreach ($translations as $key => $translation) {
146-
$dataKey = $group . '.' . $key;
147-
if (!array_key_exists($dataKey, $data)) {
146+
$dataKey = $group.'.'.$key;
147+
if (! array_key_exists($dataKey, $data)) {
148148
$data[$dataKey] = [
149-
'title' => $group . ' - ' . $key,
149+
'title' => $group.' - '.$key,
150150
'type' => 'group',
151151
'group' => $group,
152152
'translation_key' => $key,
@@ -227,7 +227,7 @@ public function filterTranslations(): void
227227
});
228228
}
229229

230-
if (!empty($this->selectedGroups)) {
230+
if (! empty($this->selectedGroups)) {
231231
$filteredTranslations = $filteredTranslations->filter(function ($translationItem, $key) {
232232
return in_array($translationItem['group'], $this->selectedGroups, true);
233233
});
@@ -260,7 +260,7 @@ private function paginateTranslations(Collection $translations): Collection
260260

261261
private function getChainedTranslationManager(): ChainedTranslationManager
262262
{
263-
if (!isset($this->chainedTranslationManager)) {
263+
if (! isset($this->chainedTranslationManager)) {
264264
$this->chainedTranslationManager = app(ChainedTranslationManager::class);
265265
}
266266

@@ -304,14 +304,14 @@ private function countMissingTranslations($translations): int
304304
return $count;
305305
}
306306

307-
public function translationsSaved(string $group, string $translationKey, array $newTranslation, array $initialTranslations = null): void
307+
public function translationsSaved(string $group, string $translationKey, array $newTranslation, ?array $initialTranslations = null): void
308308
{
309309
$oldMissing = $this->checkIfTranslationMissing($initialTranslations, $this->getFilteredLocales());
310310
$newMissing = $this->checkIfTranslationMissing($newTranslation, $this->getFilteredLocales());
311311

312-
if ($oldMissing && !$newMissing) {
312+
if ($oldMissing && ! $newMissing) {
313313
$this->totalMissingFilteredTranslations--;
314-
} elseif (!$oldMissing && $newMissing) {
314+
} elseif (! $oldMissing && $newMissing) {
315315
$this->totalMissingFilteredTranslations++;
316316
}
317317
}
@@ -337,7 +337,7 @@ private function checkIfTranslationMissing(array $translations, array $filteredL
337337

338338
private function getFilteredLocales(): array
339339
{
340-
return !empty($this->selectedLocales) ? $this->selectedLocales : $this->locales;
340+
return ! empty($this->selectedLocales) ? $this->selectedLocales : $this->locales;
341341
}
342342

343343
public static function getNavigationSort(): ?int

0 commit comments

Comments
 (0)