Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 1... Línea 1...
1
<?php
1
<?php
Línea 2... Línea -...
2
 
-
 
3
declare(strict_types=1);
2
 
4
/**
3
/**
5
 * SimplePie
4
 * SimplePie
6
 *
5
 *
7
 * A PHP-Based RSS and Atom Feed Framework.
6
 * A PHP-Based RSS and Atom Feed Framework.
Línea 92... Línea 91...
92
     */
91
     */
93
    public function get_data(string $key, $default = null)
92
    public function get_data(string $key, $default = null)
94
    {
93
    {
95
        $data = $this->cache->get($key, $default);
94
        $data = $this->cache->get($key, $default);
Línea 96... Línea 95...
96
 
95
 
97
        if (! is_array($data) || $data === $default) {
96
        if (!is_array($data) || $data === $default) {
98
            return $default;
97
            return $default;
Línea 99... Línea 98...
99
        }
98
        }
100
 
99