Changeset View
Changeset View
Standalone View
Standalone View
plugins/libkolab/lib/kolab_storage_dataset.php
Show First 20 Lines • Show All 149 Lines • ▼ Show 20 Lines | public function offsetGet($offset) | ||||
return null; | return null; | ||||
} | } | ||||
if (isset($this->data[$offset])) { | if (isset($this->data[$offset])) { | ||||
return $this->data[$offset]; | return $this->data[$offset]; | ||||
} | } | ||||
if ($uid = $this->index[$offset]) { | if ($uid = ($this->index[$offset] ?? null)) { | ||||
return $this->cache->get($uid); | return $this->cache->get($uid); | ||||
} | } | ||||
return null; | return null; | ||||
} | } | ||||
/*** Implement PHP Iterator interface ***/ | /*** Implement PHP Iterator interface ***/ | ||||
Show All 27 Lines |