MCPcopy Create free account
hub / github.com/pydio/cells / phpValueToMapString

Function phpValueToMapString

common/etl/models/php-meta.go:100–111  ·  view source on GitHub ↗
(obj interface{})

Source from the content-addressed store, hash-verified

98}
99
100func phpValueToMapString(obj interface{}) interface{} {
101 out := make(map[string]interface{})
102 if arr, ok := obj.(php_serialize.PhpArray); ok {
103 for k, v := range arr {
104 key := k.(string)
105 out[key] = phpValueToMapString(v)
106 }
107 return out
108 } else {
109 return obj
110 }
111}

Callers 1

UserMetasFromPhpDataFunction · 0.85

Calls 1

makeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…