mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-06-07 09:54:27 +02:00
Changes:
- added missing type-hints - avoided local variables - added some documentation - changed double-quotes to single
This commit is contained in:
parent
c0c15644a3
commit
06b15a6ed0
29 changed files with 191 additions and 204 deletions
|
@ -26,7 +26,7 @@ function saml_module($a)
|
|||
{
|
||||
}
|
||||
|
||||
function saml_init($a)
|
||||
function saml_init(App $a)
|
||||
{
|
||||
if (DI::args()->getArgc() < 2) {
|
||||
return;
|
||||
|
@ -80,15 +80,15 @@ function saml_install()
|
|||
Hook::register('footer', __FILE__, 'saml_footer');
|
||||
}
|
||||
|
||||
function saml_head(App $a, string &$b)
|
||||
function saml_head(App $a, string &$body)
|
||||
{
|
||||
DI::page()->registerStylesheet(__DIR__ . '/saml.css');
|
||||
}
|
||||
|
||||
function saml_footer(App $a, string &$b)
|
||||
function saml_footer(App $a, string &$body)
|
||||
{
|
||||
$fragment = addslashes(BBCode::convert(DI::config()->get('saml', 'settings_statement')));
|
||||
$b .= <<<EOL
|
||||
$body .= <<<EOL
|
||||
<script>
|
||||
var target=$("#settings-nickname-desc");
|
||||
if (target.length) { target.append("<p>$fragment</p>"); }
|
||||
|
@ -125,7 +125,7 @@ function saml_sso_initiate(App $a, array &$b)
|
|||
exit();
|
||||
}
|
||||
|
||||
function saml_sso_reply($a)
|
||||
function saml_sso_reply(App $a)
|
||||
{
|
||||
$auth = new \OneLogin\Saml2\Auth(saml_settings());
|
||||
$requestID = null;
|
||||
|
@ -225,7 +225,7 @@ function saml_input($key, $label, $description)
|
|||
];
|
||||
}
|
||||
|
||||
function saml_addon_admin(App $a, &$o)
|
||||
function saml_addon_admin(App $a, string &$o)
|
||||
{
|
||||
$form =
|
||||
saml_input(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue