@@ -5,7 +5,7 @@ discard block |
||
| 5 | 5 | |
| 6 | 6 | function on_new_socket_cb(ZMQSocket $socket, $persistent_id = null) |
| 7 | 7 | { |
| 8 | - if ($persistent_id === 'server') |
|
| 8 | + if($persistent_id === 'server') |
|
| 9 | 9 | { |
| 10 | 10 | $socket->bind("tcp://*:55555"); |
| 11 | 11 | } |
@@ -47,13 +47,13 @@ discard block |
||
| 47 | 47 | { |
| 48 | 48 | $strlen = strlen($string); |
| 49 | 49 | $testlen = strlen($test); |
| 50 | - if ($testlen > $strlen) return false; |
|
| 50 | + if($testlen > $strlen) return false; |
|
| 51 | 51 | return substr_compare($string, $test, $strlen - $testlen, $testlen) === 0; |
| 52 | 52 | } |
| 53 | 53 | |
| 54 | 54 | function getDestinationsForID($id) |
| 55 | 55 | { |
| 56 | - if(strcasecmp($id,'pboyd') === 0) |
|
| 56 | + if(strcasecmp($id, 'pboyd') === 0) |
|
| 57 | 57 | { |
| 58 | 58 | return array('[email protected]'); |
| 59 | 59 | } |
@@ -123,14 +123,14 @@ discard block |
||
| 123 | 123 | function fixMessage($message) |
| 124 | 124 | { |
| 125 | 125 | $output = array(); |
| 126 | - $array = explode("\n",$message); |
|
| 126 | + $array = explode("\n", $message); |
|
| 127 | 127 | foreach($array as $arr) |
| 128 | 128 | { |
| 129 | - if((preg_match('/^Return-Path:/',$arr))) |
|
| 129 | + if((preg_match('/^Return-Path:/', $arr))) |
|
| 130 | 130 | { |
| 131 | 131 | //Strip... |
| 132 | 132 | } |
| 133 | - else if((preg_match('/^From:/',$arr))) |
|
| 133 | + else if((preg_match('/^From:/', $arr))) |
|
| 134 | 134 | { |
| 135 | 135 | $from = trim(substr($arr, 5)); |
| 136 | 136 | if(preg_match("/(.*)<(.*)>/", $from, $regs)) |