summaryrefslogtreecommitdiff
path: root/src/Util.php
blob: 62981b293b36bd641705ba884b1b9f3af1255ab8 (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($postId, $forumHost) {
  return '<' . time() . ".bridge.$postId@$forumHost>";
}

?>