Passed
Branch development (5167df)
by Thomas
08:19
created
htdocs/lib2/translate_filescan.class.php 2 patches
Doc Comments   +8 added lines patch added patch discarded remove patch
@@ -76,6 +76,10 @@  discard block
 block discarded – undo
76 76
         }
77 77
     }
78 78
 
79
+    /**
80
+     * @param string $sCode
81
+     * @param integer $nStartSearch
82
+     */
79 83
     public function findEndOfPHPString($sCode, $nStartSearch)
80 84
     {
81 85
         $nEnd = 0;
@@ -116,6 +120,10 @@  discard block
 block discarded – undo
116 120
     }
117 121
 
118 122
     // TODO: performance ... scan once at __construct and store line positions
123
+
124
+    /**
125
+     * @param integer $nPos
126
+     */
119 127
     public function findLineOfPos($nPos)
120 128
     {
121 129
         $nLine = 1;
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -120,9 +120,9 @@
 block discarded – undo
120 120
     {
121 121
         $nLine = 1;
122 122
 
123
-        for ($n = 0; $n < $nPos; $n ++) {
123
+        for ($n = 0; $n < $nPos; $n++) {
124 124
             if (substr($this->msContent, $n, 1) == "\n") {
125
-                $nLine ++;
125
+                $nLine++;
126 126
             }
127 127
         }
128 128
 
Please login to merge, or discard this patch.
htdocs/lib2/util.inc.php 2 patches
Doc Comments   +13 added lines patch added patch discarded remove patch
@@ -246,11 +246,21 @@  discard block
 block discarded – undo
246 246
     return $ret;
247 247
 }
248 248
 
249
+/**
250
+ * @param string $name
251
+ * @param string $default
252
+ *
253
+ * @return string
254
+ */
249 255
 function getSysConfig($name, $default)
250 256
 {
251 257
     return sql_value("SELECT `value` FROM `sysconfig` WHERE `name`='&1'", $default, $name);
252 258
 }
253 259
 
260
+/**
261
+ * @param string $name
262
+ * @param string $value
263
+ */
254 264
 function setSysConfig($name, $value)
255 265
 {
256 266
     sql(
@@ -333,6 +343,9 @@  discard block
 block discarded – undo
333 343
 }
334 344
 
335 345
 
346
+/**
347
+ * @return string
348
+ */
336 349
 function escape_javascript($text)
337 350
 {
338 351
     return str_replace('\'', '\\\'', str_replace('"', '&quot;', $text));
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -229,7 +229,7 @@
 block discarded – undo
229 229
 
230 230
     while ($nCurPos < mb_strlen($str)) {
231 231
         $nNextSep = mb_strlen($str);
232
-        for ($nSepPos = 0; $nSepPos < mb_strlen($sep); $nSepPos ++) {
232
+        for ($nSepPos = 0; $nSepPos < mb_strlen($sep); $nSepPos++) {
233 233
             $nThisPos = mb_strpos($str, mb_substr($sep, $nSepPos, 1), $nCurPos);
234 234
             if ($nThisPos !== false) {
235 235
                 if ($nNextSep > $nThisPos) {
Please login to merge, or discard this patch.
htdocs/mydetails.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -128,6 +128,9 @@
 block discarded – undo
128 128
 }
129 129
 
130 130
 
131
+/**
132
+ * @param boolean $include_editor
133
+ */
131 134
 function assignFromDB($userid, $include_editor)
132 135
 {
133 136
     global $tpl, $opt, $smilies, $_REQUEST;
Please login to merge, or discard this patch.
htdocs/myprofile.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -182,6 +182,9 @@
 block discarded – undo
182 182
     $tpl->display();
183 183
 }
184 184
 
185
+/**
186
+ * @param user $user
187
+ */
185 188
 function assignFromUser($user)
186 189
 {
187 190
     global $tpl;
Please login to merge, or discard this patch.
htdocs/restorecaches.php 3 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -675,7 +675,7 @@
 block discarded – undo
675 675
  * @param $admins
676 676
  * @param $wp_oc
677 677
  * @param $r
678
- * @param $field
678
+ * @param string $field
679 679
  * @param $oldvalue
680 680
  * @param $newvalue
681 681
  */
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1011,7 +1011,7 @@
 block discarded – undo
1011 1011
                             }
1012 1012
                             $logs_restored = true;
1013 1013
                         }
1014
-                       // if it was not already restored by a later restore operation ...
1014
+                        // if it was not already restored by a later restore operation ...
1015 1015
                     } elseif (sql_value("SELECT `id` FROM `cache_logs` WHERE `id`='&1'", 0, $revert_logid) == 0) {
1016 1016
                         // id, uuid, date_created and last_modified are set automatically;
1017 1017
                         // picture will be updated automatically on picture-restore
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -367,7 +367,7 @@  discard block
 block discarded – undo
367 367
     $rs = sql("SELECT * FROM `caches` WHERE `cache_id` IN " . $cachelist);
368 368
     while ($r = sql_fetch_assoc($rs)) {
369 369
         $nextcd[$r['wp_oc']] = $r;
370
-        $user_id = $r['user_id'];     // is used later for logs
370
+        $user_id = $r['user_id']; // is used later for logs
371 371
     }
372 372
     sql_free_result($rs);
373 373
 
@@ -467,7 +467,7 @@  discard block
 block discarded – undo
467 467
         "SELECT * FROM `caches_attributes_modified`
468 468
          WHERE `cache_id` IN " . $cachelist . "  /* OConly attrib is shown, but not restorable */
469 469
          ORDER BY `date_modified` ASC"
470
-    );   // order doesn't matter as long it is date only
470
+    ); // order doesn't matter as long it is date only
471 471
     while ($r = sql_fetch_assoc($rs)) {
472 472
         append_data(
473 473
             $data,
@@ -623,7 +623,7 @@  discard block
 block discarded – undo
623 623
         "SELECT *, " . $piccacheid . "AS `cache_id` FROM `pictures_modified`
624 624
          WHERE " . $piccacheid . " IN " . $cachelist . "
625 625
          ORDER BY `date_modified` ASC"
626
-    );  // order is relevant for the case of restore-reverts
626
+    ); // order is relevant for the case of restore-reverts
627 627
     while ($r = sql_fetch_assoc($rs)) {
628 628
         $r['date_modified'] = substr($r['date_modified'], 0, 10);
629 629
         switch ($r['operation']) {
@@ -727,7 +727,7 @@  discard block
 block discarded – undo
727 727
 {
728 728
     global $opt, $login;
729 729
 
730
-    sql("SET @restoredby='&1'", $login->userid);         // is evaluated by trigger functions
730
+    sql("SET @restoredby='&1'", $login->userid); // is evaluated by trigger functions
731 731
     sql_slave("SET @restoredby='&1'", $login->userid);
732 732
 
733 733
     $restored = array();
@@ -1019,7 +1019,7 @@  discard block
 block discarded – undo
1019 1019
                         // id, uuid, date_created and last_modified are set automatically;
1020 1020
                         // picture will be updated automatically on picture-restore
1021 1021
                         $log = new cachelog();
1022
-                        $log->setNode($r['node']);  // cachelog class currently does not initialize node field
1022
+                        $log->setNode($r['node']); // cachelog class currently does not initialize node field
1023 1023
                         $log->setCacheId($r['cache_id']);
1024 1024
                         $log->setUserId($r['user_id']);
1025 1025
                         $log->setType($r['type'], true);
@@ -1071,7 +1071,7 @@  discard block
 block discarded – undo
1071 1071
                 }  // not already processed
1072 1072
 
1073 1073
                 if ($error != "") {
1074
-                    $restored[$wp]['internal error - could not $error log ' + $r['id'] + "/" + $logid];
1074
+                    $restored[$wp]['internal error - could not $error log ' +$r['id'] + "/" +$logid];
1075 1075
                 }
1076 1076
                 if ($logs_restored) {
1077 1077
                     $restored[$wp]['logs'] = true;
@@ -1203,7 +1203,7 @@  discard block
 block discarded – undo
1203 1203
                 }  // not already processed
1204 1204
 
1205 1205
                 if ($error != "") {
1206
-                    $restored[$wp]['internal error - could not $error picture ' . $r['id'] + "/" + $picid] = true;
1206
+                    $restored[$wp]['internal error - could not $error picture ' . $r['id'] + "/" +$picid] = true;
1207 1207
                 }
1208 1208
                 if ($pics_restored) {
1209 1209
                     $restored[$wp]['pictures'] = true;
Please login to merge, or discard this patch.
htdocs/search.php 2 patches
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -1461,6 +1461,10 @@
 block discarded – undo
1461 1461
         }
1462 1462
 
1463 1463
         // helper function for output modules
1464
+
1465
+        /**
1466
+         * @param string $str
1467
+         */
1464 1468
         function append_output($str)
1465 1469
         {
1466 1470
             global $db, $content, $bUseZip;
Please login to merge, or discard this patch.
Spacing   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
     }
132 132
 }
133 133
 
134
-$queryid += 0;  // safety measure: force $queryid to be numeric
134
+$queryid += 0; // safety measure: force $queryid to be numeric
135 135
 
136 136
 
137 137
 //=========================================================
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
     if (sql_num_rows($query_rs) == 0) {
153 153
         // can happen if logged out after query was created (fix for RT #3915)
154 154
         $queryid = 0;
155
-        goto newquery;  // goto needs PHP 5.3
155
+        goto newquery; // goto needs PHP 5.3
156 156
         /*
157 157
         $tpl->error($error_query_not_found);
158 158
         */
@@ -188,7 +188,7 @@  discard block
 block discarded – undo
188 188
         }
189 189
 
190 190
         // get findername from finderid
191
-        $options['finderid'] = isset($options['finderid']) ? $options['finderid'] + 0 : 0;  // Ocprop
191
+        $options['finderid'] = isset($options['finderid']) ? $options['finderid'] + 0 : 0; // Ocprop
192 192
         if (isset($options['finder']) && $options['finderid'] > 0) {
193 193
             $rs_name = sql("SELECT `username` FROM `user` WHERE `user_id`='&1'", $options['finderid']);
194 194
             if (sql_num_rows($rs_name) == 1) {
@@ -200,7 +200,7 @@  discard block
 block discarded – undo
200 200
         }
201 201
 
202 202
         // get ownername from ownerid
203
-        $options['ownerid'] = isset($options['ownerid']) ? $options['ownerid'] + 0 : 0;  // Ocprop
203
+        $options['ownerid'] = isset($options['ownerid']) ? $options['ownerid'] + 0 : 0; // Ocprop
204 204
         if (isset($options['owner']) && $options['ownerid'] > 0) {
205 205
             $rs_name = sql("SELECT `username` FROM `user` WHERE `user_id`='&1'", $options['ownerid']);
206 206
             if (sql_num_rows($rs_name) == 1) {
@@ -237,10 +237,10 @@  discard block
 block discarded – undo
237 237
     }
238 238
 
239 239
     // get the search options parameters and store them in the queries table (to view "the next page")
240
-    $options['f_userowner'] = isset($_REQUEST['f_userowner']) ? $_REQUEST['f_userowner'] : 0;  // Ocprop
241
-    $options['f_userfound'] = isset($_REQUEST['f_userfound']) ? $_REQUEST['f_userfound'] : 0;  // Ocprop
240
+    $options['f_userowner'] = isset($_REQUEST['f_userowner']) ? $_REQUEST['f_userowner'] : 0; // Ocprop
241
+    $options['f_userfound'] = isset($_REQUEST['f_userfound']) ? $_REQUEST['f_userfound'] : 0; // Ocprop
242 242
     $options['f_disabled'] = isset($_REQUEST['f_disabled']) ? $_REQUEST['f_disabled'] : 0;
243
-    $options['f_inactive'] = isset($_REQUEST['f_inactive']) ? $_REQUEST['f_inactive'] : 1;  // Ocprop
243
+    $options['f_inactive'] = isset($_REQUEST['f_inactive']) ? $_REQUEST['f_inactive'] : 1; // Ocprop
244 244
     // f_inactive formerly was used for both, archived and disabled caches.
245 245
     // After adding the separate f_disabled option, it is used only for archived
246 246
     // caches, but keeps its name for compatibility with existing stored or
@@ -248,15 +248,15 @@  discard block
 block discarded – undo
248 248
     $options['f_ignored'] = isset($_REQUEST['f_ignored']) ? $_REQUEST['f_ignored'] : 1;
249 249
     $options['f_otherPlatforms'] = isset($_REQUEST['f_otherPlatforms']) ? $_REQUEST['f_otherPlatforms'] : 0;
250 250
     $options['f_geokrets'] = isset($_REQUEST['f_geokrets']) ? $_REQUEST['f_geokrets'] : 0;
251
-    $options['expert'] = isset($_REQUEST['expert']) ? $_REQUEST['expert'] : 0;  // Ocprop: 0
251
+    $options['expert'] = isset($_REQUEST['expert']) ? $_REQUEST['expert'] : 0; // Ocprop: 0
252 252
     $options['showresult'] = isset($_REQUEST['showresult']) ? $_REQUEST['showresult'] : 0;
253
-    $options['output'] = isset($_REQUEST['output']) ? $_REQUEST['output'] : 'HTML';  // Ocprop: HTML
253
+    $options['output'] = isset($_REQUEST['output']) ? $_REQUEST['output'] : 'HTML'; // Ocprop: HTML
254 254
     $options['bbox'] = isset($_REQUEST['bbox']) ? $_REQUEST['bbox'] : false;
255 255
 
256 256
     if (isset($_REQUEST['cache_attribs'])) {
257 257
         if ($_REQUEST['cache_attribs'] != '') {
258 258
             $aAttribs = mb_split(';', $_REQUEST['cache_attribs']);
259
-            for ($i = 0; $i < count($aAttribs); $i ++) {
259
+            for ($i = 0; $i < count($aAttribs); $i++) {
260 260
                 $options['cache_attribs'][$aAttribs[$i] + 0] = $aAttribs[$i] + 0;
261 261
             }
262 262
             unset($aAttribs);
@@ -270,7 +270,7 @@  discard block
 block discarded – undo
270 270
     if (isset($_REQUEST['cache_attribs_not'])) {
271 271
         if ($_REQUEST['cache_attribs_not'] != '') {
272 272
             $aAttribs = mb_split(';', $_REQUEST['cache_attribs_not']);
273
-            for ($i = 0; $i < count($aAttribs); $i ++) {
273
+            for ($i = 0; $i < count($aAttribs); $i++) {
274 274
                 $options['cache_attribs_not'][$aAttribs[$i] + 0] = $aAttribs[$i] + 0;
275 275
             }
276 276
             unset($aAttribs);
@@ -308,7 +308,7 @@  discard block
 block discarded – undo
308 308
 
309 309
         $options['finderid'] = isset($_REQUEST['finderid']) ? $_REQUEST['finderid'] : 0;
310 310
         $options['finder'] = isset($_REQUEST['finder']) ? stripslashes($_REQUEST['finder']) : '';
311
-        $options['logtype'] = isset($_REQUEST['logtype']) ? $_REQUEST['logtype'] : '1,7';  // Ocprop
311
+        $options['logtype'] = isset($_REQUEST['logtype']) ? $_REQUEST['logtype'] : '1,7'; // Ocprop
312 312
     } elseif ((isset($_REQUEST['searchbyortplz']) && is_numeric($_REQUEST['ortplz']))
313 313
               || isset($_REQUEST['searchbyplz'])) {
314 314
         $options['searchtype'] = 'byplz';
@@ -381,7 +381,7 @@  discard block
 block discarded – undo
381 381
         if (!$list->allowView($password)) {
382 382
             $tpl->redirect("cachelists.php");
383 383
         }
384
-        $options['cachelist'] = cachelist::getListById($options['listid']);  // null for invalid ID
384
+        $options['cachelist'] = cachelist::getListById($options['listid']); // null for invalid ID
385 385
         $options['cachelist_pw'] = $password;
386 386
     } elseif (isset($_REQUEST['searchall'])) {
387 387
         if (!$login->logged_in() &&
@@ -659,7 +659,7 @@  discard block
 block discarded – undo
659 659
                                 }
660 660
                                 $sqlhashes .= '`gns_search`.`simplehash`=' . sprintf("%u", crc32($searchstring));
661 661
 
662
-                                $wordscount ++;
662
+                                $wordscount++;
663 663
                             }
664 664
                         }
665 665
 
@@ -1001,7 +1001,7 @@  discard block
 block discarded – undo
1001 1001
                 $sql_where[] = '`s' . $n . '`.`hash`=\'' . sql_escape($h) . '\'';
1002 1002
                 $sql_where[] = '`s' . $n . '`.`object_type` IN (' . implode(',', $ft_types) . ')';
1003 1003
 
1004
-                $n ++;
1004
+                $n++;
1005 1005
             }
1006 1006
 
1007 1007
             $sqlFilter =
@@ -1159,7 +1159,7 @@  discard block
 block discarded – undo
1159 1159
         if ($options['cachetype'] != '') {
1160 1160
             $types = explode(';', $options['cachetype']);
1161 1161
             if (count($types) < sql_value_slave("SELECT COUNT(*) FROM `cache_type`", 0)) {
1162
-                for ($i = 0; $i < count($types); $i ++) {
1162
+                for ($i = 0; $i < count($types); $i++) {
1163 1163
                     $types[$i] = "'" . sql_escape($types[$i]) . "'";
1164 1164
                 }
1165 1165
                 $sql_where[] = '`caches`.`type` IN (' . implode(',', $types) . ')';
@@ -1169,7 +1169,7 @@  discard block
 block discarded – undo
1169 1169
         if ($options['cachesize'] != '') {
1170 1170
             $sizes = explode(';', $options['cachesize']);
1171 1171
             if (count($sizes) < sql_value_slave("SELECT COUNT(*) FROM `cache_size`", 0)) {
1172
-                for ($i = 0; $i < count($sizes); $i ++) {
1172
+                for ($i = 0; $i < count($sizes); $i++) {
1173 1173
                     $sizes[$i] = "'" . sql_escape($sizes[$i]) . "'";
1174 1174
                 }
1175 1175
                 $sql_where[] = '`caches`.`size` IN (' . implode(',', $sizes) . ')';
@@ -1254,7 +1254,7 @@  discard block
 block discarded – undo
1254 1254
     //  X6. load output module and output-dependent options
1255 1255
     //=================================================================
1256 1256
 
1257
-    $output_module = mb_strtolower($options['output']);  // Ocprop: HTML, gpx
1257
+    $output_module = mb_strtolower($options['output']); // Ocprop: HTML, gpx
1258 1258
 
1259 1259
     $map2_bounds = ($output_module == 'map2bounds');
1260 1260
     if ($map2_bounds) {
@@ -1800,7 +1800,7 @@  discard block
 block discarded – undo
1800 1800
     $dfromwaypoint_checked = ($options['searchtype'] == 'bywaypoint');
1801 1801
     $dfromcoords_checked = ($options['searchtype'] == 'coords');
1802 1802
     if (!$dfromortplz_checked && !$dfromwaypoint_checked && !$dfromcoords_checked) {
1803
-        $dfromcoords_checked = true;  // default
1803
+        $dfromcoords_checked = true; // default
1804 1804
     }
1805 1805
     $tpl->assign('dfromortplz_checked', $dfromortplz_checked);
1806 1806
     $tpl->assign('dfromwaypoint_checked', $dfromwaypoint_checked);
@@ -2023,7 +2023,7 @@  discard block
 block discarded – undo
2023 2023
             $line = mb_ereg_replace('{color}', $rAttrGroup['color'], $line);
2024 2024
 
2025 2025
             $group_line .= $line;
2026
-            $nLineAttrCount2 ++;
2026
+            $nLineAttrCount2++;
2027 2027
         }
2028 2028
         sql_free_result($rs);
2029 2029
 
@@ -2134,7 +2134,7 @@  discard block
 block discarded – undo
2134 2134
             $line = mb_ereg_replace('{color}', $rAttrGroup['color'], $line);
2135 2135
 
2136 2136
             $group_line .= $line;
2137
-            $nLineAttrCount1 ++;
2137
+            $nLineAttrCount1++;
2138 2138
         }
2139 2139
         sql_free_result($rs);
2140 2140
 
@@ -2277,7 +2277,7 @@  discard block
 block discarded – undo
2277 2277
 
2278 2278
 function outputUniidSelectionForm($uniSql, $options)
2279 2279
 {
2280
-    global $tpl;  // settings
2280
+    global $tpl; // settings
2281 2281
     global $locline, $secondlocationname;
2282 2282
 
2283 2283
     $urlparamString = prepareLocSelectionForm($options);
@@ -2387,7 +2387,7 @@  discard block
 block discarded – undo
2387 2387
         $thislocation = mb_ereg_replace('{locid}', urlencode($r['uni_id']), $thislocation);
2388 2388
         $thislocation = mb_ereg_replace('{nr}', $nr, $thislocation);
2389 2389
 
2390
-        $nr ++;
2390
+        $nr++;
2391 2391
         $locations .= $thislocation . "\n";
2392 2392
     }
2393 2393
     sql_free_result($rs);
@@ -2480,7 +2480,7 @@  discard block
 block discarded – undo
2480 2480
             $thislocation = mb_ereg_replace('{bgcolor}', $bgcolor2, $thislocation);
2481 2481
         }
2482 2482
 
2483
-        $nr ++;
2483
+        $nr++;
2484 2484
         $locations .= $thislocation . "\n";
2485 2485
     }
2486 2486
 
Please login to merge, or discard this patch.
htdocs/src/Oc/Libse/ChildWp/PresenterChildWp.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -54,6 +54,9 @@  discard block
 block discarded – undo
54 54
         $this->onDoSubmit($this->coordinate->getCoordinate(), $this->getDesc());
55 55
     }
56 56
 
57
+    /**
58
+     * @param \Oc\Libse\Coordinate\CoordinateCoordinate $coordinate
59
+     */
57 60
     abstract protected function onDoSubmit($coordinate, $description);
58 61
 
59 62
     protected function getType()
@@ -74,6 +77,9 @@  discard block
 block discarded – undo
74 77
         $this->typeImages = $childWpHandler->getChildNamesAndImages();
75 78
     }
76 79
 
80
+    /**
81
+     * @param \Oc\Libse\Coordinate\CoordinateCoordinate $coords
82
+     */
77 83
     public function initCoordinate($coords)
78 84
     {
79 85
         $this->coordinate->init($coords->latitude(), $coords->longitude());
Please login to merge, or discard this patch.
htdocs/src/Oc/Libse/Coordinate/PresenterCoordinate.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -35,6 +35,9 @@  discard block
 block discarded – undo
35 35
         $this->init(0, 0);
36 36
     }
37 37
 
38
+    /**
39
+     * @param boolean $request
40
+     */
38 41
     private function initRequest($request)
39 42
     {
40 43
         if ($request) {
@@ -44,6 +47,9 @@  discard block
 block discarded – undo
44 47
         return new RequestHttp();
45 48
     }
46 49
 
50
+    /**
51
+     * @param boolean $translator
52
+     */
47 53
     private function initTranslator($translator)
48 54
     {
49 55
         if ($translator) {
Please login to merge, or discard this patch.
htdocs/src/Oc/SmartyPlugins/prefilter.t.php 2 patches
Doc Comments   +8 added lines patch added patch discarded remove patch
@@ -84,6 +84,11 @@  discard block
 block discarded – undo
84 84
 /* $block ... {t[ a=$a|nbsp b="a" ...]}
85 85
  *
86 86
  */
87
+/**
88
+ * @param string $block
89
+ * @param string $message
90
+ * @param integer $line
91
+ */
87 92
 function smarty_prefilter_t_process_block($block, $message, &$smarty, $line)
88 93
 {
89 94
     if ($message != '') {
@@ -252,6 +257,9 @@  discard block
 block discarded – undo
252 257
     return $attrs;
253 258
 }
254 259
 
260
+/**
261
+ * @param string[] $needles
262
+ */
255 263
 function smarty_prefilter_t_strpos_multi($haystack, $needles)
256 264
 {
257 265
     $arg = func_get_args();
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -304,7 +304,7 @@
 block discarded – undo
304 304
             $trans = mb_ereg_replace('%' . $number, $smarty->left_delimiter . $attr . $smarty->right_delimiter, $trans);
305 305
         }
306 306
 
307
-        $number ++;
307
+        $number++;
308 308
     }
309 309
 
310 310
     return $trans;
Please login to merge, or discard this patch.