function unstub(&$value) { if (is_string($value) && substr($value, 0, 13) === '_placeholder_') { $value = json_decode(substr($value, 13), true); array_walk_recursive($value['config'], 'unstub'); $value = new_OOUI($value['class'], $value['config']); } }
function unstub(&$value) { // @codingStandardsIgnoreEnd if (is_string($value) && substr($value, 0, 13) === '_placeholder_') { $value = json_decode(substr($value, 13), true); if (isset($value['config']) && is_array($value['config'])) { array_walk_recursive($value['config'], 'unstub'); } $value = new_OOUI($value['class'], $value['config']); } }