Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 158... Línea 158...
158
    }
158
    }
Línea 159... Línea 159...
159
 
159
 
160
    private function cleanIdFn()
160
    private function cleanIdFn()
161
    {
161
    {
162
        return function (callable $handler) {
162
        return function (callable $handler) {
163
            return function (CommandInterface $c, RequestInterface $r = null) use ($handler) {
163
            return function (CommandInterface $c, ?RequestInterface $r = null) use ($handler) {
164
                foreach (['Id', 'HostedZoneId', 'DelegationSetId'] as $clean) {
164
                foreach (['Id', 'HostedZoneId', 'DelegationSetId'] as $clean) {
165
                    if ($c->hasParam($clean)) {
165
                    if ($c->hasParam($clean)) {
166
                        $c[$clean] = $this->cleanId($c[$clean]);
166
                        $c[$clean] = $this->cleanId($c[$clean]);
167
                    }
167
                    }