src/WebDAVAdapter.php
function normalizeObject(array $object, $path)
    {
        if (!isset($object['{DAV:}getcontentlength']) or $object['{DAV:}getcontentlength'] == "") {
            return ['type' => 'dir', 'path' => trim($path, '/')];
        }

        $result = Util::map($object, static::$resultMap);

        if (isset($object['{DAV:}getlastmodified'])) {
            $result['timestamp'] = strtotime($object['{DAV:}getlastmodified']);
        }

        $result['type'] = 'file';
        $result['path'] = trim($path, '/');

        return $result;
    }
function normalizeObject(array $object, $path)
    {
        if (!isset($object['{DAV:}getcontentlength']) or $object['{DAV:}getcontentlength'] == "") {
            return ['type' => 'dir', 'path' => trim($path, '/')];
        }

        $result = Util::map($object, static::$resultMap);

        if (isset($object['{DAV:}getlastmodified'])) {
            $result['timestamp'] = strtotime($object['{DAV:}getlastmodified']);
        }

        $result['type'] = 'file';
        $result['path'] = trim($path, '/');

        return $result;
    }
function normalizeObject ( array $ object , $ path ) { if ( ! isset ( $ object [ '{DAV:}getcontentlength' ] ) or $ object [ '{DAV:}getcontentlength' ] == "" ) { return [ 'type' => 'dir' , 'path' => trim ( $ path , '/' ) ] ; } $ result = Util :: map ( $ object , static :: $ resultMap ) ; if ( isset ( $ object [ '{DAV:}getlastmodified' ] ) ) { $ result [ 'timestamp' ] = strtotime ( $ object [ '{DAV:}getlastmodified' ] ) ; } $ result [ 'type' ] = 'file' ; $ result [ 'path' ] = trim ( $ path , '/' ) ; return $ result ; }
Normalise a WebDAV repsonse object.

@param array  $object
@param string $path

@return array
Normalise a WebDAV repsonse object .