Completed
Push — master ( 10cc8d...4e0fe0 )
by Patrick
02:11
created
_local/run.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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))
Please login to merge, or discard this patch.