Completed
Push — master ( 598c1e...182b8c )
by Thomas
15:55 queued 08:34
created
htdocs/lib2/search/search.txt.inc.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -203,6 +203,9 @@
 block discarded – undo
203 203
     return $str;
204 204
 }
205 205
 
206
+/**
207
+ * @param string $str
208
+ */
206 209
 function lf2crlf($str)
207 210
 {
208 211
     return str_replace("\r\r\n", "\r\n", str_replace("\n", "\r\n", $str));
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -116,10 +116,10 @@  discard block
 block discarded – undo
116 116
 
117 117
         if ($r['html'] == 0) {
118 118
             $thisline = mb_ereg_replace('{htmlwarn}', '', $thisline);
119
-            $thisline = mb_ereg_replace('{desc}', decodeEntities(strip_tags($r['desc'])) . $license, $thisline);
119
+            $thisline = mb_ereg_replace('{desc}', decodeEntities(strip_tags($r['desc'])).$license, $thisline);
120 120
         } else {
121 121
             $thisline = mb_ereg_replace('{htmlwarn}', " ($converted_from_html)", $thisline);
122
-            $thisline = mb_ereg_replace('{desc}', html2txt($r['desc']) . $license, $thisline);
122
+            $thisline = mb_ereg_replace('{desc}', html2txt($r['desc']).$license, $thisline);
123 123
         }
124 124
 
125 125
         $thisline = mb_ereg_replace('{type}', $r['type'], $thisline);
@@ -197,7 +197,7 @@  discard block
 block discarded – undo
197 197
                 $thislog = mb_ereg_replace('{text}', html2txt($rLog['text']), $thislog);
198 198
             }
199 199
 
200
-            $logentries .= $thislog . "\n";
200
+            $logentries .= $thislog."\n";
201 201
         }
202 202
         $thisline = mb_ereg_replace('{logs}', $logentries, $thisline);
203 203
 
@@ -205,7 +205,7 @@  discard block
 block discarded – undo
205 205
         if (!$bUseZip) {
206 206
             echo $thisline;
207 207
         } else {
208
-            $phpzip->add_data($r['waypoint'] . '.txt', $thisline);
208
+            $phpzip->add_data($r['waypoint'].'.txt', $thisline);
209 209
         }
210 210
     }
211 211
     mysql_free_result($rs);
Please login to merge, or discard this patch.
htdocs/src/Oc/Libse/ChildWp/ControllerChildWp.php 2 patches
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.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
 use Oc\Libse\Validator\AlwaysValidValidator;
12 12
 use Oc\Libse\Validator\ArrayValidator;
13 13
 
14
-require_once __DIR__ . '/../../../../lib2/error.inc.php';
14
+require_once __DIR__.'/../../../../lib2/error.inc.php';
15 15
 
16 16
 abstract class PresenterChildWp
17 17
 {
Please login to merge, or discard this patch.
htdocs/adminuser.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@  discard block
 block discarded – undo
5 5
  *  Unicode Reminder メモ
6 6
  ***************************************************************************/
7 7
 
8
-require __DIR__ . '/lib2/web.inc.php';
8
+require __DIR__.'/lib2/web.inc.php';
9 9
 
10 10
 $tpl->name = 'adminuser';
11 11
 $tpl->menuitem = MNU_ADMIN_USER;
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
     // send a new confirmation
52 52
     $user->sendRegistrationCode();
53 53
 
54
-    $tpl->redirect('adminuser.php?action=searchuser&msg=sendcodecommit&username=' . urlencode($user->getUsername()));
54
+    $tpl->redirect('adminuser.php?action=searchuser&msg=sendcodecommit&username='.urlencode($user->getUsername()));
55 55
 }
56 56
 
57 57
 function formAction()
@@ -97,8 +97,8 @@  discard block
 block discarded – undo
97 97
         $user->addEmailProblem($datalicense);
98 98
     }
99 99
 
100
-    $tpl->redirect('adminuser.php?action=searchuser&username=' . urlencode($username) .
101
-        '&success=' . ($disduelicense + $disable));
100
+    $tpl->redirect('adminuser.php?action=searchuser&username='.urlencode($username).
101
+        '&success='.($disduelicense + $disable));
102 102
 }
103 103
 
104 104
 function searchUser()
Please login to merge, or discard this patch.
htdocs/login.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@  discard block
 block discarded – undo
6 6
  ***************************************************************************/
7 7
 
8 8
 $disable_verifyemail = true;
9
-require __DIR__ . '/lib2/web.inc.php';
9
+require __DIR__.'/lib2/web.inc.php';
10 10
 
11 11
 $tpl->name = 'login';
12 12
 $tpl->menuitem = MNU_LOGIN;
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
     $target = 'myhome.php';
29 29
 }
30 30
 
31
-$action = isset($_REQUEST['action']) ? $_REQUEST['action'] : '';   // Ocprop
31
+$action = isset($_REQUEST['action']) ? $_REQUEST['action'] : ''; // Ocprop
32 32
 
33 33
 if ($action == 'cookieverify') {
34 34
     // we should be logged in ... check if cookie is set ...
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
             $tpl->redirect($target);
40 40
         }
41 41
     } else {
42
-        if (!isset($_COOKIE[$opt['session']['cookiename'] . 'data'])) {
42
+        if (!isset($_COOKIE[$opt['session']['cookiename'].'data'])) {
43 43
             $tpl->error(ERROR_NO_COOKIES);
44 44
         } else {
45 45
             $tpl->redirect($target);
@@ -58,13 +58,13 @@  discard block
 block discarded – undo
58 58
         $tpl->error(ERROR_ALREADY_LOGGEDIN);
59 59
     }
60 60
 
61
-    $username = isset($_POST['email']) ? $_POST['email'] : '';  // Ocprop
62
-    $password = isset($_POST['password']) ? $_POST['password'] : '';  // Ocprop
61
+    $username = isset($_POST['email']) ? $_POST['email'] : ''; // Ocprop
62
+    $password = isset($_POST['password']) ? $_POST['password'] : ''; // Ocprop
63 63
 
64 64
     $retval = $login->try_login($username, $password, null);
65 65
     $password = '';
66 66
     if ($retval == LOGIN_OK) {
67
-        $tpl->redirect('login.php?action=cookieverify&target=' . urlencode($target));
67
+        $tpl->redirect('login.php?action=cookieverify&target='.urlencode($target));
68 68
     }
69 69
 
70 70
     $tpl->assign('username', $username);
Please login to merge, or discard this patch.
htdocs/newlogsrest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,4 +6,4 @@
 block discarded – undo
6 6
  ***************************************************************************/
7 7
 
8 8
 $newlogs_rest = true;
9
-require __DIR__ . '/newlogs.php';
9
+require __DIR__.'/newlogs.php';
Please login to merge, or discard this patch.
htdocs/garmin.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -5,9 +5,9 @@  discard block
 block discarded – undo
5 5
  * Unicode Reminder メモ
6 6
  ****************************************************************************/
7 7
 
8
-require __DIR__ . '/lib2/web.inc.php';
9
-require_once __DIR__ . '/lib2/logic/labels.inc.php';
10
-require_once __DIR__ . '/lib2/logic/cache.class.php';
8
+require __DIR__.'/lib2/web.inc.php';
9
+require_once __DIR__.'/lib2/logic/labels.inc.php';
10
+require_once __DIR__.'/lib2/logic/cache.class.php';
11 11
 
12 12
 $tpl->name = 'garmin';
13 13
 $tpl->popup = 1;
@@ -30,9 +30,9 @@  discard block
 block discarded – undo
30 30
 // be needed.
31 31
 
32 32
 if (($opt['lib']['garmin']['domain'] != $_SERVER['HTTP_HOST']) && !isset($_REQUEST['redirect'])) {
33
-    $redirect = $opt['lib']['garmin']['page_url'] . 'garmin.php?redirect=1&cacheid=' . $cacheid;
33
+    $redirect = $opt['lib']['garmin']['page_url'].'garmin.php?redirect=1&cacheid='.$cacheid;
34 34
     if (isset($_REQUEST['templocale'])) {
35
-        $redirect .= '&templocale=' . $_REQUEST['templocale'];
35
+        $redirect .= '&templocale='.$_REQUEST['templocale'];
36 36
     }
37 37
     $tpl->redirect($redirect);
38 38
     exit;
@@ -52,9 +52,9 @@  discard block
 block discarded – undo
52 52
 $tpl->assign('crypt', $bCrypt);
53 53
 
54 54
 if (isset($_REQUEST['desclang'])) {
55
-    $sPreferedDescLang = $_REQUEST['desclang'] . ',' . $opt['template']['locale'] . ',EN';
55
+    $sPreferedDescLang = $_REQUEST['desclang'].','.$opt['template']['locale'].',EN';
56 56
 } else {
57
-    $sPreferedDescLang = $opt['template']['locale'] . ',EN';
57
+    $sPreferedDescLang = $opt['template']['locale'].',EN';
58 58
 }
59 59
 
60 60
 //get cache record
Please login to merge, or discard this patch.
htdocs/mywatches.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -5,14 +5,14 @@  discard block
 block discarded – undo
5 5
  *  Unicode Reminder メモ
6 6
  ***************************************************************************/
7 7
 
8
-require __DIR__ . '/lib2/web.inc.php';
8
+require __DIR__.'/lib2/web.inc.php';
9 9
 
10 10
 $tpl->name = 'mywatches';
11 11
 $tpl->menuitem = MNU_MYPROFILE_WATCHES;
12 12
 
13 13
 $login->verify();
14 14
 if ($login->userid == 0) {
15
-    $tpl->redirect('login.php?target=' . urlencode($tpl->target));
15
+    $tpl->redirect('login.php?target='.urlencode($tpl->target));
16 16
 }
17 17
 
18 18
 $action = isset($_REQUEST['action']) ? mb_strtolower($_REQUEST['action']) : '';
@@ -48,14 +48,14 @@  discard block
 block discarded – undo
48 48
     }
49 49
 
50 50
     $hours = array();
51
-    for ($i = 0; $i < 24; $i ++) {
51
+    for ($i = 0; $i < 24; $i++) {
52 52
         $hours[] = [
53 53
             'value' => $i,
54 54
             'time' => mktime($i, 0, 0)
55 55
         ];
56 56
     }
57 57
     $weekdays = array();
58
-    for ($i = 1; $i <= 7; $i ++) {
58
+    for ($i = 1; $i <= 7; $i++) {
59 59
         $weekdays[] = array(
60 60
             'value' => $i,
61 61
             'time' => mktime(0, 0, 0, 0, $i + 5, 2000)
Please login to merge, or discard this patch.
htdocs/doc/sql/stored-proc/old/distance.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -9,13 +9,13 @@
 block discarded – undo
9 9
  ***************************************************************************/
10 10
 
11 11
 $opt['rootpath'] = '../../../';
12
-require_once $opt['rootpath'] . 'lib/clicompatbase.inc.php';
12
+require_once $opt['rootpath'].'lib/clicompatbase.inc.php';
13 13
 
14
-if (!file_exists($opt['rootpath'] . 'util/mysql_root/sql_root.inc.php')) {
15
-    die("\n" . 'install util/mysql_root/sql_root.inc.php' . "\n\n");
14
+if (!file_exists($opt['rootpath'].'util/mysql_root/sql_root.inc.php')) {
15
+    die("\n".'install util/mysql_root/sql_root.inc.php'."\n\n");
16 16
 }
17 17
 
18
-require_once $opt['rootpath'] . 'util/mysql_root/sql_root.inc.php';
18
+require_once $opt['rootpath'].'util/mysql_root/sql_root.inc.php';
19 19
 
20 20
 /* begin db connect */
21 21
 db_root_connect();
Please login to merge, or discard this patch.
htdocs/doc/sql/stored-proc/maintain-113.inc.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -448,7 +448,7 @@  discard block
 block discarded – undo
448 448
 
449 449
    SELECT GROUP_CONCAT(DISTINCT `language` ORDER BY `language` SEPARATOR ',') INTO dl FROM `cache_desc` WHERE `cache_id`=nCacheId GROUP BY `cache_id` ;
450 450
    UPDATE `caches` SET `desc_languages`=dl, default_desclang=PREFERED_LANG(dl, '&1') WHERE `cache_id`=nCacheId LIMIT 1;
451
- END;", strtoupper($lang . ',EN'));
451
+ END;", strtoupper($lang.',EN'));
452 452
 
453 453
 // set caches.desc_languages of all caches, fill cache_desc_prefered and return number of modified rows
454 454
 sql_dropProcedure('sp_updateall_caches_descLanguages');
@@ -456,7 +456,7 @@  discard block
 block discarded – undo
456 456
  BEGIN
457 457
    UPDATE `caches`, (SELECT `cache_id`, GROUP_CONCAT(DISTINCT `language` ORDER BY `language` SEPARATOR ',') AS `dl` FROM `cache_desc` GROUP BY `cache_id`) AS `tbl` SET `caches`.`desc_languages`=`tbl`.`dl`, `caches`.`default_desclang`=PREFERED_LANG(`tbl`.`dl`, '&1') WHERE `caches`.`cache_id`=`tbl`.`cache_id`;
458 458
    SET nModified = ROW_COUNT() ;
459
- END;", strtoupper($lang . ',EN'));
459
+ END;", strtoupper($lang.',EN'));
460 460
 
461 461
 // update found, last_found, notfound and note of stat_cache_logs, stat_caches and stat_user
462 462
 sql_dropProcedure('sp_update_logstat');
@@ -808,7 +808,7 @@  discard block
 block discarded – undo
808 808
                     SET @dont_update_listingdate=0;
809 809
                 END;",
810 810
                 $opt['logic']['waypoint_pool']['prefix'],
811
-                '^' . $opt['logic']['waypoint_pool']['prefix'] . '[' . $opt['logic']['waypoint_pool']['valid_chars'] . ']{1,}$');
811
+                '^'.$opt['logic']['waypoint_pool']['prefix'].'['.$opt['logic']['waypoint_pool']['valid_chars'].']{1,}$');
812 812
 
813 813
 sql_dropTrigger('cachesAfterInsert');
814 814
 sql("CREATE TRIGGER `cachesAfterInsert` AFTER INSERT ON `caches`
Please login to merge, or discard this patch.