Completed
Push — development ( d440e2...d59298 )
by Thomas
24:27 queued 10:42
created
htdocs/mylists.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,13 +25,13 @@
 block discarded – undo
25 25
 
26 26
 if (isset($_REQUEST['list_caches'])) {
27 27
     $list_caches = strtoupper(trim($_REQUEST['list_caches']));
28
-} elseif (isset($_REQUEST['addCache']) &&  $_REQUEST['addCache'] >= 1) {
28
+} elseif (isset($_REQUEST['addCache']) && $_REQUEST['addCache'] >= 1) {
29 29
     $list_caches = $_REQUEST['addCache'];
30 30
 } else {
31 31
     $list_caches = '';
32 32
 }
33 33
 
34
-if (isset($_REQUEST['addCache'])){
34
+if (isset($_REQUEST['addCache'])) {
35 35
     foreach ($list_caches as $nCacheId) {
36 36
         $cache = new cache($nCacheId);
37 37
         $oc_codes[] = $cache->getWPOC();
Please login to merge, or discard this patch.
htdocs/search.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
 $load_query = false;
89 89
 $show_lastsearchbutton = true;
90 90
 
91
-$list_caches = isset($_REQUEST['addCache']) &&  $_REQUEST['addCache'] >= 1 ? $_REQUEST['addCache'] : '';
91
+$list_caches = isset($_REQUEST['addCache']) && $_REQUEST['addCache'] >= 1 ? $_REQUEST['addCache'] : '';
92 92
 $added_waypoints = 0;
93 93
 
94 94
 if (isset($_REQUEST['queryid']) || isset($_REQUEST['showresult'])) {  // Ocprop: showresult, queryid
@@ -1297,11 +1297,11 @@  discard block
 block discarded – undo
1297 1297
 
1298 1298
         //add selected caches to selected cachelist
1299 1299
         if (isset($_REQUEST['addToList']) && isset($_REQUEST['addCache']) && isset($_REQUEST['selectCachelist'])) {
1300
-            $list_caches_= $_REQUEST['addToList'];
1300
+            $list_caches_ = $_REQUEST['addToList'];
1301 1301
             $added_waypoints = addToList($list_caches);
1302
-            $addCachelist= cachelist::getListById((int) $_REQUEST['selectCachelist']); // null for invalid ID
1302
+            $addCachelist = cachelist::getListById((int)$_REQUEST['selectCachelist']); // null for invalid ID
1303 1303
         } elseif (isset($_REQUEST['addToList'])) {
1304
-            $addCachelist= cachelist::getListById((int) $_REQUEST['selectCachelist']); // null for invalid ID
1304
+            $addCachelist = cachelist::getListById((int)$_REQUEST['selectCachelist']); // null for invalid ID
1305 1305
             $error_addCaches = true;
1306 1306
         }
1307 1307
 
Please login to merge, or discard this patch.
htdocs/lib2/edithelper.inc.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
             // mode switch from plain text to HTML editor => convert HTML special chars
41 41
             $text = nl2br(htmlspecialchars($text));
42 42
             // .. and smilies
43
-            $text = ' ' . $text . ' ';   // see Redmine #1103
43
+            $text = ' ' . $text . ' '; // see Redmine #1103
44 44
             $text = str_replace($smiley['text'], $smiley['spaced_image'], $text);
45 45
             if (substr($text, 0, 1) == ' ') {
46 46
                 $text = substr($text, 1);
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
             // convert to HTML for storing to database
64 64
             // also implemented in okapi/services/logs/submit.php
65 65
             $text = nl2br(htmlspecialchars($text, ENT_COMPAT, 'UTF-8'));
66
-            $text = str_replace('  ', '  ', $text);   // can produce new '  ' ('  ' + ' ')
66
+            $text = str_replace('  ', '  ', $text); // can produce new '  ' ('  ' + ' ')
67 67
             $text = str_replace('  ', '  ', $text);
68 68
         } else {
69 69
             // mode switch from HTML editor to plain text, or decode HTML-encoded plain text
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
         // REDMINE-1249: Missing log text in mail notification
126 126
         // simpler solution that converts html to text as the previous class html2text emptied the text completely
127 127
         // implementation for line wrap, url's and probably more is missing
128
-        $text = preg_replace( "/\n\s+/", "\n", rtrim(html_entity_decode(strip_tags($text))));
128
+        $text = preg_replace("/\n\s+/", "\n", rtrim(html_entity_decode(strip_tags($text))));
129 129
 
130 130
         $text = str_replace(
131 131
             [
Please login to merge, or discard this patch.