Skip to content

Commit

Permalink
refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
gruberroland committed Oct 29, 2023
1 parent e43b7f5 commit fda88da
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions lam/templates/misc/ajax.php
Original file line number Diff line number Diff line change
Expand Up @@ -406,17 +406,13 @@ private function manageWebauthnOwnDevices(): void {
private function dnSelection(): string {
$dn = trim($_POST['dn']);
if (empty($dn) || !get_preg($dn, 'dn')) {
$dnList = $this->getDefaultDns();
return '';
}
else {
$dnList = $this->getSubDns($dn);
}
$html = $this->buildDnSelectionHtml($dnList, $dn);
$json = json_encode(['dialogData' => $html], JSON_THROW_ON_ERROR);
if ($json === false) {
return '';
}
return $json;
}

Expand Down
2 changes: 1 addition & 1 deletion phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@ parameters:
- '#Parameter \#1 \$array of function array_keys expects array, mixed given.#'
- '#Argument of an invalid type mixed supplied for foreach, only iterables are supported.#'
- '#Parameter \#2 \$args of function call_user_func_array expects array<int\|string, mixed>, mixed given.#'
- '#Parameter \#1 \$input of method LAM\\AJAX\\Ajax::managePasswordChange\(\) expects array, mixed given.#'
- '#Parameter \#1 \$input of static method LAM\\AJAX\\Ajax::managePasswordChange\(\) expects array, mixed given.#'
- '#Parameter \#1 \$input of method LAM\\AJAX\\Ajax::checkPasswordStrength\(\) expects array, mixed given.#'
- '#Cannot access offset non-falsy-string on array<int\|string, string>\|object.#'

0 comments on commit fda88da

Please sign in to comment.