- public static function insert($arr) {
- if (in_array(defaults($arr, 'network', NETWORK_PHANTOM), [NETWORK_DFRN, NETWORK_DIASPORA, NETWORK_OSTATUS]) && !empty($arr['uri'])) {
+ public static function insert(array $arr)
+ {
+ if (in_array(defaults($arr, 'network', Protocol::PHANTOM),
+ [Protocol::DFRN, Protocol::DIASPORA, Protocol::OSTATUS, Protocol::TWITTER]) && !empty($arr['uri'])) {