Use new code style

This commit is contained in:
David Stone
2025-02-07 19:02:33 -07:00
parent 0181024ae1
commit 8433379d90
672 changed files with 37107 additions and 45249 deletions

View File

@ -12,10 +12,7 @@
namespace WP_Ultimo\SSO;
// Exit if accessed directly
defined('ABSPATH') || exit;
use \Jasny\SSO\Broker\Broker;
use Jasny\SSO\Broker\Broker;
/**
* The SSO Broker implementation.
@ -25,37 +22,31 @@ use \Jasny\SSO\Broker\Broker;
class SSO_Broker extends Broker {
/**
* Checks if the current SSO call is a must-redirect call.
*
* @since 2.0.11
* @return boolean
*/
public function is_must_redirect_call() {
* Checks if the current SSO call is a must-redirect call.
*
* @since 2.0.11
* @return boolean
*/
public function is_must_redirect_call(): bool {
return $this->getVerificationCode() === 'must-redirect';
} // end is_must_redirect_call;
}
/**
* Get URL to attach session at SSO server.
*
* @param array<string,mixed> $params The params to be passed.
*/
public function getAttachUrl(array $params = array()) : string { // phpcs:ignore
public function getAttachUrl(array $params = array()): string {
if ($this->getToken() === null) {
$this->generateToken();
} // end if;
}
$data = array(
'broker' => $this->broker,
'token' => $this->getToken(),
'checksum' => $this->generateChecksum('attach')
'checksum' => $this->generateChecksum('attach'),
);
return add_query_arg($data + $params, $this->url);
} // end getAttachUrl;
} // end class SSO_Broker;
}
}