Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 251... Línea 251...
251
     *
251
     *
252
     * @param   string $from The source type
252
     * @param   string $from The source type
253
     * @param   string $to The destination type
253
     * @param   string $to The destination type
254
     * @return  bool
254
     * @return  bool
255
     */
255
     */
256
    public static function supports($from, $to) {
256
    public static function supports($from, $to): bool {
257
        // This is not a one-liner because of php 5.6.
-
 
258
        $imports = self::$imports;
-
 
259
        $exports = self::$exports;
-
 
260
        return isset($imports[$from]) && isset($exports[$to]);
257
        return isset(self::$imports[$from]) && isset(self::$exports[$to]);
261
    }
258
    }
Línea 262... Línea 259...
262
 
259
 
263
    /**
260
    /**
264
     * A list of the supported conversions.
261
     * A list of the supported conversions.