@@ -61,7 +61,7 @@ |
||
| 61 | 61 | |
| 62 | 62 | $retval .= mb_substr($text, $curpos, $starthttp - $curpos); |
| 63 | 63 | $url = mb_substr($text, $starthttp, $endhttp - $starthttp); |
| 64 | - $retval .= '<a href="' . $url . '" alt="" target="_blank">' . $url . '</a>'; |
|
| 64 | + $retval .= '<a href="'.$url.'" alt="" target="_blank">'.$url.'</a>'; |
|
| 65 | 65 | |
| 66 | 66 | $curpos = $endhttp; |
| 67 | 67 | if ($curpos >= mb_strlen($text)) { |
@@ -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 | } |