We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 631627a commit 3f4dc6aCopy full SHA for 3f4dc6a
1 file changed
hooks/hook_frontpage.php
@@ -1,5 +1,7 @@
1
<?php
2
3
+use Webmozart\Assert\Assert;
4
+
5
/**
6
* Hook to add the consentAdmin module to the frontpage.
7
*
@@ -8,8 +10,8 @@
8
10
*/
9
11
function consentAdmin_hook_frontpage(&$links)
12
{
- assert(is_array($links));
- assert(array_key_exists('links', $links));
13
+ Assert::isArray($links);
14
+ Assert::keyExists($links, 'links');
15
16
$links['config'][] = [
17
'href' => SimpleSAML\Module::getModuleURL('consentAdmin/consentAdmin.php'),
0 commit comments