@@ -11,7 +11,7 @@ |
||
11 | 11 | |
12 | 12 | require_once __DIR__ . '/../vendor/autoload.php'; |
13 | 13 | |
14 | -$opt['rootpath'] = __DIR__ .'/../'; |
|
14 | +$opt['rootpath'] = __DIR__ . '/../'; |
|
15 | 15 | |
16 | 16 | function __autoload($class_name) |
17 | 17 | { |
@@ -31,6 +31,11 @@ discard block |
||
31 | 31 | } |
32 | 32 | |
33 | 33 | if (!function_exists('bindtextdomain')) { |
34 | + |
|
35 | + /** |
|
36 | + * @param string $domain |
|
37 | + * @param string $directory |
|
38 | + */ |
|
34 | 39 | function bindtextdomain($domain, $directory) |
35 | 40 | { |
36 | 41 | // dummy function for travis |
@@ -38,6 +43,10 @@ discard block |
||
38 | 43 | } |
39 | 44 | |
40 | 45 | if (!function_exists('textdomain')) { |
46 | + |
|
47 | + /** |
|
48 | + * @param string $domain |
|
49 | + */ |
|
41 | 50 | function textdomain($domain) |
42 | 51 | { |
43 | 52 | // dummy function for travis |
@@ -45,6 +54,10 @@ discard block |
||
45 | 54 | } |
46 | 55 | |
47 | 56 | if (!function_exists('gettext')) { |
57 | + |
|
58 | + /** |
|
59 | + * @param string $message |
|
60 | + */ |
|
48 | 61 | function gettext($message) |
49 | 62 | { |
50 | 63 | // dummy function for travis |
@@ -637,6 +637,10 @@ |
||
637 | 637 | } |
638 | 638 | |
639 | 639 | if (!function_exists('get_logtype_name')) { |
640 | + |
|
641 | + /** |
|
642 | + * @return string |
|
643 | + */ |
|
640 | 644 | function get_logtype_name($logtype, $language) |
641 | 645 | { |
642 | 646 | return sqlValue( |
@@ -608,7 +608,7 @@ |
||
608 | 608 | $pid_daemon = fgets($pidfile, 20); |
609 | 609 | fclose($pidfile); |
610 | 610 | |
611 | - $pid_daemon = (int) $pid_daemon; |
|
611 | + $pid_daemon = (int)$pid_daemon; |
|
612 | 612 | |
613 | 613 | // process running? |
614 | 614 | if (posix_kill($pid_daemon, 0)) { |
@@ -802,6 +802,9 @@ |
||
802 | 802 | return ''; |
803 | 803 | } |
804 | 804 | |
805 | +/** |
|
806 | + * @return string |
|
807 | + */ |
|
805 | 808 | function get_logtype_name($logtype, $language) |
806 | 809 | { |
807 | 810 | return sqlValue( |
@@ -39,7 +39,7 @@ |
||
39 | 39 | |
40 | 40 | foreach ($sendTo as $receiver) { |
41 | 41 | $receiver = trim($receiver); |
42 | - echo ++ $n . "/$total: $receiver"; |
|
42 | + echo ++$n . "/$total: $receiver"; |
|
43 | 43 | mail( |
44 | 44 | $receiver, |
45 | 45 | $subject, |
@@ -14,14 +14,14 @@ |
||
14 | 14 | |
15 | 15 | public function push_pos(&$pos) |
16 | 16 | { |
17 | - $this->stack[count($this->stack)] =& $pos; |
|
18 | - $this->stack_ref =& $pos; |
|
17 | + $this->stack[count($this->stack)] = & $pos; |
|
18 | + $this->stack_ref = & $pos; |
|
19 | 19 | } |
20 | 20 | |
21 | 21 | public function pop_pos() |
22 | 22 | { |
23 | 23 | unset($this->stack[count($this->stack) - 1]); |
24 | - $this->stack_ref =& $this->stack[count($this->stack) - 1]; |
|
24 | + $this->stack_ref = & $this->stack[count($this->stack) - 1]; |
|
25 | 25 | } |
26 | 26 | |
27 | 27 | /** |
@@ -142,7 +142,7 @@ |
||
142 | 142 | |
143 | 143 | /* default locale |
144 | 144 | */ |
145 | -$opt['template']['default']['locale'] = 'DE'; // can be overwritten by $opt['domain'][<domain>]['locale'] |
|
145 | +$opt['template']['default']['locale'] = 'DE'; // can be overwritten by $opt['domain'][<domain>]['locale'] |
|
146 | 146 | |
147 | 147 | // include all locale settings |
148 | 148 | require_once __DIR__ . '/../config2/locale.inc.php'; |
@@ -18,7 +18,7 @@ |
||
18 | 18 | |
19 | 19 | // database names |
20 | 20 | $dbname = 'opencaching'; |
21 | -$tmpdbname = 'octmp'; // empty db with CREATE and DROP privileges |
|
21 | +$tmpdbname = 'octmp'; // empty db with CREATE and DROP privileges |
|
22 | 22 | |
23 | 23 | // common developer system settings |
24 | 24 | require 'settings-dev.inc.php'; |
@@ -11,7 +11,7 @@ |
||
11 | 11 | * language specific vars |
12 | 12 | ****************************************************************************/ |
13 | 13 | |
14 | - $error_wrong_node = t('this description was created on another Opencaching-webserver and can only be deleted there.'); |
|
14 | + $error_wrong_node = t('this description was created on another Opencaching-webserver and can only be deleted there.'); |
|
15 | 15 | |
16 | - $commit = t('the cache description has been deleted'); |
|
17 | - $commit_title = t('delete this cache-description'); |
|
16 | + $commit = t('the cache description has been deleted'); |
|
17 | + $commit_title = t('delete this cache-description'); |
@@ -153,7 +153,7 @@ discard block |
||
153 | 153 | <?php |
154 | 154 | foreach ($opt['template']['locales'] as $k => $lang) { |
155 | 155 | if ($lang['status'] == OC_LOCALE_ACTIVE) { |
156 | - echo '<a style="text-decoration: none;" href="'.$langUrl . $k . '"><img src="' . $lang['flag'] . |
|
156 | + echo '<a style="text-decoration: none;" href="' . $langUrl . $k . '"><img src="' . $lang['flag'] . |
|
157 | 157 | '" alt="' . $lang['name'] . '" title="' . $lang['name'] . '" width="24px" height="18px" /></a> '; |
158 | 158 | } |
159 | 159 | } |
@@ -182,7 +182,7 @@ discard block |
||
182 | 182 | } |
183 | 183 | $nLastGroup = $tpl_usercountries[$i]['group']; |
184 | 184 | |
185 | - echo '<option value="' . htmlspecialchars($tpl_usercountries[$i]['country'], ENT_COMPAT, 'UTF-8') . '"' . (($sUserCountry==$tpl_usercountries[$i]['country']) ? ' selected="selected"' : '') . '>' . htmlspecialchars($tpl_usercountries[$i]['name'], ENT_COMPAT, 'UTF-8') . '</option>'; |
|
185 | + echo '<option value="' . htmlspecialchars($tpl_usercountries[$i]['country'], ENT_COMPAT, 'UTF-8') . '"' . (($sUserCountry == $tpl_usercountries[$i]['country']) ? ' selected="selected"' : '') . '>' . htmlspecialchars($tpl_usercountries[$i]['name'], ENT_COMPAT, 'UTF-8') . '</option>'; |
|
186 | 186 | } |
187 | 187 | ?> |
188 | 188 | </select> |