Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions lib/Controller/PageController.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,15 @@
private $helper;

public function __construct(
IConfig $config,

Check failure on line 61 in lib/Controller/PageController.php

View workflow job for this annotation

GitHub Actions / static-psalm-analysis dev-stable29

PossiblyUnusedParam

lib/Controller/PageController.php:61:11: PossiblyUnusedParam: Param #1 is never referenced in this method (see https://psalm.dev/134)

Check failure on line 61 in lib/Controller/PageController.php

View workflow job for this annotation

GitHub Actions / static-psalm-analysis dev-stable30

PossiblyUnusedParam

lib/Controller/PageController.php:61:11: PossiblyUnusedParam: Param #1 is never referenced in this method (see https://psalm.dev/134)

Check failure on line 61 in lib/Controller/PageController.php

View workflow job for this annotation

GitHub Actions / static-psalm-analysis dev-stable31

PossiblyUnusedParam

lib/Controller/PageController.php:61:11: PossiblyUnusedParam: Param #1 is never referenced in this method (see https://psalm.dev/134)
IUserManager $userManager,

Check failure on line 62 in lib/Controller/PageController.php

View workflow job for this annotation

GitHub Actions / static-psalm-analysis dev-stable29

PossiblyUnusedParam

lib/Controller/PageController.php:62:16: PossiblyUnusedParam: Param #2 is never referenced in this method (see https://psalm.dev/134)

Check failure on line 62 in lib/Controller/PageController.php

View workflow job for this annotation

GitHub Actions / static-psalm-analysis dev-stable30

PossiblyUnusedParam

lib/Controller/PageController.php:62:16: PossiblyUnusedParam: Param #2 is never referenced in this method (see https://psalm.dev/134)

Check failure on line 62 in lib/Controller/PageController.php

View workflow job for this annotation

GitHub Actions / static-psalm-analysis dev-stable31

PossiblyUnusedParam

lib/Controller/PageController.php:62:16: PossiblyUnusedParam: Param #2 is never referenced in this method (see https://psalm.dev/134)
IFactory $l10nFactory,

Check failure on line 63 in lib/Controller/PageController.php

View workflow job for this annotation

GitHub Actions / static-psalm-analysis dev-stable29

PossiblyUnusedParam

lib/Controller/PageController.php:63:12: PossiblyUnusedParam: Param #3 is never referenced in this method (see https://psalm.dev/134)

Check failure on line 63 in lib/Controller/PageController.php

View workflow job for this annotation

GitHub Actions / static-psalm-analysis dev-stable30

PossiblyUnusedParam

lib/Controller/PageController.php:63:12: PossiblyUnusedParam: Param #3 is never referenced in this method (see https://psalm.dev/134)

Check failure on line 63 in lib/Controller/PageController.php

View workflow job for this annotation

GitHub Actions / static-psalm-analysis dev-stable31

PossiblyUnusedParam

lib/Controller/PageController.php:63:12: PossiblyUnusedParam: Param #3 is never referenced in this method (see https://psalm.dev/134)
IProvider $tokenProvider,

Check failure on line 64 in lib/Controller/PageController.php

View workflow job for this annotation

GitHub Actions / static-psalm-analysis dev-stable29

PossiblyUnusedParam

lib/Controller/PageController.php:64:13: PossiblyUnusedParam: Param #4 is never referenced in this method (see https://psalm.dev/134)

Check failure on line 64 in lib/Controller/PageController.php

View workflow job for this annotation

GitHub Actions / static-psalm-analysis dev-stable30

PossiblyUnusedParam

lib/Controller/PageController.php:64:13: PossiblyUnusedParam: Param #4 is never referenced in this method (see https://psalm.dev/134)

Check failure on line 64 in lib/Controller/PageController.php

View workflow job for this annotation

GitHub Actions / static-psalm-analysis dev-stable31

PossiblyUnusedParam

lib/Controller/PageController.php:64:13: PossiblyUnusedParam: Param #4 is never referenced in this method (see https://psalm.dev/134)
ISession $session,

Check failure on line 65 in lib/Controller/PageController.php

View workflow job for this annotation

GitHub Actions / static-psalm-analysis dev-stable29

PossiblyUnusedParam

lib/Controller/PageController.php:65:12: PossiblyUnusedParam: Param #5 is never referenced in this method (see https://psalm.dev/134)

Check failure on line 65 in lib/Controller/PageController.php

View workflow job for this annotation

GitHub Actions / static-psalm-analysis dev-stable30

PossiblyUnusedParam

lib/Controller/PageController.php:65:12: PossiblyUnusedParam: Param #5 is never referenced in this method (see https://psalm.dev/134)

Check failure on line 65 in lib/Controller/PageController.php

View workflow job for this annotation

GitHub Actions / static-psalm-analysis dev-stable31

PossiblyUnusedParam

lib/Controller/PageController.php:65:12: PossiblyUnusedParam: Param #5 is never referenced in this method (see https://psalm.dev/134)
IInitialState $initialState,

Check failure on line 66 in lib/Controller/PageController.php

View workflow job for this annotation

GitHub Actions / static-psalm-analysis dev-stable29

PossiblyUnusedParam

lib/Controller/PageController.php:66:17: PossiblyUnusedParam: Param #6 is never referenced in this method (see https://psalm.dev/134)

Check failure on line 66 in lib/Controller/PageController.php

View workflow job for this annotation

GitHub Actions / static-psalm-analysis dev-stable30

PossiblyUnusedParam

lib/Controller/PageController.php:66:17: PossiblyUnusedParam: Param #6 is never referenced in this method (see https://psalm.dev/134)

Check failure on line 66 in lib/Controller/PageController.php

View workflow job for this annotation

GitHub Actions / static-psalm-analysis dev-stable31

PossiblyUnusedParam

lib/Controller/PageController.php:66:17: PossiblyUnusedParam: Param #6 is never referenced in this method (see https://psalm.dev/134)
IUserSession $userSession,

Check failure on line 67 in lib/Controller/PageController.php

View workflow job for this annotation

GitHub Actions / static-psalm-analysis dev-stable29

PossiblyUnusedParam

lib/Controller/PageController.php:67:16: PossiblyUnusedParam: Param #7 is never referenced in this method (see https://psalm.dev/134)

Check failure on line 67 in lib/Controller/PageController.php

View workflow job for this annotation

GitHub Actions / static-psalm-analysis dev-stable30

PossiblyUnusedParam

lib/Controller/PageController.php:67:16: PossiblyUnusedParam: Param #7 is never referenced in this method (see https://psalm.dev/134)

Check failure on line 67 in lib/Controller/PageController.php

View workflow job for this annotation

GitHub Actions / static-psalm-analysis dev-stable31

PossiblyUnusedParam

lib/Controller/PageController.php:67:16: PossiblyUnusedParam: Param #7 is never referenced in this method (see https://psalm.dev/134)
?string $UserId,

Check failure on line 68 in lib/Controller/PageController.php

View workflow job for this annotation

GitHub Actions / static-psalm-analysis dev-stable29

PossiblyUnusedParam

lib/Controller/PageController.php:68:11: PossiblyUnusedParam: Param #8 is never referenced in this method (see https://psalm.dev/134)

Check failure on line 68 in lib/Controller/PageController.php

View workflow job for this annotation

GitHub Actions / static-psalm-analysis dev-stable30

PossiblyUnusedParam

lib/Controller/PageController.php:68:11: PossiblyUnusedParam: Param #8 is never referenced in this method (see https://psalm.dev/134)

Check failure on line 68 in lib/Controller/PageController.php

View workflow job for this annotation

GitHub Actions / static-psalm-analysis dev-stable31

PossiblyUnusedParam

lib/Controller/PageController.php:68:11: PossiblyUnusedParam: Param #8 is never referenced in this method (see https://psalm.dev/134)
\OC_Helper $helper

Check failure on line 69 in lib/Controller/PageController.php

View workflow job for this annotation

GitHub Actions / static-psalm-analysis dev-stable29

UndefinedClass

lib/Controller/PageController.php:69:3: UndefinedClass: Class, interface or enum named OC_Helper does not exist (see https://psalm.dev/019)

Check failure on line 69 in lib/Controller/PageController.php

View workflow job for this annotation

GitHub Actions / static-psalm-analysis dev-stable29

PossiblyUnusedParam

lib/Controller/PageController.php:69:14: PossiblyUnusedParam: Param #9 is never referenced in this method (see https://psalm.dev/134)

Check failure on line 69 in lib/Controller/PageController.php

View workflow job for this annotation

GitHub Actions / static-psalm-analysis dev-stable30

UndefinedClass

lib/Controller/PageController.php:69:3: UndefinedClass: Class, interface or enum named OC_Helper does not exist (see https://psalm.dev/019)

Check failure on line 69 in lib/Controller/PageController.php

View workflow job for this annotation

GitHub Actions / static-psalm-analysis dev-stable30

PossiblyUnusedParam

lib/Controller/PageController.php:69:14: PossiblyUnusedParam: Param #9 is never referenced in this method (see https://psalm.dev/134)

Check failure on line 69 in lib/Controller/PageController.php

View workflow job for this annotation

GitHub Actions / static-psalm-analysis dev-stable31

UndefinedClass

lib/Controller/PageController.php:69:3: UndefinedClass: Class, interface or enum named OC_Helper does not exist (see https://psalm.dev/019)

Check failure on line 69 in lib/Controller/PageController.php

View workflow job for this annotation

GitHub Actions / static-psalm-analysis dev-stable31

PossiblyUnusedParam

lib/Controller/PageController.php:69:14: PossiblyUnusedParam: Param #9 is never referenced in this method (see https://psalm.dev/134)
) {
$this->config = $config;
$this->userManager = $userManager;
Expand Down Expand Up @@ -172,6 +172,13 @@
$languages['otherLanguages']
);

// remove any (...) part from language name
foreach ($combinedLanguages as &$language) {
if (isset($language['name'])) {
$language['name'] = preg_replace('/\s*\(.*?\)\s*/', '', $language['name']);
}
}

$userLangIndex = array_search($userConfLang, array_column($combinedLanguages, 'code'));
$userLang = null;

Expand Down
Loading