1 | <?php |
||
2 | |||
3 | use SimpleSAML\Configuration; |
||
4 | use SimpleSAML\Error; |
||
5 | use SimpleSAML\Module; |
||
6 | use SimpleSAML\XHTML\Template; |
||
7 | |||
8 | $ssp_cf = Configuration::getInstance(); |
||
9 | $mod_cf = Configuration::getConfig('module_aggregator2.php'); |
||
10 | |||
11 | // get list of sources |
||
12 | $names = array_keys($mod_cf->toArray()); |
||
13 | $sources = []; |
||
14 | |||
15 | foreach ($names as $name) { |
||
16 | $encId = urlencode($name); |
||
17 | |||
18 | $sources[$name] = [ |
||
19 | 'name' => Module::getModuleURL( |
||
20 | 'aggregator2/get.php', |
||
21 | ['id' => $encId] |
||
22 | ), |
||
23 | 'text' => Module::getModuleURL( |
||
24 | 'aggregator2/get.php', |
||
25 | ['id' => $encId, 'mimetype' => 'text/plain'] |
||
26 | ), |
||
27 | 'xml' => Module::getModuleURL( |
||
28 | 'aggregator2/get.php', |
||
29 | ['id' => $encId, 'mimetype' => 'application/xml'] |
||
30 | ), |
||
31 | ]; |
||
32 | } |
||
33 | |||
34 | $t = new Template($ssp_cf, 'aggregator2:list.twig'); |
||
35 | $t->data['sources'] = $sources; |
||
36 | $t->show(); |
||
0 ignored issues
–
show
|
|||
37 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.