original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Normalise a WebDAV repsonse object.
  
  @param array  $object
  @param string $path
  
  @return array
docstring_tokens: Normalise a WebDAV repsonse object .