@@ -20,7 +20,7 @@ |
||
20 | 20 | { |
21 | 21 | $hour = floor($value); |
22 | 22 | |
23 | - return $hour . ':' . sprintf('%02.0F', ($value - $hour) * 60); |
|
23 | + return $hour.':'.sprintf('%02.0F', ($value - $hour) * 60); |
|
24 | 24 | } |
25 | 25 | |
26 | 26 | /* vim: set expandtab: */ |
@@ -7,7 +7,7 @@ discard block |
||
7 | 7 | |
8 | 8 | namespace Oc\Libse\Language; |
9 | 9 | |
10 | -require_once __DIR__ . '/../../../../lib2/translate.class.php'; |
|
10 | +require_once __DIR__.'/../../../../lib2/translate.class.php'; |
|
11 | 11 | |
12 | 12 | class TranslatorLanguage |
13 | 13 | { |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | $value = $args[$pattern]; |
37 | 37 | |
38 | 38 | if (!isset($value)) { |
39 | - $value = $pattern . '-missing'; |
|
39 | + $value = $pattern.'-missing'; |
|
40 | 40 | } |
41 | 41 | |
42 | 42 | $lang_string = mb_ereg_replace($curly_pattern, $value, $lang_string); |
@@ -7,7 +7,7 @@ |
||
7 | 7 | |
8 | 8 | namespace Oc\Libse\Coordinate; |
9 | 9 | |
10 | -require_once __DIR__ . '/../../../../lib2/logic/const.inc.php'; |
|
10 | +require_once __DIR__.'/../../../../lib2/logic/const.inc.php'; |
|
11 | 11 | |
12 | 12 | class TypeCoordinate |
13 | 13 | { |
@@ -47,12 +47,12 @@ |
||
47 | 47 | public function formatHtml($coordinate, $separator = ' ') |
48 | 48 | { |
49 | 49 | return $this->formatHtmlHemDegMin($this->formatLatHem($coordinate), $this->formatLatDeg($coordinate), $this->formatLatMin($coordinate)) |
50 | - . $separator . |
|
50 | + . $separator. |
|
51 | 51 | $this->formatHtmlHemDegMin($this->formatLonHem($coordinate), $this->formatLonDeg($coordinate), $this->formatLonMin($coordinate)); |
52 | 52 | } |
53 | 53 | |
54 | 54 | private function formatHtmlHemDegMin($hem, $deg, $min) |
55 | 55 | { |
56 | - return $hem . ' ' . $deg . '° ' . $min . '\''; |
|
56 | + return $hem.' '.$deg.'° '.$min.'\''; |
|
57 | 57 | } |
58 | 58 | } |
@@ -30,11 +30,11 @@ |
||
30 | 30 | |
31 | 31 | protected function getValidateRegex() |
32 | 32 | { |
33 | - return '-?[0-9]' . $this->int_len . '$'; |
|
33 | + return '-?[0-9]'.$this->int_len.'$'; |
|
34 | 34 | } |
35 | 35 | |
36 | 36 | protected function getValue($value) |
37 | 37 | { |
38 | - return (int) $value; |
|
38 | + return (int)$value; |
|
39 | 39 | } |
40 | 40 | } |
@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | |
23 | 23 | protected function getMinValue() |
24 | 24 | { |
25 | - return - 1e38; |
|
25 | + return -1e38; |
|
26 | 26 | } |
27 | 27 | |
28 | 28 | protected function getMaxValue() |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | |
33 | 33 | protected function getValidateRegex() |
34 | 34 | { |
35 | - return '-?[0-9]' . $this->int_len . '([,.][0-9]' . $this->dec_len . ')?$'; |
|
35 | + return '-?[0-9]'.$this->int_len.'([,.][0-9]'.$this->dec_len.')?$'; |
|
36 | 36 | } |
37 | 37 | |
38 | 38 | protected function getValue($value) |
@@ -43,7 +43,7 @@ |
||
43 | 43 | } |
44 | 44 | |
45 | 45 | $process = new Process($cmd, $this->rootPath, null, null, 9600); |
46 | - $process->run(function ($type, $buffer) { |
|
46 | + $process->run(function($type, $buffer) { |
|
47 | 47 | echo $buffer; |
48 | 48 | }); |
49 | 49 |
@@ -27,6 +27,6 @@ |
||
27 | 27 | { |
28 | 28 | parent::__construct($name); |
29 | 29 | |
30 | - $this->rootPath = realpath(__DIR__ . '/../../../../'); |
|
30 | + $this->rootPath = realpath(__DIR__.'/../../../../'); |
|
31 | 31 | } |
32 | 32 | } |
@@ -18,13 +18,13 @@ |
||
18 | 18 | |
19 | 19 | $error_wrong_node = t('This log entry has been created on another Opencaching website. The cache can only be edited there.'); |
20 | 20 | |
21 | -$date_message = '<span class="errormsg">' . t('date or time is invalid') . '</span>'; |
|
21 | +$date_message = '<span class="errormsg">'.t('date or time is invalid').'</span>'; |
|
22 | 22 | $smiley_link = '<a href="javascript:insertSmiley(\'{smiley_symbol}\',\'{smiley_file}\')">{smiley_image}</a>'; |
23 | 23 | |
24 | -$log_pw_field = '<tr><td colspan="2">' . t('passwort to log:') . ' <input class="input100" type="text" name="log_pw" maxlength="20" value="" /> (' . t('only for found logs') . ')</td></tr> |
|
24 | +$log_pw_field = '<tr><td colspan="2">'.t('passwort to log:').' <input class="input100" type="text" name="log_pw" maxlength="20" value="" /> ('.t('only for found logs').')</td></tr> |
|
25 | 25 | <tr><td class="spacer" colspan="2"></td></tr>'; |
26 | -$log_pw_field_pw_not_ok = '<tr><td colspan="2">' . t('passwort to log:') . ' <input type="text" name="log_pw" maxlength="20" size="20" value=""/><span class="errormsg"> ' . t('Invalid password!') . '</span></td></tr><tr><td class="spacer" colspan="2"></td></tr>'; |
|
26 | +$log_pw_field_pw_not_ok = '<tr><td colspan="2">'.t('passwort to log:').' <input type="text" name="log_pw" maxlength="20" size="20" value=""/><span class="errormsg"> '.t('Invalid password!').'</span></td></tr><tr><td class="spacer" colspan="2"></td></tr>'; |
|
27 | 27 | |
28 | -$teamcomment_field = ' <input type="checkbox" name="teamcomment" value="1" class="checkbox" {chk_sel} id="teamcomment" /> <label for="teamcomment">' . t('OC team comment') . "</label>"; |
|
28 | +$teamcomment_field = ' <input type="checkbox" name="teamcomment" value="1" class="checkbox" {chk_sel} id="teamcomment" /> <label for="teamcomment">'.t('OC team comment')."</label>"; |
|
29 | 29 | |
30 | 30 | $type_edit_disabled = 'disabled class="disabled"'; |