Changeset View
Changeset View
Standalone View
Standalone View
src/applications/calendar/phid/PhabricatorCalendarEventPHIDType.php
Context not available. | |||||
} | } | ||||
public function canLoadNamedObject($name) { | public function canLoadNamedObject($name) { | ||||
return preg_match('/^E[1-9]\d*$/i', $name); | return @preg_match('/^E[1-9]\d*$/i', $name); | ||||
} | } | ||||
public function loadNamedObjects( | public function loadNamedObjects( | ||||
Context not available. | |||||
$id_map = array(); | $id_map = array(); | ||||
foreach ($names as $name) { | foreach ($names as $name) { | ||||
$id = (int)substr($name, 1); | $id = (int)@substr($name, 1); | ||||
$id_map[$id][] = $name; | $id_map[$id][] = $name; | ||||
} | } | ||||
Context not available. |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0