*/ function get_login_credentials(string $user): array { /* Optionally we can use passed username */ if ($user !== '') { return [$user, 'password']; } /* Here we would retrieve the credentials */ return ['root', '']; }