Completed
Push — master ( 182b8c...09455a )
by Thomas
07:02
created
htdocs/src/Oc/SmartyPlugins/function.coordinput.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
     $lonMin = $lon - floor($lon);
31 31
     $lon -= $lonMin;
32 32
 
33
-    $retval = '<select name="' . htmlspecialchars($prefix, ENT_QUOTES, 'UTF-8') . 'NS">';
33
+    $retval = '<select name="'.htmlspecialchars($prefix, ENT_QUOTES, 'UTF-8').'NS">';
34 34
     if ($bLatNeg) {
35 35
         $retval .= '<option value="N">N</option>';
36 36
         $retval .= '<option value="S" selected="selected">S</option>';
@@ -40,28 +40,28 @@  discard block
 block discarded – undo
40 40
     }
41 41
     $retval .= '</select>&nbsp;';
42 42
 
43
-    $retval .= '<input type="text" name="' . htmlspecialchars(
43
+    $retval .= '<input type="text" name="'.htmlspecialchars(
44 44
             $prefix,
45 45
             ENT_QUOTES,
46 46
             'UTF-8'
47
-        ) . 'Lat" value="' . htmlspecialchars(
47
+        ).'Lat" value="'.htmlspecialchars(
48 48
             sprintf('%02d', $lat),
49 49
             ENT_QUOTES,
50 50
             'UTF-8'
51
-        ) . '" size="1" maxlength="2" />&deg; ';
52
-    $retval .= '<input type="text" name="' . htmlspecialchars(
51
+        ).'" size="1" maxlength="2" />&deg; ';
52
+    $retval .= '<input type="text" name="'.htmlspecialchars(
53 53
             $prefix,
54 54
             ENT_QUOTES,
55 55
             'UTF-8'
56
-        ) . 'LatMin" value="' . htmlspecialchars(
56
+        ).'LatMin" value="'.htmlspecialchars(
57 57
             sprintf('%06.3f', $latMin * 60),
58 58
             ENT_QUOTES,
59 59
             'UTF-8'
60
-        ) . '" size="5" maxlength="6" /> \'';
60
+        ).'" size="5" maxlength="6" /> \'';
61 61
 
62 62
     $retval .= '<br />';
63 63
 
64
-    $retval .= '<select name="' . htmlspecialchars($prefix, ENT_QUOTES, 'UTF-8') . 'EW">';
64
+    $retval .= '<select name="'.htmlspecialchars($prefix, ENT_QUOTES, 'UTF-8').'EW">';
65 65
     if ($bLonNeg) {
66 66
         $retval .= '<option value="E">E</option>';
67 67
         $retval .= '<option value="W" selected="selected">W</option>';
@@ -71,24 +71,24 @@  discard block
 block discarded – undo
71 71
     }
72 72
     $retval .= '</select>&nbsp;';
73 73
 
74
-    $retval .= '<input type="text" name="' . htmlspecialchars(
74
+    $retval .= '<input type="text" name="'.htmlspecialchars(
75 75
             $prefix,
76 76
             ENT_QUOTES,
77 77
             'UTF-8'
78
-        ) . 'Lon" value="' . htmlspecialchars(
78
+        ).'Lon" value="'.htmlspecialchars(
79 79
             sprintf('%03d', $lon),
80 80
             ENT_QUOTES,
81 81
             'UTF-8'
82
-        ) . '" size="2" maxlength="3" />&deg; ';
83
-    $retval .= '<input type="text" name="' . htmlspecialchars(
82
+        ).'" size="2" maxlength="3" />&deg; ';
83
+    $retval .= '<input type="text" name="'.htmlspecialchars(
84 84
             $prefix,
85 85
             ENT_QUOTES,
86 86
             'UTF-8'
87
-        ) . 'LonMin" value="' . htmlspecialchars(
87
+        ).'LonMin" value="'.htmlspecialchars(
88 88
             sprintf('%06.3f', $lonMin * 60),
89 89
             ENT_QUOTES,
90 90
             'UTF-8'
91
-        ) . '" size="5" maxlength="6" /> \'';
91
+        ).'" size="5" maxlength="6" /> \'';
92 92
 
93 93
     return $retval;
94 94
 }
Please login to merge, or discard this patch.
htdocs/src/Oc/SmartyPlugins/block.t.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -24,15 +24,15 @@
 block discarded – undo
24 24
     $tr = [];
25 25
     $p = 0;
26 26
 
27
-    for ($i = 1; $i < func_num_args(); $i ++) {
27
+    for ($i = 1; $i < func_num_args(); $i++) {
28 28
         $arg = func_get_arg($i);
29 29
 
30 30
         if (is_array($arg)) {
31 31
             foreach ($arg as $aarg) {
32
-                $tr['%' . ++ $p] = $aarg;
32
+                $tr['%'.++ $p] = $aarg;
33 33
             }
34 34
         } else {
35
-            $tr['%' . ++ $p] = $arg;
35
+            $tr['%'.++ $p] = $arg;
36 36
         }
37 37
     }
38 38
 
Please login to merge, or discard this patch.
htdocs/src/Oc/SmartyPlugins/modifier.hyperlink.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
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)) {
Please login to merge, or discard this patch.
htdocs/src/Oc/SmartyPlugins/modifier.format_hour.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
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: */
Please login to merge, or discard this patch.
htdocs/src/Oc/Libse/Language/TranslatorLanguage.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.
htdocs/src/Oc/Libse/Coordinate/TypeCoordinate.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@
 block discarded – undo
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
 {
Please login to merge, or discard this patch.
htdocs/src/Oc/Libse/Coordinate/FormatterCoordinate.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -47,12 +47,12 @@
 block discarded – undo
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 . '&deg; ' . $min . '\'';
56
+        return $hem.' '.$deg.'&deg; '.$min.'\'';
57 57
     }
58 58
 }
Please login to merge, or discard this patch.
htdocs/src/Oc/Libse/Validator/IntegerValidator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,11 +30,11 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
htdocs/src/Oc/Libse/Validator/RealValidator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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)
Please login to merge, or discard this patch.