summaryrefslogtreecommitdiff
path: root/src/Util.php
blob: 2384911e95b3d34baf2204fbf8390fa69f48027c (plain)
1
2
3
4
5
6
7
8
9
10
11
<?php

function throw_if_null($arg) {
  if ($arg === null) throw new Exception('argument is null');
}

function build_message_id($time, $postId, $forumHost) {
  return "<$time.$postId.bridge@$forumHost>";
}

?>