@@ -84,7 +84,7 @@ |
||
84 | 84 | } else { |
85 | 85 | // convert smilies ... |
86 | 86 | $countSmileyImage = count($smiley['image']); |
87 | - for ($n = 0; $n < $countSmileyImage; $n ++) { |
|
87 | + for ($n = 0; $n < $countSmileyImage; $n++) { |
|
88 | 88 | $text = mb_ereg_replace( |
89 | 89 | "<img [^>]*?src=[^>]+?" . str_replace('.', '\.', $smiley['file'][$n]) . "[^>]+?>", |
90 | 90 | "[s![" . $smiley['text'][$n] . "]!s]", |
@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | public $sFrom = '[email protected]'; |
23 | 23 | |
24 | 24 | public $nConnectTimeout = 15; // (sec) |
25 | - public $nReadTimeout = 25; // (sec) |
|
25 | + public $nReadTimeout = 25; // (sec) |
|
26 | 26 | |
27 | 27 | /* check if the mailserver of $sAddress |
28 | 28 | * explicit says that the user does not exist |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | // sort MX records |
52 | 52 | $mxs = []; |
53 | 53 | $countMxRecords = count($mx_records); |
54 | - for ($i = 0; $i < $countMxRecords; $i ++) { |
|
54 | + for ($i = 0; $i < $countMxRecords; $i++) { |
|
55 | 55 | $mxs[$i] = [ |
56 | 56 | 'mx' => $mx_records[$i], |
57 | 57 | 'prio' => $mx_weight[$i] |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | |
63 | 63 | // check address with each MX until one mailserver can be connected |
64 | 64 | $countMxs = count($mxs); |
65 | - for ($i = 0; $i < $countMxs; $i ++) { |
|
65 | + for ($i = 0; $i < $countMxs; $i++) { |
|
66 | 66 | $retval = $this->pCheckAddress($sAddress, $mxs[$i]['mx']); |
67 | 67 | if ($retval != CA_ERROR_CONNECT) { |
68 | 68 | return $retval; |
@@ -171,7 +171,7 @@ discard block |
||
171 | 171 | $s = ""; |
172 | 172 | stream_set_timeout($fp, $this->nReadTimeout); |
173 | 173 | |
174 | - for ($i = 0; $i < 2; $i ++) { |
|
174 | + for ($i = 0; $i < 2; $i++) { |
|
175 | 175 | $s .= fgets($fp, 1024); |
176 | 176 | } |
177 | 177 | |
@@ -185,5 +185,5 @@ discard block |
||
185 | 185 | return 0; |
186 | 186 | } |
187 | 187 | |
188 | - return (($a['prio'] + 0) < ($b['prio'] + 0)) ? - 1 : 1; |
|
188 | + return (($a['prio'] + 0) < ($b['prio'] + 0)) ? -1 : 1; |
|
189 | 189 | } |
@@ -314,7 +314,7 @@ discard block |
||
314 | 314 | $sZoomIn = str_replace("\r", "", $sZoomIn); |
315 | 315 | $sLines = mb_split("\n", $sZoomIn); |
316 | 316 | $countSLines = count($sLines); |
317 | - for ($i = 0; $i < $countSLines; $i ++) { |
|
317 | + for ($i = 0; $i < $countSLines; $i++) { |
|
318 | 318 | $sLines[$i] = str_pad($sLines[$i], ($nColumnsCount - 1), ' '); |
319 | 319 | } |
320 | 320 | |
@@ -322,8 +322,8 @@ discard block |
||
322 | 322 | $nDegreePerColumn = ($lon_to - $lon_from) / $nColumnsCount; |
323 | 323 | |
324 | 324 | $countSLines = count($sLines); |
325 | - for ($nLine = 0; $nLine < $countSLines; $nLine ++) { |
|
326 | - for ($nColumn = 0; $nColumn < $nColumnsCount; $nColumn ++) { |
|
325 | + for ($nLine = 0; $nLine < $countSLines; $nLine++) { |
|
326 | + for ($nColumn = 0; $nColumn < $nColumnsCount; $nColumn++) { |
|
327 | 327 | if (substr($sLines[$nLine], $nColumn, 1) == '#') { |
328 | 328 | $nLat = $lat_to - $nDegreePerLine * $nLine; |
329 | 329 | $nLon = $lon_from + $nDegreePerColumn * $nColumn; |
@@ -689,7 +689,7 @@ discard block |
||
689 | 689 | |
690 | 690 | $writer->writeElement('code', $r['text']); |
691 | 691 | $countLang = count($lang); |
692 | - for ($n = 0; $n < $countLang; $n ++) { |
|
692 | + for ($n = 0; $n < $countLang; $n++) { |
|
693 | 693 | $writer->writeElement( |
694 | 694 | $lang[$n], |
695 | 695 | sql_value( |
@@ -817,7 +817,7 @@ discard block |
||
817 | 817 | |
818 | 818 | $nCount = isset($_REQUEST['count']) ? $_REQUEST['count'] + 0 : 0; |
819 | 819 | |
820 | - for ($nIndex = 1; $nIndex <= $nCount; $nIndex ++) { |
|
820 | + for ($nIndex = 1; $nIndex <= $nCount; $nIndex++) { |
|
821 | 821 | if (isset($_REQUEST['useitem' . $nIndex]) && ($_REQUEST['useitem' . $nIndex] == '1')) { |
822 | 822 | $sCode = base64_decode($_REQUEST['code' . $nIndex]); |
823 | 823 | $transId = sql_value("SELECT `id` FROM `sys_trans` WHERE `text`='&1'", 0, $sCode); |